]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Update syscall-names.list for Linux 5.3.
[thirdparty/glibc.git] / ChangeLog
1 2019-09-18 Joseph Myers <joseph@codesourcery.com>
2
3 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4 version to 5.3.
5 (clone3): New syscall.
6 (pidfd_open): Likewise.
7
8 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
9 version to 5.3.
10
11 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
12
13 * sysdeps/s390/hp-timing.h: New file.
14
15 2019-09-18 Joseph Myers <joseph@codesourcery.com>
16
17 * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
18 <linux/sched.h>.
19 (CLONE_VM): New macro.
20 (CLONE_VFORK): Likewise.
21
22 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
23
24 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
25 Rearrange subprocesses.
26 (pldd_process): New function.
27 * support/Makefile (libsupport-routines): Add support_ptrace.
28 * support/xptrace.h: New file.
29 * support/support_ptrace.c: Likewise.
30
31 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32
33 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
34
35 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
36 (INTERNAL_VSYSCALL_CALL): Remove.
37 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
38 (INTERNAL_VSYSCALL_CALL): Likewise.
39 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
40 (INTERNAL_VSYSCALL_CALL): Likewise.
41 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
42 New macro.
43
44 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
45 defined.
46 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
47 (__get_timebase_freq): Remove use of
48 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
49 (get_timebase_freq_fallback): New symbol.
50 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
51 HAVE_GETTIMEOFDAY_VSYSCALL.
52 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
53 HAVE_TIME_VSYSCALL.
54 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
55 implementation.
56 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
57 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
58 powerpc64.
59 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
60 * .../sysv/linux/powerpc/powerpc64/sysdep.h
61 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
62 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
63 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
64
65 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
66 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
67 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
68 Likewise.
69 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
70 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
71 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
72 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
73 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
74 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
75 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
76 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
77 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
78 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
79 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
80 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
81 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
82 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
83 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
84 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
85 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
86 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
87 name.
88 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
89 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
90 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
91 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
92 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
93 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
94 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
95 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
96 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
97 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
98 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
99 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
100 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
101 HAVE_GETCPU_VSYSCALL): Likewise.
102 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
103 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
104 HAVE_GETCPU_VSYSCALL): Likewise.
105 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
106 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
107 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
108 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
109 HAVE_GETCPU_VSYSCALL): Likewise.
110 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
111 invalid names if architecture does not define them.
112 (get_vdso_mangle_symbol): New symbol.
113 * sysdeps/unix/sysv/linux/init-first.c: New file.
114 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
115 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
116 clock_gettime, clock_getres, getcpu, time): Remove declaration.
117 (__libc_vdso_platform_setup_arch): Likewise and use
118 get_vdso_mangle_symbol to setup vDSO symbols.
119 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
120 attribute_hidden.
121 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
122 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
123 definition.
124
125 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
126 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
127 Use get_vdso_symbol instead of _dl_vdso_vsym.
128 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
129 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
130 (__lookup_riscv_flush_icache): Likewise.
131 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
132 Likewise.
133 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
134 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
135 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
136 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
137 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
138 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
139 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
140 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
141 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
142 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
143 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
144 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
145 Define.
146 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
147 Likewise.
148 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
149 Likewise.
150 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
151 Likewise.
152 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
153 Likewise.
154 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
155 Likewise.
156 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
157 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
158 definition.
159 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
160 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
161 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
162 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
164 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
166 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
167 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
168 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
169 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
170 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
171 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
172 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
173 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
174 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
175 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
176 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
177 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
178 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
179 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
180 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
181 (get_vdso_symbol): New function.
182
183 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
184
185 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
186 position of string null termination.
187
188 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
189
190 [BZ #24986]
191 * sysdeps/unix/alpha/getegid.S: Move to ...
192 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
193 * sysdeps/unix/alpha/geteuid.S: Move to ...
194 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
195 * sysdeps/unix/alpha/getppid.S: Move to ...
196 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
197
198 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
199
200 Fix http: URL in 'configure'
201 * configure.ac: Add URL to AC_INIT so that it generates an
202 https: URL instead of an http: URL.
203 * configure: Regenerate.
204
205 Regenerate charmap-kw.h, locfile-kw.h
206 This propagates the recent http->https URL changes.
207 Since I used gperf 3.1 to regenerate, this is also a minor
208 internal-to-localedef API change.
209 URL problem reported by Joseph Myers in:
210 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
211 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
212 Regenerate with gperf 3.1.
213 * locale/programs/linereader.h (kw_hash_fct_t):
214 * locale/programs/repertoire.c (repertoiremap_hash):
215 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
216
217 2019-09-05 Florian Weimer <fweimer@redhat.com>
218
219 [BZ #24962]
220 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
221 (_nl_category_names_get): New function.
222 * intl/dcigettext.c (category_to_name): Call it.
223 * locale/findlocale.c (_nl_find_locale): Likewise.
224 * intl/loadlocale.c (_nl_load_locale): Likewise.
225 * locale/newlocale.c (__newlocale): Likewise.
226 * locale/setlocale.c (_nl_category_names): Adjust definition.
227 (_nl_category_name_idxs): Likewise.
228 (new_composite_name): Call _nl_category_names_get.
229 (setlocale): Likewise.
230
231 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
232
233 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
234 const attribute with pure attribute.
235
236 2019-09-04 Lukasz Majewski <lukma@denx.de>
237
238 * sysdeps/unix/sysv/linux/kernel-features.h
239 (__ASSUME_TIME64_SYSCALLS): New macro.
240
241 2019-09-04 Zack Weinberg <zackw@panix.com>
242
243 [BZ #24959]
244 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
245 * rt/clock_getres.c: Move to time/clock_getres.c.
246 * rt/clock_gettime.c: Move to time/clock_gettime.c.
247 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
248 * rt/clock_settime.c: Move to time/clock_settime.c.
249 * rt/tst-clock.c: Move to time/tst-clock.c.
250 * rt/tst-clock2.c: Move to time/tst-clock2.c.
251 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
252 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
253 * rt/clock-compat.c: Delete file.
254
255 * time/clock_getcpuclockid.c
256 * time/clock_getres.c
257 * time/clock_gettime.c
258 * time/clock_nanosleep.c
259 * time/clock_settime.c
260 * sysdeps/posix/clock_getres.c
261 * sysdeps/unix/clock_gettime.c
262 * sysdeps/unix/clock_nanosleep.c
263 * sysdeps/unix/clock_settime.c
264 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
265 * sysdeps/unix/sysv/linux/clock_getres.c
266 * sysdeps/unix/sysv/linux/clock_gettime.c
267 * sysdeps/unix/sysv/linux/clock_nanosleep.c
268 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
269 defined by this file with default symbol version GLIBC_2_17,
270 and optionally a compatibility alias at symbol version GLIBC_2_2.
271 * include/time.h: Remove internal prototypes for clock_getres,
272 clock_nanosleep, and clock_getcpuclockid.
273
274 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
275 Remove unused function realtime_gettime.
276
277 * rt/Makefile (clock-routines, routines): Remove variable.
278 (librt-routines): Remove clock-compat.
279 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
280 and tst-cpuclock1.
281 * time/Makefile (routines): Add clock_getres, clock_gettime,
282 clock_settime, clock_getcpuclockid, and clock_nanosleep.
283 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
284 and tst-cpuclock1.
285
286 * rt/Versions (libc): Remove entire stanza.
287 (librt GLIBC_2.2): Remove all clock_* functions.
288 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
289 Add clock_getres, clock_gettime, clock_settime,
290 clock_getcpuclockid, and clock_nanosleep.
291 (libc GLIBC_PRIVATE): Add __clock_gettime.
292
293 * sysdeps/mach/hurd/i386/librt.abilist
294 * sysdeps/unix/sysv/linux/alpha/librt.abilist
295 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
296 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
297 * sysdeps/unix/sysv/linux/hppa/librt.abilist
298 * sysdeps/unix/sysv/linux/i386/librt.abilist
299 * sysdeps/unix/sysv/linux/ia64/librt.abilist
300 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
301 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
302 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
303 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
304 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
305 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
308 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
309 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
310 * sysdeps/unix/sysv/linux/sh/librt.abilist
311 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
312 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
313 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
314 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
315 Remove entries for clock_getres, clock_gettime, clock_settime,
316 clock_getcpuclockid, and clock_nanosleep.
317
318 * sysdeps/mach/hurd/i386/libc.abilist
319 * sysdeps/unix/sysv/linux/alpha/libc.abilist
320 * sysdeps/unix/sysv/linux/arm/libc.abilist
321 * sysdeps/unix/sysv/linux/hppa/libc.abilist
322 * sysdeps/unix/sysv/linux/i386/libc.abilist
323 * sysdeps/unix/sysv/linux/ia64/libc.abilist
324 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
325 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
326 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
327 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
328 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
329 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
330 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
333 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
334 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
335 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
336 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
337 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
338 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
339 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
340 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
341 Add another set of entries for clock_getres, clock_gettime,
342 clock_settime, clock_getcpuclockid, and clock_nanosleep at
343 whatever version GLIBC_2.2 maps to.
344
345 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
346
347 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
348
349 2019-09-03 Florian Weimer <fweimer@redhat.com>
350
351 [BZ #24950]
352 * locale/programs/charmap.h (struct charseq): Turn bytes into a
353 flexible array member.
354 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
355 replace.
356
357 2019-09-02 Florian Weimer <fweimer@redhat.com>
358
359 * misc/tst-mntent-autofs.c: New file.
360 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
361
362 2019-09-02 Ian Kent <ikent@redhat.com>
363
364 Use autofs "ignore" mount hint in getmntent_r/getmntent.
365 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
366 getmntent_r.
367 (__getmntent_r): Call it. Filter out autofs entries with an
368 "ignore" mount option.
369
370 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
371
372 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
373 (generic_memcpy): Include generic C memcpy.
374 * benchtests/bench-memmove.c (simple_memmove): Remove.
375 (generic_memmove): Include generic C memmove.
376 * benchtests/bench-memset.c (simple_memset): Remove.
377 (generic_memset): Include generic C memset.
378 * benchtests/bench-memset-large.c (simple_memset): Remove.
379 (generic_memset): Include generic C memset.
380 * benchtests/bench-memset-walk.c (simple_memset): Remove.
381 (generic_memset): Include generic C memset.
382 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
383 * string/memset.c (MEMSET): Likewise.
384 * sysdeps/x86_64/memcopy.h: Remove empty file.
385
386 2019-08-30 Florian Weimer <fweimer@redhat.com>
387
388 nptl: Move pthread_attr_getinheritsched implementation into libc.
389 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
390 (libpthread-routines): Remove pthread_attr_getinheritsched.
391 * nptl/Versions (libpthread GLIBC_2.0): Remove
392 pthread_attr_getinheritsched.
393 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
394 * nptl/nptl-init.c (pthread_functions): Remove initializer for
395 ptr_pthread_attr_getinheritsched.
396 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
397 Remove ptr_pthread_attr_getinheritsched member.
398 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
399 Remove pthread_attr_getinheritsched.
400 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
401 Likewise.
402 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
403 Likewise.
404 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
405 Likewise.
406 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
407 Likewise.
408 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
409 Likewise.
410 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
411 Likewise.
412 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
413 Likewise.
414 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
415 (GLIBC_2.4): Likewise.
416 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
417 (GLIBC_2.0): Likewise.
418 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
419 (GLIBC_2.18): Likewise.
420 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
421 (GLIBC_2.18): Likewise.
422 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
423 (GLIBC_2.0): Likewise.
424 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
425 (GLIBC_2.0): Likewise.
426 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
427 Likewise.
428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
429 (GLIBC_2.0): Likewise.
430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
431 (GLIBC_2.3): Likewise.
432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
433 (GLIBC_2.17): Likewise.
434 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
435 (GLIBC_2.27): Likewise.
436 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
437 (GLIBC_2.0): Likewise.
438 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
439 (GLIBC_2.2): Likewise.
440 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
441 Likewise.
442 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
443 Likewise.
444 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
445 (GLIBC_2.0): Likewise.
446 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
447 (GLIBC_2.2): Likewise.
448 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
449 (GLIBC_2.2.5): Likewise.
450 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
451 (GLIBC_2.16): Likewise.
452
453 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
454
455 * sysdeps/mach/hurd/getcwd.c
456 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
457 slash if we got an unknown root directory. (__getcwd): Do not fail with
458 EGRATUITOUS if we got an unknown root directory.
459 * hurd/hurdselect.c (SELECT_ERROR): New macro.
460 (_hurd_select):
461 - Add `error' field to `d' structures array.
462 - If a poll descriptor is bogus, set EBADF, but continue with a zero
463 timeout.
464 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
465 EBADF there is any bit set above _hurd_dtablesize.
466 - Do not request io_select on bogus descriptors (SELECT_ERROR).
467 - On io_select request error, record the error.
468 - On io_select bogus reply, use EIO error code.
469 - On io_select bogus or error reply, record the error.
470 - Do not destroy reply port for bogus FDs.
471 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
472 EBADF case, or else POLLERR.
473 - On error, make select simulated readiness.
474
475 [BZ #19903]
476 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
477 as __vm_allocate.
478
479 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
480 unlocks SS and returns to the saved PC.
481 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
482 thread stack instead of the saved PC.
483
484 2019-08-30 Richard Braun <rbraun@sceen.net>
485
486 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
487 timeout.
488 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
489 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
490 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
491 <limits.h>.
492 (_hurd_select): Replace the call to __io_select with either
493 __io_select_request or __io_select_timeout_request, depending on the
494 timeout. Count the number of ready descriptors (replies for which at
495 least one type bit is set). Implement the timeout locally when there is
496 no file descriptor.
497
498 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
499
500 * elf/dl-addr.c (determine_info): Calculate the symbol index
501 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
502 * elf/dl-lookup.c (do_lookup_x): Ditto.
503 (_dl_setup_hash): Initialize MIPS xhash translation table.
504 * elf/elf.h (SHT_MIPS_XHASH): New define.
505 (DT_MIPS_XHASH): New define.
506 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
507 define.
508 (ELF_MACHINE_HASH_SYMIDX): Ditto.
509 (ELF_MACHINE_XHASH_SETUP): Ditto.
510 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
511 define.
512 (ELF_MACHINE_HASH_SYMIDX): Ditto.
513 (ELF_MACHINE_XHASH_SETUP): Ditto.
514 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
515 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
516 version.
517 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
518
519 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
520
521 * sysdeps/sh/preconfigure.ac: New file.
522 * sysdeps/sh/preconfigure: Regenerate.
523 * sysdeps/sh/be/sh3/Implies: New file.
524 * sysdeps/sh/be/sh4/Implies: Likewise.
525 * sysdeps/sh/le/sh3/Implies: Likewise.
526 * sysdeps/sh/le/sh4/Implies: Likewise.
527 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
528 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
529 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
530 sysdeps/unix/sysv/linux/sh/le/*.abilist.
531 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
532
533 * sysdeps/microblaze/preconfigure.ac: New file.
534 * sysdeps/microblaze/preconfigure: Regenerate.
535 * sysdeps/microblaze/be/implies: New file.
536 * sysdeps/microblaze/le/implies: Likewise.
537 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
538 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
539 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
540 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
541 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
542
543 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
544 * sysdeps/arm/preconfigure: Regenerate.
545 * sysdeps/arm/be/Implies: New file.
546 * sysdeps/arm/be/armv6/Implies: Likewise.
547 * sysdeps/arm/be/armv6t2/Implies: Likewise.
548 * sysdeps/arm/be/armv7/Implies: Likewise.
549 * sysdeps/arm/le/Implies: Likewise.
550 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
551 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
552 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
553 sysdeps/unix/sysv/linux/arm/le/*.abilist.
554 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
555
556 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
557
558 Fix posix/tst-regex by using UTF-8 and own test input
559 Problem reported by Stefan Liebler in:
560 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
561 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
562 (do_test, test_expr): Adjust to the fact that this source file,
563 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
564 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
565 so that it is now UTF-8.
566
567 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
568
569 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
570 (fegetenv_status): Generate 'mffsl' unconditionally.
571
572 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
573
574 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
575 FPSCR read.
576 (_FPU_MASK_ALL): Delete.
577
578 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
579
580 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
581 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
582 if possible.
583 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
584 with simpler required steps, set fewer FPSCR bits if possible.
585
586 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
587
588 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
589 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
590 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
591 weight access to FPSCR; remove unnecessary second FPSCR read and
592 validate.
593 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
594 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
595 access to FPSCR; Use macros in fenv_libc.h in favor of local.
596
597 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
598
599 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
600 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
601 (fenv_exceptions_to_reg): New.
602 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
603 operation with call to fenv_exceptions_to_reg().
604 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
605
606 2019-08-28 Florian Weimer <fweimer@redhat.com>
607
608 * misc/mntent.c (struct mntent_buffer): Define.
609 (mntent_buffer): Adjust type to void *.
610 (allocate): Adjust for allocate_once.
611 (deallocate): New function.
612 (getmntent): Call allocate_once.
613
614 2019-08-28 Florian Weimer <fweimer@redhat.com>
615
616 nptl: Move pthread_attr_setdetachstate implementation into libc.
617 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
618 (libpthread-routines): Remove pthread_attr_setdetachstate.
619 * nptl/Versions (libpthread GLIBC_2.0): Remove
620 pthread_attr_setdetachstate.
621 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
622 * nptl/nptl-init.c (pthread_functions): Remove initializer for
623 ptr_pthread_attr_setdetachstate.
624 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
625 Remove ptr_pthread_attr_setdetachstate member.
626 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
627 Remove pthread_attr_setdetachstate.
628 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
629 Likewise.
630 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
631 Likewise.
632 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
633 Likewise.
634 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
635 Likewise.
636 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
637 Likewise.
638 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
639 Likewise.
640 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
641 (GLIBC_2.4): Likewise.
642 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
643 (GLIBC_2.0): Likewise.
644 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
645 (GLIBC_2.18): Likewise.
646 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
647 (GLIBC_2.0): Likewise.
648 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
649 (GLIBC_2.0): Likewise.
650 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
651 Likewise.
652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
653 (GLIBC_2.0): Likewise.
654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
655 (GLIBC_2.3): Likewise.
656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
657 (GLIBC_2.17): Likewise.
658 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
659 (GLIBC_2.27): Likewise.
660 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
661 (GLIBC_2.0): Likewise.
662 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
663 (GLIBC_2.2): Likewise.
664 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
665 Likewise.
666 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
667 (GLIBC_2.0): Likewise.
668 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
669 (GLIBC_2.2): Likewise.
670 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
671 (GLIBC_2.2.5): Likewise.
672 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
673 (GLIBC_2.16): Likewise.
674
675 2019-08-28 Florian Weimer <fweimer@redhat.com>
676
677 [BZ #24902]
678 * login/Makefile (tests): Add tst-pututxline-lockfail.
679 (tst-pututxline-lockfail): Link with -lpthread.
680 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
681 (__libc_getutid_r): Adjust.
682 (__libc_pututline): Likewise. Check for file_offset == -1.
683 * login/tst-pututxline-lockfail.c: New file.
684
685 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
686
687 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
688 * posix/tst-regex.input: New file.
689
690 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
691
692 [BZ #24916]
693 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
694 tst-undefined-weak.
695 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
696 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
697 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
698 * sysdeps/mips/tst-undefined-weak.c: Likewise.
699 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
700 Increment highest valid ABIVERSION value.
701
702 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
703
704 * sysdeps/unix/sysv/linux/mips/Makefile
705 (test-xfail-check-execstack):
706 Move under mips-has-gnustack != yes.
707 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
708 Apply -Wa,-execstack if mips-force-execstack == yes.
709 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
710 * sysdeps/unix/sysv/linux/mips/configure.ac
711 (mips-force-execstack): New var.
712 Set to yes for hard-float builds with minimum_kernel < 4.8.0
713 or minimum_kernel not set at all.
714 (mips-has-gnustack): New var.
715 Use value of libc_cv_as_noexecstack
716 if mips-force-execstack != yes, otherwise set to no.
717
718 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
719 Florian Weimer <fweimer@redhat.com>
720
721 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
722 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
723 Make a compat_symbol.
724 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
725 (__profil_counter_global): Likewise.
726
727 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
728 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
729 uintptr_t.
730 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
731 sigcontext_get_pc and return aligned cast to uintptr_t.
732 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
733 * sysdeps/posix/profil.c (profil_count): Change PC argument to
734 uintptr_t.
735 (__profil): Use SA_SIGINFO.
736 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
737 uintptr_t.
738 (__sprofil): Use SA_SIGINFO.
739 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
740 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
741 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
742 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
743 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
744 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
745 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
746 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
747 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
748 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
749 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
750 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
751 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
752 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
753 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
754 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
755 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
756 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
757 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
758 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
759 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
760 GET_PC, __sigaction, sigaction): Remove defines.
761 (sigcontext_get_pc): New function.
762 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
763 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
764 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
765 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
766 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
767 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
768 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
769 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
770 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
771 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
772 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
773 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
774 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
775 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
776 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
777 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
778 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
779 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
780 Handle CTX argument as ucontext_t.
781 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
782 Likewise.
783 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
784 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
785 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
786 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
787 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
788 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
789 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
790 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
791 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
792 tst-sigcontextinfo-get_pc.
793 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
794 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
795
796 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
797
798 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
799 definition.
800
801 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
802
803 [BZ #24682]
804 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
805 * localedata/locales/ug_CN (first_weekday): Likewise.
806 * localedata/locales/zh_CN (first_weekday): Likewise.
807
808 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
809
810 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
811 field name in mcontext_t struct.
812
813 2019-08-22 Joseph Myers <joseph@codesourcery.com>
814
815 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
816 unsupported with libidn2 before 2.0.5.
817 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
818
819 * manual/time.texi (strftime): Document %Ob and %OB as C2X
820 features.
821
822 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
823
824 Remove dead regex code
825 * posix/regex_internal.c (re_node_set_insert):
826 Remove unnecessary assignment. Reported by Tim Rühsen in:
827 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
828
829 Fix bad pointer / leak in regex code
830 This was found by Coverity (CID 1484201). [BZ#24844]
831 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
832 pointer and/or memory leak when storage is exhausted.
833
834 2019-08-21 Zack Weinberg <zackw@panix.com>
835
836 * misc/syslog.c (__vsyslog_internal)
837 * time/getdate.c (__getdate_r)
838 * time/tst_wcsftime.c (main):
839 Use return value of time, not its argument.
840
841 * string/strfry.c (strfry)
842 * sysdeps/mach/sleep.c (__sleep):
843 Remove unnecessary casts of NULL in calls to time.
844
845 2019-08-21 Joseph Myers <joseph@codesourcery.com>
846
847 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
848 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
849 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
850 (__TGMATH_2_NARROW_F): Likewise.
851 (__TGMATH_2_NARROW_D): New macro.
852 (__TGMATH_2_NARROW_F16): Likewise.
853 (__TGMATH_2_NARROW_F32): Likewise.
854 (__TGMATH_2_NARROW_F64): Likewise.
855 (__TGMATH_2_NARROW_F32X): Likewise.
856 (__TGMATH_2_NARROW_F64X): Likewise.
857 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
858 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
859 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
860 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
861 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
862 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
863 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
864 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
865 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
866 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
867 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
868 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
869 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
870 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
871 Likewise.
872 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
873 Likewise.
874 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
875 Likewise.
876 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
877 Likewise.
878 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
879 Likewise.
880 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
881 Likewise.
882 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
883 Likewise.
884 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
885 Likewise.
886 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
887 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
888 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
889 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
890 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
891 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
892 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
893 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
894 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
895 Likewise.
896 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
897 Likewise.
898 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
899 Likewise.
900 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
901 Likewise.
902 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
903 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
904 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
905 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
906 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
907 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
908 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
909 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
910 * math/gen-tgmath-tests.py (Type): Add members
911 non_standard_real_argument_types_list, long_double_type,
912 complex_float64_type and float32x_ext_type.
913 (Type.__init__): Set the new members.
914 (Type.floating_type): Add new argument floatn.
915 (Type.real_floating_type): Likewise.
916 (Type.can_combine_types): Likewise.
917 (Type.combine_types): Likewise.
918 (Type.init_types): Create internal Float32x_ext type.
919 (Tests.__init__): Define Float32x_ext in generated C code.
920 (Tests.add_tests): Handle narrowing functions.
921 (Tests.add_all_tests): Likewise.
922 (Tests.tests_text): Allow variation in mant_dig for narrowing
923 functions with compilers before GCC 8.
924 * math/Makefile (tgmath3-narrow-types): New variable.
925 (tgmath3-narrow-macros): Likewise.
926 (tgmath3-macros): Add $(tgmath3-narrow-macros).
927
928 2019-08-20 Andreas Schwab <schwab@suse.de>
929
930 * sysdeps/i386/fpu/libm-test-ulps: Update.
931
932 2019-08-19 Carlos O'Donell <carlos@redhat.com>
933
934 * nscd/nscd.conf: Add warning and comment about shared option.
935
936 2019-08-19 Carlos O'Donell <carlos@redhat.com>
937
938 * nss/nsswitch.conf: Expand comments, and simplify defaults.
939 * manual/nss.texi (NSS Basics): List all known databases.
940 (Services in the NSS configuration): Mention automount.
941
942 2019-08-19 Florian Weimer <fweimer@redhat.com>
943
944 Do not print backtraces on fatal errors.
945 * debug/fortify_fail.c (__libc_argv): Remove declaration.
946 (__fortify_fail_abort): Remove definition.
947 (__fortify_fail): Call __libc_message directly.
948 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
949 (__stack_chk_fail): Call __fortify_fail instead of
950 __fortify_fail_abort.
951 * include/stdio.h (__fortify_fail_abort): Remove declaration.
952 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
953 definitions.
954 (__libc_message): Do not handle do_backtrace. Do not call
955 BEFORE_ABORT.
956 (__libc_fatal): Do not pass do_backtrace to __libc_message.
957 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
958 (before_abort): Remove definitions.
959
960 2019-08-16 Florian Weimer <fweimer@redhat.com>
961
962 nptl: Move pthread_attr_getdetachstate implementation into libc.
963 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
964 (libpthread-routines): Remove pthread_attr_getdetachstate.
965 * nptl/Versions (libpthread GLIBC_2.0): Remove
966 pthread_attr_getdetachstate.
967 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
968 * nptl/nptl-init.c (pthread_functions): Remove initializer for
969 ptr_pthread_attr_getdetachstate.
970 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
971 Remove ptr_pthread_attr_getdetachstate member.
972 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
973 Remove pthread_attr_getdetachstate.
974 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
975 Likewise.
976 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
977 Likewise.
978 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
979 Likewise.
980 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
981 Likewise.
982 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
983 Likewise.
984 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
985 Likewise.
986 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
987 (GLIBC_2.4): Likewise.
988 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
989 (GLIBC_2.0): Likewise.
990 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
991 (GLIBC_2.18): Likewise.
992 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
993 (GLIBC_2.0): Likewise.
994 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
995 (GLIBC_2.0): Likewise.
996 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
997 Likewise.
998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
999 (GLIBC_2.0): Likewise.
1000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1001 (GLIBC_2.3): Likewise.
1002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1003 (GLIBC_2.17): Likewise.
1004 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1005 (GLIBC_2.27): Likewise.
1006 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1007 (GLIBC_2.0): Likewise.
1008 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1009 (GLIBC_2.2): Likewise.
1010 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1011 Likewise.
1012 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1013 (GLIBC_2.0): Likewise.
1014 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1015 (GLIBC_2.2): Likewise.
1016 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1017 (GLIBC_2.2.5): Likewise.
1018 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1019 (GLIBC_2.16): Likewise.
1020
1021 2019-08-16 Joseph Myers <joseph@codesourcery.com>
1022
1023 * math/libm-test-compat_totalorder.inc (do_test)
1024 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1025 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1026 * math/libm-test-compat_totalordermag.inc (do_test)
1027 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1028
1029 2019-08-15 Florian Weimer <fweimer@redhat.com>
1030
1031 nptl: Move pthread_attr_init implementation into libc.
1032 * nptl/Makefile (routines): Add pthread_attr_init.
1033 (libpthread-routines): Remove pthread_attr_init.
1034 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1035 (libpthread GLIBC_2.0): Likewise.
1036 * nptl/pthread_attr_init.c: Check for libc compat version instead
1037 of libpthread compat version.
1038 * nptl/forward.c (__pthread_attr_init_2_0)
1039 (__pthread_attr_init_2_1): Remove definitions.
1040 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1041 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1042 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1043 Remove members ptr___pthread_attr_init_2_0,
1044 ptr___pthread_attr_init_2_1.
1045 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1046 Remove pthread_attr_init.
1047 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1048 Likewise.
1049 (GLIBC_2.1): Likewise.
1050 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1051 Likewise.
1052 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1053 Likewise.
1054 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1055 Likewise.
1056 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1057 Likewise.
1058 (GLIBC_2.1): Likewise.
1059 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1060 Likewise.
1061 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1062 (GLIBC_2.4): Likewise.
1063 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1064 (GLIBC_2.0): Likewise.
1065 (GLIBC_2.1): Likewise.
1066 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1067 (GLIBC_2.18): Likewise.
1068 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1069 (GLIBC_2.0): Likewise.
1070 (GLIBC_2.1): Likewise.
1071 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1072 (GLIBC_2.0): Likewise.
1073 (GLIBC_2.1): Likewise.
1074 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1075 Likewise.
1076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1077 (GLIBC_2.0): Likewise.
1078 (GLIBC_2.1): Likewise.
1079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1080 (GLIBC_2.3): Likewise.
1081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1082 (GLIBC_2.17): Likewise.
1083 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1084 (GLIBC_2.27): Likewise.
1085 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1086 (GLIBC_2.0): Likewise.
1087 (GLIBC_2.1): Likewise.
1088 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1089 (GLIBC_2.2): Likewise.
1090 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1091 Likewise.
1092 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1093 (GLIBC_2.0): Likewise.
1094 (GLIBC_2.1): Likewise.
1095 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1096 (GLIBC_2.2): Likewise.
1097 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1098 (GLIBC_2.2.5): Likewise.
1099 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1100 (GLIBC_2.16): Likewise.
1101
1102 2019-08-15 Florian Weimer <fweimer@redhat.com>
1103
1104 [BZ #24900]
1105 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1106 new object in __RTLD_OPENEXEC mode (except for the origin).
1107 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1108 check for the error message.
1109 (do_test): Call it. Add check using relative path.
1110 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1111 (tst-dlopen-aout-container): Link with libpthread.
1112 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1113
1114 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1115
1116 * math/bits/mathcalls.h
1117 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1118 (totalorder): Take pointer arguments.
1119 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1120 (totalordermag): Likewise.
1121 * manual/arith.texi (totalorder): Likewise.
1122 (totalorderf): Likewise.
1123 (totalorderl): Likewise.
1124 (totalorderfN): Likewise.
1125 (totalorderfNx): Likewise.
1126 (totalordermag): Likewise.
1127 (totalordermagf): Likewise.
1128 (totalordermagl): Likewise.
1129 (totalordermagfN): Likewise.
1130 (totalordermagfNx): Likewise.
1131 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1132 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1133 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1134 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1135 totalorderl, totalordermag, totalordermagf, totalordermagl,
1136 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1137 totalordermagf64, totalordermagf32x, totalorderf64x,
1138 totalordermagf64x, totalorderf128 and totalordermagf128.
1139 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1140 and compat_totalordermag.
1141 (libm-test-funcs-compat): New variable.
1142 (libm-tests-compat): Likewise.
1143 (tests): Do not include compat tests.
1144 (tests-internal): Add compat tests.
1145 ($(foreach t,$(libm-tests-base),
1146 $(objpfx)$(t)-compat_totalorder.o)): Depend
1147 on $(objpfx)libm-test-totalorder.c.
1148 ($(foreach t,$(libm-tests-base),
1149 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1150 $(objpfx)libm-test-totalordermag.c.
1151 (tgmath3-macros): Remove totalorder and totalordermag.
1152 * math/libm-test-compat_totalorder.inc: New file.
1153 * math/libm-test-compat_totalordermag.inc: Likewise.
1154 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1155 (RUN_TEST_fpfp_b): New macro.
1156 (RUN_TEST_LOOP_fpfp_b): Likewise.
1157 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1158 TEST_fpfp_b.
1159 (totalorder_test): Condition on [!COMPAT_TEST].
1160 (do_test): Likewise.
1161 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1162 TEST_fpfp_b.
1163 (totalordermag_test): Condition on [!COMPAT_TEST].
1164 (do_test): Likewise.
1165 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1166 totalorder and totalordermag.
1167 * math/test-tgmath.c (NCALLS): Change to 132.
1168 (F(compile_test)): Do not call totalorder or totalordermag.
1169 (F(totalorder)): Remove.
1170 (F(totalordermag)): Likewise.
1171 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1172 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1173 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1174 SJSTR_HELPER.
1175 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1176 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1177 [!_ISOMAC] (TEST_ALIGN): Likewise.
1178 [!_ISOMAC] (TEST_OFFSET): Likewise.
1179 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1180 and <first-versions.h>.
1181 (__totalorder): Take pointer arguments. Add symbol versions and
1182 compat symbols.
1183 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1184 <shlib-compat.h> and <first-versions.h>.
1185 (__totalordermag): Take pointer arguments. Add symbol versions
1186 and compat symbols.
1187 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1188 <shlib-compat.h> and <first-versions.h>.
1189 (__totalorder): Take pointer arguments. Add symbol versions and
1190 compat symbols.
1191 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1192 <shlib-compat.h> and <first-versions.h>.
1193 (__totalordermag): Take pointer arguments. Add symbol versions
1194 and compat symbols.
1195 * sysdeps/ieee754/float128/float128_private.h
1196 (__totalorder_compatl): New macro.
1197 (__totalordermag_compatl): Likewise.
1198 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1199 and <first-versions.h>.
1200 (__totalorderf): Take pointer arguments. Add symbol versions and
1201 compat symbols.
1202 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1203 <shlib-compat.h> and <first-versions.h>.
1204 (__totalordermagf): Take pointer arguments. Add symbol versions
1205 and compat symbols.
1206 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1207 <shlib-compat.h> and <first-versions.h>.
1208 (__totalorderl): Take pointer arguments. Add symbol versions and
1209 compat symbols.
1210 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1211 <shlib-compat.h> and <first-versions.h>.
1212 (__totalordermagl): Take pointer arguments. Add symbol versions
1213 and compat symbols.
1214 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1215 <shlib-compat.h>.
1216 (__totalorderl): Take pointer arguments. Add symbol versions and
1217 compat symbols.
1218 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1219 <shlib-compat.h>.
1220 (__totalordermagl): Take pointer arguments. Add symbol versions
1221 and compat symbols.
1222 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1223 <shlib-compat.h> and <first-versions.h>.
1224 (__totalorderl): Take pointer arguments. Add symbol versions and
1225 compat symbols.
1226 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1227 <shlib-compat.h> and <first-versions.h>.
1228 (__totalordermagl): Take pointer arguments. Add symbol versions
1229 and compat symbols.
1230 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1231 pointer arguments.
1232 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1233 Likewise.
1234 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1235 (do_test): Update calls to totalorderl and totalordermagl.
1236 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1237 Update calls to totalorderl and totalordermagl.
1238 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1239 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1240 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1241 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1242 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1243 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1244 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1245 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1246 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1247 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1248 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1249 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1250 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1251 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1253 Likewise.
1254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1255 Likewise.
1256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1257 Likewise.
1258 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1259 Likewise.
1260 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1261 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1262 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1263 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1264 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1265 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1266 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1267 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1268
1269 2019-08-15 Florian Weimer <fweimer@redhat.com>
1270
1271 [BZ #24899]
1272 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1273 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1274 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1275 Likewise.
1276 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1277 __attribute_nonstring__ to ut_id.
1278 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1279 Likewise.
1280
1281 2019-08-15 Florian Weimer <fweimer@redhat.com>
1282
1283 [BZ #24880]
1284 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1285 (file_locking_unlock): Likewise.
1286
1287 2019-08-15 Florian Weimer <fweimer@redhat.com>
1288
1289 [BZ #24879]
1290 login: Disarm timer after utmp lock acquisition.
1291 * login/utmp_file.c (struct file_locking): Remove.
1292 (try_file_lock): Adjust.
1293 (file_lock_restore): Remove function.
1294 (__libc_getutent_r): .
1295 (internal_getut_r): Likewise.
1296 (__libc_getutline_r): Likewise.
1297 (__libc_pututline): Likewise.
1298 (__libc_updwtmp): Likewise.
1299
1300 2019-08-15 Florian Weimer <fweimer@redhat.com>
1301
1302 nptl: Remove pthread_self compatibility symbol from libpthread.
1303 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1304 pthread_equal.
1305 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1306 * nptl/compat-pthread_self.c: Remove file.
1307 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1308 Remove pthread_self.
1309 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1310 Likewise.
1311 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1312 Likewise.
1313 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1314 Likewise.
1315 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1316 Likewise.
1317 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1318 Likewise.
1319 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1320 (GLIBC_2.4): Likewise.
1321 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1322 (GLIBC_2.0): Likewise.
1323 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1324 (GLIBC_2.18): Likewise.
1325 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1326 (GLIBC_2.0): Likewise.
1327 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1328 (GLIBC_2.0): Likewise.
1329 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1330 Likewise.
1331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1332 (GLIBC_2.0): Likewise.
1333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1334 (GLIBC_2.3): Likewise.
1335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1336 (GLIBC_2.17): Likewise.
1337 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1338 (GLIBC_2.0): Likewise.
1339 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1340 (GLIBC_2.2): Likewise.
1341 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1342 Likewise.
1343 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1344 (GLIBC_2.0): Likewise.
1345 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1346 (GLIBC_2.2): Likewise.
1347 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1348 (GLIBC_2.2.5): Likewise.
1349 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1350 (GLIBC_2.16): Likewise.
1351
1352 2019-08-15 Florian Weimer <fweimer@redhat.com>
1353
1354 nptl: Move pthread_attr_destroy implementation into libc.
1355 * nptl/Makefile (routines): Add pthread_attr_destroy.
1356 (libpthread-routines): Remove pthread_attr_destroy.
1357 * nptl/Versions (libpthread GLIBC_2.0): Remove
1358 pthread_attr_destroy.
1359 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1360 libc compat version instead of libpthread compat version.
1361 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1362 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1363 ptr_pthread_attr_destroy.
1364 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1365 Remove ptr_pthread_attr_destroy member.
1366 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1367 Remove pthread_attr_destroy.
1368 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1369 Likewise.
1370 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1371 Likewise.
1372 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1373 Likewise.
1374 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1375 Likewise.
1376 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1377 Likewise.
1378 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1379 Likewise.
1380 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1381 (GLIBC_2.4): Likewise.
1382 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1383 (GLIBC_2.0): Likewise.
1384 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1385 (GLIBC_2.18): Likewise.
1386 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1387 (GLIBC_2.0): Likewise.
1388 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1389 (GLIBC_2.0): Likewise.
1390 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1391 Likewise.
1392 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1393 (GLIBC_2.0): Likewise.
1394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1395 (GLIBC_2.3): Likewise.
1396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1397 (GLIBC_2.17): Likewise.
1398 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1399 (GLIBC_2.27): Likewise.
1400 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1401 (GLIBC_2.0): Likewise.
1402 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1403 (GLIBC_2.2): Likewise.
1404 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1405 Likewise.
1406 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1407 (GLIBC_2.0): Likewise.
1408 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1409 (GLIBC_2.2): Likewise.
1410 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1411 (GLIBC_2.2.5): Likewise.
1412 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1413 (GLIBC_2.16): Likewise.
1414
1415 2019-08-15 Andreas Schwab <schwab@suse.de>
1416
1417 * sysdeps/i386/fpu/libm-test-ulps: Update.
1418
1419 2019-08-15 Florian Weimer <fweimer@redhat.com>
1420
1421 * malloc/Makefile (tests): Only add tst-mxfast for
1422 $(have-tunables).
1423 * malloc/tst-mxfast.c: Fix copyright year.
1424 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1425 assert for checks.
1426
1427 2019-08-15 Florian Weimer <fweimer@redhat.com>
1428
1429 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1430 descriptor.
1431 * login/Makefile (tests): Add tst-updwtmpx.
1432 * login/tst-updwtmpx.c: New file.
1433
1434 2019-08-15 Florian Weimer <fweimer@redhat.com>
1435
1436 nptl: Move pthread_equal implementation into libc.
1437 * nptl/Makefile (routines): Add pthread_equal.
1438 * nptl/forward.c (pthread_equal): Remove definition.
1439 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1440 ptr_pthread_equal.
1441 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1442 Remove ptr_pthread_equal member.
1443 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1444 Remove pthread_equal.
1445 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1446 Likewise.
1447 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1448 Likewise.
1449 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1450 Likewise.
1451 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1452 Likewise.
1453 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1454 Likewise.
1455 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1456 Likewise.
1457 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1458 (GLIBC_2.4): Likewise.
1459 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1460 (GLIBC_2.0): Likewise.
1461 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1462 (GLIBC_2.18): Likewise.
1463 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1464 (GLIBC_2.0): Likewise.
1465 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1466 (GLIBC_2.0): Likewise.
1467 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1468 Likewise.
1469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1470 (GLIBC_2.0): Likewise.
1471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1472 (GLIBC_2.3): Likewise.
1473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1474 (GLIBC_2.17): Likewise.
1475 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1476 (GLIBC_2.27): Likewise.
1477 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1478 (GLIBC_2.0): Likewise.
1479 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1480 (GLIBC_2.2): Likewise.
1481 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1482 Likewise.
1483 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1484 (GLIBC_2.0): Likewise.
1485 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1486 (GLIBC_2.2): Likewise.
1487 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1488 (GLIBC_2.2.5): Likewise.
1489 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1490 (GLIBC_2.16): Likewise.
1491
1492 2019-08-14 Florian Weimer <fweimer@redhat.com>
1493
1494 * support/support_descriptors.c: Include <support/descriptors.h>.
1495
1496 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1497
1498 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1499 Disable DC ZVA code if this macro is defined as zero.
1500 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1501 Change to zero to disable using DC ZVA.
1502
1503 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1504
1505 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1506 Update comment.
1507 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1508 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1509 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1510 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1511 Likewise.
1512
1513 2019-08-13 Florian Weimer <fweimer@redhat.com>
1514
1515 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1516 Remove macros.
1517 (struct file_locking): New.
1518 (try_file_lock, file_unlock, file_lock_restore): New functions.
1519 (__libc_getutent_r): Use the new functions.
1520 (internal_getut_r): Likewise.
1521 (__libc_getutline_r): Likewise.
1522 (__libc_pututline): Likewise.
1523 (__libc_updwtmp): Likewise.
1524
1525 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1526
1527 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1528 comment.
1529 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1530 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1531 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1532 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1533 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1534 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1535 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1536 Likewise.
1537 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1538 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1539 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1540 Likewise.
1541 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1542 Likewise.
1543 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1544 Likewise.
1545 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1546 Likewise.
1547 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1548 Likewise.
1549 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1550 Likewise.
1551 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1552 Likewise.
1553 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1554 (IEC_60559_BFP_EXT)]: Likewise.
1555 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1556 Likewise.
1557 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1558 Likewise.
1559 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1560 Likewise.
1561 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1562 Likewise.
1563 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1564 Likewise.
1565 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1566 Likewise.
1567 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1568 Likewise.
1569 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1570 Likewise.
1571 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1572 Likewise, except for totalorder, totalordermag, getpayload,
1573 setpayload and setpayloadsig.
1574 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1575 except for totalorder and totalordermag.
1576
1577 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1578 (strdup): Likewise.
1579 (strndup): Likewise.
1580
1581 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1582 Undefine and define to 1 if [_GNU_SOURCE].
1583 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1584 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1585 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1586 (__USE_ISOC99): Likewise.
1587 (__USE_ISOC95): Likewise.
1588 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1589
1590 2019-08-13 Florian Weimer <fweimer@redhat.com>
1591
1592 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1593 are always true.
1594 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1595 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1596 * login/getutmpx.c (getutmpx): Likewise.
1597 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1598 true.
1599 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1600 _HAVE_UT_TV are always true.
1601 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1602 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1603 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1604 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1605 are always true.
1606 (internal_getut_r): _HAVE_UT_TYPE is always true.
1607 (__libc_pututline): Likewise.
1608 * login/programs/utmpdump.c (print_entry): Assume that
1609 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1610 _HAVE_UT_TV are always true.
1611 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1612 _HAVE_UT_ID are always true.
1613 * sysdeps/gnu/bits/utmp.h: Move to ...
1614 * bits/utmp.h: ... here, replacing the old file.
1615
1616 2019-08-12 Florian Weimer <fweimer@redhat.com>
1617
1618 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1619 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1620 not set.
1621 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1622 (do_test): Open the executable using an absolute path. Print
1623 error message to standard output.
1624
1625 2019-08-09 DJ Delorie <dj@redhat.com>
1626
1627 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1628 * manual/tunables.texi: Document it.
1629 * malloc/malloc.c (do_set_mxfast): New.
1630 (__libc_mallopt): Call it.
1631 * malloc/arena.c: Add mxfast tunable.
1632 * malloc/tst-mxfast.c: New.
1633 * malloc/Makefile: Add it.
1634
1635 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1636 Carlos O'Donell <carlos@redhat.com>
1637
1638 [BZ #24026]
1639 * malloc/malloc.c (__malloc_info): Account for top chunk.
1640
1641 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1642
1643 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1644 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1645
1646 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1647
1648 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1649
1650 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1651
1652 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1653
1654 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1655
1656 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1657 New macro.
1658
1659 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1660
1661 [BZ #19767]
1662 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1663 Remove definition.
1664 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1665 Likewise.
1666 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1667 Likewise.
1668 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1669 Likewise.
1670 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1671 (ALWAYS_USE_VSYSCALL): Likewise.
1672 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1673 (ALWAYS_USE_VSYSCALL): Likewise.
1674 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1675 (ALWAYS_USE_VSYSCALL): Likewise.
1676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1677 (ALWAYS_USE_VSYSCALL): Likewise.
1678 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1679 Likewise.
1680 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1681 (ALWAYS_USE_VSYSCALL): Likewise.
1682 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1683 (ALWAYS_USE_VSYSCALL): Likewise.
1684 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1685 Likewise.
1686 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1687 Likewise.
1688 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1689 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1690 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1691 USE_VSYSCALL): Remove defitions.
1692
1693 [BZ #19767]
1694 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1695 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1696 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1697 Define.
1698
1699 [BZ #19767]
1700 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1701 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1702 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1703 (ALWAYS_USE_VSYSCALL): Define.
1704 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1705 (ALWAYS_USE_VSYSCALL): Likewise.
1706
1707 [BZ #19767]
1708 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1709 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1710 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1711 Define.
1712
1713 * sysdeps/sh/libm-test-ulps: Update.
1714
1715 2019-08-05 Florian Weimer <fweimer@redhat.com>
1716
1717 [BZ #23518]
1718 * login/uptmp-private.h (struct ufuncs): Remove definition.
1719 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1720 (__libc_utmp_jump_table): Remove declarations.
1721 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1722 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1723 (__libc_updwtmp): Declare.
1724 * login/getutent_r.c (__libc_utmp_unknown_functions)
1725 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1726 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1727 (endutent_unknown): Remove definitions.
1728 (__setutent): Call __libc_setutent.
1729 (__getutent_r): Call __libc_getutent_r.
1730 (__pututline): Call __libc_pututline.
1731 (__endutent): Call __libc_endutent.
1732 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1733 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1734 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1735 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1736 (__libc_setutent): Rename from stetutent_file. Drop static.
1737 (maybe_setutent): New function.
1738 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1739 Check for initialization.
1740 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1741 Check for initialization.
1742 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1743 Check for initialization.
1744 (__libc_pututline): Rename from pututline_file. Drop static.
1745 Check for initialization.
1746 (__libc_endutent): Rename from endutent_file. Drop static. Check
1747 for initialization.
1748 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1749 * login/utmpname.c (__utmpname): Call __libc_endutent.
1750 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1751 __libc_getutlien_r, __libc_endutent.
1752 * manual/users.texi (Who Logged In, Manipulating the Database):
1753 Adjust.
1754
1755 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1756
1757 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1758
1759 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1760
1761 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1762
1763 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1764 kernel version number to 5.2.
1765
1766 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1767
1768 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1769 mnemonics and set .machine power8.
1770 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1771 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1772 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1773 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1774 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1775 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1776 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1777 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1778 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1779 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1780
1781 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1782
1783 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1784
1785 2019-08-01 Florian Weimer <fweimer@redhat.com>
1786
1787 [BZ #24867]
1788 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1789 whitespace.
1790
1791 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1792
1793 [BZ #15813]
1794 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1795 attempt.
1796
1797 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1798
1799 * version.h (RELEASE): Set to "stable".
1800 (VERSION): Set to "2.30".
1801 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1802
1803 * manual/install.texi: Update component versions.
1804 * INSTALL: Regenerate.
1805 * NEWS: Update.
1806
1807 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1808
1809 * po/be.po: Update translations.
1810 * po/bg.po: Likewise.
1811 * po/ca.po: Likewise.
1812 * po/cs.po: Likewise.
1813 * po/da.po: Likewise.
1814 * po/de.po: Likewise.
1815 * po/el.po: Likewise.
1816 * po/eo.po: Likewise.
1817 * po/es.po: Likewise.
1818 * po/fi.po: Likewise.
1819 * po/fr.po: Likewise.
1820 * po/gl.po: Likewise.
1821 * po/hr.po: Likewise.
1822 * po/hu.po: Likewise.
1823 * po/ia.po: Likewise.
1824 * po/id.po: Likewise.
1825 * po/it.po: Likewise.
1826 * po/ja.po: Likewise.
1827 * po/ko.po: Likewise.
1828 * po/lt.po: Likewise.
1829 * po/nb.po: Likewise.
1830 * po/nl.po: Likewise.
1831 * po/pl.po: Likewise.
1832 * po/pt_BR.po: Likewise.
1833 * po/ru.po: Likewise.
1834 * po/rw.po: Likewise.
1835 * po/sk.po: Likewise.
1836 * po/sl.po: Likewise.
1837 * po/sv.po: Likewise.
1838 * po/tr.po: Likewise.
1839 * po/uk.po: Likewise.
1840 * po/vi.po: Likewise.
1841 * po/zh_CN.po: Likewise.
1842 * po/zh_TW.po: Likewise.
1843
1844 2019-07-31 Florian Weimer <fweimer@redhat.com>
1845
1846 [BZ #24583]
1847 [BZ #24677]
1848 iconv, libio: Revert reference counting changes.
1849 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1850 free the steps array.
1851 * libio/Makefile (tests): Remove tst-wfile-gconv.
1852 (tests-container): Do not add tst-wfile-ascii.
1853 (tst-wfile-gconv-ENV): Do not set.
1854 (generated): Do not add tst-wfile-gconv.mtrace,
1855 tst-wfile-gconv.check.
1856 [($run-built-tests)] (tests-special): Do not add
1857 tst-wfile-gconv-mem.out.
1858 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1859 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1860 instead of __wcsmbs_clone_conv.
1861 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1862 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1863
1864 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1865
1866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1867 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1868
1869 2019-07-30 Florian Weimer <fweimer@redhat.com>
1870
1871 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1872 type to uintptr_t. Update comment.
1873 (check_stack_top): Adjust.
1874
1875 2019-07-29 Florian Weimer <fweimer@redhat.com>
1876
1877 Linux: Move declaration of getdents64 to <dirent.h>.
1878 * bits/dirent_ext.h: New file.
1879 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1880 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1881 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1882 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1883 declaration.
1884 * manual/filesys.texi (Low-level Directory Access): Update header
1885 to dirent.h.
1886
1887 2019-07-29 DJ Delorie <dj@redhat.com>
1888 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1889
1890 [BZ #24794]
1891 * Makeconfig (all-subdirs): Improved source comments.
1892 * Makefile (testroot.pristine/install.stamp): Pass
1893 subdirs='$(sorted-subdirs)' to make install.
1894
1895 2019-07-25 Florian Weimer <fweimer@redhat.com>
1896
1897 [BZ #24677]
1898 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1899 counter before freeing array.
1900
1901 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1902
1903 [BZ #24603]
1904 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1905 works.
1906 * sysdeps/x86_64/configure: Regenerated.
1907 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1908 to -mprefer-vector-width=128 if supported.
1909
1910 2019-07-24 Florian Weimer <fweimer@redhat.com>
1911
1912 * scripts/build-many-glibcs.py (Context.checkout): Default to
1913 Linux 5.2.
1914
1915 2019-07-24 Florian Weimer <fweimer@redhat.com>
1916
1917 [BZ #24532]
1918 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1919 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1920 (sysdep_headers): Add bits/socket-constants.h.
1921 (tests-special): Add tst-socket-consts.out.
1922 (tst-socket-consts.out): New target.
1923 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1924 around <asm/unistd.h>.
1925 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1926 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1927 <asm/socket.h>.
1928 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1929 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1930 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1931 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1932 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1933 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1934 Likewise.
1935 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1936
1937 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1938
1939 [BZ #24794]
1940 * Makefile (testroot.pristine/install.stamp): Pass
1941 subdirs='$(all-subdirs)' to make install.
1942
1943 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1944 the same arguments used in all tests.
1945
1946 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1947
1948 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1949
1950 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1951
1952 [BZ #2872]
1953 * locale/C-translit.h.in: Add Cyrillic transliteration.
1954
1955 2019-07-19 Florian Weimer <fweimer@redhat.com>
1956
1957 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1958 from Linux 5.2.
1959 (fsconfig): Add system call name.
1960 (fsmount): Likewise.
1961 (fsopen): Likewise.
1962 (fspick): Likewise.
1963 (move_mount): Likewise.
1964 (open_tree): Likewise.
1965
1966 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1967
1968 * po/libc.pot: Regenerate.
1969
1970 2019-07-18 Mike Crowe <mac@mcrowe.com>
1971
1972 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1973 functions recently added to sysdeps/nptl/pthread.h:
1974 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1975 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1976
1977 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1978 pthread_cond_clockwait forwarding functions. There are no internal
1979 users, so it is unnecessary to expose these functions in libc.so.
1980 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1981 unnecessary ptr___pthread_cond_clockwait member.
1982 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1983 removed member.
1984
1985 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1986
1987 [BZ #21897]
1988 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1989 begin with an uppercase letter now.
1990 (abmon): Likewise.
1991 (mon): Update from CLDR, reword February from "Kudo" to
1992 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1993 and August from "Liiqen" to "Leqeeni".
1994 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1995 April from "Agda Baxisso" to "Agda Baxis" and August from
1996 "Leqeeni" to "Liiqen".
1997 * localedata/locales/aa_ER@saaho (mon): Likewise.
1998 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1999 abbreviated February from "Kud" to "Nah".
2000 (mon): Update from CLDR, reword February from "Kudo" to
2001 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
2002
2003 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2004
2005 [BZ #23996]
2006 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
2007
2008 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
2009
2010 [BZ #23996]
2011 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
2012 name_mrs, name_miss, and name_ms.
2013 * localedata/locales/nl_NL (LC_NAME): Likewise.
2014
2015 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
2016
2017 [BZ #24200]
2018 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2019 * localedata/locales/en_IE (first_weekday): Likewise.
2020
2021 2019-07-12 Mike Crowe <mac@mcrowe.com>
2022
2023 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2024 that is only useful if futex_supports_exact_relative_timeouts ()
2025 returns false.
2026 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2027 Likewise.
2028 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2029 timeouts potentially being imprecise since it's no longer true.
2030 Remove declaration of futex_supports_exact_relative_timeouts.
2031 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2032 of futex_supports_exact_relative_timeouts.
2033
2034 * NEWS: Mention recently-added pthread_cond_clockwait,
2035 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2036 sem_clockwait functions.
2037
2038 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2039 works like pthread_mutex_timedlock but takes a clockid parameter to
2040 measure the abstime parameter against.
2041 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2042 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2043 * nptl/pthread_mutex_timedlock.c
2044 (__pthread_mutex_clocklock_common): Rename from
2045 __pthread_mutex_timedlock and add clockid parameter. Pass this
2046 parameter to lll_clocklock and lll_clocklock_elision in place of
2047 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2048 LIBC_PROBE and validate clockid parameter before calling
2049 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2050 implementation to add LIBC_PROBE and calls
2051 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2052 clockid.
2053 * nptl/Makefile: Add tst-mutex11.c.
2054 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2055 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2056 clockid parameters to pthread_mutex_clocklock.
2057 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2058 clockid parameter to indicate which clock to be used. Call
2059 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2060 (do_test): Call do_test_clock to separately test
2061 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2062 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2063 * nptl/tst-mutex9.c: Likewise.
2064 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2065 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2066 Likewise.
2067 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2068 Likewise.
2069 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2070 Likewise.
2071 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2072 Likewise.
2073 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2074 Likewise.
2075 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2076 Likewise.
2077 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2078 Likewise.
2079 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2080 (GLIBC_2.30): Likewise.
2081 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2082 (GLIBC_2.30): Likewise.
2083 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2084 (GLIBC_2.30): Likewise.
2085 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2086 (GLIBC_2.30): Likewise.
2087 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2088 (GLIBC_2.30): Likewise.
2089 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2090 Likewise.
2091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2092 (GLIBC_2.30): Likewise.
2093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2094 (GLIBC_2.30): Likewise.
2095 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2096 (GLIBC_2.30): Likewise.
2097 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2098 (GLIBC_2.30): Likewise.
2099 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2100 (GLIBC_2.30): Likewise.
2101 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2102 (GLIBC_2.30): Likewise.
2103 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2104 Likewise.
2105 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2106 (GLIBC_2.30): Likewise.
2107 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2108 (GLIBC_2.30): Likewise.
2109 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2110 (GLIBC_2.30): Likewise.
2111 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2112 (GLIBC_2.30): Likewise.
2113
2114 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2115 parameter to indicate the clock that the abstime parameter should
2116 be measured against in preparation for adding
2117 pthread_mutex_clocklock.
2118 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2119 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2120 from __lll_timedlock and add clockid parameter.
2121 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2122 Likewise.
2123 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2124 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2125 rather than __gettimeofday so that clockid can be used. This means
2126 that conversion from struct timeval is no longer required.
2127 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2128 Likewise.
2129 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2130 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2131 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2132 from lll_timedlock_elision, add clockid parameter and use
2133 meaningful names for other parameters. (__pthread_mutex_timedlock):
2134 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2135 lll_clocklock_elision.
2136 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2137 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2138 clockid parameter. (__lll_clocklock_elision): Rename from
2139 __lll_timedlock_elision and add clockid parameter.
2140 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2141 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2142 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2143 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2144 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2145 (LLL_LOCK): Likewise.
2146 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2147 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2148
2149 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2150 pthread_rwlock_clockwrlock which behave like
2151 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2152 respectively, except they always measure abstime against the
2153 supplied clockid. The functions currently support CLOCK_REALTIME
2154 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2155 specified.
2156 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2157 pthread_wrlock_clockwrlock.
2158 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2159 pthread_rwlock_clockwrlock.c.
2160 * nptl/pthread_rwlock_clockrdlock.c: Implement
2161 pthread_rwlock_clockrdlock.
2162 * nptl/pthread_rwlock_clockwrlock.c: Implement
2163 pthread_rwlock_clockwrlock.
2164 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2165 clockid parameter and verify that it indicates a supported clock on
2166 entry so that we fail even if it doesn't end up being used. Pass
2167 that clock on to futex_abstimed_wait when necessary.
2168 (__pthread_rwlock_wrlock_full): Likewise.
2169 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2170 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2171 be used because there's no timeout.
2172 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2173 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2174 be used because there is no timeout.
2175 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2176 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2177 uses that clock.
2178 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2179 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2180 uses that clock.
2181 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2182 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2183 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2184 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2185 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2186 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2187 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2188 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2189 (GLIBC_2.30): Likewise.
2190 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2191 (GLIBC_2.30): Likewise.
2192 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2193 (GLIBC_2.30): Likewise.
2194 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2195 (GLIBC_2.30): Likewise.
2196 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2197 (GLIBC_2.30): Likewise.
2198 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2199 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2200 (GLIBC_2.30): Likewise.
2201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2202 (GLIBC_2.30): Likewise.
2203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2204 (GLIBC_2.30): Likewise.
2205 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2206 (GLIBC_2.30): Likewise.
2207 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2208 (GLIBC_2.30): Likewise.
2209 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2210 (GLIBC_2.30): Likewise.
2211 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2212 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2213 (GLIBC_2.30): Likewise.
2214 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2215 (GLIBC_2.30): Likewise.
2216 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2217 (GLIBC_2.30): Likewise.
2218 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2219 (GLIBC_2.30): Likewise.
2220 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2221 pthread_rwlock_clockwrlock timeout tests to match the existing
2222 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2223 * nptl/tst-rwlock14.c (do_test): Likewise.
2224 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2225 ancillary output throughout. (tf): Accept thread_args structure so
2226 that rwlock, a clockid and function name can be passed to the
2227 thread. (do_test_clock): Rename from do_test. Accept clockid
2228 parameter to specify test clock. Use the magic clockid value of
2229 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2230 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2231 specified clockid to pthread_rwlock_clockrdlock and
2232 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2233 (do_test): Call do_test_clock to test each clockid in turn.
2234 * nptl/tst-rwlock7.c: Likewise.
2235 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2236 thread_args structure so that the (now int) thread number, the
2237 clockid and the function name can be passed to the thread.
2238 (do_test_clock): Renamed from do_test. Pass the necessary
2239 thread_args when creating the reader and writer threads. Use
2240 xpthread_create and xpthread_join.
2241 (do_test): Call do_test_clock to test each clockid in turn.
2242 * manual/threads.texi: Add documentation for
2243 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2244
2245 nptl: pthread_rwlock: Move timeout validation into _full functions
2246 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2247 Check validity of abstime parameter.
2248 (__pthread_rwlock_rwlock_full): Likewise.
2249 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2250 Remove check for validity of abstime parameter.
2251 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2252 Likewise.
2253
2254 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2255 like pthread_cond_timedwait except it always measures abstime
2256 against the supplied clockid.
2257 * nptl/Makefile: Add tst-cond26 and tst-cond27
2258 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2259 * sysdeps/nptl/pthread.h: Likewise
2260 * nptl/forward.c: Add __pthread_cond_clockwait
2261 * nptl/forward.c: Likewise
2262 * nptl/pthreadP.h: Likewise
2263 * sysdeps/nptl/pthread-functions.h: Likewise
2264 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2265 clockid parameter and comment describing why we don't need to check
2266 its value. Use that value when calling
2267 futex_abstimed_wait_cancelable rather than reading the clock from
2268 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2269 (__pthread_cond_timedwait): Read clock from flags and pass it to
2270 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2271 function with weak alias from pthread_cond_clockwait.
2272 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2273 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2274 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2275 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2276 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2277 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2278 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2279 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2280 (GLIBC_2.30): Likewise.
2281 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2282 (GLIBC_2.30): Likewise.
2283 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2284 (GLIBC_2.30): Likewise.
2285 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2286 (GLIBC_2.30): Likewise.
2287 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2288 (GLIBC_2.30): Likewise.
2289 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2291 (GLIBC_2.30): Likewise.
2292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2293 (GLIBC_2.30): Likewise.
2294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2295 (GLIBC_2.30): Likewise.
2296 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2297 (GLIBC_2.30): Likewise.
2298 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2299 (GLIBC_2.30): Likewise.
2300 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2301 (GLIBC_2.30): Likewise.
2302 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2303 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2304 (GLIBC_2.30): Likewise.
2305 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2306 (GLIBC_2.30): Likewise.
2307 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2308 (GLIBC_2.30): Likewise.
2309 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2310 (GLIBC_2.30): Likewise.
2311 * nptl/tst-cond11.c (run_test): Support testing
2312 pthread_cond_clockwait too by using a special magic
2313 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2314 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2315 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2316 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2317 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2318 clocks to pthread_cond_clockwait.
2319 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2320 struct timespec and pthread_cond_clockwait.
2321 * manual/threads.texi: Document pthread_cond_clockwait.
2322
2323 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2324 sem_timedwait, but measures abstime against the specified clock.
2325 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2326 clockid parameters to indicate the clock which abstime should be
2327 measured against.
2328 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2329 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2330 __new_sem_wait_slow.
2331 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2332 on sem_timedwait.c.
2333 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2334 sem_clockwait.c to match those used for sem_timedwait.c.
2335 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2336 * nptl/Versions (GLIBC_2.30): Likewise.
2337 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2338 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2339 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2340 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2341 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2342 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2343 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2344 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2345 (GLIBC_2.30): Likewise.
2346 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2347 (GLIBC_2.30): Likewise.
2348 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2349 (GLIBC_2.30): Likewise.
2350 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2351 (GLIBC_2.30): Likewise.
2352 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2353 (GLIBC_2.30): Likewise.
2354 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2356 (GLIBC_2.30): Likewise.
2357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2358 (GLIBC_2.30): Likewise.
2359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2360 (GLIBC_2.30): Likewise.
2361 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2362 (GLIBC_2.30): Likewise.
2363 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2364 (GLIBC_2.30): Likewise.
2365 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2366 (GLIBC_2.30): Likewise.
2367 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2368 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2369 (GLIBC_2.30): Likewise.
2370 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2371 (GLIBC_2.30): Likewise.
2372 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2373 (GLIBC_2.30): Likewise.
2374 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2375 (GLIBC_2.30): Likewise.
2376 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2377 sem_clockwait.
2378 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2379 tests to also test sem_clockwait.
2380 * manual/threads.texi: Document sem_clockwait.
2381
2382 nptl: Add clockid parameter to futex timed wait calls
2383 * sysdeps/nptl/lowlevellock-futex.h,
2384 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2385 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2386 takes a clockid rather than a special clockbit.
2387 * sysdeps/nptl/lowlevellock-futex.h: Add
2388 lll_futex_supported_clockid so that client functions can check
2389 whether their clockid parameter is valid even if they don't
2390 ultimately end up calling lll_futex_clock_wait_bitset.
2391 * sysdeps/nptl/futex-internal.h,
2392 sysdeps/unix/sysv/linux/futex-internal.h
2393 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2394 clockid_t parameter to indicate which clock the absolute time
2395 passed should be measured against. Pass that clockid onto
2396 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2397 returning -EINVAL.
2398 * sysdeps/nptl/futex-internal.h,
2399 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2400 futex_abstimed_supported_clockid so that client functions can check
2401 whether their clockid parameter is valid even if they don't
2402 ultimately end up calling futex_abstimed_wait.
2403 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2404 code to calculate relative timeout for
2405 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2406 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2407 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2408 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2409 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2410 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2411 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2412
2413 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2414
2415 [BZ #24699]
2416 * posix/tst-mmap-offset.c: Mention BZ #24699.
2417 (do_test_bz21270): Rename to do_test_large_offset and use
2418 mmap64_maximum_offset to check for maximum expected offset value.
2419 * sysdeps/generic/mmap_info.h: New file.
2420 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2421 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2422 __NR_mmap2 is used.
2423
2424 2019-07-10 DJ Delorie <dj@redhat.com>
2425 Sergei Trofimovich <slyfox@inbox.ru>
2426
2427 [BZ #24696]
2428 [BZ #24695]
2429 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2430 mappings.
2431 * nss/tst-nss-db-endgrent.c: New.
2432 * nss/tst-nss-db-endgrent.root: New.
2433 * nss/tst-nss-db-endpwent.c: New.
2434 * nss/tst-nss-db-endpwent.root: New.
2435 * nss/Makefile: Add new tests.
2436 * support/links-dso-program-c.c: Add selinux dependency.
2437 * support/links-dso-program.cc: Add selinux dependency.
2438 * support/Makefile: Build those with -lselinux if enabled.
2439
2440 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2441
2442 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2443 DT_AARCH64_VARIANT_PCS check.
2444 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2445 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2446 variant_pcs.
2447
2448 2019-07-10 Andreas Schwab <schwab@suse.de>
2449
2450 [BZ #23352]
2451 * malloc/malloc.h (__malloc_check_init): Don't declare.
2452 * include/malloc.h (__malloc_check_init): Likewise.
2453 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2454 * manual/memory.texi (__malloc_check_init): Don't mention it.
2455
2456 2019-07-10 Mao Han <han_mao@c-sky.com>
2457
2458 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2459
2460 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2461
2462 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2463 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2464
2465 2019-07-08 DJ Delorie <dj@redhat.com>
2466
2467 [BZ #23501]
2468 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2469 * io/tst-ftw-lnk.c: New test.
2470 * io/Makefile: Run it.
2471
2472 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2473
2474 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2475 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2476 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2477 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2478 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2479 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2481 Adjust implementation path.
2482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2483 Adjust implementation path.
2484 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2485 Adjust implementation path.
2486 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2487 (libm-sysdep_routines): Add s_log* objects.
2488 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2489 CFLAGS-s_logb-power7.c): New fule.
2490 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2491 to ...
2492 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2493 ... here.
2494 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2495 to ...
2496 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2497 ... here.
2498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2499 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2500 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2501 to ...
2502 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2503 ... here.
2504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2505 to ...
2506 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2507 ... here.
2508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2509 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2511 to ...
2512 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2513 ... here.
2514 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2515 to ...
2516 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2517 ... here.
2518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2519 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2520 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2521 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2522 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2523 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2524
2525 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2526 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2527 powerpc32 integer 0 converting to -0.
2528
2529 * benchtests/Makefile (bench-math): Add logb.
2530 * benchtests/logb-inputs: New file.
2531 * benchtests/logbf-inputs: New file.
2532
2533 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2534 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2535 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2536 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2538 Adjust include.
2539 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2540 Likewise.
2541 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2542 sysdep_routines): Add s_modf* objects.
2543 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2544 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2545 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2546 to ...
2547 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2548 ... here.
2549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2550 to ...
2551 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2552 ... here.
2553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2554 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2556 to ...
2557 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2558 ... here.
2559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2560 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2561 ... here.
2562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2563 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2564
2565 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2566 twoM500, twoM600, two60factor, pdnum): Remove.
2567 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2568 (__ieee754_hypot): Replace static variables with inline definition,
2569 remove ununsed branches.
2570 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2571 (libm-sysdep_routines): Remove e_hypot-* objects.
2572 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2573 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2574 file.
2575 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2576 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2577 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2578 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2579 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2580
2581 * benchtests/Makefile (bench-math): Add hypot.
2582 * benchtests/hypot-inputs: New file.
2583
2584 2019-07-08 Vincent Chen <vincentc@andestech.com>
2585
2586 * sysdeps/unix/sysv/linux/dl-vdso.h
2587 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2588
2589 2019-07-04 Andreas Schwab <schwab@suse.de>
2590
2591 [BZ #24484]
2592 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2593
2594 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2595
2596 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2597 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2598 * sysdeps/aarch64/sys/ifunc.h: New file.
2599 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2600 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2601
2602 2019-07-01 Florian Weimer <fweimer@redhat.com>
2603
2604 [BZ #20188]
2605 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2606 Replace __vfork with __libpthread_version_placeholder for
2607 GLIBC_2.1.2.
2608 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2609 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2610 libpthread-compat.
2611 * nptl/pt-vfork.c: Remove file.
2612 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2613 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2614 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2615 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2616 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2617 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2618 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2619 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2620 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2621 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2622 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2623 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2624 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2625 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2626 Remove vfork, __vfork.
2627 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2628 Remove vfork.
2629 (GLIBC_2.1.2): Replace __vfork with
2630 __libpthread_version_placeholder.
2631 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2632 Remove vfork, __vfork.
2633 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2634 Likewise.
2635 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2636 Remove vfork.
2637 (GLIBC_2.1.2): Replace __vfork with
2638 __libpthread_version_placeholder.
2639 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2640 Remove vfork.
2641 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2642 (GLIBC_2.4): Remove vfork, __vfork.
2643 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2644 (GLIBC_2.0): Remove vfork.
2645 (GLIBC_2.1.2): Replace __vfork with
2646 __libpthread_version_placeholder.
2647 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2648 (GLIBC_2.18): Remove vfork, __vfork.
2649 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2650 (GLIBC_2.0): Remove vfork.
2651 (GLIBC_2.2): Remove __vfork.
2652 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2653 (GLIBC_2.2): Remove vfork, __vfork.
2654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2655 (GLIBC_2.0): Remove vfork.
2656 (GLIBC_2.1.2): Replace __vfork with
2657 __libpthread_version_placeholder.
2658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2659 (GLIBC_2.3): Remove vfork, __vfork.
2660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2661 (GLIBC_2.17): Likewise.
2662 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2663 (GLIBC_2.0): Remove vfork.
2664 (GLIBC_2.1.2): Replace __vfork with
2665 __libpthread_version_placeholder.
2666 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2667 (GLIBC_2.2): Remove vfork, __vfork.
2668 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2669 Likewise.
2670 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2671 (GLIBC_2.0): Remove vfork.
2672 (GLIBC_2.1.2): Replace __vfork with
2673 __libpthread_version_placeholder.
2674 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2675 (GLIBC_2.2): Remove vfork, __vfork.
2676 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2677 (GLIBC_2.2.5): Likewise.
2678 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2679 (GLIBC_2.16): Likewise.
2680 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2681 Remove __errno_location.
2682
2683 2019-07-02 Florian Weimer <fweimer@redhat.com>
2684
2685 [BZ #24757]
2686 * malloc/Depend: Add nptl and htl, due to potential indirect
2687 libpthread dependency of memusagestat.
2688
2689 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2690
2691 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2692 warning.
2693
2694 2019-07-01 Florian Weimer <fweimer@redhat.com>
2695
2696 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2697 variant for arm-linux-gnueabi.
2698
2699 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2700
2701 [BZ #24259]
2702 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2703 relocation.
2704 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2705 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2706 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2707 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2708 and tst-cet-legacy-mod-6c.
2709 (CFLAGS-tst-cet-legacy-5a.c): New.
2710 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2711 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2712 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2713 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2714 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2715 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2716 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2717 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2718 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2719 ($(objpfx)tst-cet-legacy-5a): Likewise.
2720 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2721 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2722 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2723 ($(objpfx)tst-cet-legacy-5b): Likewise.
2724 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2725 (tst-cet-legacy-5b-ENV): Likewise.
2726 ($(objpfx)tst-cet-legacy-6a): Likewise.
2727 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2728 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2729 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2730 ($(objpfx)tst-cet-legacy-6b): Likewise.
2731 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2732 (tst-cet-legacy-6b-ENV): Likewise.
2733 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2734 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2735 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2736 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2737 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2738 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2739 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2740 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2741 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2742 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2743 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2744 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2745 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2746 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2747
2748 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2749
2750 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2751 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2752 (__fegetround_ISA300) New.
2753 (__fegetround_ISA2) New.
2754 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2755 (_FPU_MFFS): Move implementation...
2756 (_FPU_GETCW): Here.
2757 (_FPU_MFFSL): Move implementation....
2758 (_FPU_GET_RC_ISA300): Here. New.
2759 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2760 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2761 (fegetenv_status): New.
2762 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2763 instead of fegetenv_register().
2764 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2765
2766 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2767
2768 * benchtests/bench-math-inlines.c: Increase iterations.
2769 * benchtests/bench-memcmp.c: Likewise.
2770 * benchtests/bench-rawmemchr.c: Likewise.
2771 * benchtests/bench-strcmp.c: Likewise.
2772 * benchtests/bench-strcpy_chk.c: Likewise.
2773 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2774 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2775 (INNER_LOOP_ITERS_SMALL): Likewise.
2776 * benchtests/bench-strncat.c: Increase iterations.
2777 * benchtests/bench-strncmp.c: Increase iterations.
2778 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2779 * benchtests/bench-strrchr.c: Increase iterations.
2780 * benchtests/bench-strstr.c: Keep iterations unchanged.
2781 * benchtests/bench-strtod.c: Increase iterations.
2782
2783 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2784
2785 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2786 with INNER_LOOP_ITERS_LARGE.
2787 * benchtests/bench-memchr.c: Likewise.
2788 * benchtests/bench-rawmemchr.c: Likewise.
2789 * benchtests/bench-strcat.c: Likewise.
2790 * benchtests/bench-strchr.c: Likewise.
2791 * benchtests/bench-string.h: Likewise.
2792 * benchtests/bench-strlen.c: Likewise.
2793 * benchtests/bench-strncpy.c: Likewise.
2794 * benchtests/bench-strnlen.c: Likewise.
2795
2796 2019-06-28 Florian Weimer <fweimer@redhat.com>
2797
2798 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2799 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2800 entire allocated memory range.
2801
2802 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2803
2804 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2805 (prepare_version_base): New helper inline function.
2806 (prepare_version): New macro replacing PREPARE_VERSION.
2807 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2808
2809 2019-06-28 Florian Weimer <fweimer@redhat.com>
2810
2811 [BZ #24741]
2812 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2813 mismatch in a versioned symbol reference.
2814 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2815 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2816 tst-sonamemove-dlopen.
2817 (module-names): Add tst-sonamemove-linkmod1,
2818 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2819 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2820 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2821 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2822 (tst-sonamemove-runmod1.so): Link against
2823 tst-sonamemove-runmod2.so.
2824 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2825 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2826 tst-sonamemove-runmod2.so.
2827 (tst-sonamemove-dlopen): Link with -ldl.
2828 (tst-sonamemove-dlopen.out): Likewise.
2829 * elf/tst-sonamemove-link.c: New file.
2830 * elf/tst-sonamemove-dlopen.c: Likewise.
2831 * elf/tst-sonamemove-linkmod1.c: Likewise.
2832 * elf/tst-sonamemove-linkmod1.map: Likewise.
2833 * elf/tst-sonamemove-runmod1.c: Likewise.
2834 * elf/tst-sonamemove-runmod1.map: Likewise.
2835 * elf/tst-sonamemove-runmod2.c: Likewise.
2836 * elf/tst-sonamemove-runmod2.map: Likewise.
2837
2838 2019-06-28 Florian Weimer <fweimer@redhat.com>
2839
2840 * support/xdlfcn.h (xdlvsym): Declare function.
2841 * support/xdlfcn.c (xdlvsym): Define funciton.
2842
2843 2019-06-28 Florian Weimer <fweimer@redhat.com>
2844
2845 [BZ #24744]
2846 io: Remove the copy_file_range emulation.
2847 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2848 not define and call copy_file_range_compat.
2849 * io/Makefile (tests-static, tests-internal): Do not add
2850 tst-copy_file_range-compat.
2851 * io/copy_file_range-compat.c: Remove file.
2852 * io/copy_file_range.c (copy_file_range): Define as stub.
2853 * io/tst-copy_file_range-compat.c: Remove file.
2854 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2855 (typical_sizes): Update comment. Remove 16K sizes.
2856 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2857 Remove variables.
2858 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2859 (delayed_write_failure_beginning, delayed_write_failure_end)
2860 (cross_device_failure, enospc_failure_1, enospc_failure)
2861 (oappend_failure): Remove functions.
2862 (tests): Adjust test case list.
2863 (do_test): Remove file system search code. Check for ENOSYS from
2864 copy_file_range. Do not free xdevfile.
2865 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2866 copy_file_range. Do not document the EXDEV error, which future
2867 kernels may not report. Update the wording to reflect that
2868 further errors are possible.
2869 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2870 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2871 not undefine.
2872 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2873 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2874 Likewise.
2875 * sysdeps/unix/sysv/linux/kernel-features.h
2876 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2877 Remove definition.
2878 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2879 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2880 not undefine.
2881 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2882 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2883 Likewise.
2884
2885 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2886
2887 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2888 used as a mask for the mode argument of __vfprintf_internal.
2889 * stdio-common/printf-parse.h (printf_arg): New union member:
2890 pa_float128.
2891 * stdio-common/vfprintf-internal.c
2892 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2893 (PARSE_FLOAT_VA_ARG): Likewise.
2894 (SETUP_FLOAT128_INFO): Likewise.
2895 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2896 SETUP_FLOAT128_INFO.
2897 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2898 floating-point value to the new union member, pa_float128.
2899 (printf_positional): Zero-initialize args_value[cnt] with memset.
2900
2901 2019-06-27 Florian Weimer <fweimer@redhat.com>
2902
2903 [BZ #24740]
2904 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2905 buffer size if necessary.
2906 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2907 Likewise.
2908 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2909 New function.
2910 (large_buffer_checks): Likewise.
2911 (do_test): Call large_buffer_checks.
2912
2913 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2914
2915 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2916 * sysdeps/x86/dl-lookupcfg.h: Here.
2917 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2918
2919 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2920
2921 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2922 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2923 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2924 file.
2925 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2926 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2927 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2928 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2929 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2930
2931 * sysdeps/powerpc/powerpc32/fpu/Makefile
2932 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2933 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2934 and fctidz optimization.
2935 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2936 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2937 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2938 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2939 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2940 CFLAGS-s_lround-power5+.c): New rule.
2941 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2942 New file.
2943 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2944 Likewise.
2945 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2946 Likewise.
2947 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2948 Likewise.
2949 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2950 Likewise.
2951 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2952 Remove file.
2953 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2954 Likewise.
2955 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2956 Likewise.
2957 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2958 Likewise.
2959 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2960 Likewise.
2961 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2962 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2963 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2964 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2965 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2966 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2967 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2968
2969 2019-06-26 Vincent Chen <vincentc@andestech.com>
2970
2971 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2972 specific system calls, fp_udfiex_crtl and udftrap.
2973
2974 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2975
2976 * nptl/tst-eintr1.c (tf1): Add return statement.
2977 (do_test): Remove unused th variable.
2978
2979 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2980
2981 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2982 Return error if get_character fails.
2983
2984 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2985
2986 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2987
2988 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2989
2990 [BZ #24652]
2991 * localedata/locales/szl_PL (day): Use the correct Unicode
2992 sequences instead of non-ASCII characters.
2993
2994 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2995
2996 [BZ #24652]
2997 * localedata/locales/szl_PL (abday): Spelling corrections.
2998 (day): Likewise.
2999 (abmon): Likewise.
3000 (mon): Rename to...
3001 (alt_mon): This, then apply spelling corrections.
3002 (mon): New entry, month names in the genitive case.
3003
3004 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
3005
3006 [BZ #23831]
3007 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
3008 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
3009 (thousands_sep): Likewise.
3010 (grouping): Set to 3;3.
3011
3012 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
3013
3014 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3015 PREPARE_VERSION_KNOWN.
3016 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3017 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3018 define.
3019 (VDSO_HASH_LINUX_2_6_39): Likewise.
3020 (VDSO_NAME_LINUX_4_9): Likewise.
3021 (VDSO_HASH_LINUX_4_9): Likewise.
3022 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3023 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3024 (_libc_vdso_platform_setup): Likewise.
3025 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3026 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3027 Likewise.
3028 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3029 Likewise.
3030
3031 2019-06-20 Mike Crowe <mac@mcrowe.com>
3032
3033 * nptl/eintr.c: Use libsupport.
3034 * nptl/tst-eintr1.c: Likewise.
3035 * nptl/tst-eintr2.c: Likewise.
3036 * nptl/tst-eintr3.c: Likewise.
3037 * nptl/tst-eintr4.c: Likewise.
3038 * nptl/tst-eintr5.c: Likewise.
3039 * nptl/tst-mutex-errorcheck.c: Likewise.
3040 * nptl/tst-mutex5.c: Likewise.
3041
3042 * support/test-driver.h: Add verbose_printf macro.
3043
3044 * support/xtime.h: Add xclock_now() helper function.
3045
3046 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3047 Florian Weimer <fweimer@redhat.com>
3048
3049 [BZ #24228]
3050 * libio/genops.c (_IO_unbuffer_all)
3051 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3052 buffers and access _IO_FILE_complete members of legacy libio streams.
3053 * libio/tst-bz24228.c: New file.
3054 * libio/tst-bz24228.map: Likewise.
3055 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3056 [build-shared] (generated): Add tst-bz24228.mtrace and
3057 tst-bz24228.check.
3058 [run-built-tests && build-shared] (tests-special): Add
3059 $(objpfx)tst-bz24228-mem.out.
3060 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3061 ($(objpfx)tst-bz24228-mem.out): New rule.
3062
3063 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3064
3065 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3066 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3067 (__FPU_MFFSL): Likewise.
3068 (_FPU_SETCW): Likewise.
3069
3070 2019-06-19 Stan Shebs <stanshebs@google.com>
3071 Raoni Fassina Firmino <raoni@linux.ibm.com>
3072
3073 [BZ #24640]
3074 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3075 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3076 static-linking version.
3077 * sysdeps/unix/sysv/linux/powerpc/Makefile
3078 (tests-static): Add test-gettimebasefreq-static.
3079 (tests): Likewise.
3080 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3081 New file.
3082
3083 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
3084
3085 [BZ #24614]
3086 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3087 between the currency symbol and the minus sign).
3088 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3089
3090 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3091
3092 [BZ #24556]
3093 * string/test-strcasestr.c (check_result): Add NULL check.
3094 * nss/tst-field.c (check_rewrite): Likewise.
3095 * benchtests/bench-strstr.c (do_one_test): Likewise.
3096 * string/test-strstr.c (check_result): Likewise.
3097 * argp/argp-test.c (popt): Increase size of buf to 12.
3098 * benchtests/bench-malloc-simple.c (bench):
3099 Do not initialize tests array out of bounds.
3100
3101 2019-06-19 Florian Weimer <fweimer@redhat.com>
3102
3103 [BZ #24166]
3104 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3105 dls_serpath field.
3106
3107 2019-06-18 Florian Weimer <fweimer@redhat.com>
3108
3109 [BZ #24323]
3110 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3111 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3112 fail when called from dlopen.
3113 * elf/Makefile [have-fpie && build-shared] (tests): Add
3114 tst-dlopen-pie.
3115 (tst-dlopen-pie): Link with -ldl.
3116 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3117 * elf/tst-dlopen-pie.c (do_test): New file.
3118
3119 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
3120
3121 [BZ #24614]
3122 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3123 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3124 between the currency symbol and the minus sign).
3125 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3126 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3127
3128 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3129
3130 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3131 sysdep-rtld-routines): Remove rules.
3132 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3133 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3134 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3135 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3136 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3137 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3138 vDSO path for SHARED.
3139 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3140 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3141 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3142 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3143 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3144 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3145
3146 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3147 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3148 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3149 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3150 CFLAGS-s_llround-power5+.c): New rule.
3151 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3152 New file.
3153 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3154 Likewise.
3155 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3156 Likewise.
3157 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3158 Likewise.
3159 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3160 Likewise.
3161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3162 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3164 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3166 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3167 * sysdeps/powerpc/powerpc64/fpu/Makefile
3168 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3169 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3170 (libm-sysdep_routines): Remove s_llround-* objects.
3171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3172 file.
3173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3174 Likewise.
3175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3176 Likewise.
3177 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3178 Likewise.
3179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3180 Likewise.
3181 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3182 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3183 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3184 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3185 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3186 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3187 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3188 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3189 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3190 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3191 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3192 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3193 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3194 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3195
3196 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3197 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3198 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3199 * sysdeps/powerpc/powerpc32/fpu/Makefile
3200 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3201 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3202 optimization.
3203 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3204 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3205 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3206 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3207 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3208 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3209 CFLAGS-s_lrint-ppc32.c): New rule.
3210 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3211 Remove file.
3212 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3213 Likewise.
3214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3215 Likewise.
3216 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3217 Likewise.
3218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3219 Likewise.
3220 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3221 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3222 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3223 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3224 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3225 New file.
3226 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3227 Likewise.
3228 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3229 Likewise.
3230 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3231 Likewise.
3232 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3233 Likewise.
3234
3235 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3236 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3237 s_llrint-ppc64.
3238 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3239 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3240 file.
3241 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3242 Likewise.
3243 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3244 Likewise.
3245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3246 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3248 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3250 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3251 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3252 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3253 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3254 (libm-sysdep_routines): Remove s_llrint-* objects.
3255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3256 file.
3257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3258 Likewise.
3259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3260 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3261 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3262 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3263 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3264 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3265 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3266 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3267 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3268 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3269
3270 2019-06-14 Florian Weimer <fweimer@redhat.com>
3271
3272 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3273 argument to __glibc_has_include to inhibit macro expansion.
3274
3275 2019-06-14 Florian Weimer <fweimer@redhat.com>
3276
3277 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3278 function-like macro, so that __has_include can inhibit expansion
3279 of its argument.
3280
3281 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3282
3283 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3284 New macro.
3285
3286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3287 Allow memset in libc.so.
3288
3289 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3290
3291 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3292 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3293 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3294 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3295 symbols at load time.
3296 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3297
3298 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3299
3300 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3301 (DT_AARCH64_VARIANT_PCS): Define.
3302
3303 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3304
3305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3306 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3307 objects.
3308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3309 Remove file.
3310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3311 Likewise.
3312 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3314 Likewise.
3315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3316 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3317 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3318 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3319 Remove s_finite* objects.
3320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3321 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3324 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3325 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3326 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3327 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3328 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3329 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3330
3331 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3332 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3333
3334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3335 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3336 objects.
3337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3338 Remove file.
3339 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3340 Likewise.
3341 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3343 Likewise.
3344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3345 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3346 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3347 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3348 Remove s_isinf* and s_isinf* objects.
3349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3355 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3356 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3357 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3358 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3359
3360 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3361 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3362
3363 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3364 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3365 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3367 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3368 s_isnanf-* objects.
3369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3370 Remove file
3371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3372 Likewise.
3373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3374 Likewise.
3375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3376 Likewise.
3377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3378 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3379 Likewise.
3380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3381 Likewise.
3382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3383 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3384 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3385 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3386 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3387 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3388 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3389 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3390 Remove s_isnan-* and s_isnanf-* objects.
3391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3393 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3394 Likewise.
3395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3397 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3399 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3400 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3401 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3402 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3403 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3404 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3405 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3406 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3407 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3408
3409 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3410 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3411
3412 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3413 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3414 CFLAGS-bench-isfinite.c): New rule.
3415 * benchtests/isnan-input: New file.
3416 * benchtests/isinf-input: New file.
3417 * benchtests/isfinite-input: New file.
3418
3419 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3420 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3421 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3422 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3423 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3424 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3425 s_copysign-ppc32.
3426 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3427 Remove file.
3428 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3429 Likewise.
3430 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3431 Likewise.
3432 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3433 Likewise.
3434 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3435 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3436 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3437 Remove s_copysign-power6 s_copysign-ppc64.
3438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3439 Remove file.
3440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3441 Likewise.
3442 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3444 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3445 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3446 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3447 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3448
3449 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3450 round_to_integer_float, round_mode): Add RINT handling.
3451 (reset_fenv_mode): New symbol.
3452 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3453 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3454 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3455 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3456 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3457 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3458
3459 2019-06-12 Florian Weimer <fweimer@redhat.com>
3460
3461 [BZ #24632]
3462 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3463 * libio/freopen.c (freopen): Use it.
3464
3465 2019-06-12 Florian Weimer <fweimer@redhat.com>
3466
3467 Linux: Deprecate sysctl.
3468 * include/sysctl.h (__sysctl): Remove declaration.
3469 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3470 check.
3471 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3472 (sysctl): Add deprecation attribute.
3473 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3474 directly, to avoid the deprecation warning. Do not include
3475 <string.h>.
3476 (__sysctl): Remove hidden alias.
3477
3478 2019-06-12 Florian Weimer <fweimer@redhat.com>
3479
3480 Linux: Use kernel headers for statx definitions if available.
3481 * include/bits/statx-generic.h: New file.
3482 * include/bits/types/struct_statx.h: Likewise.
3483 * include/bits/types/struct_statx_timestamp.h: Likewise.
3484 * io/Makefile (headers): Add bits/statx-generic.h.
3485 * io/bits/statx-generic.h: New file. Partly copied from
3486 io/bits/statx.h.
3487 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3488 define original_statx.
3489 * io/bits/types/struct_statx.h: Likewise.
3490 * io/bits/types/struct_statx_timestamp.h: Likewise.
3491 (statx_generic): Use original_statx.
3492 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3493 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3494
3495 2019-06-12 Florian Weimer <fweimer@redhat.com>
3496
3497 * misc/sys/cdefs.h (__glibc_has_include): Define.
3498
3499 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3500
3501 * string/memmem.c (__memmem): Rewrite to improve performance.
3502
3503 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3504
3505 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3506 warning.
3507 (two_way_long_needle): Block inlining.
3508 * string/strstr.c (strstr2): Add new function.
3509 (strstr3): Likewise.
3510 (STRSTR): Completely rewrite strstr to improve performance.
3511
3512 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3513
3514 * benchtests/bench-strstr.c (test_hard_needle): New function.
3515
3516 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3517
3518 * malloc/tst-calloc.c: Include <libc-diag.h>.
3519 (null_test): Ignore -Wunused-result around calls to calloc.
3520 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3521 (do_test): Ignore -Wunused-result around call to malloc.
3522
3523 2019-06-07 Florian Weimer <fweimer@redhat.com>
3524
3525 Linux: Add getdents64 system call.
3526 * include/dirnent.h (getdents): Add comment and change buffer
3527 argument type to void *.
3528 (getdents64): Likewise. Add hidden prototype.
3529 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3530 getdents64.
3531 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3532 Add tst-getdents64.
3533 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3534 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3535 argument type to void *.
3536 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3537 Add hidden definition and getdents64 alias.
3538 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3539 Likewise.
3540 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3541 * manual/filesys.texi (Accessing Directories): Add Low-level
3542 Directory Access node reference.
3543 (Opening a Directory): Cross-reference it.
3544 (Low-level Directory Access): New node.
3545 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3546 getdents64.
3547 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3548 Likewise.
3549 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3550 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3551 Likewise.
3552 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3553 Likewise.
3554 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3555 Likewise.
3556 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3557 Likewise.
3558 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3559 Likewise.
3560 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3561 Likewise.
3562 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3563 Likewise.
3564 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3565 (GLIBC_2.30): Likewise.
3566 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3567 (GLIBC_2.30): Likewise.
3568 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3569 (GLIBC_2.30): Likewise.
3570 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3571 (GLIBC_2.30): Likewise.
3572 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3573 Likewise.
3574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3575 (GLIBC_2.30): Likewise.
3576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3577 (GLIBC_2.30): Likewise.
3578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3579 (GLIBC_2.30): Likewise.
3580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3581 (GLIBC_2.30): Likewise.
3582 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3583 Likewise.
3584 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3585 Likewise.
3586 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3587 Likewise.
3588 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3589 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3590 Likewise.
3591 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3592 Likewise.
3593 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3594 Likewise.
3595 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3596 Likewise.
3597
3598 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3599
3600 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3601 (__FPU_MFFS): New.
3602 (__FPU_MFFSL): New.
3603 (_FPU_GET_RC): New.
3604 (_FPU_GETCW): Use __FPU_MFFS().
3605 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3606
3607 2019-06-06 Florian Weimer <fweimer@redhat.com>
3608
3609 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3610 internal GCC preprocessor identifier __has_include__.
3611
3612 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3613
3614 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3615 with call to equivalent function.
3616
3617 2019-06-04 Florian Weimer <fweimer@redhat.com>
3618
3619 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3620 (do_release_shlib): Adjust for __twalk_r.
3621 (__gconv_release_shlib): Call __twalk_r.
3622
3623 2019-06-04 Andreas Schwab <schwab@suse.de>
3624
3625 [BZ #18830]
3626 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3627 no irreversible characters occurred.
3628 * iconv/gconv_simple.c (internal_ucs4_loop)
3629 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3630 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3631 (ucs4_internal_loop_single, internal_ucs4le_loop)
3632 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3633 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3634 (ucs4le_internal_loop_single): Add const to outend.
3635 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3636 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3637 * iconv/Makefile (tests): Add tst-iconv7.
3638 * iconv/tst-iconv7.c: New file.
3639
3640 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3641
3642 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3643
3644 2019-06-01 Florian Weimer <fweimer@redhat.com>
3645
3646 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3647 * sysdeps/unix/sysv/linux/arm/Makefile
3648 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3649 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3650 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3651 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3652 compatibility symbols.
3653
3654 2019-05-31 Florian Weimer <fweimer@redhat.com>
3655
3656 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3657 system calls for the arm architecture: breakpoint, get_tls,
3658 set_tls, usr26, usr32.
3659
3660 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3661
3662 * sysdeps/powerpc/Makefile
3663 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3664 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3665 Declare '.machine power7' to get support for ldbrx.
3666 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3667 directive based on the directory of the file.
3668 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3669 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3670 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3671 '.machine' directive.
3672 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3673 (VADDUQM_V7_V8): Remove.
3674 (__STRCASECMP): Replace macros with actual instructions.
3675 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3676 '.machine' directive.
3677 (VCLZD_V8_v7): Remove.
3678 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3679
3680 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3681
3682 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3683 Remove file.
3684 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3685
3686 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3687
3688 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3689 NEARBYINT handling.
3690 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3691 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3692 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3693 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3694 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3695 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3696
3697 2019-05-28 mansayk <6688000@gmail.com>
3698
3699 [BZ #24370]
3700 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3701
3702 2019-05-28 mansayk <6688000@gmail.com>
3703
3704 [BZ #24369]
3705 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3706 (abmon): Likewise, but remove the trailing dots.
3707
3708 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3709
3710 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3711
3712 2019-05-27 Florian Weimer <fweimer@redhat.com>
3713
3714 * nptl/nptl-init.c: Add comment.
3715
3716 2019-05-24 Florian Weimer <fweimer@redhat.com>
3717
3718 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3719 struct in_addr/struct in6_addr alignment.
3720
3721 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3722
3723 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3724 (F_SEAL_FUTURE_WRITE): New macro.
3725
3726 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3727
3728 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3729 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3730 * elf/tst-ldconfig_aux-cache.root: New directory.
3731 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3732 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3733 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3734
3735 2019-05-22 Zack Weinberg <zackw@panix.com>
3736
3737 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3738 host type.
3739 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3740 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3741
3742 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3743 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3744 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3745 Delete.
3746
3747 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3748 Issue an #error if used with a compiler in SPE-float mode.
3749 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3750 * sysdeps/powerpc/powerpc32/setjmp_common.S
3751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3753 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3754 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3755 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3757 Remove code to preserve SPE register state.
3758
3759 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3760 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3761 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3762 Remove __SPE__ ifndefs.
3763
3764 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3765
3766 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3767 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3768 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3769 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3770 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3771 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3772 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3773 (INNER_LOOP_ITERS_MEDIUM): New define.
3774 (INNER_LOOP_ITERS_SMALL): New define.
3775 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3776 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3777 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3778 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3779 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3780
3781 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3782
3783 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3784 New define.
3785 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3786 (SEMTIMEDOP_IPC_ARGS): Likewise.
3787
3788 2019-05-21 Florian Weimer <fweimer@redhat.com>
3789
3790 [BZ #24584]
3791 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3792 before updating __counter field and release it afterwards. Add
3793 overflow check.
3794 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3795 requirement for __counter member.
3796
3797 2019-05-21 Florian Weimer <fweimer@redhat.com>
3798
3799 [BZ #24583]
3800 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3801 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3802 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3803 instead of __gconv_release_step.
3804 * libio/Makefile (tests): Add tst-wfile-gconv.
3805 (tests-container): Add tst-wfile-ascii.
3806 (tst-wfile-gconv-ENV): Enable mtrace.
3807 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3808 (tests-special): Add tst-wfile-gconv-mem.out.
3809 (tst-wfile-gconv.out): Depend on locales.
3810 (tst-wfile-gconv-mem.out): Add mtrace rule.
3811 * libio/tst-wfile-ascii.c: New file.
3812 * libio/tst-wfile-gconv.c: Likewise.
3813
3814 2019-05-20 Florian Weimer <fweimer@redhat.com>
3815
3816 [BZ #24588]
3817 libio: Remove codecvt vtable.
3818 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3819 __libio_codecvt.
3820 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3821 __libio_codecvt_encoding.
3822 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3823 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3824 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3825 * libio/iofwide.c (__libio_codecvt): Remove variable.
3826 (_IO_fwide): Do not copy __libio_codecvt.
3827 (__libio_codecvt_out): Rename from do_out and export.
3828 (do_unshift): Remove function.
3829 (__libio_codecvt_in): Rename from do_in and export.
3830 (__libio_codecvt_encoding): Rename from do_encoding and export.
3831 (do_always_noconv): Remove function.
3832 (__libio_codecvt_length): Rename from do_length and export.
3833 (do_max_length): Remove function.
3834 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3835 to libioP.h.
3836 (struct _IO_codecvt): Remove fields __codecvt_destr,
3837 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3838 __codecvt_do_encoding, __codecvt_do_always_noconv,
3839 __codecvt_do_length, __codecvt_do_max_length.
3840 * libio/libioP.h (enum __codecvt_result): Define; moved from
3841 libio.h.
3842 (__libio_codecvt_out, __libio_codecvt_in)
3843 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3844 functions.
3845 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3846 (_IO_wfile_underflow): Call __libio_codecvt_in.
3847 (_IO_wfile_underflow): Likewise.
3848 (_IO_wfile_underflow_mmap): Likewise.
3849 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3850 __libio_codecvt_length.
3851 (adjust_wide_data): Call __libio_codecvt_encoding,
3852 __libio_codecvt_in.
3853 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3854 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3855 __libio_codecvt_length.
3856
3857 2019-05-20 Florian Weimer <fweimer@redhat.com>
3858
3859 * support/support.h (support_sbindir_prefix): Declare.
3860 (support_install_rootsbindir): Update comment.
3861 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3862 * support/support_paths.c (support_sbindir_prefix): Define.
3863
3864 2019-05-20 Mike Crowe <mac@mcrowe.com>
3865
3866 * support/timespec.c: Add backslash to correct newline in failure
3867 message.
3868
3869 * support/timespec.h: Correct confusing comment.
3870
3871 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3872
3873 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3874 define.
3875 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3876 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3877 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3878 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3879
3880 [BZ #24570]
3881 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3882 usage.
3883
3884 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3885
3886 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3887 (NT_ARM_PACG_KEYS): Likewise.
3888
3889 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3890
3891 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3892 (tcache_put): Remove redundant assert.
3893 (tcache_get): Remove redundant asserts.
3894 (__libc_malloc): Check tcache count is not zero.
3895 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3896
3897 2019-05-17 Florian Weimer <fweimer@redhat.com>
3898
3899 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3900
3901 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3902
3903 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3904 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3905 0x050100].
3906 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3907 Likewise.
3908 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3909 (__ASSUME_STATX): Likewise.
3910
3911 2019-05-16 Florian Weimer <fweimer@redhat.com>
3912
3913 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3914 flags argument.
3915 (LINE_PARSER): Do not map IPv4 addresses.
3916 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3917 to parse_line.
3918 (_nss_nis_gethostent_r): Always pass AF_INET to
3919 internal_nis_gethostent_r.
3920 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3921 to parse_line.
3922 (_nss_nis_gethostbyname2_r): Adjust call to
3923 internal_nis_gethostent_r.
3924 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3925 call to internal_nis_gethostent_r.
3926 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3927 from parse_line.
3928 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3929 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3930 Remove flags argument. Do not map IPv4 addresses.
3931 (internal_nisplus_gethostent_r): Adjust call to
3932 _nss_nisplus_parse_hostent.
3933 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3934 to _nss_nisplus_parse_hostent.
3935 (_nss_nisplus_gethostbyname2_r): Adjust call to
3936 internal_gethostbyname2_r.
3937 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3938 Adjust call to internal_gethostbyname2_r.
3939 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3940 _nss_nisplus_parse_hostent.
3941 (_nss_nisplus_gethostbyname4_r): Adjust call to
3942 internal_gethostbyname2_r.
3943
3944 2019-05-16 Florian Weimer <fweimer@redhat.com>
3945
3946 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3947 Remove flags.
3948 (LINE_PARSER): Remove address mapping.
3949 (EXTRA_ARGS_VALUE): Remove flags argument.
3950 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3951 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3952 gethostbyname3_multi.
3953 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3954 _nss_files_gethostbyname3_r.
3955 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3956
3957 2019-05-16 Florian Weimer <fweimer@redhat.com>
3958
3959 * support/support_test_compare_blob.c (report_blob): Report
3960 incorrect NULL blobs.
3961
3962 2019-05-15 Mark Wielaard <mark@klomp.org>
3963
3964 [BZ# 24476]
3965 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3966 __libc_once_get (once) and static_buf == NULL.
3967 (__dlerror): Check we have a valid key, set result to static_buf
3968 otherwise.
3969
3970 2019-05-15 Andreas Schwab <schwab@suse.de>
3971
3972 [BZ #20568]
3973 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3974 __codecvt_do_length.
3975 * libio/Makefile (tests): Add tst-wfile-sync.
3976 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3977 * libio/tst-wfile-sync.c: New file.
3978 * libio/tst-wfile-sync.input: New file.
3979
3980 2019-05-15 Florian Weimer <fweimer@redhat.com>
3981
3982 nss: Turn __nss_database_lookup into a compatibility symbol.
3983 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3984 __nss_database_lookup.
3985 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3986 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3987 __nss_database_lookup.
3988 (__nss_next): Move to …
3989 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3990 unconditionally.
3991 (__nss_database_lookup): New function.
3992 * nss/Versions (GLIBC_2.0): Update comment.
3993 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3994 * grp/initgroups.c (internal_getgrouplist): Call
3995 __nss_database_lookup2 instead of __nss_database_lookup.
3996 * nscd/aicache.c (addhstaiX): Likewise.
3997 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3998 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3999 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
4000 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
4001 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
4002 Likewise.
4003 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
4004 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
4005 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4006
4007 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
4008
4009 * support/support.h (support_install_rootsbindir): New variable.
4010 * support/support_paths.c: Likewise.
4011 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
4012
4013 2019-05-15 Florian Weimer <fweimer@redhat.com>
4014
4015 * iconv/gconv.h (__gconv_transliterate): Move declaration …
4016 * iconv/gconv_int.h (__gconv_transliterate): … here.
4017 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4018 * iconv/skeleton.c: Likewise.
4019
4020 2019-05-14 Florian Weimer <fweimer@redhat.com>
4021
4022 Linux: Add the tgkill function.
4023 * bits/signal_ext.h: New file.
4024 * manual/signal.texi (Signaling Another Process): Document tgkill.
4025 * signal/Makefile (headers): Add bits/signal_ext.h.
4026 * signal/signal.h: Include <bits/signal_ext.h>.
4027 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4028 (tst-tgkill): Link with libpthread.
4029 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4030 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4031 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4032 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4033 tgkill.
4034 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4035 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4036 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4037 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4038 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4039 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4040 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4041 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4042 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4043 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4044 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4045 Likewise.
4046 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4047 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4048 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4049 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4050 Likewise.
4051 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4052 Likewise.
4053 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4054 Likewise.
4055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4056 Likewise.
4057 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4058 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4059 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4060 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4061 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4062 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4063 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4064 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4065
4066 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4067
4068 * manual/search.texi (Tree Search Function): Adjust twalk_r
4069 documentation.
4070
4071 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4072
4073 [BZ #24544]
4074 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4075 pre-defined value.
4076
4077 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4078 * support/support.h (support_bindir_prefix): New variable.
4079 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4080
4081 * config.make.in (bindir): New variable.
4082
4083 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4084 (lll_trylock): Call __lll_trylock.
4085 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4086 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4087 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4088 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4089 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4090 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4091 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4092 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4093 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4094 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4095 lowlevellock-futex.h.
4096
4097 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4098 initialization for LLL_LOCK_INITIALIZER different than 0.
4099 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4100 Assume LLL_LOCK_INITIALIZER being 0.
4101 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4102 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4103 Likewise.
4104 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4105 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4106
4107 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4108 Optimize futex call and add systemtap probe.
4109
4110 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4111 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4112 __libc_disable_asynccancel, __librt_enable_asynccancel,
4113 __libc_disable_asynccancel, __librt_enable_asynccancel,
4114 __librt_disable_asynccancel): Move to ...
4115 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4116 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4117 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4118 * sysdeps/generic/single-thread.h: New file.
4119 * sysdeps/unix/sysdep.h: Include single-thread.h.
4120 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4121 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4122
4123 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4124
4125 [BZ #24535]
4126 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4127 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4128 Unicode 12.1.0.
4129 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4130 * localedata/unicode-gen/PropList.txt: Likewise.
4131 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4132 * localedata/charmaps/UTF-8: Regenerate.
4133 * localedata/locales/i18n_ctype: Likewise.
4134 * localedata/locales/tr_TR: Likewise.
4135 * localedata/locales/translit_circle: Likewise.
4136 * localedata/locales/translit_cjk_compat: Likewise.
4137 * localedata/locales/translit_combining: Likewise.
4138 * localedata/locales/translit_compat: Likewise.
4139 * localedata/locales/translit_font: Likewise.
4140 * localedata/locales/translit_fraction: Likewise.
4141
4142 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4143
4144 [BZ #24531]
4145 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4146 (do_set_tcache_count): Only update if count is small enough.
4147 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4148
4149 2019-05-10 Florian Weimer <fweimer@redhat.com>
4150
4151 * nptl/sem_close.c (struct walk_closure): Define.
4152 (walker): Adjust for __twalk_r.
4153 (sem_close): Call __twalk_r.
4154
4155 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4156
4157 * support/timespec.c (test_timespec_before_impl,
4158 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4159 insted of long int.
4160
4161 2019-05-09 Mike Crowe <mac@mcrowe.com>
4162
4163 * nptl/tst-abstime.c: Use libsupport.
4164
4165 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4166 small bug where only tv.tv_usec was checked which could cause an
4167 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4168 than a second.
4169
4170 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4171 libsupport.
4172
4173 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4174 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4175
4176 * nptl/tst-cond11.c: Use libsupport.
4177
4178 * support/timespec.h: New file. Provide timespec helper functions
4179 along with macros in the style of those in check.h.
4180 * support/timespec.c: New file. Implement check functions declared
4181 in support/timespec.h.
4182 * support/timespec-add.c: New file from gnulib containing
4183 timespec_add implementation that handles overflow.
4184 * support/timespec-sub.c: New file from gnulib containing
4185 timespec_sub implementation that handles overflow.
4186 * support/README: Mention timespec.h.
4187
4188 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4189
4190 [BZ #24537]
4191 * nptl/Makefile: Move tst-eintr1 to xtests.
4192
4193 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4194
4195 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4196 TRUNC handling.
4197 (round_mode): Add definition for TRUNC.
4198 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4199 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4200 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4201 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4202 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4203 Likewise.
4204 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4205 Likewise.
4206 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4207 Likewise.
4208 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4209 Likewise.
4210 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4211 file.
4212 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4213 Likewise.
4214 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4215 Likewise.
4216 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4217 Likewise.
4218 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4219 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4220 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4221 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4222 s_truncf-power5+, and s_truncf-ppc64.
4223 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4224 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4225 file.
4226 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4228 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4229 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4230 file.
4231 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4232 Likewise.
4233 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4234 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4235 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4236 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4237 s_truncf-power5+, and s_truncf-ppc64.
4238 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4239 file.
4240 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4241 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4242 Likewise.
4243 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4244 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4245 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4246 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4247 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4248
4249 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4250 ROUND handling.
4251 (round_mode): Add definition for ROUND.
4252 (round_to_integer_float): Likewise.
4253 * sysdeps/powerpc/fpu/s_round.c: New file.
4254 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4255 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4256 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4257 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4258 Likewise.
4259 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4260 Likewise.
4261 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4262 Likewise.
4263 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4264 Likewise.
4265 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4266 file.
4267 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4268 Likewise.
4269 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4270 Likewise.
4271 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4272 Likewise.
4273 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4274 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4275 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4276 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4277 s_roundf-power5+, and s_roundf-ppc64.
4278 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4279 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4280 file.
4281 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4283 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4284 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4285 file.
4286 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4287 Likewise.
4288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4289 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4290 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4291 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4292 s_roundf-power5+, and s_roundf-ppc64.
4293 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4294 file.
4295 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4296 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4297 Likewise.
4298 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4299 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4300 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4301 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4302 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4303
4304 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4305 Add FLOOR option.
4306 (round_mode): Add definition for FLOOR.
4307 * sysdeps/powerpc/fpu/s_floor.c: New file.
4308 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4309 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4310 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4311 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4312 Remove file.
4313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4314 Likewise
4315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4316 Likewise.
4317 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4318 Likewise.
4319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4320 New file.
4321 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4322 Likewise.
4323 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4324 Likewise.
4325 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4326 Likewise.
4327 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4328 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4329 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4330 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4331 s_floorf-power5+, and s_floorf-ppc64.
4332 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4333 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4334 file.
4335 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4337 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4338 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4339 file.
4340 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4341 Likewise.
4342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4343 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4344 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4345 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4346 s_floorf-power5+, and s_floorf-ppc64.
4347 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4348 file.
4349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4350 file.
4351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4352 Likewise.
4353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4354 Likewise.
4355 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4356 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4357 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4358 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4359
4360 2019-05-08 Mike Crowe <mac@mcrowe.com>
4361
4362 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4363 clock_gettime wrapper for use in tests that fails the test rather
4364 than returning failure.
4365
4366 * support/xtime.h: New file to declare xclock_gettime.
4367
4368 * support/Makefile: Add xclock_gettime.c.
4369
4370 * support/README: Mention xtime.h.
4371
4372 2019-05-08 Florian Weimer <fweimer@redhat.com>
4373
4374 malloc/tst-mallocfork2: Use process-shared barriers.
4375 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4376 (signal_count, sigusr1_sender_pid): Remove.
4377 (iterations): Define constant.
4378 (shared): New variable.
4379 (sigusr1_received): Update comment.
4380 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4381 (signal_sender): Optional use barriers to avoid sending signals
4382 during irrelevant times.
4383 (do_it): Initialize variable shared. Use xfork for error
4384 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4385 the iteration count, independent of signal delivery. Check for
4386 deadlocks in fork. Introduce barriers for reducing signal
4387 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4388 replaced by the barriers. Count signals during fork/free/malloc
4389 and report them.
4390 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4391
4392 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4393
4394 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4395 version to 5.1.
4396 (clock_adjtime64) New syscall.
4397 (clock_getres_time64) Likewise.
4398 (clock_gettime64) Likewise.
4399 (clock_nanosleep_time64) Likewise.
4400 (clock_settime64) Likewise.
4401 (futex_time64) Likewise.
4402 (io_pgetevents_time64) Likewise.
4403 (io_uring_enter) Likewise.
4404 (io_uring_register) Likewise.
4405 (io_uring_setup) Likewise.
4406 (mq_timedreceive_time64) Likewise.
4407 (mq_timedsend_time64) Likewise.
4408 (pidfd_send_signal) Likewise.
4409 (ppoll_time64) Likewise.
4410 (pselect6_time64) Likewise.
4411 (recvmmsg_time64) Likewise.
4412 (rt_sigtimedwait_time64) Likewise.
4413 (sched_rr_get_interval_time64) Likewise.
4414 (semtimedop_time64) Likewise.
4415 (timer_gettime64) Likewise.
4416 (timer_settime64) Likewise.
4417 (timerfd_gettime64) Likewise.
4418 (timerfd_settime64) Likewise.
4419 (utimensat_time64) Likewise.
4420
4421 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4422 version to 9 branch.
4423
4424 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4425
4426 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4427 __memmove_thunderx2 to the list of implementations
4428 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4429 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4430 (__memmove_thunderx2): Rewritten using SIMD ld/st
4431 (__memcpy_thunderx2): Fixed handling overlapping cases.
4432 Used ldp/stp instead of ldr/str if possible. Made loops
4433 tails branchless.
4434
4435 2019-05-03 Florian Weimer <fweimer@redhat.com>
4436
4437 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4438
4439 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4440
4441 [BZ #24506]
4442 * elf/tst-pldd.c (in_str_list): New function.
4443 (do_test): Add default names for ld and libc as one option.
4444
4445 2019-05-02 Florian Weimer <fweimer@redhat.com>
4446
4447 misc: Add twalk_r function.
4448 * include/search.h (__twalk_r): Declare.
4449 * manual/examples/twalk.c: New file.
4450 * manual/search.texi (Tree Search Function): Document twalk_r.
4451 * misc/Versions (2.30): Export twalk_r.
4452 (GLIBC_PRIVATE): Export __twalk_r.
4453 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4454 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4455 (twalk_r): Add weak alias.
4456 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4457 (walk_trace): New variable.
4458 (struct twalk_with_twalk_r_closure): Define.
4459 (twalk_with_twalk_r_action): New function.
4460 (twalk_with_twalk_r): Likewise.
4461 (walk_action): Call walk_trace_add.
4462 (walk_tree_with): Rename from walk_tree. Add walk argument.
4463 (walk_tree): New function.
4464 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4465 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4466 Likewise.
4467 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4468 Likewise.
4469 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4470 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4471 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4472 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4473 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4474 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4475 Likewise.
4476 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4477 Likewise.
4478 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4479 Likewise.
4480 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4481 (GLIBC_2.30): Likewise.
4482 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4483 (GLIBC_2.30): Likewise.
4484 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4485 (GLIBC_2.30): Likewise.
4486 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4487 (GLIBC_2.30): Likewise.
4488 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4489 Likewise.
4490 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4491 (GLIBC_2.30): Likewise.
4492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4493 (GLIBC_2.30): Likewise.
4494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4495 (GLIBC_2.30): Likewise.
4496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4497 (GLIBC_2.30): Likewise.
4498 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4499 Likewise.
4500 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4501 Likewise.
4502 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4503 Likewise.
4504 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4505 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4506 Likewise.
4507 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4508 Likewise.
4509 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4510 Likewise.
4511 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4512 Likewise.
4513
4514 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4515
4516 Make mktime etc. compatible with __time64_t
4517 Keep these functions compatible with Gnulib while adding
4518 __time64_t support. The basic idea is to move private API
4519 declarations from include/time.h to time/mktime-internal.h, since
4520 the former file cannot easily be shared with Gnulib whereas the
4521 latter can.
4522 Also, do some other minor cleanup while in the neighborhood.
4523 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4524 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4525 since Gnulib needs it.
4526 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4527 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4528 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4529 (in_time_t_range): New static function.
4530 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4531 so that glibc users are not tempted to use __time64_t.
4532 * time/mktime-internal.h: Rewrite so that it does both glibc
4533 and Gnulib work. Include time.h if not _LIBC.
4534 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4535 (__time64_t): New type or macro, moved here from
4536 posix/bits/types.h.
4537 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4538 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4539 from include/time.h.
4540 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4541 New macros, taken from GNulib.
4542 (__mktime_internal): New prototype, moved here from include/time.h.
4543 * time/mktime.c (mktime_min, mktime_max, convert_time)
4544 (ranged_convert, __mktime_internal, __mktime64):
4545 * time/timegm.c (__timegm64):
4546 Use __time64_t, not time_t.
4547 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4548 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4549 Rename from mktime.
4550 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4551 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4552 for libc_hidden_def.
4553 Include errno.h.
4554 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4555 Rename from timegm.
4556 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4557
4558 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4559
4560 [BZ #19444]
4561 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4562 from `-Wmaybe-uninitialized'.
4563 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4564
4565 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4566
4567 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4568 function.
4569 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4570 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4571 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4572 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4573 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4574 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4575 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4576 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4577 Remove file.
4578 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4579 Likewise.
4580 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4581 Likewise.
4582 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4583 Likewise.
4584 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4585 New file.
4586 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4587 Likewise.
4588 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4589 Likewise.
4590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4591 Likewise.
4592 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4593 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4594 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4595 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4596 Likewise.
4597 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4598 Likewise.
4599 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4600 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4601 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4602 file.
4603 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4604 Likewise.
4605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4606 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4607 * here.
4608 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4609 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4610 s_ceilf-power5+, and s_ceilf-ppc64.
4611 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4612 file.
4613 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4614 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4616 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4617 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4618 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4619 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4620
4621 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4622 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4623 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4624
4625 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4626
4627 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4628 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4629 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4630 (sem_getvalue): Likewise.
4631
4632 2019-04-26 Florian Weimer <fweimer@redhat.com>
4633
4634 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4635 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4636
4637 2019-04-26 Florian Weimer <fweimer@redhat.com>
4638
4639 Makeconfig: Move -Wl,-rpath-link options before library references.
4640 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4641 (link-libc): Remove $(link-libc-rpath-link).
4642
4643 2019-04-25 Florian Weimer <fweimer@redhat.com>
4644
4645 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4646 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4647 (+link-static-before-libc): Remove $(CC).
4648 (+link-static, +link-static-tests): Add $(CC).
4649 (+link-before-libc): Remove $(CC).
4650 (+link, +link-pie, +link-pie-printers): Add $(CC).
4651
4652 2019-04-26 Florian Weimer <fweimer@redhat.com>
4653
4654 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4655 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4656 (+link-static-before-libc): Remove $(CC).
4657 (+link-static, +link-static-tests): Add $(CC).
4658 (+link-before-libc): Remove $(CC).
4659 (+link, +link-pie, +link-pie-printers): Add $(CC).
4660
4661 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4662
4663 [BZ#24484]
4664 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4665
4666 2019-04-25 Florian Weimer <fweimer@redhat.com>
4667
4668 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4669 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4670 (bench-link-targets): New variable.
4671 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4672
4673 2019-04-25 Florian Weimer <fweimer@redhat.com>
4674
4675 Also enable BIND_NOW for programs if --enable-bind-now.
4676 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4677 (+link-pie): Use $(link-extra-flags).
4678 (+link-static): Likewise.
4679 [! $(build-pie-default)] (+link): Likewise.
4680 * manual/install.texi (Configuring and compiling): Update
4681 --enable-bind-now description.
4682 * INSTALL: Regenerated.
4683
4684 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4685
4686 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4687 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4688
4689 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4690
4691 [BZ #18465]
4692 * malloc/Makefile (others): Add memusagestat.
4693 ($(objpfx)memusagestat): Delete rule.
4694 (LDLIBS-memusagestat): New variable.
4695
4696 2019-04-24 Florian Weimer <fweimer@redhat.com>
4697
4698 * locale/Makefile (tests-special): Guard setting by
4699 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4700 to run while cross-compiling.
4701
4702 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4703
4704 [BZ #18035]
4705 * elf/Makefile (tests-container): Add tst-pldd.
4706 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4707 (E(find_maps)): Avoid use alloca, use default read file operations
4708 instead of explicit LFS names, and fix infinite loop.
4709 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4710 (get_process_info): Use _Static_assert instead of assert, use default
4711 directory operations instead of explicit LFS names, and free some
4712 leadek pointers.
4713 * elf/tst-pldd.c: New file.
4714
4715 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4716
4717 * malloc/arena.c (do_set_mallopt_check): Removed.
4718
4719 2019-04-23 Florian Weimer <fweimer@redhat.com>
4720
4721 locale: Add LOCPATH diagnostics to the locale program.
4722 * locale/programs/locale.c (setlocale_failed): New variable.
4723 (try_setlocale): New function.
4724 (quote_string): Likewise.
4725 (setlocale_diagnostics): Likewise.
4726 (main): Call try_setlocale instead of setlocale. Call
4727 setlocale_diagnostics.
4728 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4729 (tst-locale-locpath.out): New target.
4730 * locale/tst-locale-locpath.sh: New file.
4731
4732 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4733
4734 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4735 to 2.30 notes.
4736
4737 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4738
4739 [BZ #23741]
4740 * malloc/hooks.c (malloc_check, realloc_check): Use
4741 __builtin_add_overflow on overflow check and adapt to
4742 checked_request2size change.
4743 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4744 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4745 allocation size to PTRDIFF_MAX.
4746 (REQUEST_OUT_OF_RANGE): Remove macro.
4747 (checked_request2size): Change to inline function and limit maximum
4748 requested size to PTRDIFF_MAX.
4749 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4750 maximum allocation size to PTRDIFF_MAX.
4751 (_mid_memalign): Use _int_memalign call for overflow check.
4752 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4753 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4754 limit maximum requested size to PTRDIFF_MAX.
4755 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4756 valloc, pvalloc): Add __attribute_alloc_size__.
4757 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4758 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4759 larger than PTRDIFF_MAX.
4760 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4761 around tests of malloc with negative sizes.
4762 * malloc/tst-posix_memalign.c (do_test): Likewise.
4763 * malloc/tst-pvalloc.c (do_test): Likewise.
4764 * malloc/tst-valloc.c (do_test): Likewise.
4765 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4766 with resulting size allocation larger than PTRDIFF_MAX with
4767 reallocarray_nowarn.
4768 (reallocarray_nowarn): New function.
4769 * NEWS: Mention the malloc function semantic change.
4770
4771 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4772
4773 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4774 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4775
4776 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4777 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4778 * sysdeps/powerpc/fpu/s_fma.c: New file.
4779 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4780
4781 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4782 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4783
4784 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4785 the magic flag store.
4786 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4787 Likewise.
4788 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4789 Likewise.
4790 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4791 Remove rt_sigreturn call.
4792
4793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4794 Remove rt_sigreturn call.
4795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4796 Likewise.
4797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4798 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4799
4800 * support/Makefile (libsupport-routines): Add support_subprocess,
4801 xposix_spawn, xposix_spawn_file_actions_addclose, and
4802 xposix_spawn_file_actions_adddup2.
4803 (tst-support_capture_subprocess-ARGS): New rule.
4804 * support/capture_subprocess.h (support_capture_subprogram): New
4805 prototype.
4806 * support/support_capture_subprocess.c (support_capture_subprocess):
4807 Refactor to use support_subprocess and support_capture_poll.
4808 (support_capture_subprogram): New function.
4809 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4810 str_to_write_mode, test_common, parse_int, handle_restart,
4811 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4812 (do_test): Add support_capture_subprogram tests.
4813 * support/subprocess.h: New file.
4814 * support/support_subprocess.c: Likewise.
4815 * support/xposix_spawn.c: Likewise.
4816 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4817 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4818 * support/xspawn.h: Likewise.
4819
4820 2019-04-17 Mike Gerow <gerow@google.com>
4821
4822 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4823 groups limit.
4824
4825 2019-04-11 Florian Weimer <fweimer@redhat.com>
4826
4827 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4828 domain with empty string.
4829 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4830
4831 2019-04-11 Florian Weimer <fweimer@redhat.com>
4832
4833 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4834 comment.
4835 (alloc_buffer_next): Change return type to non-const. Update
4836 comment.
4837
4838 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4839
4840 * manual/time.texi (Formatting Calendar Time): Add missing percent
4841 sign to conversion specifier.
4842
4843 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4844 Kwok Cheung Yeung <kcy@codesourcery.com>
4845
4846 [BZ #16573]
4847 * malloc/mtrace.c: Define prototypes for all hooks.
4848 (set_default_hooks): New function.
4849 (set_trace_hooks): Likewise.
4850 (save_default_hooks): Likewise.
4851 (tr_freehook): Use new s*_hooks functions.
4852 (tr_mallochook): Likewise.
4853 (tr_reallochook): Likewise.
4854 (tr_memalignhook): Likewise.
4855 (mtrace): Likewise.
4856 (muntrace): Likewise.
4857
4858 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4859
4860 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4861 (generic_stpcpy): New function.
4862 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4863 (generic_stpncpy): New function.
4864 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4865 (generic_strcat): New function.
4866 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4867 (generic_strcpy): New function.
4868 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4869 (STUPID_STRNCAT): Remove function.
4870 (generic_strncat): New function.
4871 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4872 (STUPID_STRNCPY): Remove function.
4873 (generic_strncpy): New function.
4874 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4875 (generic_strnlen): New function.
4876 (memchr_strnlen): New function.
4877 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4878 (memchr_strlen): Likewise.
4879
4880 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4881
4882 * benchtests/bench-strstr.c (input): Add realistic input text.
4883 (stupid_strstr): Remove function.
4884 (basic_strstr): Add function.
4885 (twoway_strstr): Add function.
4886 (do_one_test): Add result checking.
4887 (do_test): Use new input text. Remove accidental early matches.
4888 (test_main): Improve range of tests, reduce unaligned cases.
4889
4890 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4891
4892 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4893 (basic_memmem): Add function.
4894 (twoway_memmem): Add function.
4895
4896 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4897
4898 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4899 * benchtests/bench-malloc-thread.c: Likewise.
4900 * benchtests/bench-skeleton.c: Likewise.
4901 * benchtests/bench-strtod.c: Likewise.
4902 * benchtests/bench-timing.h: Likewise.
4903
4904 2019-04-08 Florian Weimer <fweimer@redhat.com>
4905
4906 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4907 definitions.
4908 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4909 RES_INSECURE2 security checks.
4910 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4911 RES_INSECURE2 handling.
4912
4913 2019-04-08 Florian Weimer <fweimer@redhat.com>
4914
4915 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4916 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4917 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4918 GETHOSTBYNAME.
4919 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4920 (tests-internal): Update justification for tst-resolv-res_init,
4921 tst-resolv-res_init-thread.
4922 (tst-res_use_inet6): Remove target.
4923 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4924 * resolv/res_debug.c (p_option): Remove "inet6" support.
4925 * resolv/res_init.c (res_setoptions): Likewise.
4926 * resolv/res_use_inet6.h: Remove file.
4927 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4928 definition.
4929 (res_use_inet6): Always return false.
4930 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4931 * resolv/resolv_context.h: Adjust file comment.
4932 (struct resolv_context): Update comment on __next field.
4933 (__resolv_context_put): Update comment.
4934 * resolv/tst-res_use_inet6.c: Remove file.
4935 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4936 "inet6" support.
4937 (test_cases): Adjust test case.
4938 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4939 (thread_byname2_af_inet6): Use old byname_inet6 code.
4940 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4941 (gai): Remove do_inet6 argument.
4942 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4943 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4944 (thread_gai_unspec_inet6): Remove functions.
4945 (do_test): Adjust thread_funcs.
4946 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4947 RES_USE_INET6 flag.
4948 (gaih_inet): Do not disable RES_USE_INET6 flag.
4949
4950 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4951
4952 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4953 and remove redundant code.
4954
4955 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4956
4957 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4958 New rule.
4959 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4960 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4961 Likewise.
4962 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4963 Likewise.
4964 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4965 Likewise.
4966 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4967 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4968 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4969 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4970 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4971 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4972 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4973 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4974 wcsrchr-power7.
4975 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4976 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4977 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4978 Remove wcsrchr optimizations.
4979 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4980
4981 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4982 the loop unroll.
4983
4984 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4985 New rule.
4986 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4987 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4988 Likewise.
4989 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4990 Likewise.
4991 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4992 Likewise.
4993 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4994 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4995 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4996 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4997 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4998 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4999 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5000 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
5001 wcschr-power7.
5002 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
5003 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5004 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5005 Remove wcschr optimizations.
5006 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5007
5008 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
5009 the loop unroll.
5010
5011 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
5012 New rule.
5013 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5014 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5015 Likewise.
5016 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5017 Likewise.
5018 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5019 Likewise.
5020 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5021 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5022 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5023 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5024 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5025 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5026 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5027 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5028 wcscpy-power7.
5029 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5030 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5031 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5032 Remove wcscpy optimizations.
5033 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5034
5035 * include/loop_unroll.h: New file.
5036 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5037 besides generic implementation.
5038
5039 2019-04-03 DJ Delorie <dj@redhat.com>
5040
5041 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5042 snprintf truncating output.
5043
5044 2019-04-02 DJ Delorie <dj@redhat.com>
5045
5046 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5047 warning.
5048
5049 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5050
5051 [BZ #22964]
5052 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5053 era.
5054 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5055 (mkreftable): Add rules for the new Japanese era and the new dates.
5056
5057 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5058 Rafał Lużyński <digitalfreak@lingonborough.com>
5059
5060 * time/tst-strftime2.c (date_t): Explicitly define the type.
5061 (dates): Use natural month and year numbers to express a date.
5062 (is_before): New function to compare dates.
5063 (mkreftable): Minor improvements to simplify maintenance.
5064 (do_test): Reflect the changes in dates array.
5065
5066 [BZ #24293]
5067 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5068 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5069 * time/tst-strftime2.c (locales): Likewise.
5070 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5071 2010-04-01, and 2011-04-01.
5072 (mkreftable): Add rules for the new locales and the new dates.
5073
5074 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5075
5076 * localedata/locales/ja_JP: Add comments to era entries.
5077
5078 2019-04-01 DJ Delorie <dj@redhat.com>
5079
5080 [BZ #24394]
5081 * time/strptime_l.c (%Ey): Fix fencepost error.
5082 * time/tst-strftime3.c: New.
5083 * time/Makefile (tests): Add tst-strftime3.
5084
5085 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
5086
5087 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5088 conditional branch to DIVBYZERO. Fix unwind info.
5089 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5090 excb after conditional branch to $powerof2. Add missing unop
5091 instructions and .align directives and reorder instructions to
5092 match __divqu.
5093
5094 2019-04-01 Richard Henderson <rth@twiddle.net>
5095
5096 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5097 Do not redefine.
5098 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5099 Do not redefine.
5100
5101 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5102
5103 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5104 $libc_cv_riscv_float_abi in `test' invocation.
5105 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5106
5107 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5108
5109 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5110 asm with builtin.
5111 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5112 Likewise.
5113 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5114 (_GET_SI_FPSCR): Likewise.
5115 (_SET_SI_FPSCR): Likewise.
5116
5117 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5118
5119 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5120 clang 2.8.
5121 (signbit): Use builtin for clang 3.3.
5122 (isinf): Use builtin for clang 3.7.
5123
5124 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5125
5126 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5127
5128 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5129
5130 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5131 quote in printf.
5132
5133 2019-03-25 Mike Crowe <mac@mcrowe.com>
5134
5135 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5136 pthread_rwlock_timedrdlock with calls to
5137 pthread_rwlock_timedwrlock to ensure that the latter is tested
5138 too. Use new function name in diagnostic messages too.
5139
5140 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5141 (do_test) Use libsupport test macros rather than hand-coded
5142 conditionals and error messages. Ensure that sem_init returns zero
5143 rather than not -1. Use <support/test-driver.c> rather than
5144 test-skeleton.c.
5145
5146 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5147 test macros rather than hand-coded conditionals and error messages.
5148 Use <support/test-driver.c> rather than test-skeleton.c.
5149
5150 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5151
5152 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5153
5154 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5155 (NT_MIPS_MSA): Likewise.
5156
5157 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5158
5159 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5160 * benchtests/README: Update description.
5161 * benchtests/bench-timing.h: Default to hp-timing.
5162 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5163 HP_TIMING_PRINT): Remove.
5164 (HP_TIMING_NOW): Add generic implementation.
5165 (hp_timing_t): Change to uint64_t.
5166
5167 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5168 HP_TIMING_INLINE.
5169 * nptl/descr.h: Likewise.
5170 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5171 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5172 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5173 Abstract hp-timing usage with RTLD_* macros.
5174 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5175 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5176 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5177 HP_TIMING_NONAVAIL): Likewise.
5178 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5179 Likewise.
5180 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5181 HP_SMALL_TIMING_AVAIL): Likewise.
5182 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5183 HP_SMALL_TIMING_AVAIL): Likewise.
5184 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5185 HP_SMALL_TIMING_AVAIL): Likewise.
5186 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5187 HP_SMALL_TIMING_AVAIL): Likewise.
5188 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5189 Likewise.
5190 * sysdeps/generic/hp-timing-common.h: Update comment with
5191 HP_TIMING_AVAIL removal.
5192
5193 * include/random-bits.h: New file.
5194 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5195 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5196 random_bits.
5197 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5198 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5199 Likewise.
5200
5201 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5202 * rt/Makefile (clock-routines): Remove get_clockfreq.
5203 * rt/get_clockfreq.c: Remove file.
5204 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5205 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5206 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5207 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5208 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5209
5210 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5211 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5212 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5213 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5214 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5215
5216 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5217 pthread_clock_settime.
5218 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5219 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5220 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5221 * elf/rtld.c (_dl_start_final): Likewise.
5222 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5223 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5224 Remove.
5225 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5226 (_dl_cpuclock_offset): Remove.
5227 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5228 cpuclock_offset_ununsed.
5229 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5230 cpuclock_offset set.
5231 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5232 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5233 * nptl/pthread_clock_gettime.c: Remove file.
5234 * nptl/pthread_clock_settime.c: Likewise.
5235 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5236 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5237 and CLOCK_PROCESS_CPUTIME_ID support.
5238 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5239 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5240 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5241 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5242 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5243 Likewise.
5244 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5245
5246 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5247
5248 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5249 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5250 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5251 New defines.
5252 * sysdeps/s390/memmem-arch13.S: New file.
5253 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5254 if it is only used as fallback.
5255 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5256 * sysdeps/s390/multiarch/ifunc-impl-list.c
5257 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5258
5259 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5260
5261 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5262 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5263 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5264 New defines.
5265 * sysdeps/s390/multiarch/ifunc-impl-list.c
5266 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5267 * sysdeps/s390/strstr-arch13.S: New file.
5268 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5269 if it is only used as fallback.
5270 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5271
5272 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5273
5274 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5275 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5276 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5277 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5278 ifunc selector.
5279 * sysdeps/s390/multiarch/ifunc-impl-list.c
5280 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5281 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5282 S390_IS_ARCH13_MIE3): New defines.
5283
5284 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5285
5286 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5287 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5288 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5289 * sysdeps/s390/configure: Regenerated.
5290
5291 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5292
5293 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5294 Add vxe2, vxp, dflt, sort flags.
5295 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5296 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5297 capabilities.
5298 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5299 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5300 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5301 HWCAP_S390_DFLT): Define.
5302
5303 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5304
5305 [BZ #24372]
5306 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5307 of compiler warning.
5308 * locale/programs/ld-collate.c (collate_output): Likewise.
5309
5310 2019-03-21 DJ Delorie <dj@redhat.com>
5311
5312 [BZ #24372]
5313 * iconv/iconvconfig.c (write_output): Replace floating point math
5314 with integer math to avoid imprecise results.
5315 * locale/programs/ld-collate.c (collate_output): Likewise.
5316
5317 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5318
5319 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5320 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5321
5322 2019-03-20 mansayk <6688000@gmail.com>
5323
5324 [BZ #24296]
5325 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5326 (abday): Likewise, but remove the trailing dots.
5327
5328 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5329
5330 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5331 macro.
5332 (HWCAP_PACA): Likewise.
5333 (HWCAP_PACG): Likewise.
5334 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5335 Increase to 32.
5336 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5337
5338 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5339
5340 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5341 should be handled.
5342
5343 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5344
5345 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5346 version to 5.0.
5347 (old_getpagesize): New syscall.
5348
5349 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5350
5351 [BZ #24293]
5352 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5353 * localedata/locales/cmn_TW (era): Likewise.
5354 * localedata/locales/hak_TW (era): Likewise.
5355 * localedata/locales/lzh_TW (era): Likewise.
5356 * localedata/locales/nan_TW (era): Likewise.
5357
5358 2019-03-14 Adam Maris <amaris@redhat.com>
5359
5360 * malloc/malloc.c (_int_malloc): Check for large bin list
5361 corruption when inserting unsorted chunk.
5362
5363 2019-03-14 Florian Weimer <fweimer@redhat.com>
5364
5365 Remove obsolete, never-implemented XSI STREAMS declarations.
5366 * manual/terminal.texi (Allocation): Remove portability note and
5367 adjust example.
5368 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5369 _SC_STREAMS.
5370 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5371 * sysdeps/unix/inet/Subdirs (streams): Remove.
5372 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5373 (conformtest-headers-UNIX98): Likewise.
5374 (conformtest-headers-XOPEN2K): Likewise.
5375 (conformtest-headers-POSIX2008): Likewise.
5376 * posix/compat-streams.c: New file.
5377 * posix/Makefile (routines): Add it.
5378 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5379 getpmsg, isastream, putmsg, putpmsg.
5380 (GLIBC_2.30): New section.
5381 * bits/stropts.h: Remove file.
5382 * bits/xtitypes.h: Likewise.
5383 * conform/data/stropts.h-data: Likewise.
5384 * include/stropts.h: Likewise.
5385 * include/sys/stropts.h: Likewise.
5386 * include/xtitypes.h: Likewise.
5387 * streams/Makefile: Likewise.
5388 * streams/fattach.c: Likewise.
5389 * streams/fdetach.c: Likewise.
5390 * streams/getmsg.c: Likewise.
5391 * streams/getpmsg.c: Likewise.
5392 * streams/isastream.c: Likewise.
5393 * streams/putmsg.c: Likewise.
5394 * streams/putpmsg.c: Likewise.
5395 * streams/stropts.h: Likewise.
5396 * streams/sys/stropts.h: Likewise.
5397 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5398 * sysdeps/s390/bits/xtitypes.h: Likewise.
5399 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5400 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5401 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5402 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5403 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5404 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5405 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5406 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5407 * sysdeps/x86/bits/xtitypes.h: Likewise.
5408
5409 2019-03-14 Florian Weimer <fweimer@redhat.com>
5410
5411 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5412 libnss_files.
5413 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5414 but not with libnss_files.
5415 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5416
5417 2019-03-14 Zack Weinberg <zackw@panix.com>
5418
5419 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5420 Specify encoding="utf-8" when opening headers to check.
5421
5422 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5423
5424 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5425 version to 5.0.
5426 (Context.checkout_tar): Handle variable major version for Linux
5427 kernel.
5428
5429 2019-03-13 Florian Weimer <fweimer@redhat.com>
5430
5431 [BZ #24047]
5432 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5433
5434 2019-03-13 Zack Weinberg <zackw@panix.com>
5435
5436 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5437 Move to stdlib.
5438 * include/inttypes.h: Adjust to match.
5439 * include/stdint.h: New wrapper.
5440
5441 2019-03-13 Zack Weinberg <zackw@panix.com>
5442
5443 * scripts/check-obsolete-constructs.py: New test script.
5444 * scripts/check-installed-headers.sh: Remove tests for
5445 obsolete typedefs, superseded by check-obsolete-constructs.py.
5446 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5447 as a special test. Update commentary.
5448 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5449 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5450 Update commentary.
5451 * posix/sys/types.h (__u_intN_t): Remove.
5452 (u_int8_t): Typedef using __uint8_t.
5453 (u_int16_t): Typedef using __uint16_t.
5454 (u_int32_t): Typedef using __uint32_t.
5455 (u_int64_t): Typedef using __uint64_t.
5456
5457 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5458
5459 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5460 call _dl_procinfo.
5461 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5462 Ignore types other than AT_HWCAP.
5463 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5464 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5465 Likewise.
5466 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5467 in the case of falling back to generic output mechanism.
5468 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5469 Likewise.
5470
5471 2019-03-12 Florian Weimer <fweimer@redhat.com>
5472
5473 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5474
5475 2019-03-12 Florian Weimer <fweimer@redhat.com>
5476
5477 [BZ #24047]
5478 resolv: Enable full ICMP errors for UDP DNS sockets
5479 * resolv/res_enable_icmp.c: New file.
5480 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5481 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5482 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5483 socket.
5484
5485 2019-03-11 Mao Han <han_mao@c-sky.com>
5486
5487 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5488 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5489
5490 2019-03-11 Mao Han <han_mao@c-sky.com>
5491
5492 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5493 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5494 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5495
5496 2019-03-11 Mao Han <han_mao@c-sky.com>
5497
5498 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5499 directly.
5500 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5501 definition.
5502
5503 2019-03-11 Mao Han <han_mao@c-sky.com>
5504
5505 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5506 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5507 in mcontext_t
5508
5509 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5510
5511 [BZ #24307]
5512 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5513 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5514 Unicode 12.0.0.
5515 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5516 * localedata/unicode-gen/PropList.txt: Likewise.
5517 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5518 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5519 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5520 * localedata/charmaps/UTF-8: Regenerate.
5521 * localedata/locales/i18n_ctype: Likewise.
5522 * localedata/locales/tr_TR: Likewise.
5523 * localedata/locales/translit_circle: Likewise.
5524 * localedata/locales/translit_cjk_compat: Likewise.
5525 * localedata/locales/translit_combining: Likewise.
5526 * localedata/locales/translit_compat: Likewise.
5527 * localedata/locales/translit_font: Likewise.
5528 * localedata/locales/translit_fraction: Likewise.
5529
5530 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5531
5532 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5533 than after operators.
5534 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5535 (setitimer_locked): Likewise.
5536 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5537 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5538 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5539 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5540 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5541 (PPC_CPU_SUPPORTED): Likewise.
5542 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5543 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5544 (stat_overflow): Likewise.
5545 (statfs_overflow): Likewise.
5546 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5547 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5548 (eq_ttyname_r): Likewise.
5549 (run_chroot_tests): Likewise.
5550
5551 2019-03-07 Florian Weimer <fweimer@redhat.com>
5552
5553 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5554 header check.
5555
5556 2019-03-07 Martin Liska <mliska@suse.cz>
5557
5558 * math/Makefile: Change location where math-vector-fortran.h is
5559 installed.
5560 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5561 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5562 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5563 * scripts/check-installed-headers.sh: Skip Fortran header files.
5564 * scripts/check-wrapper-headers.py: Likewise.
5565
5566 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5567
5568 * nptl/nptl-init.c (__have_futex_clock_realtime,
5569 __have_futex_clock_realtime): Remove definition.
5570 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5571 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5572 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5573 __ASSUME_FUTEX_CLOCK_REALTIME support.
5574 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5575 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5576 * sysdeps/unix/sysv/linux/kernel-features.h
5577 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5578 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5579 Adjust comment.
5580
5581 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5582
5583 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5584 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5585 __GI___wcscpy and wcscpy.
5586
5587 2019-03-04 Florian Weimer <fweimer@redhat.com>
5588
5589 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5590 declaration.
5591 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5592 defined.
5593
5594 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5595
5596 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5597 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5598
5599 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5600
5601 [BZ #24162]
5602 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5603 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5604
5605 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5606
5607 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5608 tests.
5609 (do_test): Likewise.
5610 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5611 (do_test_call_varg): Likewise.
5612 (do_test_call_rarg): Likewise.
5613 * sysdeps/ieee754/ldbl-opt/Makefile
5614 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5615 tst-nldbl-error.
5616 ($(objpfx)tst-nldbl-warn.c): New rule.
5617 ($(objpfx)tst-nldbl-error.c): Likewise.
5618 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5619 New variables.
5620
5621 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5622
5623 [BZ #23984]
5624 * include/bits/error-ldbl.h: New file.
5625 * include/error.h: Include stdarg.h. Declare internal functions
5626 __error_internal and __error_at_line_internal.
5627 * misc/Makefile (headers): Add bits/error-ldbl.h.
5628 * misc/bits/error-ldbl.h: New file.
5629 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5630 avoid the inclusion of bits/error.h.
5631 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5632 and __nldbl_error_at_line.
5633 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5634 (__nldbl_error, __ndlbl_error_at_line): New functions.
5635 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5636 Redirect error and error_at_line.
5637 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5639 Likewise.
5640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5641 Likewise.
5642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5643 Likewise.
5644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5645 Likewise.
5646 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5647 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5648 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5649
5650 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5651
5652 [BZ #23984]
5653 * include/bits/err-ldbl.h: New file.
5654 * include/err.h: Add prototypes for the internal functions:
5655 __vwarnx_internal and __vwarn_internal.
5656 * misc/Makefile (headers): Add bits/err-ldbl.h.
5657 * misc/bits/err-ldbl.h: New file.
5658 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5659 defined, i.e.: when -mlong-double-64 is in use.
5660 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5661 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5662 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5663 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5664 (VA_CALL): New macro.
5665 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5666 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5667 functions.
5668 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5669 declare prototypes for the new functions.
5670 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5672 Likewise.
5673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5674 Likewise.
5675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5676 Likewise.
5677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5678 Likewise.
5679 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5680 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5681 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5682
5683 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5684
5685 * sysdeps/ieee754/ldbl-opt/Makefile
5686 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5687 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5688 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5689
5690 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5691
5692 [BZ #23983]
5693 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5694 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5695 * argp/bits/argp-ldbl.h: New file.
5696 * include/argp.h: Include stdarg.h. Add prototypes for internal
5697 functions: __argp_error_internal and __argp_failure_internal.
5698 * include/bits/argp-ldbl.h: New file.
5699 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5700 __nldbl_argp_error and __nldbl_argp_failure.
5701 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5702 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5703 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5704 Redirect argp_error and argp_failure calls.
5705 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5707 Likewise.
5708 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5709 Likewise.
5710 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5711 Likewise.
5712 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5713 Likewise.
5714 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5715 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5716 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5717
5718 2019-03-01 Florian Weimer <fweimer@redhat.com>
5719
5720 [BZ #20419]
5721 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5722 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5723 code, to avoid creating an ABI tag note.
5724 (modules-names-nobuild): Add tst-big-note-lib.
5725
5726 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5727
5728 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5729 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5730
5731 2019-03-01 Florian Weimer <fweimer@redhat.com>
5732
5733 [BZ #20271]
5734 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5735 (__netlink_assert_response): Add additional missing newlines.
5736
5737 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5738
5739 * sysdeps/powerpc/powerpc32/dl-machine.c
5740 (__elf_machine_fixup_plt): Use space before '('.
5741 (__process_machine_rela): Likewise.
5742 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5743 Likewise.
5744 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5745 Likewise.
5746 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5747 Likewise.
5748 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5749 (pattern): Likewise.
5750 (delta): Likewise.
5751 (check_result): Likewise.
5752 (check_excepts): Likewise.
5753 (check_op): Likewise.
5754 (fail_xr): Likewise.
5755 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5756 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5757 (SCNHSZ): Likewise.
5758 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5759 Likewise.
5760 (ARGS): Likewise.
5761 (__makecontext): Likewise.
5762 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5763 Likewise.
5764
5765 2019-02-28 Florian Weimer <fweimer@redhat.com>
5766
5767 [BZ #23937]
5768 elf: Add test with a local IFUNC resolver.
5769 * elf/ifuncmain9.c: New file.
5770 * elf/ifuncmain9pic.c: Likewise.
5771 * elf/ifuncmain9picstatic.c: Likewise.
5772 * elf/ifuncmain9pie.c: Likewise.
5773 * elf/ifuncmain9static.c: Likewise.
5774 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5775 ifuncmain9static, ifuncmain9picstatic.
5776 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5777 Add ifuncmain9, ifuncmain9pic.
5778 * elf/Makefile [multi-arch && build-shared && have-fpie]
5779 (ifunc-pie-tests): Add ifuncmain9pie.
5780 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5781 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5782 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5783
5784 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5785
5786 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5787 * configure: Regenerated.
5788 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5789
5790 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5791
5792 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5793 symbol as __wcspcy instead of wcscpy.
5794
5795 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5796
5797 * include/stdio.h (__renameat2): New hidden prototype.
5798 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5799 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5800 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5801 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5802
5803 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5804
5805 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5806 if statement.
5807
5808 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5809 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5810 * benchtests/bench-strlen.c (do_test): Likewise.
5811 (test_main): Likewise.
5812 * catgets/gencat.c (read_old): Likewise.
5813 * elf/cache.c (load_aux_cache): Likewise.
5814 * iconvdata/bug-iconv8.c (do_test): Likewise.
5815 * math/test-tgmath-ret.c (do_test): Likewise.
5816 * nis/nis_call.c (rec_dirsearch): Likewise.
5817 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5818 * nptl/tst-audit-threads.c (do_test): Likewise.
5819 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5820 * nss/nss_test1.c (init): Likewise.
5821 * nss/test-netdb.c (test_hosts): Likewise.
5822 * posix/execvpe.c (maybe_script_execute): Likewise.
5823 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5824 * stdio-common/tst-printf.c (do_test): Likewise.
5825 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5826 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5827 * stdlib/qsort.c (STACK_SIZE): Likewise.
5828 * stdlib/test-canon.c (do_test): Likewise.
5829 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5830 * string/memcmp.c (OPSIZ): Likewise.
5831 * string/test-strcpy.c (do_test): Likewise.
5832 (do_random_tests): Likewise.
5833 * string/test-strlen.c (do_test): Likewise.
5834 (test_main): Likewise.
5835 * string/test-strrchr.c (do_test): Likewise.
5836 (do_random_tests): Likewise.
5837 * string/tester.c (test_memrchr): Likewise.
5838 (test_memchr): Likewise.
5839 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5840 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5841 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5842 (read_encoded_value_with_base): Likewise.
5843 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5844 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5845 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5846 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5847 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5848 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5849 Likewise.
5850 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5851 Likewise.
5852 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5853 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5854 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5855 Likewise.
5856 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5857 Likewise.
5858 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5859 Likewise.
5860 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5861 Likewise.
5862 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5863 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5864 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5865 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5866 * time/test_time.c (main): Likewise.
5867
5868 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5869
5870 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5871
5872 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5873 wmemcpy.
5874
5875 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5876 wmemcpy.
5877
5878 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5879
5880 * include/wchar.h (__wcscpy): New prototype.
5881 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5882 (__wcscpy): Route internal symbol to generic implementation.
5883 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5884 Add internal __wcscpy alias.
5885 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5886 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5887 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5888 * wcsmbs/wcscpy.c (wcscpy): Add
5889 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5890 use generic implementation.
5891 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5892
5893 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5894 wmemset.
5895
5896 * sysdeps/m68k/wcpcpy.c: Remove file.
5897 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5898
5899 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5900
5901 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5902 than after operators.
5903 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5904 * sysdeps/mach/hurd/getcwd.c
5905 (__hurd_canonicalize_directory_name_internal): Likewise.
5906 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5907 (pthread_mutex_consistent): Likewise.
5908 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5909 Likewise.
5910 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5911 (__pthread_mutex_transfer_np): Likewise.
5912 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5913 (__pthread_mutex_unlock): Likewise.
5914 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5915 (mtx_owned_p): Likewise.
5916 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5917 (pthread_mutexattr_getrobust): Likewise.
5918 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5919 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5920 Likewise.
5921 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5922 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5923 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5924 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5925 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5926 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5927 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5928 Likewise.
5929 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5930 Likewise.
5931 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5932 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5933 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5934 (____longjmp_chk): Likewise.
5935 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5936 Likewise.
5937 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5938 (INTERNAL_SYSCALL): Likewise.
5939 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5940 (INTERNAL_SYSCALL): Likewise.
5941 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5942 (__get_clockfreq_via_cpuinfo): Likewise.
5943
5944 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5945 comments.
5946 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5947 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5948 (WORD_COPY_BWD): Likewise.
5949 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5950 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5951 Likewise.
5952 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5953 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5954 comment.
5955 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5956
5957 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5958
5959 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5960 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5961 rather than after operators.
5962 * elf/cache.c (print_cache): Likewise.
5963 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5964 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5965 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5966 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5967 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5968 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5969 (reauth_proc): Likewise.
5970 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5971 (__file_name_split_at): Likewise.
5972 (__directory_name_split_at): Likewise.
5973 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5974 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5975 * iconv/gconv_dl.c (do_print): Likewise.
5976 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5977 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5978 * locale/setlocale.c (new_composite_name): Likewise.
5979 * malloc/memusagestat.c (main): Likewise.
5980 * misc/fstab.c (fstab_convert): Likewise.
5981 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5982 Likewise.
5983 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5984 (getgrent_next_file): Likewise.
5985 (internal_getgrnam_r): Likewise.
5986 (internal_getgrgid_r): Likewise.
5987 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5988 Likewise.
5989 (internal_getgrent_r): Likewise.
5990 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5991 (getpwent_next_nss): Likewise.
5992 (getpwent_next_file): Likewise.
5993 (internal_getpwnam_r): Likewise.
5994 (internal_getpwuid_r): Likewise.
5995 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5996 Likewise.
5997 (getspent_next_nss): Likewise.
5998 (internal_getspnam_r): Likewise.
5999 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
6000 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
6001 * string/strchr.c (STRCHR): Likewise.
6002 * string/strchrnul.c (STRCHRNUL): Likewise.
6003 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
6004 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6005 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
6006 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
6007 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
6008 Likewise.
6009 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
6010 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6011 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6012 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
6013 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6014 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6015 (open_file): Likewise.
6016 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6017 (pthread_mutexattr_setprotocol): Likewise.
6018 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6019 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6020 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6021 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6022 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6023 Likewise.
6024 (elf_machine_rela): Likewise.
6025 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6026 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6027 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6028 * sysdeps/posix/rename.c (rename): Likewise.
6029 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6030 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6031 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6032 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6033 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6034 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6035 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6036 Likewise.
6037 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6038 Likewise.
6039 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6040 * time/tzfile.c (__tzfile_compute): Likewise.
6041
6042 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6043
6044 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6045 rather than after operators.
6046 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6047 * crypt/md5.c (md5_finish_ctx): Likewise.
6048 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6049 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6050 * elf/cache.c (load_aux_cache): Likewise.
6051 * elf/dl-load.c (open_verify): Likewise.
6052 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6053 * elf/readelflib.c (process_elf_file): Likewise.
6054 * elf/rtld.c (dl_main): Likewise.
6055 * elf/sprof.c (generate_call_graph): Likewise.
6056 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6057 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6058 * hurd/dtable.c (reauth_dtable): Likewise.
6059 * hurd/getdport.c (__getdport): Likewise.
6060 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6061 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6062 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6063 Likewise.
6064 * hurd/hurdioctl.c (fioctl): Likewise.
6065 * hurd/hurdselect.c (_hurd_select): Likewise.
6066 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6067 (STOPSIGS): Likewise.
6068 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6069 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6070 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6071 * hurd/msgportdemux.c (msgport_server): Likewise.
6072 * hurd/setauth.c (_hurd_setauth): Likewise.
6073 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6074 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6075 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6076 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6077 * login/tst-utmp.c (do_check): Likewise.
6078 (simulate_login): Likewise.
6079 * mach/lowlevellock.h (lll_lock): Likewise.
6080 (lll_trylock): Likewise.
6081 * math/test-fenv.c (ALL_EXC): Likewise.
6082 * math/test-fenvinline.c (ALL_EXC): Likewise.
6083 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6084 * nis/nis_call.c (__do_niscall3): Likewise.
6085 * nis/nis_callback.c (cb_prog_1): Likewise.
6086 * nis/nis_defaults.c (searchaccess): Likewise.
6087 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6088 * nis/nis_ismember.c (internal_ismember): Likewise.
6089 * nis/nis_local_names.c (nis_local_principal): Likewise.
6090 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6091 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6092 Likewise.
6093 * nis/ypclnt.c (yp_match): Likewise.
6094 (yp_first): Likewise.
6095 (yp_next): Likewise.
6096 (yp_master): Likewise.
6097 (yp_order): Likewise.
6098 * nscd/hstcache.c (cache_addhst): Likewise.
6099 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6100 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6101 (internal_getpwuid_r): Likewise.
6102 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6103 * posix/glob.h (__GLOB_FLAGS): Likewise.
6104 * posix/regcomp.c (peek_token): Likewise.
6105 (peek_token_bracket): Likewise.
6106 (parse_expression): Likewise.
6107 * posix/regexec.c (sift_states_iter_mb): Likewise.
6108 (check_node_accept_bytes): Likewise.
6109 * posix/tst-spawn3.c (do_test): Likewise.
6110 * posix/wordexp-test.c (testit): Likewise.
6111 * posix/wordexp.c (parse_tilde): Likewise.
6112 (exec_comm): Likewise.
6113 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6114 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6115 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6116 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6117 * stdio-common/tst-fileno.c (do_test): Likewise.
6118 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6119 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6120 * stdlib/strtod_l.c (round_and_return): Likewise.
6121 (____STRTOF_INTERNAL): Likewise.
6122 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6123 * string/strcspn.c (STRCSPN): Likewise.
6124 * string/test-memmem.c (simple_memmem): Likewise.
6125 * termios/tcsetattr.c (tcsetattr): Likewise.
6126 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6127 * time/asctime.c (asctime_internal): Likewise.
6128 * time/strptime_l.c (__strptime_internal): Likewise.
6129 * time/sys/time.h (timercmp): Likewise.
6130 * time/tzfile.c (__tzfile_compute): Likewise.
6131
6132 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6133
6134 [BZ #21915]
6135 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6136
6137 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6138
6139 * argp/argp-help.c (__argp_error_internal): New function,
6140 renamed from __argp_error, but that takes a 'mode_flags'
6141 parameter to control the format of long double parameters.
6142 (__argp_error): Converted into a call __argp_error_internal.
6143 (__argp_failure_internal): New function, renamed from
6144 __argp_failure, but that takes a 'mode_flags' parameter.
6145 (__argp_failure): Converted into a call __argp_failure_internal.
6146 * misc/err.c (__vwarnx_internal): New function, renamed from
6147 vwarnx, but that takes a 'mode_flags' parameter.
6148 (vwarnx): Converted into a call to __vwarnx_internal.
6149 (__vwarn_internal): New function, renamed from vwarn, but that
6150 takes a 'mode_flags' parameter.
6151 (vwarn): Converted into a call to __vwarn_internal.
6152 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6153 call to __vfxprintf with 'mode_flags'.
6154 (__error_internal): New function, renamed from error, but that
6155 takes a 'mode_flags' parameter.
6156 (error): Converted into a call to __error_internal.
6157 (__error_at_line_internal): New function, renamed from
6158 error_at_line, but that takes a 'mode_flags' parameter.
6159 (error_at_line): Converted into a call to
6160 __error_at_line_internal.
6161 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6162 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6163 Likewise.
6164
6165 2019-02-20 Martin Liska <mliska@suse.cz>
6166
6167 * math/Makefile: Install math-vector-fortran.h.
6168 * bits/math-vector-fortran.h: New file.
6169 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6170
6171 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6172
6173 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6174 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6175
6176 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6177
6178 * nptl/pthread_mutex_trylock.c: Fix comment.
6179
6180 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6181
6182 * nptl/pthread_tryjoin.c: Fix comment.
6183
6184 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6185
6186 [BZ #24231]
6187 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6188 after R_SPARC_H34 case.
6189
6190 2019-02-18 Florian Weimer <fweimer@redhat.com>
6191
6192 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6193 (getanswer): Do not call Dprintf.
6194 (res_gethostbyname2_context): Likewise.
6195 (res_gethostbyaddr_context): Likewise.
6196
6197 2019-02-18 Florian Weimer <fweimer@redhat.com>
6198
6199 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6200 declaration.
6201 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6202 Remove definitions.
6203 * libio/stdfiles.c: Update comment.
6204 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6205 set _IO_stdin, _IO_stdout, _IO_stderr.
6206 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6207 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6208 inline function.
6209 (_IO_deallocate_file): New inline function.
6210 * libio/iolibio.h (_IO_vprintf): Remove definition.
6211 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6212 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6213 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6214 _IO_legacy_file.
6215 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6216 __builtin_expect. Use _IO_legacy_file.
6217
6218 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6219
6220 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6221 Initialize ctid with a known value and remove update of ctid
6222 after clone.
6223 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6224 as assumed current value of ctid_ptr.
6225
6226 2019-02-16 Florian Weimer <fweimer@redhat.com>
6227
6228 Check that non-sysdeps headers have wrapper headers.
6229 * scripts/check-wrapper-headers.py: New file.
6230 * Makefile (tests-special): Add check-wrapper-headers.out.
6231 (check-wrapper-headers.out): New target.
6232 * Rules (tests-special): Add check-wrapper-headers.out.
6233 (check-wrapper-headers.out): New target.
6234
6235 2019-02-16 Florian Weimer <fweimer@redhat.com>
6236
6237 Add missing header wrappers under include/.
6238 * include/ar.h: New file.
6239 * include/bits/mqueue2.h: Likewise.
6240 * include/bits/stdio.h: Likewise.
6241 * include/bits/stdio2.h: Likewise.
6242 * include/fstab.h: Likewise.
6243 * include/fts.h: Likewise.
6244 * include/lastlog.h: Likewise.
6245 * include/netinet/icmp6.h: Likewise.
6246 * include/netinet/igmp.h: Likewise.
6247 * include/netinet/ip6.h: Likewise.
6248 * include/re_comp.h: Likewise.
6249 * include/regexp.h: Likewise.
6250 * include/rpcsvc/bootparam.h: Likewise.
6251 * include/rpcsvc/yp_prot.h: Likewise.
6252 * include/sys/random.h: Likewise.
6253 * include/sys/stropts.h: Likewise.
6254 * include/sys/ttychars.h: Likewise.
6255 * include/sys/vfs.h: Likewise.
6256 * include/wait.h: Likewise.
6257
6258 2019-02-16 Florian Weimer <fweimer@redhat.com>
6259
6260 * nptl_db/proc_service.h: Move to ...
6261 * sysdeps/nptl/proc_service.h: ... here.
6262 * nptl_db/thread_db.h: Move to ...
6263 * sysdeps/nptl/thread_db.h: ... here.
6264 * nptl/descr.h: Include <thread_db.h>.
6265
6266 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6267
6268 * io/Makefile (tests): Add tst-lockf.
6269 * io/lockf.c (lockf): Use __fcntl and only define for
6270 !__OFF_T_MATCHES_OFF64_T.
6271 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6272 __OFF_T_MATCHES_OFF64_T case.
6273 * io/tst-lockf.c: New file.
6274 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6275 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6276 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6277 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6278 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6280 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6281 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6282 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6283
6284 2019-02-15 Florian Weimer <fweimer@redhat.com>
6285
6286 [BZ #24211]
6287 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6288 pd->result after the thread descriptor has been freed.
6289
6290 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6291
6292 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6293 from function return type.
6294
6295 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6296
6297 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6298
6299 * scripts/test_printers_common.py: Set TERM to a known harmless
6300 value.
6301
6302 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6303
6304 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6305 (xdr_u_int): Likewise.
6306 (xdr_enum): Likewise.
6307 (xdr_bytes): Reword fall-through comment.
6308 (xdr_string): Likewise.
6309
6310 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6311
6312 [BZ #2421]
6313 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6314 (tests): Add tst-join8 tst-join9.
6315 * nptl/lll_timedwait_tid.c: Remove file.
6316 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6317 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6318 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6319 * nptl/pthread_join_common.c (timedwait_tid): New function.
6320 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6321 is set.
6322 * nptl/tst-join5.c (thread_join): New function.
6323 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6324 check.
6325 * nptl/tst-join8.c: New file.
6326 * nptl/tst-join9.c: Likewise.
6327 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6328 lll_futex_timed_wait_cancel): Add generic macros.
6329 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6330 Remove definitions.
6331 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6332 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6333 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6334 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6335 Remove function.
6336 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6337 Likewise.
6338 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6339 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6340 (lll_futex_timed_wait_cancel): New macro.
6341
6342 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6343
6344 * benchtests/Makefile: Add malloc-simple benchmark.
6345 * benchtests/bench-malloc-simple.c: New benchmark.
6346
6347 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6348
6349 * benchtests/bench-memmove.c (do_one_test): Remove unused
6350 ORIG_SRC.
6351 (do_test): Adjust.
6352 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6353 ORIG_SRC.
6354 (do_test): Adjust.
6355
6356 2019-01-13 Jim Wilson <jimw@sifive.com>
6357
6358 [BZ #24040]
6359 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6360 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6361 (func): New.
6362 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6363 call func directly.
6364 * nptl/Makefile (tests): Add tst-unwind-thread.
6365 (CFLAGS-tst-unwind-thread.c): Define.
6366 * nptl/tst-unwind-thread.c: New file.
6367 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6368 as undefined.
6369
6370 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6371
6372 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6373 comment wording.
6374 * nis/nis_call.c (__do_niscall3): Likewise.
6375
6376 * catgets/gencat.c (normalize_line): Use braces around empty
6377 'else' body.
6378 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6379 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6380 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6381 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6382 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6383 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6384 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6385 definition.
6386
6387 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6388 execlp returns.
6389
6390 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6391
6392 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6393 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6394 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6395 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6396 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6397 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6398 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6399 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6400 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6401 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6402 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6403 * benchtests/bench-bcopy.c: Delete file.
6404 * benchtests/bench-bzero.c: Likewise.
6405 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6406 (simple_memccpy): Remove.
6407 (generic_memccpy): Add function.
6408 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6409 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6410 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6411 (generic_mempcpy): Add new function.
6412 * benchtests/bench-memset.c (simple_bzero): Remove.
6413 (builtin_bzero): Remove.
6414 (builtin_memset): Remove.
6415 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6416 (generic_rawmemchr): Add new function.
6417
6418 2019-02-12 Florian Weimer <fweimer@redhat.com>
6419
6420 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6421
6422 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6423
6424 [BZ #24122]
6425 * elf/Makefile (tests): Add tst-audit13.
6426 (modules-names): Add tst-audit13mod1.
6427 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6428 rule.
6429 * elf/tst-audit13.c: New file.
6430 * elf/tst-audit13mod1.c: Likewise.
6431
6432 2019-02-12 Florian Weimer <fweimer@redhat.com>
6433
6434 [BZ #24122]
6435 * elf/rtld.c (unload_audit_module): New function.
6436 (report_audit_module_load_error): Likewise.
6437 (load_audit_module): Likewise. Extracted from dl_main. Call
6438 _dl_close if the laversion symbol cannot be found. Use early
6439 returns for error handling. Add malloc error check. Check for a
6440 zero return value from la_version. Remove spurious comment about
6441 static TLS initialization. Remove useless casts.
6442 (notify_audit_modules_of_loaded_object): New function. Extracted
6443 from dl_main.
6444 (load_audit_module): Likewise.
6445 (dl_main): Call load_audit_modules.
6446
6447 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6448
6449 * elf/dl-exception.c (_dl_exception_create_format): Add
6450 fall-through comments.
6451 * elf/ldconfig.c (parse_conf_include): Likewise.
6452 * elf/rtld.c (print_statistics): Likewise.
6453 * locale/programs/charmap.c (parse_charmap): Likewise.
6454 * misc/mntent_r.c (__getmntent_r): Likewise.
6455 * posix/wordexp.c (parse_arith): Likewise.
6456 (parse_backtick): Likewise.
6457 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6458 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6459 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6460
6461 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6462
6463 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6464 Use float instead of double.
6465
6466 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6467
6468 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6469
6470 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6471
6472 * sysdeps/powerpc/bits/mathinline.h: Remove.
6473
6474 2019-02-08 Florian Weimer <fweimer@redhat.com>
6475
6476 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6477 * math/bits/math-finite.h: Move to ...
6478 * bits/math-finite.h: ... here.
6479
6480 2019-02-08 Florian Weimer <fweimer@redhat.com>
6481
6482 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6483 * bits/unistd_ext.h: here.
6484
6485 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6486
6487 [BZ #21915]
6488 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6489 * nss/tst-nss-files-hosts-long.c: New file.
6490 * nss/tst-nss-files-hosts-long.root: New directory.
6491 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6492 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6493
6494 2019-02-08 Florian Weimer <fweimer@redhat.com>
6495
6496 * include/bits/unistd_ext.h: Remove file.
6497 * posix/bits/unistd_ext.h: Move to ...
6498 * sysdeps/generic/bits/unistd_ext.h: ... here.
6499
6500 2019-02-08 Florian Weimer <fweimer@redhat.com>
6501
6502 * include/bits/unistd_ext.h: New file.
6503
6504 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6505
6506 * time/tst-strftime2.c: Use array_length macros instead of magic
6507 numbers.
6508
6509 2019-02-08 Florian Weimer <fweimer@redhat.com>
6510
6511 [BZ #24161]
6512 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6513 argument.
6514 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6515 locking if the new do_locking argument is true.
6516 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6517 __run_fork_handlers.
6518
6519 2019-02-08 Florian Weimer <fweimer@redhat.com>
6520
6521 [BZ #6399]
6522 Linux: Add gettid system call wrapper.
6523 * posix/Makefile (headers): Add bits/unistd_ext.h.
6524 * posix/bits/unistd_ext.h: New file.
6525 * posix/unistd.h: Include it.
6526 * manual/process.texi (Process Identification): Document gettid.
6527 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6528 tst-gettid, tst-gettid-kill.
6529 (tst-gettid): Link with $(shared-thread-library).
6530 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6531 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6532 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6533 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6534 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6535 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6536 Add gettid.
6537 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6538 Likewise.
6539 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6540 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6541 Likewise.
6542 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6543 Likewise.
6544 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6545 Likewise.
6546 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6547 Likewise.
6548 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6549 Likewise.
6550 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6551 Likewise.
6552 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6553 Likewise.
6554 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6555 (GLIBC_2.30): Likewise.
6556 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6557 (GLIBC_2.30): Likewise.
6558 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6559 (GLIBC_2.30): Likewise.
6560 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6561 (GLIBC_2.30): Likewise.
6562 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6563 Likewise.
6564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6565 (GLIBC_2.30): Likewise.
6566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6567 (GLIBC_2.30): Likewise.
6568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6569 (GLIBC_2.30): Likewise.
6570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6571 (GLIBC_2.30): Likewise.
6572 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6573 Likewise.
6574 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6575 Likewise.
6576 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6577 Likewise.
6578 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6579 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6580 Likewise.
6581 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6582 Likewise.
6583 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6584 Likewise.
6585 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6586 Likewise.
6587 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6588
6589 2019-02-08 Florian Weimer <fweimer@redhat.com>
6590
6591 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6592 compatibility symbols.
6593
6594 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6595
6596 [BZ #24180]
6597 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6598 Add compiler barriers and comments.
6599
6600 2019-02-07 Florian Weimer <fweimer@redhat.com>
6601
6602 * include/array_length.h (array_length): Do not use a statement
6603 expression and _Static_assert, so that array_length can be used at
6604 file scope and as a constant expression.
6605
6606 2019-02-07 Florian Weimer <fweimer@redhat.com>
6607
6608 * support/xdlfcn.h (xdlmopen): Declare.
6609 * support/xdlmopen.c: New file.
6610 * support/Makefile (libsupport-routines): Add xdlmopen.
6611
6612 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6613
6614 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6615 before return type, without separate inline.
6616 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6617 * elf/dl-tunables.h (tunable_is_name): Likewise.
6618 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6619 (do_set_top_pad): Likewise.
6620 (do_set_mmap_threshold): Likewise.
6621 (do_set_mmaps_max): Likewise.
6622 (do_set_mallopt_check): Likewise.
6623 (do_set_perturb_byte): Likewise.
6624 (do_set_arena_test): Likewise.
6625 (do_set_arena_max): Likewise.
6626 (do_set_tcache_max): Likewise.
6627 (do_set_tcache_count): Likewise.
6628 (do_set_tcache_unsorted_limit): Likewise.
6629 * nis/nis_subr.c (count_dots): Likewise.
6630 * nptl/allocatestack.c (advise_stack_range): Likewise.
6631 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6632 (do_sin): Likewise.
6633 (reduce_sincos): Likewise.
6634 (do_sincos): Likewise.
6635 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6636 (do_set_elision_enable): Likewise.
6637 (TUNABLE_CALLBACK_FNDECL): Likewise.
6638
6639 2019-02-06 Florian Weimer <fweimer@redhat.com>
6640
6641 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6642 (xdlsym): Use dlerror to detect a NULL symbol.
6643
6644 2019-02-06 Florian Weimer <fweimer@redhat.com>
6645
6646 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6647 <stap-probe.h>.
6648 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6649
6650 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6651
6652 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6653
6654 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6655
6656 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6657 __wmemcmp and weak alias to wmemcmp.
6658
6659 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6660
6661 [BZ #23403]
6662 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6663 TLS_TCB_AT_TP tls variant.
6664 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6665 Add alignment checks.
6666 * support/Makefile (libsupport-routines): Add xposix_memalign and
6667 xpthread_setstack.
6668 * support/support.h: Add xposix_memalign.
6669 * support/xthread.h: Add xpthread_attr_setstack.
6670 * support/xposix_memalign.c: New File.
6671 * support/xpthread_attr_setstack.c: Likewise.
6672
6673 2019-02-05 Florian Weimer <fweimer@redhat.com>
6674
6675 [BZ #24164]
6676 arm: Use "nr" constraint for Systemtap probes, to avoid the
6677 compiler using memory operands for constants, due to the "o"
6678 alternative in the default "nor" constraint.
6679 * include/stap-probe.h [USE_STAP_PROBE]: Include
6680 <stap-probe-machine.h>
6681 * sysdeps/generic/stap-probe-machine.h: New file.
6682 * sysdeps/arm/stap-probe-machine.h: Likewise.
6683
6684 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6685
6686 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6687 with 0, not tcache->entries[tc_idx].
6688
6689 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6690 once.
6691
6692 2019-02-04 Andreas Schwab <schwab@suse.de>
6693
6694 [BZ #16976]
6695 [BZ #17396]
6696 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6697 looking up collating elements match against (wide) character
6698 sequence instead of name. Correct alignment adjustment.
6699 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6700 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6701 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6702 (LOCALES): Add cs_CZ.ISO-8859-2.
6703 * posix/tst-fnmatch4.c: New file.
6704 * posix/tst-fnmatch5.c: New file.
6705 * include/wchar.h (__wmemcmp): Declare.
6706 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6707 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6708 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6709 * sysdeps/s390/wmemcmp.c: Likewise.
6710
6711 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6712
6713 [BZ #24155]
6714 CVE-2019-7309
6715 * NEWS: Updated for CVE-2019-7309.
6716 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6717 upper 32 bits of RDX register for x32. Use unsigned Jcc
6718 instructions, instead of signed.
6719 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6720 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6721
6722 2019-02-04 Florian Weimer <fweimer@redhat.com>
6723
6724 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6725 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6726 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6727 Likewise.
6728 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6729 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6730 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6731 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6732 Likewise.
6733 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6734 Likewise.
6735 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6736 Likewise.
6737 (posix_spawn_file_actions_addopen): Likewise.
6738 (posix_spawn_file_actions_addclose): Likewise.
6739 (posix_spawn_file_actions_adddup2): Likewise.
6740 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6741 qualifiers.
6742 (posix_spawn_file_actions_addfchdir_np): Likewise.
6743
6744 2019-02-04 David Newall <glibc@davidnewall.com>
6745
6746 elf: Implement --preload option for the dynamic linker.
6747 * elf/rtld.c (preloadarg): New variable.
6748 (handle_preload_list): Pass through “where” argument to
6749 do_preload.
6750 (dl_main): Handle "--preload" and add second call to
6751 handle_preload_list.
6752 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6753 (tst-rtld-preload-OBJS): Set variable.
6754 (tst-rtld-preload.out): New target.
6755 * elf/tst-rtld-preload.sh: New file.
6756
6757 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6758
6759 * Makefile (testrun.sh): Exit in case of incorrect argument.
6760
6761 2019-02-04 Florian Weimer <fweimer@redhat.com>
6762
6763 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6764 alignment gaps.
6765
6766 2019-02-03 Florian Weimer <fweimer@redhat.com>
6767
6768 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6769 implicit overflow checks.
6770
6771 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6772
6773 * stdlib/isomac.c: Include <unistd.h>.
6774
6775 2019-02-03 Florian Weimer <fweimer@redhat.com>
6776
6777 * include/time.h (__tzfile_default): Use int, not long int, for
6778 the GMT offsets.
6779 * time/tzfile.c (struct ttinfo): Change type of the offset member
6780 to int.
6781 (__tzfile_read): Remove useless cast.
6782 (__tzfile_default): Adjust prototype.
6783 * time/tzset.c (tz_rule): Change type of the offset member to int.
6784 (parse_offset): Change the type of the sign variable to int.
6785
6786 2019-02-03 Florian Weimer <fweimer@redhat.com>
6787
6788 [BZ #24153]
6789 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6790 * libio/getchar.c (getchar): Likewise.
6791 * libio/getchar_u.c (getchar_unlocked): Likewise.
6792 * libio/getwchar.c (getwchar): Likewise.
6793 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6794 * libio/iogets.c (_IO_gets): Likewise.
6795 * libio/vscanf.c (_IO_vscanf): Likewise.
6796 * libio/vwscanf.c (__vwscanf): Likewise.
6797 * libio/tst-bz24153.c: New file.
6798 * libio/Makefile (tests): Add it.
6799
6800 2019-02-02 Florian Weimer <fweimer@redhat.com>
6801
6802 [BZ #14829]
6803 * manual/resource.texi (Basic Scheduling Functions): Add
6804 portability note. Change process to task throughout the section.
6805 Remove incorrect comment about sched_yield as it affects
6806 tasks/threads, not entire processes.
6807 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6808 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6809
6810 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6811
6812 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6813 * configure: Regenerated.
6814 * manual/install.texi (Tools for Compilation): Update minimum GCC
6815 version.
6816 * INSTALL: Regenerated.
6817
6818 2019-02-01 Florian Weimer <fweimer@redhat.com>
6819
6820 * support/support_test_compare_string.c
6821 (support_test_compare_string): Use "string" in error message.
6822 * support/tst-test_compare_string.c (do_test): Adjust.
6823
6824 2019-02-01 Florian Weimer <fweimer@redhat.com>
6825
6826 * support/support_format_address_family.c
6827 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6828
6829 2019-02-01 Florian Weimer <fweimer@redhat.com>
6830
6831 * manual/socket.texi (Internet Address Formats): Clarify the byte
6832 order of struct sockaddr_in, struct sockaddr_in6. Document
6833 sin6_flowinfo and sin6_scope_id.
6834
6835 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6836
6837 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6838 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6839 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6840 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6841 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6842 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6843
6844 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6845
6846 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6847 [!MEMCHR](MEMCHR): Set to __memchr.
6848 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6849 Add memchr_generic and memchr_nosimd.
6850 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6851 (__libc_ifunc_impl_list): Add memchr ifuncs.
6852 * sysdeps/aarch64/multiarch/memchr.c: New file.
6853 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6854 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6855
6856 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6857
6858 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6859 Add memset_emag.
6860 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6861 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6862 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6863 Add IS_EMAG check for ifunc dispatch.
6864 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6865 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6866
6867 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6868
6869 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6870 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6871 Add emag.
6872 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6873 New macro.
6874
6875 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6876
6877 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6878
6879 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6880
6881 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6882 syscall-template file.
6883
6884 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6885 Torvald Riegel <triegel@redhat.com>
6886 Rik Prohaska <prohaska7@gmail.com>
6887
6888 [BZ# 23844]
6889 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6890 tst-rwlock-trywrlock-stall.
6891 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6892 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6893 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6894 Set __wrphase_fute to 1 only if we started the write phase.
6895 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6896 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6897 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6898 * support/xpthread_rwlock_destroy.c: New file.
6899 * support/xthread.h: Declare xpthread_rwlock_destroy.
6900
6901 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6902
6903 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6904 version to 4.0.2.
6905
6906 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6907
6908 [BZ #24051]
6909 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6910 * libio/fileops.c (_IO_new_file_underflow): Likewise
6911 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6912 * libio/putchar.c (putchar): Likewise.
6913 * libio/putchar_u.c (putchar_unlocked): Likewise.
6914 * libio/putwchar.c (putchar): Likewise.
6915 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6916 * libio/tst-bz24051.c: New test.
6917 * libio/Makefile (tests): Add tst-bz24051
6918
6919 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6920
6921 CVE-2019-9169
6922 regex: fix read overrun [BZ #24114]
6923 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6924 https://debbugs.gnu.org/34140
6925 * posix/regexec.c (proceed_next_node):
6926 Do not read past end of input buffer.
6927
6928 2019-01-31 Florian Weimer <fweimer@redhat.com>
6929
6930 [BZ #24059]
6931 * nss/nss_files/files-alias.c (get_next_alias): Handle
6932 continuation line without newline at the end.
6933 * nss/tst-nss-files-alias-truncated.c: New file.
6934 * nss/Makefile [$(build-shared)] (tests): Add
6935 tst-nss-files-alias-truncated.
6936 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6937 * support/namespace.h (struct support_chroot_configuration): Add
6938 aliases member.
6939 (struct support_chroot): Add path_aliases member.
6940 * support/support_chroot.c (support_chroot_create): Handle
6941 aliases.
6942 (support_chroot_free): Free path_aliases.
6943
6944 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6945
6946 * version.h (RELEASE): Set to "development".
6947 (VERSION): Set to "2.29.9000".
6948 * NEWS: Add section for 2.30.
6949
6950 * version.h (RELEASE): Set to "stable".
6951 (VERSION): Set to "2.29".
6952 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6953
6954 * NEWS: Add the list of bugs fixed in 2.29.
6955 * manual/contrib.texi: Update contributors list with some more
6956 names.
6957 * manual/install.texi: Update latest versions of packages
6958 tested.
6959 * INSTALL: Regenerated.
6960
6961 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6962
6963 * po/be.po: Update translations.
6964 * po/bg.po: Likewise.
6965 * po/ca.po: Likewise.
6966 * po/cs.po: Likewise.
6967 * po/da.po: Likewise.
6968 * po/de.po: Likewise.
6969 * po/el.po: Likewise.
6970 * po/eo.po: Likewise.
6971 * po/es.po: Likewise.
6972 * po/fi.po: Likewise.
6973 * po/fr.po: Likewise.
6974 * po/gl.po: Likewise.
6975 * po/hr.po: Likewise.
6976 * po/hu.po: Likewise.
6977 * po/ia.po: Likewise.
6978 * po/id.po: Likewise.
6979 * po/it.po: Likewise.
6980 * po/ja.po: Likewise.
6981 * po/ko.po: Likewise.
6982 * po/lt.po: Likewise.
6983 * po/nb.po: Likewise.
6984 * po/nl.po: Likewise.
6985 * po/pl.po: Likewise.
6986 * po/pt_BR.po: Likewise.
6987 * po/ru.po: Likewise.
6988 * po/rw.po: Likewise.
6989 * po/sk.po: Likewise.
6990 * po/sl.po: Likewise.
6991 * po/sv.po: Likewise.
6992 * po/tr.po: Likewise.
6993 * po/uk.po: Likewise.
6994 * po/vi.po: Likewise.
6995 * po/zh_CN.po: Likewise.
6996 * po/zh_TW.po: Likewise.
6997
6998 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6999
7000 [BZ #24130]
7001 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
7002 of $f3 register on $y_is_neg path.
7003
7004 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
7005
7006 [BZ #24110]
7007 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
7008 sigaltstack.ss_flags.
7009
7010 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
7011
7012 [BZ #23758]
7013 * manual/time.texi (strftime): Document "%Ey".
7014 * time/strftime_l.c (__strftime_internal): Set the default width
7015 padding with zero of "%Ey" to 2.
7016
7017 [BZ #24096]
7018 * manual/time.texi (strftime): Document "%EC" and "%EY".
7019 * time/Makefile (tests): Add tst-strftime2.
7020 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7021 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7022 override padding for "%Ey".
7023 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7024 "%Ey" in the subformat as if decorated with that flag.
7025 * time/tst-strftime2.c: New file.
7026
7027 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7028
7029 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7030 are not defined.
7031
7032 [BZ #24122]
7033 * elf/Makefile (tests): Add tst-audit13.
7034 (modules-names): Add tst-audit13mod1.
7035 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7036 rule.
7037 * elf/rtld.c (dl_main): Handle invalid audit module version.
7038 * elf/tst-audit13.c: New file.
7039 * elf/tst-audit13mod1.c: Likewise.
7040
7041 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7042
7043 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7044 returned by __hurd_at_flags.
7045 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7046 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7047 directly instead of __hurd_file_name_lookup.
7048
7049 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7050
7051 * scripts/build-many-glibcs.py (Context.checkout): Default
7052 binutils version to 2.32 branch.
7053
7054 2019-01-21 Florian Weimer <fweimer@redhat.com>
7055
7056 [BZ #20018]
7057 CVE-2016-10739
7058 resolv: Reject trailing characters in host names
7059 * include/arpa/inet.h (__inet_aton_exact): Declare.
7060 (inet_aton): Remove hidden prototype. No longer used internally.
7061 * nscd/gai.c (__inet_aton): Do not define.
7062 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7063 * nss/digits_dots.c (__inet_aton): Likewise.
7064 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7065 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7066 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7067 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7068 (tst-resolv-trailing): Likewise.
7069 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7070 libc.
7071 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7072 Make static. Add endp parameter.
7073 (__inet_aton_exact): New function.
7074 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7075 (__inet_addr): Call inet_aton_end.
7076 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7077 not just IPv6. Call __inet_aton_exact.
7078 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7079 (tests): Make const. Add additional test cases with trailing
7080 characters.
7081 (do_test): Use array_length.
7082 * resolv/tst-inet_aton_exact.c: New file.
7083 * resolv/tst-resolv-trailing.c: Likewise.
7084 * resolv/tst-resolv-nondecimal.c: Likewise.
7085 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7086
7087 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7088
7089 [BZ# 24097]
7090 CVE-2019-6488
7091 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7092 Clear the upper 32 bits of RSI register.
7093 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7094 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7095 and tst-size_t-wcsnlen.
7096 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7097 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7098
7099 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7100
7101 [BZ# 24097]
7102 CVE-2019-6488
7103 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7104 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7105 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7106 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7107 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7108
7109 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7110
7111 [BZ# 24097]
7112 CVE-2019-6488
7113 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7114 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7115 * sysdeps/x86_64/strcmp.S: Likewise.
7116 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7117 tst-size_t-strncmp and tst-size_t-wcsncmp.
7118 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7119 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7120 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7121
7122 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7123
7124 [BZ# 24097]
7125 CVE-2019-6488
7126 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7127 RDX_LP for length. Clear the upper 32 bits of RDX register.
7128 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7129 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7130 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7131 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7132
7133 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7134
7135 [BZ# 24097]
7136 CVE-2019-6488
7137 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7138 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7139 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7140 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7141
7142 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7143
7144 [BZ# 24097]
7145 CVE-2019-6488
7146 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7147 length. Clear the upper 32 bits of RDX register.
7148 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7149 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7150 Likewise.
7151 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7152 Likewise.
7153 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7154 tst-size_t-wmemchr.
7155 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7156
7157 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7158
7159 [BZ# 24097]
7160 CVE-2019-6488
7161 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7162 length. Clear the upper 32 bits of RDX register.
7163 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7164 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7165 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7166 tst-size_t-wmemcmp.
7167 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7168 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7169
7170 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7171
7172 [BZ# 24097]
7173 CVE-2019-6488
7174 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7175 upper 32 bits of RDX register.
7176 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7177 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7178 tst-size_t-wmemchr.
7179 * sysdeps/x86_64/x32/test-size_t.h: New file.
7180 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7181 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7182
7183 2019-01-18 Florian Weimer <fweimer@redhat.com>
7184
7185 [BZ #24112]
7186 resolv: Do not send queries for non-host-names in nss_dns.
7187 * resolv/nss_dns/dns-host.c (check_name): New function.
7188 (_nss_dns_gethostbyname2_r): Use it.
7189 (_nss_dns_gethostbyname_r): Likewise.
7190 (_nss_dns_gethostbyname4_r): Likewise.
7191
7192 2019-01-21 Florian Weimer <fweimer@redhat.com>
7193
7194 * resolv/inet_addr.c: Reformat to GNU style.
7195 (__inet_addr, __inet_aton): Update comment.
7196
7197 2019-01-18 Florian Weimer <fweimer@redhat.com>
7198
7199 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7200 ("malloc: Use current (C11-style) atomics for fastbin access").
7201 This commit introduces a substantial performance regression on
7202 POWER and Aarch64.
7203 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7204 (REMOVE_FB): Define.
7205 (_int_malloc): Use it and reindent.
7206 (_int_free): Use CAS loop with
7207 catomic_compare_and_exchange_val_rel.
7208 (malloc_consolidate): Use atomic_exchange_acq.
7209
7210
7211 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7212
7213 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7214 -Wl,-z,now.
7215 (LDFLAGS-tst-minsigstksz-2): Likewise.
7216 (LDFLAGS-tst-minsigstksz-3): Likewise.
7217 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7218 (LDFLAGS-tst-minsigstksz-4): Likewise.
7219
7220 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7221
7222 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7223 than "alternate".
7224
7225 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7226
7227 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7228
7229 2019-01-16 Zack Weinberg <zackw@panix.com>
7230
7231 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7232 (xget_sigstack_location): New test support functions.
7233 * support/xsigstack.c: New file, implementing them.
7234 * support/tst-xsigstack.c: New test for them.
7235 * support/Makefile: Update.
7236
7237 * signal/tst-minsigstksz-1.c
7238 * signal/tst-minsigstksz-2.c
7239 * signal/tst-minsigstksz-3.c
7240 * signal/tst-minsigstksz-3a.c
7241 * signal/tst-minsigstksz-4.c: New tests.
7242 * signal/Makefile: Run them.
7243
7244 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7245
7246 * po/libc.pot: Regenerate.
7247
7248 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7249
7250 * math/libm-test-fma.inc (fma_test_data): Set
7251 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7252
7253 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7254
7255 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7256 (do_test): Changed __vector __int128_t to __vector unsigned int.
7257
7258 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7259
7260 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7261 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7262 stpcpy-avx2 and stpncpy-avx2.
7263 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7264 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7265 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7266 and __stpncpy_avx2.
7267 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7268 ifunc-strcpy.h}: rename header for a more generic name.
7269 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7270 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7271 AVX unaligned load is fast and vzeroupper is preferred.
7272 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7273 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7274 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7275 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7276 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7277 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7278
7279 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7280
7281 * argp/argp-help.c: Fix typo in comment.
7282 * misc/sys/cdefs.h: Likewise.
7283 * posix/regexec.c (sift_states_iter_mb): Likewise.
7284 * socket/sockatmark.c: Likewise.
7285 * socket/sys/socket.h: Likewise.
7286 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7287 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7288 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7289 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7290 * sysdeps/unix/sockatmark.c: Likewise.
7291 * time/strptime_l.c: Likewise.
7292
7293 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7294
7295 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7296 missing space after the cast of "_NL_CURRENT".
7297
7298 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7299
7300 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7301 ifdef to fix read of VSCR.
7302 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7303 tst-ucontext-ppc64-vscr.c to test list.
7304 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7305
7306 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7307
7308 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7309 fall-through.
7310
7311 2019-01-09 Jim Wilson <jimw@sifive.com>
7312
7313 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7314
7315 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7316
7317 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7318 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7319 __memcpy_falkor for ares.
7320 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7321 Add new define.
7322 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7323 Add ares cpu.
7324
7325 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7326
7327 [BZ #24066]
7328 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7329 4_FP_W_TYPEs are used for IEEE quad precision.
7330 * soft-fp/extendhftf2.c: Likewise.
7331 * soft-fp/extendsftf2.c: Likewise.
7332 * soft-fp/extendxftf2.c: Likewise.
7333 * soft-fp/trunctfdf2.c: Likewise.
7334 * soft-fp/trunctfhf2.c: Likewise.
7335 * soft-fp/trunctfsf2.c: Likewise.
7336 * soft-fp/trunctfxf2.c: Likewise.
7337 * sysdeps/alpha/ots_cvttx.c: Likewise.
7338 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7339 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7340 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7341 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7342 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7343 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7344 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7345 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7346 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7347 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7348 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7349 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7350 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7351 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7352 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7353 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7354 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7355
7356 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7357
7358 [BZ #24024]
7359 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7360 code with -fmath-errno.
7361 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7362 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7363 * string/test-strerror-errno.c: New file.
7364
7365 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7366
7367 [BZ #24046]
7368 * localedata/locales/en_US (date_fmt): Add, set to
7369 "%a %d %b %Y %r %Z".
7370
7371 2019-01-07 Florian Weimer <fweimer@redhat.com>
7372
7373 [BZ #24063]
7374 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7375 instead of @var{errno}.
7376 (Parsing of Integers): Likewise.
7377 (Parsing of Floats): Likewise.
7378 * manual/filesys.texi (Working with Directory Trees): Likewise.
7379 (Temporary Files): Likewise.
7380 * manual/job.texi (Terminal Access Functions): Likewise.
7381 * manual/llio.texi (Synchronizing I/O): Likewise.
7382 * manual/math.texi (SVID Random): Likewise.
7383 * manual/message.texi (The catgets Functions): Likewise.
7384 (Translation with gettext): Likewise.
7385 (Locating gettext catalog): Likewise.
7386 (Charset conversion in gettext): Likewise.
7387 * manual/nss.texi (NSS Module Function Internals): Likewise.
7388 * manual/search.texi (Hash Search Function): Likewise.
7389 * manual/setjmp.texi (System V contexts): Likewise.
7390 * manual/time.texi (Sleeping): Likewise.
7391 * manual/users.texi (Lookup User): Likewise.
7392 (Lookup Group): Likewise.
7393
7394 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7395
7396 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7397 fix typo.
7398
7399 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7400
7401 [BZ #19444]
7402 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7403 __builtin_unreachable for default case in switch.
7404 (__ieee754_yn): Likewise.
7405 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7406 (__ieee754_ynl): Likewise.
7407 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7408 (__ieee754_ynl): Likewise.
7409 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7410 (__ieee754_ynl): Likewise.
7411
7412 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7413
7414 * manual/maint.texi: Use @{ and @}.
7415
7416 2019-01-04 Florian Weimer <fweimer@redhat.com>
7417
7418 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7419 function.
7420 (do_in_chroot_1): Call it.
7421 (run_chroot_tests):
7422 Improve error reporting in case it is not possible to create a
7423 collision for the PTY name required by the test.
7424
7425 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7426
7427 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7428 lll_wait_tid with timeout.
7429 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7430 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7431 futex_reltimed_wait_cancelable for cancelabla mode.
7432 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7433 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7434 macros.
7435 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7436 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7437 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7438 SYSCALL_CANCEL_NCS): New macro.
7439 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7440 (lll_timedwait_tid): Remove macro.
7441 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7442 Likewise.
7443 (lll_timedwait_tid): Likewise.
7444 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7445 Likewise.
7446 (lll_timedwait_tid): Likewise.
7447 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7448 Likewise.
7449 (lll_timedwait_tid): Likewise.
7450 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7451 Use INTERNAL_SYSCALL_CANCEL.
7452 * sysdeps/unix/sysv/linux/futex-internal.h
7453 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7454 instead of __pthread_{enable,disable}_asynccancel.
7455 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7456 (lll_futex_wait_cancel): New macro.
7457
7458 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7459 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7460
7461 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7462 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7463
7464 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7465 in backtrace analysis.
7466 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7467 side-effects.
7468 (tf_send): Likewise.
7469
7470 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7471 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7472 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7473 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7474 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7475 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7476 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7477 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7478 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7479 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7480 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7481 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7482 Likewise.
7483 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7484 tst-cancel-wrappers.sh.
7485 (generated): Remove tst-cancel-wrappers.out.
7486 (tst-cancel-wrappers.out): Remove rule.
7487 * nptl/tst-cancel-wrappers.sh: Remove file.
7488
7489 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7490
7491 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7492 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7493 Update.
7494
7495 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7496
7497 [BZ #23640]
7498 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7499 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7500 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7501 close-on-exec reset for adddup2 file action.
7502 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7503
7504 2019-01-03 Zack Weinberg <zackw@panix.com>
7505
7506 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7507 parameter. Only use deprecated scanf when __USE_GNU is defined
7508 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7509 than 201103L, whichever is relevant for the language being compiled.
7510
7511 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7512 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7513 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7514 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7515 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7516
7517 * libio/iovsscanf.c
7518 * libio/fwscanf.c
7519 * libio/iovswscanf.c
7520 * libio/swscanf.c
7521 * libio/vscanf.c
7522 * libio/vwscanf.c
7523 * libio/wscanf.c
7524 * stdio-common/fscanf.c
7525 * stdio-common/scanf.c
7526 * stdio-common/vfscanf.c
7527 * stdio-common/vfwscanf.c
7528 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7529 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7530 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7531 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7532 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7533 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7534 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7535 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7536 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7537 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7538 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7539 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7540 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7541 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7542 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7543
7544 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7545 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7546 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7547 not sscanf.
7548 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7549 with a preprocessor macro.
7550
7551 * stdio-common/bug21.c, stdio-common/scanf14.c:
7552 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7553 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7554 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7555 to xscanf, xfscanf, xsscanf.
7556
7557 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7558 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7559 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7560 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7561 xfscanf, xsscanf.
7562 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7563 override feature selection macros or provide definitions of u_char etc.
7564 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7565 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7566 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7567 with -std=gnu89.
7568
7569 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7570
7571 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7572 bits/termios-misc.h.
7573 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7574 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7575 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7576 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7577 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7578 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7579
7580 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7581 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7582 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7583 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7584 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7585 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7586 termios-misc.h.
7587 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7588 (sysdep_headers): Add termios-misc.h.
7589
7590 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7591 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7592 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7593
7594 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7595 termios-tcflow.h.
7596 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7597 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7598 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7599 TCSAFLUSH): Move to termios-tcflow.h.
7600 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7601 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7602 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7603 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7604
7605 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7606 termios-c_lflag.h.
7607 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7608 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7609 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7610 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7611 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7612 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7613 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7614 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7615 Likewise.
7616 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7617 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7618 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7619 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7620
7621 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7622 termios-c_cflag.h.
7623 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7624 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7625 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7626 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7627 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7628 termios-c_cflag.h.
7629 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7630 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7631 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7632 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7633
7634 [BZ #23783]
7635 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7636 termios-baud.h.
7637 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7638 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7639 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7640 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7641 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7642 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7643 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7644 __MAX_BAUD): Move to termios-baud.h.
7645 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7646 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7647 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7648 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7649 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7650
7651 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7652 termios-c_oflag.h.
7653 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7654 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7655 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7656 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7657 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7658 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7659 termios-c_oflag.h.
7660 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7661 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7662 FFR1): Likewise.
7663 [USE_MISC] (XTABS): Likewise.
7664 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7665 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7666 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7667 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7668
7669 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7670 termios-c_iflag.h.
7671 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7672 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7673 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7674 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7675 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7676 IUTF8): Move to termios-c_iflag.h.
7677 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7678 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7679 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7680 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7681
7682 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7683 termios-cc.h.
7684 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7685 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7686 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7687 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7688 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7689 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7690 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7691 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7692 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7693 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7694 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7695 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7696
7697 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7698 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7699 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7700 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7701 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7702 termios-struct.h.
7703 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7704 termios-struct.h.
7705 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7706 Likewise.
7707 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7708 Likewise.
7709 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7710 Likewise.
7711 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7712 Likewise.
7713 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7714 _HAVE_C_OSPEED): Define.
7715 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7716 _HAVE_C_OSPEED): Likewise.
7717 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7718 _HAVE_C_OSPEED): Likewise.
7719 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7720 (cfsetospeed): Check for define value instead of existence.
7721 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7722 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7723 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7724 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7725 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7726
7727 [BZ #17783]
7728 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7729 Define.
7730 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7731 (TIOCSER_TEMT): Likewise.
7732 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7733 (TEOCSER_TEMT): Likewise.
7734
7735 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7736
7737 [BZ #24011]
7738 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7739
7740 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7741
7742 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7743
7744 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7745
7746 * sysdeps/htl/pt-barrierattr-setpshared.c
7747 (pthread_barrierattr_setpshared): Add stub warning.
7748 * sysdeps/htl/pt-condattr-setpshared.c
7749 (pthread_condattr_setpshared): Likewise.
7750 * sysdeps/htl/pt-mutexattr-setpshared.c
7751 (pthread_mutexattr_setpshared): Likewise.
7752 * sysdeps/htl/pt-rwlockattr-setpshared.c
7753 (pthread_rwlockattr_setpshared): Likewise.
7754 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7755 (pthread_mutexattr_setpshared): Likewise.
7756
7757 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7758
7759 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7760 constants to match with Linux 4.20.
7761
7762 * sysdeps/mips/mips32/libm-test-ulps: Update.
7763 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7764
7765 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7766
7767 [BZ #24034]
7768 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7769 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7770 than __typeof (...) for the a_ptr variable.
7771
7772 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7773
7774 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7775 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7776 * libio/Makefile (tests): Add tst-sprintf-ub and
7777 tst-sprintf-chk-ub.
7778 (CFLAGS-tst-sprintf-ub.c): New variable.
7779 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7780 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7781 destination buffer and check for overflows in fortified mode.
7782 * libio/libioP.h (PRINTF_CHK): New macro.
7783 * libio/tst-sprintf-chk-ub.c: New file.
7784 * libio/tst-sprintf-ub.c: Likewise.
7785
7786 2019-01-02 Florian Weimer <fweimer@redhat.com>
7787
7788 [BZ #24018]
7789 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7790 failure.
7791
7792 2019-01-02 Florian Weimer <fweimer@redhat.com>
7793
7794 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7795
7796 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7797
7798 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7799 macro.
7800
7801 * sysdeps/unix/sysv/linux/netpacket/packet.h
7802 (PACKET_IGNORE_OUTGOING): New macro.
7803
7804 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7805 macro.
7806
7807 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7808 version to 4.20.
7809 (riscv_flush_icache): New syscall.
7810
7811 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7812 trailing whitespace removed.
7813 * scripts/config.guess: Update to version 2019-01-01.
7814 * scripts/config.sub: Update to version 2019-01-01.
7815 * scripts/move-if-change: Update from gnulib.
7816
7817 * NEWS: Update copyright dates.
7818 * catgets/gencat.c (print_version): Likewise.
7819 * csu/version.c (banner): Likewise.
7820 * debug/catchsegv.sh: Likewise.
7821 * debug/pcprofiledump.c (print_version): Likewise.
7822 * debug/xtrace.sh (do_version): Likewise.
7823 * elf/ldconfig.c (print_version): Likewise.
7824 * elf/ldd.bash.in: Likewise.
7825 * elf/pldd.c (print_version): Likewise.
7826 * elf/sotruss.sh: Likewise.
7827 * elf/sprof.c (print_version): Likewise.
7828 * iconv/iconv_prog.c (print_version): Likewise.
7829 * iconv/iconvconfig.c (print_version): Likewise.
7830 * locale/programs/locale.c (print_version): Likewise.
7831 * locale/programs/localedef.c (print_version): Likewise.
7832 * login/programs/pt_chown.c (print_version): Likewise.
7833 * malloc/memusage.sh (do_version): Likewise.
7834 * malloc/memusagestat.c (print_version): Likewise.
7835 * malloc/mtrace.pl: Likewise.
7836 * manual/libc.texinfo: Likewise.
7837 * nptl/version.c (banner): Likewise.
7838 * nscd/nscd.c (print_version): Likewise.
7839 * nss/getent.c (print_version): Likewise.
7840 * nss/makedb.c (print_version): Likewise.
7841 * posix/getconf.c (main): Likewise.
7842 * scripts/test-installation.pl: Likewise.
7843 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7844
7845 * All files with FSF copyright notices: Update copyright dates
7846 using scripts/update-copyrights.
7847 * locale/programs/charmap-kw.h: Regenerated.
7848 * locale/programs/locfile-kw.h: Likewise.
7849
7850 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7851
7852 * timezone/zdump.c: Update from tzcode 2018i.
7853 * timezone/zic.c: Likewise.
7854
7855 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7856
7857 regex: improve Gnulib port to AIX
7858 From the glibc point of view, this removes duplicate macro
7859 definitions and is obviously safe.
7860 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7861 * posix/regex_internal.h:
7862 (__attribute__, __attribute_warn_unused_result__):
7863 Remove; already defined elsewhere.
7864
7865 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7866
7867 [BZ #24027]
7868 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7869 copying operation. (ncopies had the wrong type, resulting in an
7870 integer wraparound and too few elements being copied.)
7871
7872 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7873
7874 [BZ #24022]
7875 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7876 <asm/syscalls.h> exists with __has_include__ before including it.
7877
7878 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7879
7880 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7881 version to 4.20.
7882
7883 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7884
7885 * hurd/lookup-retry: Include <unistd.h>.
7886 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7887 Release it on return. Handle "pid" magical lookup retry.
7888
7889 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7890
7891 [BZ #10496]
7892 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7893 (t_fmt_ampm): Likewise.
7894 * localedata/locales/aa_ER (t_fmt): Likewise.
7895 (t_fmt_ampm): Likewise.
7896 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7897 (t_fmt_ampm): Likewise.
7898 * localedata/locales/aa_ET (t_fmt): Likewise.
7899 (t_fmt_ampm): Likewise.
7900 * localedata/locales/am_ET (t_fmt): Likewise.
7901 (t_fmt_ampm): Likewise.
7902 * localedata/locales/byn_ER (t_fmt): Likewise.
7903 (t_fmt_ampm): Likewise.
7904 * localedata/locales/om_ET (t_fmt): Likewise.
7905 (t_fmt_ampm): Likewise.
7906 * localedata/locales/sid_ET (t_fmt): Likewise.
7907 (t_fmt_ampm): Likewise.
7908 * localedata/locales/so_DJ (t_fmt): Likewise.
7909 (t_fmt_ampm): Likewise.
7910 * localedata/locales/so_ET (t_fmt): Likewise.
7911 (t_fmt_ampm): Likewise.
7912 * localedata/locales/so_SO (t_fmt): Likewise.
7913 (t_fmt_ampm): Likewise.
7914 * localedata/locales/ti_ER (t_fmt): Likewise.
7915 (t_fmt_ampm): Likewise.
7916 * localedata/locales/ti_ET (t_fmt): Likewise.
7917 (t_fmt_ampm): Likewise.
7918 * localedata/locales/tig_ER (t_fmt): Likewise.
7919 (t_fmt_ampm): Likewise.
7920 * localedata/locales/wal_ET (t_fmt): Likewise.
7921 (t_fmt_ampm): Likewise.
7922
7923 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7924 * localedata/locales/ar_IN (t_fmt): Likewise.
7925 * localedata/locales/bhb_IN (t_fmt): Likewise.
7926 * localedata/locales/bho_IN (t_fmt): Likewise.
7927 * localedata/locales/bi_VU (t_fmt): Likewise.
7928 * localedata/locales/bn_BD (t_fmt): Likewise.
7929 * localedata/locales/bn_IN (t_fmt): Likewise.
7930 * localedata/locales/brx_IN (t_fmt): Likewise.
7931 * localedata/locales/doi_IN (t_fmt): Likewise.
7932 * localedata/locales/en_HK (t_fmt): Likewise.
7933 (t_fmt_ampm): Likewise.
7934 * localedata/locales/en_IN (t_fmt): Likewise.
7935 * localedata/locales/en_PH (t_fmt): Likewise.
7936 * localedata/locales/gu_IN (t_fmt): Likewise.
7937 * localedata/locales/hi_IN (t_fmt): Likewise.
7938 * localedata/locales/hif_FJ (t_fmt): Likewise.
7939 * localedata/locales/hne_IN (t_fmt): Likewise.
7940 * localedata/locales/kn_IN (t_fmt): Likewise.
7941 * localedata/locales/kok_IN (t_fmt): Likewise.
7942 * localedata/locales/ks_IN (t_fmt): Likewise.
7943 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7944 * localedata/locales/mag_IN (t_fmt): Likewise.
7945 * localedata/locales/mai_IN (t_fmt): Likewise.
7946 * localedata/locales/mjw_IN (t_fmt): Likewise.
7947 * localedata/locales/ml_IN (t_fmt): Likewise.
7948 * localedata/locales/mni_IN (t_fmt): Likewise.
7949 * localedata/locales/mr_IN (t_fmt): Likewise.
7950 * localedata/locales/ms_MY (t_fmt): Likewise.
7951 * localedata/locales/pa_IN (t_fmt): Likewise.
7952 * localedata/locales/raj_IN (t_fmt): Likewise.
7953 * localedata/locales/sa_IN (t_fmt): Likewise.
7954 * localedata/locales/sat_IN (t_fmt): Likewise.
7955 * localedata/locales/sd_IN (t_fmt): Likewise.
7956 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7957 * localedata/locales/tcy_IN (t_fmt): Likewise.
7958 * localedata/locales/the_NP (t_fmt): Likewise.
7959 * localedata/locales/to_TO (t_fmt): Likewise.
7960 * localedata/locales/ur_IN (t_fmt): Likewise.
7961
7962 * localedata/locales/hif_FJ (d_t_fmt): Set to
7963 "%A %d %b %Y %I:%M:%S %p".
7964 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7965
7966 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7967 * localedata/locales/ar_BH (t_fmt): Likewise.
7968 * localedata/locales/ar_DZ (t_fmt): Likewise.
7969 * localedata/locales/ar_EG (t_fmt): Likewise.
7970 * localedata/locales/ar_IQ (t_fmt): Likewise.
7971 * localedata/locales/ar_JO (t_fmt): Likewise.
7972 * localedata/locales/ar_KW (t_fmt): Likewise.
7973 * localedata/locales/ar_LB (t_fmt): Likewise.
7974 * localedata/locales/ar_LY (t_fmt): Likewise.
7975 * localedata/locales/ar_OM (t_fmt): Likewise.
7976 * localedata/locales/ar_QA (t_fmt): Likewise.
7977 * localedata/locales/ar_SD (t_fmt): Likewise.
7978 * localedata/locales/ar_SS (t_fmt): Likewise.
7979 * localedata/locales/ar_SY (t_fmt): Likewise.
7980 * localedata/locales/ar_TN (t_fmt): Likewise.
7981 * localedata/locales/ar_YE (t_fmt): Likewise.
7982
7983 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7984 (t_fmt_ampm): Likewise.
7985 * localedata/locales/gez_ET (t_fmt): Likewise.
7986 (t_fmt_ampm): Likewise.
7987
7988 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7989 (t_fmt_ampm): Likewise.
7990 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7991
7992 * localedata/locales/zh_HK (t_fmt):
7993 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7994
7995 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7996 because this locale does not use the 12-hour clock.
7997 (t_fmt): Set to "%Z %H:%M:%S".
7998 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7999
8000 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
8001 because this locale does not use the 12-hour clock.
8002 (t_fmt): Set to "%H:%M:%S %Z".
8003 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
8004
8005 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
8006 because this locale does not use the 12-hour clock.
8007 (t_fmt): Set to "%T".
8008 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
8009 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
8010
8011 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
8012 because this locale does not use the 12-hour clock.
8013 (t_fmt): Set to "%H:%M:%S %Z".
8014 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8015
8016 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8017 because this locale does not use the 12-hour clock.
8018 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8019 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8020
8021 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
8022
8023 [BZ #10496]
8024 [BZ #23724]
8025 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8026 (t_fmt_ampm): Likewise.
8027 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8028 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8029 (d_fmt): Set to "%-d.%-m.%y".
8030
8031 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8032
8033 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8034 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8035 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8036 Likewise.
8037 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8038 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8039 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8040 function.
8041 * support/blob_repeat.c (check_mul_overflow_size_t,
8042 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8043
8044 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8045
8046 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8047
8048 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8049
8050 regex: simplify Gnulib port
8051 This simplifies the code, by removing stuff intended for porting
8052 to Gnulib but no longer needed there.
8053 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8054 uses of libc_hidden_def, weak_alias.
8055 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8056 _Restrict_ except for public-facing headers.
8057 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8058 Remove; already defined elsewhere.
8059 * posix/regex.c, posix/regex_internal.h:
8060 Use __GNUC_PREREQ instead of rolling our own.
8061 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8062
8063 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8064
8065 * benchtests/bench-strlen.c (generic_strlen): New function.
8066 (memchr_strlen): New function.
8067
8068 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8069
8070 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8071 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8072 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8073
8074 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8075
8076 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8077
8078 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8079
8080 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8081 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8082 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8083 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8084 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8085 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8086 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8087
8088 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8089
8090 [BZ #24023]
8091 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8092 PLT reference in libc.so.
8093 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8094 _Q_lltoq and _Q_qtod PLT references in libc.so.
8095
8096 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8097
8098 * benchtests/bench-memchr.c: Cleanup defines.
8099 * benchtests/bench-memcmp.c: Likewise.
8100 * benchtests/bench-memset.c: Likewise.
8101 * benchtests/bench-memset-large.c: Likewise.
8102 * benchtests/bench-memset-walk.c: Likewise.
8103 * benchtests/bench-stpcpy.c: Likewise.
8104 * benchtests/bench-stpncpy.c: Likewise.
8105 * benchtests/bench-strcat.c: Likewise.
8106 * benchtests/bench-strchr.c: Likewise.
8107 * benchtests/bench-strcmp.c: Likewise.
8108 * benchtests/bench-strcpy.c: Likewise.
8109 * benchtests/bench-strcspn.c: Likewise.
8110 * benchtests/bench-string.h: Likewise.
8111 * benchtests/bench-strlen.c: Likewise.
8112 * benchtests/bench-strncat.c: Likewise.
8113 * benchtests/bench-strncmp.c: Likewise.
8114 * benchtests/bench-strncpy.c: Likewise.
8115 * benchtests/bench-strnlen.c: Likewise.
8116 * benchtests/bench-strpbrk.c: Likewise.
8117 * benchtests/bench-strrchr.c: Likewise.
8118 * benchtests/bench-strspn.c: Likewise.
8119
8120 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8121
8122 * stdlib/longlong.h: Update from GCC.
8123
8124 [BZ #23993]
8125 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8126 * configure: Regenerated.
8127 * manual/install.texi (Tools for Compilation): Update minimum GCC
8128 version.
8129 * INSTALL: Regenerated.
8130
8131 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8132
8133 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8134
8135 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8136
8137 * malloc/malloc.c (mremap_chunk): Additional checks.
8138
8139 2018-12-21 Mao Han <han_mao@c-sky.com>
8140
8141 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8142 * scripts/build-many-glibcs.py: Add C-SKY targets.
8143 * sysdeps/csky/Implies: New file.
8144 * sysdeps/csky/Makefile: Likewise.
8145 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8146 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8147 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8148 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8149 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8150 * sysdeps/csky/abiv2/memmove.S: Likewise.
8151 * sysdeps/csky/abiv2/memset.S: Likewise.
8152 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8153 * sysdeps/csky/abiv2/start.S: Likewise.
8154 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8155 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8156 * sysdeps/csky/abiv2/strlen.S: Likewise.
8157 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8158 * sysdeps/csky/abort-instr.h: Likewise.
8159 * sysdeps/csky/atomic-machine.h: Likewise.
8160 * sysdeps/csky/bits/endian.h: Likewise.
8161 * sysdeps/csky/bits/fenv.h: Likewise.
8162 * sysdeps/csky/bits/link.h: Likewise.
8163 * sysdeps/csky/bits/setjmp.h: Likewise.
8164 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8165 * sysdeps/csky/bsd-setjmp.S: Likewise.
8166 * sysdeps/csky/configure: Likewise.
8167 * sysdeps/csky/configure.ac: Likewise.
8168 * sysdeps/csky/dl-machine.h: Likewise.
8169 * sysdeps/csky/dl-procinfo.c: Likewise.
8170 * sysdeps/csky/dl-procinfo.h: Likewise.
8171 * sysdeps/csky/dl-sysdep.h: Likewise.
8172 * sysdeps/csky/dl-tls.h: Likewise.
8173 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8174 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8175 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8176 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8177 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8178 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8179 * sysdeps/csky/fpu/fegetround.c: Likewise.
8180 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8181 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8182 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8183 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8184 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8185 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8186 * sysdeps/csky/fpu/fesetround.c: Likewise.
8187 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8188 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8189 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8190 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8191 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8192 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8193 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8194 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8195 * sysdeps/csky/fpu_control.h: Likewise.
8196 * sysdeps/csky/gccframe.h: Likewise.
8197 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8198 * sysdeps/csky/ldsodefs.h: Likewise.
8199 * sysdeps/csky/libc-tls.c: Likewise.
8200 * sysdeps/csky/linkmap.h: Likewise.
8201 * sysdeps/csky/machine-gmon.h: Likewise.
8202 * sysdeps/csky/memusage.h: Likewise.
8203 * sysdeps/csky/nofpu/Implies: Likewise.
8204 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8205 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8206 * sysdeps/csky/nptl/Makefile: Likewise.
8207 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8208 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8209 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8210 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8211 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8212 * sysdeps/csky/nptl/tls.h: Likewise.
8213 * sysdeps/csky/preconfigure: Likewise.
8214 * sysdeps/csky/sfp-machine.h: Likewise.
8215 * sysdeps/csky/sotruss-lib.c: Likewise.
8216 * sysdeps/csky/stackinfo.h: Likewise.
8217 * sysdeps/csky/sysdep.h: Likewise.
8218 * sysdeps/csky/tininess.h: Likewise.
8219 * sysdeps/csky/tst-audit.h: Likewise.
8220 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8221 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8222 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8223 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8224 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8225 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8226 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8227 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8228 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8229 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8230 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8231 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8232 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8233 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8234 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8235 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8236 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8237 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8238 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8239 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8240 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8241 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8242 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8243 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8244 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8245 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8246 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8247 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8248 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8249 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8250 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8251 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8252 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8253 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8254 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8255 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8256 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8257 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8258 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8259 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8260 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8261 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8262 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8263 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8264
8265 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8266
8267 * include/time.h (__difftime64): Add.
8268 * time/difftime.c (subtract): convert to 64-bit time.
8269 * time/difftime.c (__difftime64): Add.
8270 * time/difftime.c (__difftime): Wrap around __difftime64.
8271
8272 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8273
8274 * manual/examples/add.c: Remove redundant "if not".
8275 * manual/examples/argp-ex1.c: Likewise.
8276 * manual/examples/argp-ex2.c: Likewise.
8277 * manual/examples/argp-ex3.c: Likewise.
8278 * manual/examples/argp-ex4.c: Likewise.
8279 * manual/examples/atexit.c: Likewise.
8280 * manual/examples/db.c: Likewise.
8281 * manual/examples/dir.c: Likewise.
8282 * manual/examples/dir2.c: Likewise.
8283 * manual/examples/execinfo.c: Likewise.
8284 * manual/examples/filecli.c: Likewise.
8285 * manual/examples/filesrv.c: Likewise.
8286 * manual/examples/fmtmsgexpl.c: Likewise.
8287 * manual/examples/genpass.c: Likewise.
8288 * manual/examples/inetcli.c: Likewise.
8289 * manual/examples/inetsrv.c: Likewise.
8290 * manual/examples/isockad.c: Likewise.
8291 * manual/examples/longopt.c: Likewise.
8292 * manual/examples/memopen.c: Likewise.
8293 * manual/examples/memstrm.c: Likewise.
8294 * manual/examples/mkdirent.c: Likewise.
8295 * manual/examples/mkfsock.c: Likewise.
8296 * manual/examples/mkisock.c: Likewise.
8297 * manual/examples/mygetpass.c: Likewise.
8298 * manual/examples/pipe.c: Likewise.
8299 * manual/examples/popen.c: Likewise.
8300 * manual/examples/rprintf.c: Likewise.
8301 * manual/examples/search.c: Likewise.
8302 * manual/examples/select.c: Likewise.
8303 * manual/examples/setjmp.c: Likewise.
8304 * manual/examples/sigh1.c: Likewise.
8305 * manual/examples/sigusr.c: Likewise.
8306 * manual/examples/stpcpy.c: Likewise.
8307 * manual/examples/strdupa.c: Likewise.
8308 * manual/examples/strftim.c: Likewise.
8309 * manual/examples/subopt.c: Likewise.
8310 * manual/examples/swapcontext.c: Likewise.
8311 * manual/examples/termios.c: Likewise.
8312 * manual/examples/testopt.c: Likewise.
8313 * manual/examples/testpass.c: Likewise.
8314 * manual/examples/timeval_subtract.c: Likewise.
8315
8316 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8317
8318 * sysdeps/x86/fpu/math_private.h: New file.
8319 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8320
8321 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8322 definition.
8323 (cosh): Likewise.
8324 (tanh): Likewise.
8325
8326 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8327
8328 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8329 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8330 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8331 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8332 fields.
8333 (_dl_show_auxv): Give a special treatment to
8334 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8335 and AT_L3_CACHEGEOMETRY.
8336 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8337 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8338 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8339 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8340
8341 2018-12-19 Andreas Schwab <schwab@suse.de>
8342
8343 * nscd/connections.c (check_use): Don't abort on invalid len.
8344
8345 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8346
8347 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8348 values in the 64bit value cases.
8349
8350 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8351
8352 * include/time.h
8353 (__ctime64_r): Add.
8354 * time/ctime_r.c
8355 (__ctime64_r): Add.
8356 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8357
8358 * include/time.h
8359 (__ctime64): Add.
8360 * time/gmtime.c
8361 (__ctime64): Add.
8362 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8363
8364 * include/time.h
8365 (__gmtime64_r): Add.
8366 * time/gmtime.c
8367 (__gmtime64_r): Add.
8368 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8369
8370 * include/time.h
8371 (__gmtime64): Add.
8372 * time/gmtime.c
8373 (__gmtime64): Add.
8374 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8375
8376 * include/time.h
8377 (__localtime64_r): Add.
8378 * time/localtime.c
8379 (__localtime64_r): Add.
8380 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8381
8382 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8383
8384 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8385 kernel_sigction definition.
8386
8387 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8388
8389 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8390
8391 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8392 __syscall_rt_sigaction.
8393 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8394 (kernel_sigaction): Use Linux generic defintion.
8395 (STUB): Define.
8396 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8397 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8398 (__syscall_rt_sigaction): Remove implementation.
8399 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8400 hidden.
8401 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8402 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8403 INTERNAL_SYSCALL): Remove definitions.
8404 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8405 action and signal set size.
8406 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8407 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8408
8409 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8410 James Clarke <jrtc27@jrtc27.com>
8411
8412 [BZ #23967]
8413 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8414 Define if SA_RESTORER is defined.
8415 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8416 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8417 already defined.
8418 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8419 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8420 definitions.
8421 (HAS_SA_RESTORER): Define.
8422 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8423 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8424 (HAS_SA_RESTORER): Define.
8425 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8426 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8427 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8428 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8429 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8430
8431 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8432
8433 * sysdeps/unix/sysv/linux/kernel-features.h
8434 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8435 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8436 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8437 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8438 (__ASSUME_ST_INO_64_BIT): Likewise.
8439 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8440 <kernel-features.h>.
8441 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8442 Remove conditional code.
8443 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8444 <kernel-features.h>.
8445 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8446 Remove conditional code.
8447 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8448 <kernel-features.h>.
8449 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8450 Remove conditional code.
8451 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8452 <kernel-features.h>.
8453 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8454 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8455
8456 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8457
8458 * sysdeps/s390/multiarch/ifunc-resolve.h
8459 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8460 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8461 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8462 Delete macro definition.
8463 (s390_libc_ifunc_init): Rename to
8464 s390_libc_ifunc_expr_stfle_init.
8465 * sysdeps/s390/bzero: Use
8466 s390_libc_ifunc_expr_stfle_init instead of
8467 s390_libc_ifunc_init.
8468 * sysdeps/s390/memcmp.c: Likewise.
8469 * sysdeps/s390/memcpy.c: Likewise.
8470 * sysdeps/s390/mempcpy.c: Likewise.
8471 * sysdeps/s390/memset.c: Likewise.
8472
8473 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8474
8475 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8476 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8477
8478 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8479
8480 * sysdeps/s390/multiarch/Makefile
8481 (sysdep_routines): Remove wmemcmp variants.
8482 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8483 * sysdeps/s390/multiarch/ifunc-impl-list.c
8484 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8485 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8486 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8487 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8488 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8489 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8490 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8491 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8492
8493 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8494
8495 * sysdeps/s390/multiarch/Makefile
8496 (sysdep_routines): Remove wmemset variants.
8497 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8498 * sysdeps/s390/multiarch/ifunc-impl-list.c
8499 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8500 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8501 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8502 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8503 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8504 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8505 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8506 * sysdeps/s390/ifunc-wmemset.h: New file.
8507
8508 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8509
8510 * sysdeps/s390/multiarch/Makefile
8511 (sysdep_routines): Remove wmemchr variants.
8512 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8513 * sysdeps/s390/multiarch/ifunc-impl-list.c
8514 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8515 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8516 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8517 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8518 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8519 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8520 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8521 * sysdeps/s390/ifunc-wmemchr.h: New file.
8522
8523 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8524
8525 * sysdeps/s390/multiarch/Makefile
8526 (sysdep_routines): Remove wcscspn variants.
8527 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8528 * sysdeps/s390/multiarch/ifunc-impl-list.c
8529 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8530 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8531 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8532 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8533 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8534 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8535 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8536 * sysdeps/s390/ifunc-wcscspn.h: New file.
8537
8538 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8539
8540 * sysdeps/s390/multiarch/Makefile
8541 (sysdep_routines): Remove wcspbrk variants.
8542 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8543 * sysdeps/s390/multiarch/ifunc-impl-list.c
8544 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8545 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8546 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8547 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8548 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8549 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8550 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8551 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8552
8553 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8554
8555 * sysdeps/s390/multiarch/Makefile
8556 (sysdep_routines): Remove wcsspn variants.
8557 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8558 * sysdeps/s390/multiarch/ifunc-impl-list.c
8559 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8560 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8561 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8562 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8563 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8564 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8565 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8566 * sysdeps/s390/ifunc-wcsspn.h: New file.
8567
8568 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8569
8570 * sysdeps/s390/multiarch/Makefile
8571 (sysdep_routines): Remove wcsrchr variants.
8572 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8573 * sysdeps/s390/multiarch/ifunc-impl-list.c
8574 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8575 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8576 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8577 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8578 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8579 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8580 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8581 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8582
8583 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8584
8585 * sysdeps/s390/multiarch/Makefile
8586 (sysdep_routines): Remove wcschrnul variants.
8587 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8588 * sysdeps/s390/multiarch/ifunc-impl-list.c
8589 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8590 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8591 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8592 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8593 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8594 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8595 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8596 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8597
8598 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8599
8600 * sysdeps/s390/multiarch/Makefile
8601 (sysdep_routines): Remove wcschr variants.
8602 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8603 * sysdeps/s390/multiarch/ifunc-impl-list.c
8604 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8605 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8606 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8607 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8608 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8609 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8610 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8611 * sysdeps/s390/ifunc-wcschr.h: New file.
8612
8613 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8614
8615 * sysdeps/s390/multiarch/Makefile
8616 (sysdep_routines): Remove wcsncmp variants.
8617 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8618 * sysdeps/s390/multiarch/ifunc-impl-list.c
8619 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8620 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8621 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8622 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8623 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8624 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8625 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8626 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8627
8628 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8629
8630 * sysdeps/s390/multiarch/Makefile
8631 (sysdep_routines): Remove wcscmp variants.
8632 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8633 * sysdeps/s390/multiarch/ifunc-impl-list.c
8634 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8635 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8636 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8637 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8638 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8639 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8640 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8641 * sysdeps/s390/ifunc-wcscmp.h: New file.
8642
8643 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8644
8645 * sysdeps/s390/multiarch/Makefile
8646 (sysdep_routines): Remove wcsncat variants.
8647 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8648 * sysdeps/s390/multiarch/ifunc-impl-list.c
8649 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8650 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8651 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8652 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8653 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8654 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8655 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8656 * sysdeps/s390/ifunc-wcsncat.h: New file.
8657
8658 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8659
8660 * sysdeps/s390/multiarch/Makefile
8661 (sysdep_routines): Remove wcscat variants.
8662 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8663 * sysdeps/s390/multiarch/ifunc-impl-list.c
8664 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8665 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8666 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8667 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8668 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8669 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8670 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8671 * sysdeps/s390/ifunc-wcscat.h: New file.
8672
8673 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8674
8675 * sysdeps/s390/multiarch/Makefile
8676 (sysdep_routines): Remove wcpncpy variants.
8677 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8678 * sysdeps/s390/multiarch/ifunc-impl-list.c
8679 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8680 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8681 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8682 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8683 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8684 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8685 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8686 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8687
8688 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8689
8690 * sysdeps/s390/multiarch/Makefile
8691 (sysdep_routines): Remove wcsncpy variants.
8692 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8693 * sysdeps/s390/multiarch/ifunc-impl-list.c
8694 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8695 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8696 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8697 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8698 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8699 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8700 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8701 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8702
8703 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8704
8705 * sysdeps/s390/multiarch/Makefile
8706 (sysdep_routines): Remove wcpcpy variants.
8707 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8708 * sysdeps/s390/multiarch/ifunc-impl-list.c
8709 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8710 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8711 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8712 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8713 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8714 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8715 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8716 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8717
8718 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8719
8720 * sysdeps/s390/multiarch/Makefile
8721 (sysdep_routines): Remove wcscpy variants.
8722 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8723 * sysdeps/s390/multiarch/ifunc-impl-list.c
8724 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8725 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8726 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8727 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8728 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8729 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8730 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8731 * sysdeps/s390/ifunc-wcscpy.h: New file.
8732
8733 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8734
8735 * sysdeps/s390/multiarch/Makefile
8736 (sysdep_routines): Remove wcsnlen variants.
8737 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8738 * sysdeps/s390/multiarch/ifunc-impl-list.c
8739 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8740 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8741 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8742 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8743 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8744 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8745 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8746 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8747
8748 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8749
8750 * sysdeps/s390/multiarch/Makefile
8751 (sysdep_routines): Remove wcslen variants.
8752 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8753 * sysdeps/s390/multiarch/ifunc-impl-list.c
8754 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8755 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8756 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8757 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8758 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8759 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8760 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8761 * sysdeps/s390/ifunc-wcslen.h: New file.
8762
8763 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8764
8765 * sysdeps/s390/multiarch/Makefile
8766 (sysdep_routines): Remove memrchr variants.
8767 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8768 * sysdeps/s390/multiarch/ifunc-impl-list.c
8769 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8770 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8771 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8772 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8773 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8774 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8775 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8776 * sysdeps/s390/ifunc-memrchr.h: New file.
8777
8778 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8779
8780 * sysdeps/s390/multiarch/Makefile
8781 (sysdep_routines): Remove memccpy variants.
8782 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8783 * sysdeps/s390/multiarch/ifunc-impl-list.c
8784 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8785 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8786 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8787 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8788 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8789 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8790 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8791 * sysdeps/s390/ifunc-memccpy.h: New file.
8792
8793 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8794
8795 * sysdeps/s390/multiarch/Makefile
8796 (sysdep_routines): Remove rawmemchr variants.
8797 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8798 * sysdeps/s390/multiarch/ifunc-impl-list.c
8799 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8800 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8801 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8802 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8803 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8804 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8805 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8806 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8807
8808 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8809
8810 * sysdeps/s390/multiarch/Makefile
8811 (sysdep_routines): Remove memchr variants.
8812 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8813 * sysdeps/s390/multiarch/ifunc-impl-list.c
8814 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8815 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8816 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8817 * sysdeps/s390/multiarch/memchr.c: Move to ...
8818 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8819 * sysdeps/s390/ifunc-memchr.h: New file.
8820 * sysdeps/s390/s390-64/memchr.S: Move to ...
8821 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8822 for 31/64bit and ifunc handling.
8823 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8824 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8825 * sysdeps/s390/s390-32/memchr.S: Likewise.
8826
8827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8828
8829 * sysdeps/s390/multiarch/Makefile
8830 (sysdep_routines): Remove strcspn variants.
8831 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8832 * sysdeps/s390/multiarch/ifunc-impl-list.c
8833 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8834 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8835 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8836 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8837 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8838 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8839 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8840 * sysdeps/s390/ifunc-strcspn.h: New file.
8841
8842 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8843
8844 * sysdeps/s390/multiarch/Makefile
8845 (sysdep_routines): Remove strpbrk variants.
8846 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8847 * sysdeps/s390/multiarch/ifunc-impl-list.c
8848 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8849 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8850 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8851 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8852 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8853 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8854 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8855 * sysdeps/s390/ifunc-strpbrk.h: New file.
8856
8857 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8858
8859 * sysdeps/s390/multiarch/Makefile
8860 (sysdep_routines): Remove strspn variants.
8861 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8862 * sysdeps/s390/multiarch/ifunc-impl-list.c
8863 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8864 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8865 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8866 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8867 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8868 * sysdeps/s390/multiarch/strspn.c: Move to ...
8869 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8870 * sysdeps/s390/ifunc-strspn.h: New file.
8871
8872 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8873
8874 * sysdeps/s390/multiarch/Makefile
8875 (sysdep_routines): Remove strrchr variants.
8876 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8877 * sysdeps/s390/multiarch/ifunc-impl-list.c
8878 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8879 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8880 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8881 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8882 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8883 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8884 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8885 * sysdeps/s390/ifunc-strrchr.h: New file.
8886
8887 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8888
8889 * sysdeps/s390/multiarch/Makefile
8890 (sysdep_routines): Remove strchrnul variants.
8891 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8892 * sysdeps/s390/multiarch/ifunc-impl-list.c
8893 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8894 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8895 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8896 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8897 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8898 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8899 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8900 * sysdeps/s390/ifunc-strchrnul.h: New file.
8901
8902 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8903
8904 * sysdeps/s390/multiarch/Makefile
8905 (sysdep_routines): Remove strchr variants.
8906 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8907 * sysdeps/s390/multiarch/ifunc-impl-list.c
8908 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8909 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8910 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8911 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8912 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8913 * sysdeps/s390/multiarch/strchr.c: Move to ...
8914 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8915 * sysdeps/s390/ifunc-strchr.h: New file.
8916
8917 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8918
8919 * sysdeps/s390/multiarch/Makefile
8920 (sysdep_routines): Remove strncmp variants.
8921 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8922 * sysdeps/s390/multiarch/ifunc-impl-list.c
8923 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8924 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8925 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8926 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8927 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8928 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8929 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8930 * sysdeps/s390/ifunc-strncmp.h: New file.
8931
8932 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8933
8934 * sysdeps/s390/multiarch/Makefile
8935 (sysdep_routines): Remove strcmp variants.
8936 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8937 * sysdeps/s390/multiarch/ifunc-impl-list.c
8938 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8939 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8940 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8941 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8942 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8943 * sysdeps/s390/ifunc-strcmp.h: New file.
8944 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8945 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8946 for 31/64bit and ifunc handling.
8947 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8948 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8949 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8950
8951 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8952
8953 * sysdeps/s390/multiarch/Makefile
8954 (sysdep_routines): Remove strncat variants.
8955 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8956 * sysdeps/s390/multiarch/ifunc-impl-list.c
8957 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8958 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8959 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8960 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8961 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8962 * sysdeps/s390/multiarch/strncat.c: Move to ...
8963 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8964 * sysdeps/s390/ifunc-strncat.h: New file.
8965
8966 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8967
8968 * sysdeps/s390/multiarch/Makefile
8969 (sysdep_routines): Remove strcat variants.
8970 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8971 * sysdeps/s390/multiarch/ifunc-impl-list.c
8972 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8973 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8974 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8975 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8976 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8977 * sysdeps/s390/multiarch/strcat.c: Move to ...
8978 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8979 * sysdeps/s390/ifunc-strcat.h: New file.
8980
8981 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8982
8983 * sysdeps/s390/multiarch/Makefile
8984 (sysdep_routines): Remove stpncpy variants.
8985 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8986 * sysdeps/s390/multiarch/ifunc-impl-list.c
8987 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8988 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8989 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8990 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8991 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8992 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8993 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8994 * sysdeps/s390/ifunc-stpncpy.h: New file.
8995
8996 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8997
8998 * sysdeps/s390/multiarch/Makefile
8999 (sysdep_routines): Remove strncpy variants.
9000 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
9001 * sysdeps/s390/multiarch/ifunc-impl-list.c
9002 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
9003 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
9004 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
9005 * sysdeps/s390/multiarch/strncpy.c: Move to ...
9006 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
9007 * sysdeps/s390/ifunc-strncpy.h: New file.
9008 * sysdeps/s390/s390-64/strncpy.S: Move to ...
9009 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
9010 and adjust ifunc handling.
9011 * sysdeps/s390/s390-32/strncpy.S: Move to ...
9012 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
9013 and adjust ifunc handling.
9014 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9015 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9016
9017 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9018
9019 * sysdeps/s390/multiarch/Makefile
9020 (sysdep_routines): Remove stpcpy variants.
9021 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9022 * sysdeps/s390/multiarch/ifunc-impl-list.c
9023 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9024 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9025 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9026 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9027 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9028 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9029 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9030 * sysdeps/s390/ifunc-stpcpy.h: New file.
9031
9032 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9033
9034 * sysdeps/s390/multiarch/Makefile
9035 (sysdep_routines): Remove strcpy variants.
9036 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9037 * sysdeps/s390/multiarch/ifunc-impl-list.c
9038 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9039 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9040 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9041 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9042 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9043 * sysdeps/s390/ifunc-strcpy.h: New file.
9044 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9045 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9046 for 31/64bit and ifunc handling.
9047 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9048 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9049 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9050
9051 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9052
9053 * sysdeps/s390/multiarch/Makefile
9054 (sysdep_routines): Remove strnlen variants.
9055 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9056 * sysdeps/s390/multiarch/ifunc-impl-list.c
9057 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9058 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9059 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9060 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9061 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9062 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9063 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9064 * sysdeps/s390/ifunc-strnlen.h: New file.
9065
9066 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9067
9068 * sysdeps/s390/multiarch/Makefile
9069 (sysdep_routines): Remove strlen variants.
9070 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9071 * sysdeps/s390/multiarch/ifunc-impl-list.c
9072 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9073 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9074 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9075 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9076 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9077 * sysdeps/s390/multiarch/strlen.c: Move to ...
9078 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9079 * sysdeps/s390/ifunc-strlen.h: New file.
9080
9081 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9082
9083 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9084 * sysdeps/s390/multiarch/ifunc-impl-list.c
9085 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9086 * sysdeps/s390/ifunc-memmem.h: New file.
9087 * sysdeps/s390/memmem.c: Likewise.
9088 * sysdeps/s390/memmem-c.c: Likewise.
9089 * sysdeps/s390/memmem-vx.c: Likewise.
9090
9091 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9092
9093 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9094 * sysdeps/s390/multiarch/ifunc-impl-list.c
9095 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9096 * sysdeps/s390/ifunc-strstr.h: New file.
9097 * sysdeps/s390/strstr.c: Likewise.
9098 * sysdeps/s390/strstr-c.c: Likewise.
9099 * sysdeps/s390/strstr-vx.c: Likewise.
9100
9101 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9102
9103 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9104 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9105 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9106 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9107 New defines.
9108 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9109 * sysdeps/s390/memmove-c.c: New file.
9110 * sysdeps/s390/memmove.c: Likewise.
9111 * sysdeps/s390/multiarch/ifunc-impl-list.c
9112 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9113
9114 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9115
9116 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9117 * sysdeps/s390/configure.ac: Add check for z13 support.
9118 * sysdeps/s390/configure: Regenerated.
9119
9120 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9121
9122 * sysdeps/s390/memcopy.h: New file.
9123
9124 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9125
9126 * sysdeps/s390/s390-32/bcopy.S: Remove.
9127 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9128
9129 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9130
9131 * sysdeps/s390/ifunc-memcpy.h: New File.
9132 * sysdeps/s390/memcpy.S: Move to ...
9133 * sysdeps/s390/memcpy-z900.S ... here.
9134 Move implementations from memcpy-s390x.s to here.
9135 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9136 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9137 Remove memcpy/mempcpy variants.
9138 * sysdeps/s390/Makefile (sysdep_routines):
9139 Add memcpy/mempcpy variants.
9140 * sysdeps/s390/multiarch/ifunc-impl-list.c
9141 (__libc_ifunc_impl_list): Adjust ifunc variants for
9142 memcpy and mempcpy.
9143 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9144 to ...
9145 * sysdeps/s390/memcpy.c: ... here.
9146 Adjust ifunc variants for memcpy.
9147 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9148 * sysdeps/s390/mempcpy.c: ... here.
9149 Adjust ifunc variants for mempcpy.
9150 * sysdeps/s390/mempcpy.S: Delete file.
9151
9152 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9153
9154 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9155 * sysdeps/s390/memcpy.S: ... here.
9156 Adjust to be usable for 31/64bit.
9157 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9158 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9159 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9160 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9161 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9162 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9163 Adjust to be usable for 31/64bit.
9164 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9165 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9166 * sysdeps/s390/multiarch/memcpy.c: ... here.
9167 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9168
9169 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9170
9171 * sysdeps/s390/ifunc-memcmp.h: New File.
9172 * sysdeps/s390/memcmp.S: Move to ...
9173 * sysdeps/s390/memcmp-z900.S ... here.
9174 Move implementations from memcmp-s390x.s to here.
9175 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9176 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9177 Remove memcmp variants.
9178 * sysdeps/s390/Makefile (sysdep_routines):
9179 Add memcmp variants.
9180 * sysdeps/s390/multiarch/ifunc-impl-list.c
9181 (__libc_ifunc_impl_list): Adjust ifunc variants for
9182 memcmp.
9183 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9184 to ...
9185 * sysdeps/s390/memcmp.c: ... here.
9186 Adjust ifunc variants for memcmp.
9187
9188 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9189
9190 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9191 * sysdeps/s390/memcmp.S: ... here.
9192 Adjust to be usable for 31/64bit.
9193 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9194 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9195 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9196 Remove memcmp.
9197 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9198 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9199 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9200 Adjust to be usable for 31/64bit.
9201 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9202 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9203 * sysdeps/s390/multiarch/memcmp.c: ... here.
9204 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9205
9206 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9207
9208 * sysdeps/s390/s390-32/bzero.S: Delete file.
9209 * sysdeps/s390/s390-64/bzero.S: Likewise.
9210 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9211 * sysdeps/s390/bzero.c: New file.
9212 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9213 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9214 * sysdeps/s390/multiarch/ifunc-impl-list.c
9215 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9216
9217 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9218
9219 * sysdeps/s390/ifunc-memset.h: New File.
9220 * sysdeps/s390/memset.S: Move to ...
9221 * sysdeps/s390/memset-z900.S ... here.
9222 Move implementations from memset-s390x.s to here.
9223 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9224 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9225 Remove memset variants.
9226 * sysdeps/s390/Makefile (sysdep_routines):
9227 Add memset variants.
9228 * sysdeps/s390/multiarch/ifunc-impl-list.c
9229 (__libc_ifunc_impl_list): Adjust ifunc variants for
9230 memset.
9231 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9232 to ...
9233 * sysdeps/s390/memset.c: ... here.
9234 Adjust ifunc variants for memset.
9235
9236 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9237
9238 * sysdeps/s390/s390-64/memset.S: Move to ...
9239 * sysdeps/s390/memset.S: ... here.
9240 Adjust to be usable for 31/64bit.
9241 * sysdeps/s390/s390-32/memset.S: Delete File.
9242 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9243 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9244 Remove memset.
9245 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9246 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9247 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9248 Adjust to be usable for 31/64bit.
9249 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9250 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9251 * sysdeps/s390/multiarch/memset.c: ... here.
9252 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9253
9254 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9255
9256 * sysdeps/s390/multiarch/ifunc-resolve.h
9257 (s390_libc_ifunc_init, s390_libc_ifunc,
9258 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9259
9260 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9261
9262 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9263 * sysdeps/s390/configure.ac: Add check for z10 support.
9264 * sysdeps/s390/configure: Regenerated.
9265
9266 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9267
9268 * sysdeps/i386/atomic-machine.h: Merged with ...
9269 * sysdeps/x86_64/atomic-machine.h: To ...
9270 * sysdeps/x86/atomic-machine.h: This. New file.
9271
9272 2018-12-18 Florian Weimer <fweimer@redhat.com>
9273
9274 Rewrite locale/gen-translit.pl in Python.
9275 * locale/Makefile (generated): Add C-translit.h.
9276 (before-compile): Add $(objpfx)C-translit.h.
9277 (C-translit.h): Move to $(objpfx). Create target directory.
9278 Build using Python script.
9279 * locale/gen-translit.py: New file.
9280 * locale/gen-translit.pl: Remove file.
9281 * locale/C-translit.h.in: Change comment character to '#' for
9282 easier parsing without a C preprocessor.
9283 * locale/C-translit.h: Remove generated file.
9284 * manual/install.texi (Tools for Compilation): Do not mention
9285 C-translit.h.
9286 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9287 Remove locale/C-translit.h.
9288 * scripts/update-copyrights: Likewise.
9289 * INSTALL: Regenerate.
9290
9291 2018-12-18 Florian Weimer <fweimer@redhat.com>
9292
9293 [BZ #23995]
9294 * localedata/locales/bi_VU: Remove executable bit from file.
9295
9296 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9297
9298 * include/time.h
9299 (__localtime64): Add.
9300 * manual/maint.texi: Document Y2038 symbol handling.
9301 * time/localtime.c
9302 (__localtime64): Add.
9303 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9304
9305 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9306
9307 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9308 Do not clobber r12.
9309
9310 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9311 to allow extra macros from first or second sources.
9312 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9313 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9314 (tests-special): Add $(objpfx)tst-mman-consts.out.
9315 ($(objpfx)tst-mman-consts.out): New makefile target.
9316
9317 2018-12-17 Mao Han <han_mao@c-sky.com>
9318
9319 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9320 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9321 without stat64 system call support.
9322 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9323 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9324 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9325 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9326 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9327 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9328 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9329 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9330 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9331 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9332 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9333
9334 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9335
9336 regex: fix storage-exhaustion error
9337 [BZ #18040]
9338 * posix/regexec.c (get_subexp):
9339 Do not continue if storage is exhausted.
9340
9341 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9342
9343 regex: fix heap-use-after-free error
9344 [BZ #18040]
9345 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9346 https://debbugs.gnu.org/32592
9347 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9348 call extend_buffers which reallocates the re_string_t internal buffer.
9349 Local variable 'buf' was not updated in such case, resulting in
9350 use-after-free.
9351 * posix/regexec.c (get_subexp): Update 'buf' after call to
9352 get_subexp_sub.
9353
9354 2018-12-15 Florian Weimer <fweimer@redhat.com>
9355
9356 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9357 (minimum_stride_size): Use it.
9358 (support_blob_repeat_allocate): Likewise.
9359
9360 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9361
9362 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9363 definition.
9364 (acosh): Likewise.
9365 (atanh): Likewise.
9366
9367 2018-12-14 Florian Weimer <fweimer@redhat.com>
9368
9369 * manual/process.texi (Process Creation Concepts): Remove
9370 documentation of process (ID) lifetime. List more process
9371 creation functions. Reference Process Identification section.
9372 (Process Identification): Add information about process ID
9373 lifetime. Describe Linux thread/task IDs.
9374 * manual/signal.texi (Signaling Another Process): Mention that the
9375 signal is always sent to the process.
9376
9377 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9378
9379 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9380 and tst-ldbl-efgcvt.
9381 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9382 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9383 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9384 (fcvt_tests, output_error, output_r_error, do_test): Use the
9385 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9386 select the type of floating-point variables and arguments; to
9387 produce extra tests for double and conversion specifiers for
9388 printf; and to set the names of called functions.
9389 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9390 in tst-efgcvt-template.c.
9391 * misc/tst-ldbl-efgcvt.c: Likewise.
9392
9393 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9394
9395 * nss/Makefile (tst-nss-test3.out): New rule.
9396
9397 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9398
9399 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9400 clobber sp.
9401
9402 2018-12-13 fanjinke <fanjinke@hygon.cn>
9403
9404 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9405 "HygonGenuine".
9406
9407 2018-12-13 Andreas Schwab <schwab@suse.de>
9408
9409 [BZ #23861]
9410 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9411 (__pthread_rwlock_rdlock_full): Update expected value for
9412 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9413 * nptl/tst-rwlock-pwn.c: New file.
9414 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9415
9416 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9417
9418 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9419 definition.
9420
9421 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9422
9423 * benchtests/scripts/compare_bench.py (do_compare): write to
9424 stderr in casestat is not present.
9425 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9426 stderr in case timings field is not present. Also string showing
9427 the output filename goes into the stderr.
9428
9429 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9430
9431 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9432 and ZeroDivisorError exceptions.
9433 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9434 argument to loop through user provided statistics.
9435 * benchtests/scripts/compare_bench.py (main): Include the --stats
9436 argument.
9437
9438 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9439
9440 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9441 instead of return.
9442
9443 2018-12-12 Florian Weimer <fweimer@redhat.com>
9444
9445 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9446 clause to copyright header.
9447
9448 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9449
9450 [BZ #23614]
9451 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9452 registers saved in the stack frame.
9453 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9454 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9455
9456 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9457
9458 * include/bits/monetary-ldbl.h: New file.
9459 * include/bits/printf-ldbl.h: Likewise.
9460 * include/bits/stdio-ldbl.h: Likewise.
9461 * include/bits/stdlib-ldbl.h: Likewise.
9462 * include/bits/syslog-ldbl.h: Likewise.
9463 * include/bits/wchar-ldbl.h: Likewise.
9464
9465 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9466
9467 * libio/libio.h: Remove redirection for _IO_vfprintf.
9468
9469 2018-12-11 Andreas Schwab <schwab@suse.de>
9470
9471 * Makerules: Remove all references to abilist-pattern.
9472 (update-all-abi): Simplify find expression.
9473
9474 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9475
9476 [BZ #23961]
9477 * math/auto-libm-test-in: Add new test case.
9478 * math/auto-libm-test-out-pow: Regenerated.
9479 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9480
9481 2018-12-10 DJ Delorie <dj@redhat.com>
9482
9483 [BZ #23948]
9484 * support/test-container.c: Move postclean step to before we
9485 change namespaces.
9486
9487 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9488
9489 * scripts/gen-as-const.py (main): Handle --python option.
9490 * scripts/gen-py-const.awk: Remove.
9491 * Makerules (py-const-script): Use gen-as-const.py.
9492 ($(py-const)): Likewise.
9493 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9494 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9495 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9496 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9497 ~PTHREAD_MUTEX_NO_ELISION_NP.
9498 * manual/README.pretty-printers: Update reference to
9499 gen-py-const.awk.
9500
9501 * scripts/glibcextract.py: New file.
9502 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9503 or tempfile. Import glibcexctract.
9504 (compute_c_consts): Remove. Moved to glibcextract.py.
9505 (gen_test): Update reference to compute_c_consts.
9506 (main): Likewise.
9507 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9508 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9509 * sysdeps/unix/sysv/linux/Makefile
9510 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9511 Redirect stderr as well as stdout.
9512
9513 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9514
9515 [BZ #19767]
9516 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9517 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9518 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9519 ALWAYS_USE_VSYSCALL.
9520 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9521 ALWAYS_USE_VSYSCALL.
9522 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9523 ALWAYS_USE_VSYSCALL.
9524
9525 2018-12-10 Florian Weimer <fweimer@redhat.com>
9526
9527 [BZ #23972]
9528 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9529 offset instead of count for clarity. Fix typo in comment.
9530 (__old_getdents64): Keep track of previous offset. Use it to call
9531 handle_overflow.
9532 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9533 that d_off is never zero.
9534
9535 2018-12-10 Andreas Schwab <schwab@suse.de>
9536
9537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9538 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9540 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9541 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9542
9543 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9544
9545 * timezone/private.h: Update from tzcode 2018g.
9546 * timezone/tzfile.h: Likewise.
9547 * timezone/tzselect.ksh: Likewise.
9548 * timezone/zdump.c: Likewise.
9549 * timezone/zic.c: Likewise.
9550
9551 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9552
9553 [BZ #23490]
9554 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9555 (do_test): Adjust buffer size and fix format.
9556
9557 2018-12-07 DJ Delorie <dj@redhat.com>
9558
9559 [BZ #23907]
9560 * malloc/tst-tcfree3.c: New.
9561 * malloc/Makefile: Add it.
9562
9563 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9564
9565 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9566
9567 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9568
9569 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9570 used as a mask for the mode argument of __vfscanf_internal and
9571 __vfwscanf_internal.
9572 * stdio-common/vfscanf-internal.c
9573 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9574 (__strtof128_internal): Define to __wcstof128_internal.
9575 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9576 __strtof128_internal or __wcstof128_internal when the format of
9577 long double is the same as _Float128.
9578
9579 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9580
9581 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9582 * posix/confstr.c (confstr): Rename to __confstr.
9583 (__confstr): Add hidden def.
9584 (confstr): Add weak alias for __confstr.
9585 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9586 confstr.
9587
9588 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9589
9590 * NEWS: Mention getcpu.
9591 * include/sched.h (__getcpu): New libc_hidden_proto.
9592 * manual/resource.texi: Document getcpu.
9593 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9594 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9595 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9596 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9597 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9598 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9599 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9600 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9601 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9602 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9603 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9604 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9605 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9606 Likewise.
9607 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9608 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9609 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9611 Likewise.
9612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9613 Likewise.
9614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9615 Likewise.
9616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9617 Likewise.
9618 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9619 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9620 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9621 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9622 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9623 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9624 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9625 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9626 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9627 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9628 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9629 Also check getcpu.
9630
9631 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9632
9633 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9634 functions.
9635 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9636
9637 2018-12-07 Florian Weimer <fweimer@redhat.com>
9638
9639 [BZ #17405]
9640 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9641 * posix/Versions (GLIBC_2.29): Export
9642 posix_spawn_file_actions_addfchdir_np.
9643 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9644 * posix/spawn_faction_destroy.c
9645 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9646 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9647 and the field action.fchdir_action.
9648 * posix/tst-spawn-chdir.c (add_chdir): New function.
9649 (do_test): Add do_fchdir loop. Call add_chdir.
9650 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9651 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9652 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9653 posix_spawn_file_actions_addfchdir_np.
9654 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9655 Likewise.
9656 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9657 Likewise.
9658 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9659 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9660 Likewise.
9661 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9662 Likewise.
9663 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9664 Likewise.
9665 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9666 Likewise.
9667 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9668 Likewise.
9669 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9670 Likewise.
9671 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9672 (GLIBC_2.29): Likewise.
9673 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9674 (GLIBC_2.29): Likewise.
9675 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9676 (GLIBC_2.29): Likewise.
9677 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9678 (GLIBC_2.29): Likewise.
9679 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9680 Likewise.
9681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9682 (GLIBC_2.29): Likewise.
9683 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9684 (GLIBC_2.29): Likewise.
9685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9686 (GLIBC_2.29): Likewise.
9687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9688 (GLIBC_2.29): Likewise.
9689 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9690 Likewise.
9691 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9692 Likewise.
9693 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9694 Likewise.
9695 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9696 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9697 Likewise.
9698 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9699 Likewise.
9700 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9701 Likewise.
9702 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9703 Likewise.
9704
9705 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9706
9707 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9708 trailing whitespace removed.
9709 * scripts/config.guess: Update to version 2018-11-28.
9710 * scripts/config.sub: Update to version 2018-11-28.
9711 * scripts/install-sh: Update to version 2018-03-11.20.
9712 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9713 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9714
9715 2018-12-07 Florian Weimer <fweimer@redhat.com>
9716
9717 [BZ #23927]
9718 CVE-2018-19591
9719 * inet/tst-if_index-long.c: New file.
9720 * inet/Makefile (tests): Add tst-if_index-long.
9721
9722 2018-12-07 Florian Weimer <fweimer@redhat.com>
9723
9724 * support/check.h (support_record_failure_is_failed): Declare.
9725 * support/descriptors.h: New file.
9726 * support/support_descriptors.c: Likewise.
9727 * support/tst-support_descriptors.c: Likewise.
9728 * support/support_record_failure.c
9729 (support_record_failure_is_failed): New function.
9730 * support/Makefile (libsupport-routines): Add support_descriptors.
9731 (tests): Add tst-support_descriptors.
9732
9733 2018-12-05 Zack Weinberg <zackw@panix.com>
9734 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9735
9736 * stdio-common/vfprintf-internal.c
9737 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9738 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9739 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9740 and __no_long_double.
9741 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9742 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9743 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9744 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9745 and __nldbl_*syslog* functions.
9746 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9747 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9748 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9749 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9750 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9751 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9752 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9753 (__nldbl_vwprintf, __nldbl_wprintf):
9754 Directly call the appropriate __v*printf_internal routine, passing
9755 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9756 variable names.
9757 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9758 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9759 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9760 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9761 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9762 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9763 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9764 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9765 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9766 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9767 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9768 (__nldbl_syslog, __nldbl_vsyslog):
9769 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9770 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9771 appropriate.
9772 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9773 appropriate.
9774
9775 2018-12-05 Zack Weinberg <zackw@panix.com>
9776 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9777
9778 [BZ #11319]
9779 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9780 Moved here from debug/vsprintf_chk.c.
9781 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9782 and completion logic for the strfile to match exactly what
9783 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9784 _IO_str_init_static_internal instead of maxlen-1.
9785 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9786 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9787 __vsprintf_internal.
9788
9789 * debug/vsprintf_chk.c (__vsprintf_chk)
9790 * debug/sprintf_chk.c (__sprintf_chk):
9791 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9792 'flags' argument is positive, and slen as maxlen. 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/asprintf_chk.c (__asprintf_chk)
9797 * debug/dprintf_chk.c (__dprintf_chk)
9798 * debug/fprintf_chk.c (__fprintf_chk)
9799 * debug/fwprintf_chk.c (__fwprintf_chk)
9800 * debug/printf_chk.c (__printf_chk)
9801 * debug/snprintf_chk.c (__snprintf_chk)
9802 * debug/swprintf_chk.c (__swprintf_chk)
9803 * debug/vasprintf_chk.c (__vasprintf_chk)
9804 * debug/vdprintf_chk.c (__vdprintf_chk)
9805 * debug/vfprintf_chk.c (__vfprintf_chk)
9806 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9807 * debug/vprintf_chk.c (__vprintf_chk)
9808 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9809 * debug/vswprintf_chk.c (__vswprintf_chk)
9810 * debug/vwprintf_chk.c (__vwprintf_chk)
9811 * debug/wprintf_chk.c (__wprintf_chk):
9812 Directly call the corresponding vxxprintf_internal function, passing
9813 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9814 the FILE and/or construct a temporary FILE. Minimize and normalize
9815 header inclusions and variable names. Do not libc_hidden_def anything.
9816
9817 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9818 __obstack_vprintf_internal.
9819 (__obstack_vprintf_chk): Convert into a wrapper that calls
9820 __obstack_vprintf_internal (these two functions already had the
9821 same code) and move to new file...
9822 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9823 file.
9824 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9825 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9826 * debug/Makefile (routines): Add vobprintf_chk.
9827
9828 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9829 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9830 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9831 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9832 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9833 (__nldbl___obstack_vfprintf_chk):
9834 Directly call the corresponding vxxprintf_internal function,
9835 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9836 duplicate comparison of slen with 0 or maxlen from the corresponding
9837 non-__nldbl function.
9838
9839 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9840 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9841 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9842 Remove libc_hidden_proto.
9843
9844 * stdio-common/vfprintf-internal.c
9845 (__vfprintf_internal, __vfwprintf_internal):
9846 Do not check _IO_FLAGS2_FORTIFY.
9847 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9848 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9849 a comment explaining why it has the maxlen argument.
9850 (_IO_acquire_lock_clear_flags2_fct): Remove.
9851 (_IO_acquire_lock_clear_flags2): Remove.
9852 (_IO_release_lock): Remove conditional statement which will
9853 now never execute.
9854 (_IO_acquire_lock): Remove variable which is now unused.
9855 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9856 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9857
9858 * stdio-common/Makefile (tests): Add tst-bz11319 and
9859 tst-bz11319-fortify2.
9860 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9861 * stdio-common/tst-bz11319-fortify2.c: New file.
9862 * stdio-common/tst-bz11319.c: Likewise.
9863
9864 2018-12-05 Zack Weinberg <zackw@panix.com>
9865 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9866
9867 * misc/syslog.c: Include libioP.h, not iolibio.h.
9868 (__vsyslog_internal): New function with the former body of
9869 __vsyslog_chk; takes mode_flags argument same as
9870 __v*printf_internal. Call __vfprintf_internal directly.
9871
9872 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9873 Remove libc_hidden_def.
9874 (__syslog, __syslog_chk): Use __vsyslog_internal.
9875 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9876
9877 * include/sys/syslog.h: Add multiple inclusion guard.
9878 Add prototype for __vsyslog_internal.
9879 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9880
9881 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9882 Use __vsyslog_internal.
9883
9884 2018-12-05 Zack Weinberg <zackw@panix.com>
9885 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9886
9887 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9888 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9889 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9890 New functions.
9891 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9892 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9893
9894 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9895 Include wctype.h here if COMPILE_WPRINTF is defined.
9896 Define __vfprintf_internal or __vfwprintf_internal, depending
9897 on COMPILE_WPRINTF.
9898 Temporarily, on entry to this function, update mode_flags
9899 according to the environmental settings corresponding to
9900 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9901 Throughout, check mode_flags instead of __ldbl_is_dbl and
9902 _IO_FLAGS2_FORTIFY on the destination FILE.
9903 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9904 Include vfprintf-internal.c. Don't include wctype.h.
9905 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9906 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9907 and vfprintf.
9908 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9909 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9910 and vfwprintf.
9911 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9912
9913 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9914 and add mode_flags argument; use __vfprintf_internal.
9915 (__vdprintf): New function. Alias vdprintf to this.
9916 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9917 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9918 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9919 (__obstack_printf): Use __obstack_printf_internal.
9920 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9921 public aliases __vsnprintf and vsnprintf.
9922 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9923 called internally.
9924 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9925 public aliases _IO_vsprintf and vsprintf.
9926 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9927 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9928 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9929 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9930 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9931
9932 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9933 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9934 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9935 * stdio-common/printf.c: Use __vfprintf_internal.
9936
9937 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9938 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9939 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9940
9941 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9942 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9943 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9944 __vfwprintf_internal.
9945
9946 * libio/libio.h: Remove libc_hidden_proto and declaration for
9947 _IO_vfprintf.
9948 Remove declaration of _IO_vfwprintf.
9949 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9950 _IO_vsprintf.
9951 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9952 _IO_obstack_printf.
9953 * include/stdio.h: Add prototype for __vasprintf.
9954 (__vsnprintf): Remove declaration, because there are no more
9955 internal calls.
9956 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9957 declaration, because there are no more internal calls.
9958
9959 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9960 __vsnprintf_internal, instead of _IO_vsnprintf.
9961 * argp/argp-help.c (__argp_error, __argp_failure): Use
9962 __vasprintf_internal, instead of _IO_vasprintf.
9963 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9964 redefine, because there are no more internal calls.
9965
9966 2018-12-05 Zack Weinberg <zackw@panix.com>
9967 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9968
9969 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9970 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9971 Include libio/strfile.h instead of libioP.h.
9972 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9973 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9974 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9975 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9976 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9977 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9978 necessary. Do not set __no_long_double. Normalize variable names.
9979 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9980 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9981 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9982 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9983 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9984 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9985 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9986 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9987 Do not set __no_long_double. Normalize variable names.
9988
9989 2018-12-05 Zack Weinberg <zackw@panix.com>
9990 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9991
9992 * stdio-common/isoc99_scanf.c
9993 * stdio-common/isoc99_fscanf.c
9994 * stdio-common/isoc99_sscanf.c
9995 * stdio-common/isoc99_vscanf.c
9996 * stdio-common/isoc99_vfscanf.c
9997 * stdio-common/isoc99_vsscanf.c
9998 * wcsmbs/isoc99_wscanf.c
9999 * wcsmbs/isoc99_fwscanf.c
10000 * wcsmbs/isoc99_swscanf.c
10001 * wcsmbs/isoc99_vwscanf.c
10002 * wcsmbs/isoc99_vfwscanf.c
10003 * wcsmbs/isoc99_vswscanf.c:
10004 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
10005 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
10006 No need to lock and unlock the FILE passed to that function.
10007
10008 * stdio-common/vfscanf-internal.c
10009 (__vfscanf_internal, __vfwscanf_internal):
10010 Don't look at _IO_FLAGS2_SCANF_STD.
10011 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
10012 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
10013 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10014
10015 2018-12-05 Zack Weinberg <zackw@panix.com>
10016 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10017
10018 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10019 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10020 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10021 * libio/strfile.h: Add multiple inclusion guard.
10022 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10023
10024 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10025 consistency with the other version of this file.
10026 (ldbl_compat_symbol): New macro.
10027 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10028 New macro.
10029
10030 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10031 Define __vfscanf_internal or __vfwscanf_internal, depending on
10032 COMPILE_WSCANF; don't define any other public symbols.
10033 Remove errval and code to set errp.
10034 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10035 as the mode_flags argument.
10036 (encode_error, conv_error, input_error): Don't set errval.
10037 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10038 Include vfscanf-internal.c.
10039 * stdio-common/vfscanf.c: New file defining the public entry
10040 point vfscanf, which calls __vfscanf_internal.
10041 * stdio-common/vfwscanf.c: New file defining the public entry
10042 point vfwscanf, which calls __vfwscanf_internal.
10043
10044 * stdio-common/iovfscanf.c: New file.
10045 * stdio-common/iovfwscanf.c: Likewise.
10046
10047 * stdio-common/Makefile (routines): Add vfscanf-internal,
10048 vfwscanf-internal, iovfscanf, iovfwscanf.
10049 * stdio-common/Versions: Mention GLIBC_2.29, so that
10050 it can be used in SHLIB_COMPAT expressions.
10051 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10052 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10053 Call __vfscanf_internal, instead of _IO_vfscanf.
10054 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10055 _IO_vfscanf.
10056 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10057 _IO_vfwscanf.
10058
10059 * libio/iovsscanf.c: Clean up includes, when possible. Use
10060 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10061 __vfscanf_internal or __vfwscanf_internal directly.
10062 * libio/iovswscanf.c: Likewise.
10063 * libio/swscanf.c: Likewise.
10064 * libio/vscanf.c: Likewise.
10065 * libio/vwscanf.c: Likewise.
10066 * libio/wscanf.c: Likewise.
10067 * stdio-common/isoc99_fscanf.c: Likewise.
10068 * stdio-common/isoc99_scanf.c: Likewise.
10069 * stdio-common/isoc99_sscanf.c: Likewise.
10070 * stdio-common/isoc99_vfscanf.c: Likewise.
10071 * stdio-common/isoc99_vscanf.c: Likewise.
10072 * stdio-common/isoc99_vsscanf.c: Likewise.
10073 * stdio-common/scanf.c: Likewise.
10074 * stdio-common/sscanf.c: Likewise.
10075 * wcsmbs/isoc99_fwscanf.c: Likewise.
10076 * wcsmbs/isoc99_swscanf.c: Likewise.
10077 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10078 * wcsmbs/isoc99_vswscanf.c: Likewise.
10079 * wcsmbs/isoc99_vwscanf.c: Likewise.
10080 * wcsmbs/isoc99_wscanf.c: Likewise.
10081
10082 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10083
10084 * include/time.h
10085 (__tz_compute): Replace time_t with __time64_t.
10086 (__tz_convert): Replace time_t* with __time64_t.
10087 (__offtime): Replace time_t* with __time64_t.
10088 * time/gmtime.c
10089 (__gmtime_r): Adjust call to __tz_convert.
10090 (gmtime): Likewise.
10091 * time/localtime.c
10092 (__localtime_r): Likewise.
10093 (localtime): Likewise.
10094 * time/offtime.c: Replace time_t with __time64_t.
10095 * time/tzset.c: Likewise.
10096
10097 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10098
10099 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10100 dynamic linker unless [$(run-built-tests) = yes].
10101
10102 2018-12-03 DJ Delorie <dj@delorie.com>
10103
10104 * support/test-container.c (check_for_unshare_hints): New.
10105 (main): Call it if unshare fails. Add support for "su" scriptlet
10106 command.
10107
10108 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10109
10110 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10111 'START' to indicate that start text should be output.
10112 (gen_test): Likewise.
10113 (main): Generate 'START' for first symbol or '--' line, or at end
10114 of input if not previously generated.
10115
10116 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10117
10118 [BZ #19767]
10119 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10120 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10121 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10122 ALWAYS_USE_VSYSCALL.
10123
10124 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10125
10126 [BZ #23913]
10127 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10128 new_argv by one.
10129
10130 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10131
10132 [BZ #23923]
10133 * locale/programs/localedef.c: Declare boolean hard_links default true.
10134 (options): Add --no-hard-links option.
10135 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10136 * locale/programs/localedef.h: Declare prototype for hard_links.
10137 * locale/programs/locfile.c (write_locale_data): Don't use hard
10138 links if hard_links is false.
10139
10140 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10141
10142 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10143 cpu_features_basic.
10144 (__cache_sysconf): Likewise.
10145 (init_cacheinfo): Likewise.
10146 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10147 populate COMMON_CPUID_INDEX_80000007 and
10148 COMMON_CPUID_INDEX_80000008.
10149 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10150 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10151 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10152 (init_cpu_features): Use _Static_assert on
10153 index_arch_Fast_Unaligned_Load.
10154 __get_cpuid_registers and __get_arch_feature. Updated for
10155 cpu_features_basic. Set stepping in cpu_features.
10156 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10157 (FEATURE_INDEX_2): New.
10158 (FEATURE_INDEX_MAX): Changed to enum.
10159 (COMMON_CPUID_INDEX_D_ECX_1): New.
10160 (COMMON_CPUID_INDEX_80000007): Likewise.
10161 (COMMON_CPUID_INDEX_80000008): Likewise.
10162 (cpuid_registers): Likewise.
10163 (cpu_features_basic): Likewise.
10164 (CPU_FEATURE_USABLE): Likewise.
10165 (bit_arch_XXX_Usable): Likewise.
10166 (cpu_features): Use cpuid_registers and cpu_features_basic.
10167 (bit_arch_XXX): Reweritten.
10168 (bit_cpu_XXX): Likewise.
10169 (index_cpu_XXX): Likewise.
10170 (reg_XXX): Likewise.
10171 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10172 <support/check.h>.
10173 (CHECK_CPU_FEATURE): New.
10174 (CHECK_CPU_FEATURE_USABLE): Likewise.
10175 (cpu_kinds): Likewise.
10176 (do_test): Print vendor, family, model and stepping. Check
10177 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10178 (TEST_FUNCTION): Removed.
10179 Include <support/test-driver.c> instead of
10180 "../../test-skeleton.c".
10181 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10182 Check POPCNT instead of POPCOUNT.
10183 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10184
10185 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10186
10187 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10188 there is no element in `consts'.
10189
10190 2018-12-01 Florian Weimer <fweimer@redhat.com>
10191
10192 * support/support_capture_subprocess.c
10193 (support_capture_subprocess): Check that pipe descriptors have
10194 expected values. Close original pipe descriptors in subprocess.
10195
10196 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10197
10198 [BZ #23032]
10199 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10200 attr with __pthread_default_barrierattr.
10201 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10202 attr with __pthread_default_condattr.
10203 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10204 attr with __pthread_default_mutexattr.
10205 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10206 attr with __pthread_default_rwlockattr.
10207
10208 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10209
10210 * manual/tunables.texi (POSIX Thread Tunables): New node.
10211 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10212 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10213 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10214 __pthread_tunables_init.
10215 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10216 (max_adaptive_count): Define.
10217 * nptl/pthread_mutex_conf.c: New file.
10218 * nptl/pthread_mutex_conf.h: New file.
10219 * sysdeps/generic/adaptive_spin_count.h: New file.
10220 * sysdeps/nptl/dl-tunables.list: New file.
10221 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10222 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10223 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10224 Likewise.
10225
10226 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10227
10228 [BZ #20544]
10229 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10230 * stdlib/on_exit.c (__on_exit): Likewise.
10231 * stdlib/Makefile (tests): Add tst-bz20544.
10232 * stdlib/tst-bz20544.c: New test.
10233
10234 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10235
10236 [BZ #19767]
10237 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10238 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10239 New.
10240
10241 2018-11-30 Florian Weimer <fweimer@redhat.com>
10242
10243 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10244 Extend error logging.
10245 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10246 symbol.
10247
10248 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10249
10250 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10251 __sigismember instead of sigismember.
10252 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10253 cancel_handler): New definitions.
10254 (do_system): Use posix_spawn instead of fork and execl and remove
10255 reentracy code.
10256 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10257 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10258 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10259 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10260 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10261 * sysdeps/unix/sysv/linux/system.c: Likewise.
10262
10263 [BZ #22834]
10264 [BZ #17490]
10265 * NEWS: Add new semantic for atfork with popen and system.
10266 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10267 fork and execl.
10268
10269 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10270
10271 [BZ #23690]
10272 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10273 modification order when accessing reloc_result->addr.
10274 * include/link.h (reloc_result): Add field init.
10275 * nptl/Makefile (tests): Add tst-audit-threads.
10276 (modules-names): Add tst-audit-threads-mod1 and
10277 tst-audit-threads-mod2.
10278 Add rules to build tst-audit-threads.
10279 * nptl/tst-audit-threads-mod1.c: New file.
10280 * nptl/tst-audit-threads-mod2.c: Likewise.
10281 * nptl/tst-audit-threads.c: Likewise.
10282 * nptl/tst-audit-threads.h: Likewise.
10283
10284 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10285
10286 * scripts/gen-as-const.py: New file.
10287 * scripts/gen-as-const.awk: Remove.
10288 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10289 gen-as-const.py.
10290 ($(objpfx)test-as-const-%.c): Likewise.
10291
10292 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10293
10294 * elf/dl-exception.c: Include <_itoa.h>.
10295
10296 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10297
10298 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10299 returned by __f_setlk.
10300
10301 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10302 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10303
10304 * elf/Makefile (tests-internal): Add tst-create_format1.
10305 * elf/dl-exception.c (_dl_exception_create_format): Support
10306 %x, %lx and %zx.
10307 * elf/tst-create_format1.c: New file.
10308
10309 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10310
10311 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10312 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10313 gnulib.)
10314 * argp/argp-help.c (__argp_failure): Likewise.
10315
10316 2018-11-29 Mao Han <han_mao@c-sky.com>
10317
10318 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10319 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10320 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10321 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10322 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10323 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10324 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10325 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10326 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10327 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10328 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10329 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10330 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10331 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10332 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10333 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10334 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10335 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10336 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10337 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10338 (R_CKCORE_TLS_TPOFF32): New defines.
10339
10340 2018-11-29 Florian Weimer <fweimer@redhat.com>
10341
10342 * posix/Makefile (before-compile): Remove testcases.h and
10343 ptestcases.h.
10344 (generated): Add testcases.h and ptestcases.h.
10345 (testcases.h, ptestcases.h): Move to $(objpfx).
10346 (runtests.o): Add dependency on testcases.h.
10347 (runptests.o): Add dependency on ptestcases.h.
10348 * posix/testcases.h, posix/ptestcases.h: Remove files.
10349 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10350 not touch posix/testcases.h and posix/ptestcases.h.
10351
10352 2018-11-28 Florian Weimer <fweimer@redhat.com>
10353
10354 support: Add signal support to support_capture_subprocess_check.
10355 * support/capture_subprocess.h (support_capture_subprocess_check):
10356 Adjust comment and rename parameter.
10357 * support/support_capture_subprocess_check.c
10358 (print_actual_status): New function.
10359 (support_capture_subprocess_check): Support negative
10360 status_or_signal. Call print_actual_status.
10361 * support/tst-support_capture_subprocess.c (do_test): Call
10362 support_capture_subprocess_check.
10363 * libio/tst-vtables-common.c (termination_status)
10364 (init_termination_status): Remove.
10365 (check_for_termination): Adjust support_capture_subprocess_check
10366 call.
10367 (do_test): Remove call to init_termination_status.
10368
10369 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10370
10371 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10372 source directory instead of a copy.
10373 (CommandList.create_copy_dir): Remove.
10374
10375 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10376
10377 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10378
10379 2018-11-28 Florian Weimer <fweimer@redhat.com>
10380
10381 * support/support.h (support_quote_string): Do not use str
10382 parameter name.
10383
10384 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10385
10386 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10387 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10388
10389 2018-11-27 Florian Weimer <fweimer@redhat.com>
10390
10391 * support/support.h (support_quote_string): Declare.
10392 * support/support_quote_string.c: New file.
10393 * support/tst-support_quote_string.c: Likewise.
10394 * support/Makefile (libsupport-routines): Add
10395 support_quote_string.
10396 (tests): Add tst-support_quote_string.
10397
10398 2018-11-27 Florian Weimer <fweimer@redhat.com>
10399
10400 [BZ #23927]
10401 CVE-2018-19591
10402 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10403 descriptor leak in case of ENODEV error.
10404
10405 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10406
10407 [BZ #19767]
10408 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10409 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10410 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10411
10412 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10413
10414 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10415 Error for unknown lines.
10416
10417 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10418
10419 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10420 Touch additional files.
10421
10422 2018-11-26 Florian Weimer <fweimer@redhat.com>
10423
10424 [BZ #23907]
10425 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10426 double-frees.
10427
10428 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10429
10430 [BZ #19767]
10431 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10432 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10433 SHARED. Include sysdep.h.
10434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10435 ALWAYS_USE_VSYSCALL.
10436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10437 ALWAYS_USE_VSYSCALL.
10438
10439 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10440
10441 [BZ #19767]
10442 * nptl/Makefile (tests-static): Add tst-cond11-static.
10443 (tests): Likewise.
10444 * nptl/tst-cond11-static.c: New File.
10445 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10446 tst-affinity-static.
10447 (tests): Likewise.
10448 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10449 instead of SHARED.
10450 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10451 (USE_VSYSCALL): Likewise.
10452 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10453 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10454 instead of SHARED.
10455 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10456 SHARED.
10457 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10458 New.
10459
10460 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10461
10462 [BZ #23915]
10463 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10464 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10465 Undefine.
10466
10467 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10468
10469 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10470 (tst-cet-legacy-1a-ARGS): New.
10471 ($(objpfx)tst-cet-legacy-1a): New target.
10472 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10473
10474 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10475
10476 * conform/conformtest.py (CompileSubTest.__init__): Set
10477 self.run_early to False.
10478 (ExecuteSubTest.__init__): Likewise.
10479 (HeaderTests.run): Try running all non-optional, non-XFAILed
10480 compilation tests in a single execution of the compiler.
10481
10482 * conform/conformtest.py (CompileSubTest): New class.
10483 (ExecuteSubTest): Likewise.
10484 (ElementTest.run): Rename to gen_subtests. Append tests to
10485 self.subtests instead of running them.
10486 (ConstantTest.run): Likewise.
10487 (SymbolTest.run): Likewise.
10488 (TypeTest.run): Likewise.
10489 (TagTest.run): Likewise.
10490 (FunctionTest.run): Likewise.
10491 (VariableTest.run): Likewise.
10492 (MacroFunctionTest.run): Likewise.
10493 (MacroStrTest.run): Likewise.
10494 (HeaderTests.handle_test_line): Generate subtests for tests.
10495 (HeaderTests.run): Run subtests for tests.
10496
10497 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10498
10499 * math/Versions (GLIBC_2.29): Add pow.
10500 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10501 symbol.
10502 * math/w_pow.c: New file.
10503 * sysdeps/i386/fpu/w_pow.c: New file.
10504 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10505 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10506 and add necessary aliases.
10507 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10508 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10509 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10510 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10511 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10512 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10513 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10514 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10515 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10516 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10517 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10518 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10519 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10520 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10521 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10526 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10527 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10528 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10529 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10530 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10531 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10532 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10533 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10534 __pow.
10535 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10536 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10537 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10538
10539 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10540
10541 * math/Versions (GLIBC_2.29): Add log2.
10542 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10543 symbol.
10544 * math/w_log2.c: New file.
10545 * sysdeps/i386/fpu/w_log2.c: New file.
10546 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10547 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10548 and add necessary aliases.
10549 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10550 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10551 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10552 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10553 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10554 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10555 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10556 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10557 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10558 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10559 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10560 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10561 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10562 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10563 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10564 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10568 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10569 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10570 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10571 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10572 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10573 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10574 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10575
10576 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10577
10578 * math/Versions (GLIBC_2.29): Add log.
10579 * math/w_log_compat.c (__log_compat): Change to versioned compat
10580 symbol.
10581 * math/w_log.c: New file.
10582 * sysdeps/i386/fpu/w_log.c: New file.
10583 * sysdeps/ia64/fpu/e_log.S: Update.
10584 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10585 and add necessary aliases.
10586 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10587 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10588 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10589 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10590 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10591 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10592 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10593 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10594 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10595 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10596 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10597 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10598 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10599 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10600 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10605 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10606 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10607 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10608 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10609 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10610 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10611 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10612 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10613 __log.
10614 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10615 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10616 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10617 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10618
10619 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10620
10621 * math/Versions (GLIBC_2.29): Add exp and exp2.
10622 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10623 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10624 * math/w_exp_compat.c (__exp_compat): Likewise.
10625 * math/w_exp.c: New file.
10626 * math/w_exp2.c: New file.
10627 * sysdeps/i386/fpu/w_exp.c: New file.
10628 * sysdeps/i386/fpu/w_exp2.c: New file.
10629 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10630 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10631 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10632 and add necessary aliases.
10633 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10634 and add necessary aliases.
10635 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10636 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10637 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10638 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10639 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10640 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10641 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10642 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10643 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10644 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10645 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10646 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10647 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10648 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10649 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10650 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10651 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10656 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10657 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10658 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10659 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10660 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10661 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10662 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10663 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10664 (__ieee754_exp): Rename to __exp.
10665 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10666 (__ieee754_exp): Rename to __exp.
10667 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10668 (__ieee754_exp): Rename to __exp.
10669 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10670 __exp.
10671 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10672
10673 2018-11-20 DJ Delorie <dj@redhat.com>
10674
10675 * malloc/malloc.c (tcache_entry): Add key field.
10676 (tcache_put): Set it.
10677 (tcache_get): Likewise.
10678 (_int_free): Check for double free in tcache.
10679 * malloc/tst-tcfree1.c: New.
10680 * malloc/tst-tcfree2.c: New.
10681 * malloc/Makefile: Run the new tests.
10682 * manual/probes.texi: Document memory_tcache_double_free probe.
10683
10684 * dlfcn/dlerror.c (check_free): Prevent double frees.
10685
10686 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10687
10688 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10689
10690 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10691
10692 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10693 in tests. Use names for format arguments.
10694 (ConstantTest.run): Likewise.
10695 (SymbolTest.run): Likewise.
10696 (TypeTest.run): Likewise.
10697 (TagTest.run): Likewise.
10698 (FunctionTest.run): Likewise.
10699 (VariableTest.run): Likewise.
10700 (MacroFunctionTest.run): Likewise.
10701 (MacroStrTest.run): Likewise.
10702 (HeaderTests.__init__): Set self.num_tests.
10703 (HeaderTests.handle_test_line): Set test.num. Increment
10704 self.num_tests.
10705
10706 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10707
10708 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10709 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10710 SEEK_SET.
10711
10712 2018-11-19 Mao Han <han_mao@c-sky.com>
10713
10714 * scripts/config.guess: Update to version 2018-08-29.
10715 * scripts/config.sub: Update to version 2018-08-29.
10716
10717 2018-11-19 Florian Weimer <fweimer@redhat.com>
10718
10719 support: Print timestamps in timeout handler.
10720 * support/support_test_main.c (print_timestamp): New function.
10721 (signal_handler): Use it to print the termination time and the
10722 time of the last write to standard output.
10723
10724 2018-11-16 Zack Weinberg <zackw@panix.com>
10725 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10726
10727 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10728 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10729 argument.
10730 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10731 and add flags argument. Check flags instead of __ldbl_is_dbl when
10732 deciding whether to set is_long_double.
10733 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10734 passing zero for flags argument.
10735 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10736
10737 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10738 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10739 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10740 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10741 variable names. Remove libc_hidden_def/libc_hidden_proto from
10742 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10743 longer called from within the library.
10744 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10745 for __nldbl___vstrfmon_l, declare it explicitly.
10746
10747 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10748
10749 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10750
10751 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10752 macros
10753 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10754 F_SETLK64, F_SETLKW64, respectively.
10755 * sysdeps/mach/hurd/f_setlk.c: New file.
10756 * sysdeps/mach/hurd/f_setlk.h: New file.
10757 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10758 f_setlk.
10759 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10760 (__libc_fcntl): Move non-flock operations to...
10761 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10762 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10763
10764 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10765
10766 mktime: DEBUG_MKTIME cleanup
10767 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10768 And it’s no longer needed now that glibc and Gnulib both have
10769 their own testing mechanisms for mktime.
10770 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10771
10772 mktime: fix non-EOVERFLOW errno handling
10773 [BZ#23789]
10774 mktime was not properly reporting failures when the underlying
10775 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10776 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10777 The problem could happen on non-glibc platforms, with Gnulib.
10778 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10779 (tm_diff): ... this simpler function, which does not change errno.
10780 All callers changed to deal with errno themselves.
10781 (ranged_convert, __mktime_internal): Return failure immediately if
10782 the underlying function reports any failure other than EOVERFLOW.
10783 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10784 gap code fails.
10785
10786 mktime: fix bug with Y2038 DST transition
10787 [BZ#23789]
10788 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10789 mishandle a DST transition that jumps over the Y2038 boundary.
10790 No such DST transitions are known so this is only a theoretical
10791 bug, but we might as well do things right.
10792
10793 mktime: make more room for overflow
10794 [BZ#23789]
10795 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10796 This is so that we can add tm_diff results to a previous guess,
10797 which will be useful in a later patch.
10798
10799 mktime: simplify offset guess
10800 [BZ#23789]
10801 * time/mktime.c (__mktime_internal): Omit excess precision.
10802
10803 mktime: new test for mktime failure
10804 [BZ#23789]
10805 Based on a test suggested by Albert Aribaud in:
10806 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10807 * time/Makefile (tests): Add bug-mktime4.
10808 * time/bug-mktime4.c: New file.
10809
10810 mktime: fix EOVERFLOW bug
10811 [BZ#23789]
10812 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10813 Include libc-config.h, not config.h, for __set_errno.
10814 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10815
10816 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10817
10818 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10819 __attribute_copy__ to copy attributes from name. Drop static qualifier
10820 to avoid warnings about leaf attribute not having effect on static
10821 functions.
10822
10823 2018-11-13 Florian Weimer <fweimer@redhat.com>
10824
10825 * malloc/malloc.c (fastbin_push_entry): New function.
10826 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10827 (REMOVE_FB): Remove macro.
10828 (_int_malloc): Use fastbin_pop_entry and reindent.
10829 (_int_free): Use fastbin_push_entry.
10830 (malloc_consolidate): Use atomic_exchange_acquire.
10831
10832 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10833
10834 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10835 alias attribute, not with strong_alias.
10836
10837 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10838 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10839 with additional parameter thread.
10840 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10841 in terms of __hidden_ver2.
10842 (hidden_tls_def): New macro.
10843 (libc_hidden_tls_def): Likewise.
10844 (rtld_hidden_tls_def): Likewise.
10845 (libm_hidden_tls_def): Likewise.
10846 (libmvec_hidden_tls_def): Likewise.
10847 (libresolv_hidden_tls_def): Likewise.
10848 (librt_hidden_tls_def): Likewise.
10849 (libdl_hidden_tls_def): Likewise.
10850 (libnss_files_hidden_tls_def): Likewise.
10851 (libnsl_hidden_tls_def): Likewise.
10852 (libnss_nisplus_hidden_tls_def): Likewise.
10853 (libutil_hidden_tls_def): Likewise.
10854 (libutil_hidden_tls_def): Likweise.
10855 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10856 libc_hidden_tls_def.
10857 (__sim_disabled_exceptions_thread): Likewise.
10858 (__sim_round_mode_thread): Likewise.
10859
10860 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10861 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10862 copy attributes from name.
10863
10864 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10865
10866 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10867 Use __attribute_copy__ to copy attributes from name.
10868
10869 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10870 with __hidden_ver1 call.
10871 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10872 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10873 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10874 (__cosf): Do not declare here.
10875 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10876 (__sincosf): Do not declare here.
10877 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10878 (__sinf): Do not declare here.
10879
10880 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10881 (__BIG_ENDIAN): Likewise.
10882 (__BYTE_ORDER): Likewise.
10883 (strong_alias): Likewise.
10884 (_strong_alias): Likewise.
10885
10886 2018-11-12 Florian Weimer <fweimer@redhat.com>
10887
10888 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10889 function. Move after the definition of in_smallbin_range. Do not
10890 use __builtin_expect for paths that lead to a noreturn function.
10891 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10892 because it is unclear whether this is in fact an unlikely
10893 condition.
10894 (_int_malloc, _int_free): Adjust.
10895 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10896 variables.
10897 * malloc/arena.c (heap_trim): Likewise.
10898
10899 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10900
10901 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10902 it, free it if needed.
10903 (reauthenticate): Test and use ccwdir.
10904 (child_init_port): In non-resetids case, test and use ccwdir.
10905 (child_chdir): New nested function to set ccwdir.
10906 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10907 * hurd/hurd/port.h (_hurd_port_move): New function.
10908 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10909 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10910 * hurd/Versions (_hurd_port_move): Export function.
10911 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10912 symbol.
10913 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10914 of dtablesize for allocating dtable_cloexec.
10915
10916 2018-11-09 Martin Sebor <msebor@redhat.com>
10917
10918 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10919 it's already defined.
10920 (_strong_alias): Use __attribute_copy__.
10921 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10922 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10923 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10924 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10925 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10926 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10927 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10928 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10929 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10930 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10931 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10932 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10933 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10934 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10935 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10936 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10937 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10938 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10939 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10940
10941 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10942
10943 * misc/tst-efgcvt.c: Include support/check.h and
10944 support/test-driver.c. Do not include test-skeleton.c.
10945 (error_count): Remove.
10946 (output_error): Replace increments to error_count with calls to
10947 support_record_failure.
10948 (output_r_error): Likewise.
10949 (special): Likewise.
10950 (do_test): Unconditionally return zero.
10951 (TEST_FUNCTION): Remove.
10952
10953 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10954
10955 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10956 not $(@D)/scratch.
10957 ($(linknamespace-header-tests)): Likewise.
10958
10959 * conform/conformtest.py: New file.
10960 * conform/conformtest.pl: Remove.
10961 * conform/GlibcConform.pm: Likewise.
10962 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10963 (KEYWORDS_C99): Likewise.
10964 (KEYWORDS): Likewise.
10965 * conform/Makefile ($(conformtest-header-tests)): Use
10966 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10967 option. Use --header instead of --headers.
10968 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10969 function entries.
10970 * conform/data/spawn.h-data: Likewise.
10971 * conform/data/fcntl.h-data (openat): Add space after function
10972 name.
10973 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10974 (wcscasecmp_l): Likewise.
10975 * conform/data/termios.h-data (c_cc): Add space after element
10976 name.
10977
10978 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10979
10980 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10981 instead of manually comparing and reporting mismatching strings.
10982 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10983 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10984
10985 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10986
10987 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10988 __ASSUME_SOCKETCALL.
10989 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10990 (__ASSUME_SOCKETCALL): Remove.
10991 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10992 (__ASSUME_SOCKETCALL): Likewise.
10993 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10994 (__ASSUME_SOCKETCALL): Likewise.
10995 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10996 (__ASSUME_SOCKETCALL): Likewise.
10997 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10998 (__ASSUME_SOCKETCALL): Likewise.
10999 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11000 (__ASSUME_SOCKETCALL): Likewise.
11001 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11002 (__ASSUME_SOCKETCALL): Likewise.
11003
11004 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
11005
11006 [BZ #23509]
11007 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
11008 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
11009 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
11010 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
11011 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
11012 lc_unknown.
11013
11014 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
11015
11016 [BZ #17630]
11017 * resolv/tst-resolv-network.c: Add test for getnetbyname.
11018
11019 2018-11-07 Joseph Myers <joseph@codesourcery.com>
11020
11021 [BZ #23867]
11022 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11023 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11024 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11025 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11026
11027 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11028
11029 * support/support_test_compare_string.c
11030 (support_test_compare_string): Fix printf format.
11031
11032 2018-11-07 Florian Weimer <fweimer@redhat.com>
11033
11034 Implement TEST_COMPARE_STRING.
11035 * support/check.h (TEST_COMPARE_STRING): Define.
11036 (support_test_compare_string): Declare.
11037 * support/Makefile (libsupport-routines): Add
11038 support_test_compare_string.
11039 (tests): Add tst-test_compare_string.
11040 * support/support_test_compare_string.c: New file.
11041 * support/tst-test_compare_string.c: Likewise.
11042
11043 2018-11-07 Andreas Schwab <schwab@suse.de>
11044
11045 [BZ #23864]
11046 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11047 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11048 Undef.
11049
11050 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11051
11052 [BZ #23862]
11053 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11054 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11055 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11056 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11057 Likewise.
11058
11059 2018-11-06 Florian Weimer <fweimer@redhat.com>
11060
11061 [BZ #17405]
11062 * posix/Makefile (routines): Add spawn_faction_addchdir.
11063 (tests): Add tst-spawn-chdir.
11064 * posix/Versions (GLIBC_2.29): Add
11065 posix_spawn_file_actions_addchdir_np.
11066 * posix/spawn_faction_addchdir.c: New file.
11067 * posix/spawn_faction_destroy.c
11068 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11069 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11070 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11071 chdir_action.
11072 * posix/tst-spawn-chdir.c: New file.
11073 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11074 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11075 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11076 posix_spawn_file_actions_addchdir_np.
11077 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11078 Likewise.
11079 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11080 Likewise.
11081 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11082 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11083 Likewise.
11084 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11085 Likewise.
11086 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11087 Likewise.
11088 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11089 Likewise.
11090 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11091 Likewise.
11092 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11093 Likewise.
11094 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11095 (GLIBC_2.29): Likewise.
11096 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11097 (GLIBC_2.29): Likewise.
11098 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11099 (GLIBC_2.29): Likewise.
11100 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11101 (GLIBC_2.29): Likewise.
11102 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11103 Likewise.
11104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11105 (GLIBC_2.29): Likewise.
11106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11107 (GLIBC_2.29): Likewise.
11108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11109 (GLIBC_2.29): Likewise.
11110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11111 (GLIBC_2.29): Likewise.
11112 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11113 Likewise.
11114 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11115 Likewise.
11116 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11117 Likewise.
11118 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11119 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11120 Likewise.
11121 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11122 Likewise.
11123 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11124 Likewise.
11125 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11126 Likewise.
11127
11128 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11129
11130 * misc/Makefile (tests): Add tst-ldbl-error.
11131 * misc/tst-ldbl-error.c: New file.
11132
11133 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11134
11135 * misc/Makefile (tests): Add tst-ldbl-warn.
11136 * misc/tst-ldbl-warn.c: New file.
11137
11138 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11139
11140 * argp/Makefile (tests): Add tst-ldbl-argp.
11141 * argp/tst-ldbl-argp.c: New file.
11142
11143 2018-11-05 Arjun Shankar <arjun@redhat.com>
11144
11145 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11146 __gconv_path_elem and call __gconv_get_path unconditionally.
11147
11148 2018-11-05 Andreas Schwab <schwab@suse.de>
11149
11150 [BZ #22927]
11151 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11152 creating the first helper thread failed.
11153
11154 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11155
11156 * sysdeps/mach/hurd/msync.c: New file.
11157
11158 2018-11-02 Florian Weimer <fweimer@redhat.com>
11159
11160 * support/shell-container.c (copy_func): Call
11161 support_copy_file_range instead of copy_file_range to support
11162 cross-device copies.
11163
11164 2018-11-02 Florian Weimer <fweimer@redhat.com>
11165
11166 * support/test-container.c: Include <libc-pointer-arith.h> for
11167 ALIGN_UP.
11168
11169 2018-11-01 Zong Li <zong@andestech.com>
11170
11171 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11172 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11173 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11174 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11175
11176 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11177 variable to avoid overlap arguments.
11178
11179 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11180
11181 * posix/bug-regex22.c (main): Use puts with distinct error
11182 messages for unexpected success of re_compile_pattern, not printf
11183 with NULL argument to %s.
11184
11185 * stdio-common/bug22.c: Include <libc-diag.h>.
11186 (do_test): Disable -Wformat-overflow= warnings around fprintf
11187 calls outputting more than INT_MAX characters.
11188 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11189 around printf call with NULL %s argument.
11190
11191 [BZ #23848]
11192 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11193 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11194 Undefine.
11195 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11196 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11197 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11198 (__ASSUME_SENDTO_SYSCALL): Likewise.
11199 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11200 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11201 [!__arch64__].
11202 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11203 (__ASSUME_CONNECT_SYSCALL): Likewise.
11204 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11205 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11206 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11207 Define.
11208 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11209 Likewise.
11210 [__LINUX_KERNEL_VERSION >= 0x040400]
11211 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11212 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11213 Remove.
11214 (listen): Likewise.
11215 (setsockopt): Likewise.
11216
11217 2018-11-01 Fredrik Noring <noring@nocrew.org>
11218
11219 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11220 with the ISA override.
11221
11222 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11223
11224 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11225 #endif.
11226
11227 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11228
11229 * manual/errno.texi (EIEIO): Document how translators should
11230 translate the error message.
11231 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11232 printing trailing whitespaces refused by git.
11233 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11234 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11235 * hurd/Makefile (user-interfaces): Add pci.
11236
11237 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11238
11239 * conform/linknamespace.py: New file.
11240 * conform/linknamespace.pl: Remove file.
11241 * conform/Makefile ($(linknamespace-header-tests)): Use
11242 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11243 option.
11244
11245 2018-10-30 Florian Weimer <fweimer@redhat.com>
11246
11247 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11248 memory leaks.
11249
11250 2018-10-30 Florian Weimer <fweimer@redhat.com>
11251
11252 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11253
11254 2018-10-30 Florian Weimer <fweimer@redhat.com>
11255
11256 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11257 support_blob_repeat.
11258
11259 2018-10-30 Florian Weimer <fweimer@redhat.com>
11260
11261 Avoid spurious test failures in stdlib/test-bz22786.
11262 * support/Makefile (libsupport-routines): Add blob_repeat.
11263 (tests): Add tst-support_blob_repeat.
11264 * support/blob_repeat.h: New file.
11265 * support/blob_repeat.c: Likewise.
11266 * support/tst-support_blob_repeat.c: Likewise.
11267 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11268 support_blob_repeat_allocate.
11269
11270 2018-10-30 Andreas Schwab <schwab@suse.de>
11271
11272 [BZ #23125]
11273 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11274 Don't use tail call.
11275 * elf/tst-unwind-main.c: New file.
11276 * elf/Makefile (tests): Add tst-unwind-main.
11277 (CFLAGS-tst-unwind-main.c): Define.
11278
11279 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11280
11281 [BZ #23791]
11282 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11283 n_cs_precedes to 0.
11284 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11285
11286 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11287
11288 * conform/glibcconform.py: Do not import shutil.
11289 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11290 of mkdtemp.
11291
11292 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11293 critic_missing for versions before 3.4.
11294 * configure: Regenerated.
11295 * manual/install.texi (Tools for Compilation): Document
11296 requirement for Python to build glibc.
11297 * INSTALL: Regenerated.
11298 * Rules [PYTHON]: Make code unconditional.
11299 * benchtests/Makefile [PYTHON]: Likewise.
11300 * conform/Makefile [PYTHON]: Likewise.
11301 * manual/Makefile [PYTHON]: Likewise.
11302 * math/Makefile [PYTHON]: Likewise.
11303
11304 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11305
11306 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11307 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11308 answer to interrupt_operation, return EIEIO instead of EINTR.
11309 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11310 _hurd_intr_rpc_msg_about_to global point to start of controlled
11311 assembly snippet. Make it check canceled flag.
11312 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11313 the _hurd_intr_rpc_msg_about_to point.
11314 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11315 issue, remove cancel flag check.
11316
11317 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11318
11319 * scripts/build-many-glibcs.py: Remove compatibility for missing
11320 os.cpu_count and re.fullmatch.
11321
11322 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11323
11324 [BZ #23822]
11325 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11326 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11327 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11328
11329 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11330
11331 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11332 macro.
11333
11334 2018-10-25 Florian Weimer <fweimer@redhat.com>
11335
11336 [BZ #23562]
11337 [BZ #23821]
11338 XFAIL siginfo_t si_band conform test on sparc64.
11339 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11340 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11341 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11342 (conformtest-xfail-conds): Add sparc64-linux.
11343 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11344 sparc64.
11345 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11346
11347 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11348
11349 * elf/elf.h (NT_MIPS_DSP): New macro.
11350 (NT_MIPS_FP_MODE): Likewise.
11351
11352 2018-10-25 Zong Li <zong@andestech.com>
11353
11354 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11355 name by adding the file extension (.so).
11356
11357 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11358
11359 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11360 (test-xfail-ISO11/threads.h/linknamespace,
11361 test-xfail-ISO11/threads.h/conform): Add.
11362
11363 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11364
11365 * math/gen-libm-test.py: Import os.
11366 (ALL_FLOATS_MANUAL): New constant.
11367 (ALL_FLOATS_SUFFIX): Likewise.
11368 (Ulps.all_functions): New function.
11369 (real_all_ulps): Likewise.
11370 (generate_err_table_sub): Likewise.
11371 (generate_err_table): Likewise.
11372 (main): Handle -s and -m options.
11373 * manual/libm-err-tab.pl: Remove.
11374 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11375 instead of libm-err-tab.pl.
11376 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11377 != no].
11378 * manual/install.texi (Tools for Compilation): Document
11379 requirement for Python to build manual.
11380 * INSTALL: Regenerated.
11381
11382 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11383
11384 * bits/time64.h: New file.
11385 * include/time.h: Replace internal_time_t with __time64_t.
11386 * posix/bits/types (__time64_t): Add.
11387 * stdlib/Makefile: Add bits/time64.h to includes.
11388 * time/tzfile.c: Replace internal_time_t with __time64_t.
11389
11390 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11391
11392 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11393 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11394 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11395 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11396 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11397 prototype.
11398 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11399 * posix/spawn_faction_addclose.c
11400 (__posix_spawn_file_actions_addclose): Add hidden definition.
11401 * posix/spawn_faction_adddup2.c
11402 (__posix_spawn_file_actions_adddup2): Likewise.
11403 * posix/spawn_faction_destroy.c
11404 (__posix_spawn_file_actions_destroy): Likewise.
11405 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11406 Likewise.
11407 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11408 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11409 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11410 Likewise.
11411 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11412 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11413 Likewise.
11414
11415 2018-10-24 Andreas Schwab <schwab@suse.de>
11416
11417 [BZ #18093]
11418 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11419 format cache.
11420 * elf/cache.c (print_cache): Likewise.
11421
11422 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11423
11424 * bits/timesize.h: New file.
11425 * stdlib/Makefile (headers): Add bits/timesize.h.
11426 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11427 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11428 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11429 (__SEM_PAD_AFTER_TIME): Likewise.
11430 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11431 (__SHM_PAD_AFTER_TIME): Likewise.
11432 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11433 (__MSQ_PAD_BEFORE_TIME): Likewise.
11434 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11435 (__SEM_PAD_BEFORE_TIME): Likewise.
11436 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11437 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11438 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11439 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11440 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11441 (__MSQ_PAD_BEFORE_TIME): Likewise.
11442 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11443 (__SEM_PAD_BEFORE_TIME): Likewise.
11444 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11445 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11446 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11447 (__MSQ_PAD_BEFORE_TIME): Likewise.
11448 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11449 (__SEM_PAD_BEFORE_TIME): Likewise.
11450 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11451 (__SHM_PAD_BEFORE_TIME): Likewise.
11452 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11453 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11454 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11455
11456 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11457
11458 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11459 USE_RDTSCP is defined.
11460 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11461 USE_RDTSCP is defined.
11462
11463 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11464
11465 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11466 defined.
11467
11468 [BZ #23709]
11469 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11470 independently of other flags.
11471
11472 2018-10-23 Florian Weimer <fweimer@redhat.com>
11473
11474 * time/tst-mktime2.c (N_STRINGS): Remove.
11475 (set_timezone): New function.
11476 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11477 (mktime_test1): Report localtime failure and check errno value.
11478 Use TEST_COMPARE.
11479 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11480 (do_test): Remove alarm call. Use set_timezone and array_length.
11481
11482 2018-10-23 Andreas Schwab <schwab@suse.de>
11483
11484 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11485 (__start_context): Use END instead of PSEUDO_END.
11486
11487 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11488
11489 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11490 version to 4.19.
11491
11492 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11493 version to 4.19.
11494
11495 [BZ #23793]
11496 * wcsmbs/c32rtomb.c: New file.
11497 * wcsmbs/mbrtoc32.c: Likewise.
11498 * wcsmbs/tst-c32-state.c: Likewise.
11499 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11500 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11501 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11502 (tests): Add tst-c32-state.
11503 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11504 $(gen-locales).
11505
11506 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11507
11508 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11509 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11510
11511 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11512
11513 [BZ #23794]
11514 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11515 pair and return 0 in that case, and use saved character to
11516 interpret following character.
11517 * wcsmbs/tst-c16-surrogate.c: New file.
11518 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11519 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11520 Depend on $(gen-locales)
11521
11522 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11523
11524 [BZ #23562]
11525 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11526 (struct siginfo_t): Use correct type for si_band.
11527
11528 2018-10-19 Florian Weimer <fweimer@redhat.com>
11529
11530 [BZ #23689]
11531 * resource/bits/types/struct_rusage.h (struct rusage): Update
11532 comment on struct. Remove extraneous field comment.
11533
11534 2018-10-18 David S. Miller <davem@davemloft.net>
11535
11536 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11537 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11538 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11539 sysdep_routines in subdir elf.
11540 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11541 version for __vdso_clock_gettime.
11542 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11543 Define.
11544 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11545 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11546
11547 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11548
11549 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11550
11551 * sysdeps/i386/init-arch.h: Removed.
11552 * sysdeps/i386/i586/init-arch.h: Likewise.
11553 * sysdeps/i386/i686/init-arch.h: Likewise.
11554 * sysdeps/i386/i686/hp-timing.h: Likewise.
11555 * sysdeps/x86_64/hp-timing.h: Likewise.
11556 * sysdeps/i386/isa.h: New file.
11557 * sysdeps/i386/i586/isa.h: Likewise.
11558 * sysdeps/i386/i686/isa.h: Likewise.
11559 * sysdeps/x86_64/isa.h: Likewise.
11560 * sysdeps/x86/hp-timing.h: New file.
11561 * sysdeps/x86/init-arch.h: Include <isa.h>.
11562
11563 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11564
11565 * math/libm-test-pow.inc (pow_test_data): Do not allow
11566 divide-by-zero exception for pow(+/- 0, -Inf).
11567
11568 2018-10-17 Zack Weinberg <zackw@panix.com>
11569
11570 * manual/job.texi (Job Control is Optional): Remove node, as
11571 job control has not been optional in quite some time.
11572 (Job Control): Mention briefly that systems older than
11573 POSIX.1-2001 might not support job control.
11574 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11575 defined on systems conforming to POSIX.1-2001.
11576
11577 2018-10-17 Arjun Shankar <arjun@redhat.com>
11578
11579 [BZ #22062]
11580 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11581 indentation.
11582 * (__gconv_read_conf): Mark function static.
11583 * (once): New static variable.
11584 * (__gconv_load_conf): New function.
11585 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11586 * iconv/gconv_db.c (once): Remove static variable.
11587 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11588 __gconv_read_conf.
11589 * (__gconv_find_transform): Likewise.
11590 * iconv/tst-iconv-mt.c: New test.
11591 * iconv/Makefile: Add tst-iconv_mt.
11592
11593 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11594
11595 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11596 bits/shm-pad.h.
11597 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11598 (shmatt_t): Define as __syscall_ulong_t.
11599 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11600 and [__SHM_PAD_AFTER_TIME].
11601 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11602 Define shm_segsz and associated padding based on
11603 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11604 Use __syscall_ulong_t instead of unsigned long int.
11605 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11606 unsigned long int.
11607 [__USE_MISC] (struct shm_info): Likewise.
11608 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11609 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11610 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11611 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11612 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11613 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11614 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11615 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11616 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11617 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11618 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11619
11620 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11621 bits/shmlba.h.
11622 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11623 (SHMLBA): Remove macro.
11624 (__getpagesize): Remove function declaration.
11625 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11626 <bits/shmlba.h>.
11627 (SHMLBA): Remove macro.
11628 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11629 <bits/shmlba.h>.
11630 (SHMLBA): Remove macro.
11631 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11632 <bits/shmlba.h>.
11633 (SHMLBA): Remove macro.
11634 (__getpagesize): Remove function declaration.
11635 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11636 <bits/shmlba.h>.
11637 (SHMLBA): Remove macro.
11638 (__getshmlba): Remove function declaration.
11639 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11640 (SHMLBA): Remove macro.
11641 (__getpagesize): Remove function declaration.
11642 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11643 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11644 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11645 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11646 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11647 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11648 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11649 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11650 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11651 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11652
11653 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11654
11655 [BZ #23275]
11656 * nptl/tst-mutex10.c: New File.
11657 * nptl/Makefile (tests): Add tst-mutex10.
11658 (tst-mutex10-ENV): New variable.
11659 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11660 Ensure that elision path is used if elision is available.
11661 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11662 Likewise.
11663 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11664 Likewise.
11665 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11666 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11667 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11668 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11669 Likewise.
11670 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11671 (__pthread_mutex_cond_lock_adjust): Likewise.
11672 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11673 Likewise.
11674 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11675 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11676 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11677 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11678 Add comments.
11679 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11680 Use atomic_load_relaxed and atomic_store_relaxed.
11681 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11682 Use atomic_store_relaxed.
11683
11684 2018-10-17 Andreas Schwab <schwab@suse.de>
11685
11686 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11687 * crypt/badsalttest.c (TIMEOUT): Likewise.
11688 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11689 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11690 * io/test-lfs.c (TIMEOUT): Likewise.
11691 * libio/tst-atime.c (TIMEOUT): Likewise.
11692 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11693 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11694 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11695 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11696 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11697 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11698 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11699 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11700 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11701 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11702 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11703 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11704 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11705 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11706 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11707 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11708 * nptl/tst-once2.c (TIMEOUT): Likewise.
11709 * nptl/tst-once3.c (TIMEOUT): Likewise.
11710 * nptl/tst-once4.c (TIMEOUT): Likewise.
11711 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11712 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11713 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11714 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11715 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11716 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11717 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11718 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11719 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11720 * posix/tst-chmod.c (TIMEOUT): Likewise.
11721 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11722 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11723 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11724 * posix/tst-regex2.c (TIMEOUT): Likewise.
11725 * posix/tst-waitid.c (TIMEOUT): Likewise.
11726 * rt/tst-aio.c (TIMEOUT): Likewise.
11727 * rt/tst-aio10.c (TIMEOUT): Likewise.
11728 * rt/tst-aio4.c (TIMEOUT): Likewise.
11729 * rt/tst-aio5.c (TIMEOUT): Likewise.
11730 * rt/tst-aio6.c (TIMEOUT): Likewise.
11731 * rt/tst-aio64.c (TIMEOUT): Likewise.
11732 * rt/tst-aio7.c (TIMEOUT): Likewise.
11733 * rt/tst-aio9.c (TIMEOUT): Likewise.
11734 * rt/tst-clock.c (TIMEOUT): Likewise.
11735 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11736 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11737 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11738 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11739 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11740 * rt/tst-timer4.c (TIMEOUT): Likewise.
11741 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11742 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11743 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11744 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11745 * time/tst-ftime.c (TIMEOUT): Likewise.
11746 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11747
11748 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11749
11750 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11751 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11752 for thunderX2.
11753
11754 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11755
11756 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11757 bits/sem-pad.h.
11758 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11759 instead of <bits/wordsize.h>.
11760 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11761 and [__SEM_PAD_AFTER_TIME].
11762 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11763 __syscall_ulong_t instead of unsigned long int.
11764 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11765 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11766 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11767 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11768 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11769 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11770 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11771 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11772 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11773 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11774 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11775
11776 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11777
11778 regex: simplify by using intprops.h
11779 [BZ#23744]
11780 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11781 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11782 intprops.h defines them.
11783
11784 regex: __builtin_expect → __glibc_unlikely
11785 [BZ#23744]
11786 This refactoring was prompted by a problem when the regex code is
11787 used as part of Gnulib and when the builder’s compiler does not grok
11788 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11789 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11790 Although this refactoring does not fix the problem directly,
11791 we might as well have Gawk use the now-preferred glibc style for when
11792 __builtin_expect is unavailable.
11793 * posix/regex_internal.h (BE): Remove.
11794 All uses replaced by __glibc_unlikely or __glibc_likely.
11795
11796 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11797
11798 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11799 bits/msq-pad.h.
11800 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11801 instead of <bits/wordsize.h>.
11802 (msgqnum_t): Define as __syscall_ulong_t.
11803 (msglen_t): Likewise.
11804 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11805 and [__MSQ_PAD_AFTER_TIME].
11806 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11807 __syscall_ulong_t instead of unsigned long int.
11808 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11809 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11810 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11811 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11812 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11813 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11814 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11815 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11816 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11817 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11818 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11819
11820 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11821
11822 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11823 (struct shmid_ds): Condition padding after time fields on
11824 [__WORDSIZE == 32].
11825 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11826 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11827 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11828
11829 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11830 (struct semid_ds): Condition padding after time fields on
11831 [__WORDSIZE == 32].
11832 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11833 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11834 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11835 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11836
11837 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11838 (struct msqid_ds): Condition padding after time fields on
11839 [__WORDSIZE == 32].
11840 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11841 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11842 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11843 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11844
11845 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11846
11847 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11848
11849 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11850
11851 * libio/tst-readline.c (TIMEOUT): Define.
11852
11853 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11854
11855 mktime fix for Gnulib + coreutils
11856 [BZ#23745]
11857 This fix affects only Gnulib. Problem discovered when
11858 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11859 * time/mktime.c:
11860 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11861 Do not define since it is not used. Defining an unused static
11862 function prompts a warning from GCC when Coreutils is configured
11863 with --enable-gcc-warnings.
11864
11865 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11866
11867 * benchtests/scripts/compare_bench.py (main): set float type on
11868 threshold argument.
11869
11870 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11871
11872 [BZ #23740]
11873 * localedata/locales/kl_GL (mon): Update, the relative case.
11874 (alt_mon): Add, fill with month names in the nominative case.
11875 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11876 (d_fmt): Set to "%b %d %Y".
11877
11878 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11879
11880 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11881 <bits/mman-linux.h>.
11882 (PROT_READ): Don't define here.
11883 (PROT_WRITE): Likewise.
11884 (PROT_EXEC): Likewise.
11885 (PROT_NONE): Likewise.
11886 (PROT_GROWSDOWN): Likewise.
11887 (PROT_GROWSUP): Likewise.
11888 (MAP_SHARED): Likewise.
11889 (MAP_PRIVATE): Likewise.
11890 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11891 [__USE_MISC] (MAP_FILE): Likewise.
11892 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11893 [__USE_MISC] (MAP_ANON): Likewise.
11894 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11895 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11896 (MCL_CURRENT): Likewise.
11897 (MCL_FUTURE): Likewise.
11898 (MCL_ONFAULT): Likewise.
11899 [__USE_MISC] (MADV_NORMAL): Likewise.
11900 [__USE_MISC] (MADV_RANDOM): Likewise.
11901 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11902 [__USE_MISC] (MADV_WILLNEED): Likewise.
11903 [__USE_MISC] (MADV_DONTNEED): Likewise.
11904 [__USE_MISC] (MADV_FREE): Likewise.
11905 [__USE_MISC] (MADV_REMOVE): Likewise.
11906 [__USE_MISC] (MADV_DONTFORK): Likewise.
11907 [__USE_MISC] (MADV_DOFORK): Likewise.
11908 [__USE_MISC] (MADV_HWPOISON): Likewise.
11909 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11910 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11911 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11912 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11913 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11914 (__MAP_ANONYMOUS): New macro.
11915 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11916 <bits/mman-linux.h> inclusion.
11917 (MAP_FIXED): Likewise.
11918 (MS_SYNC): Likewise.
11919 (MS_ASYNC): Likewise.
11920 (MS_INVALIDATE): Likewise.
11921 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11922 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11923 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11924 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11925 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11926 [__USE_MISC] (MADV_DODUMP): Likewise.
11927 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11928 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11929
11930 [BZ #23735]
11931 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11932 Define.
11933 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11934 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11935 Add test-nldbl-redirect.
11936 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11937 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11938 $(objpfx)libnldbl_nonshared.a.
11939
11940 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11941
11942 * support/support.h (support_objdir_elf_ldso): New variable.
11943 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11944 * support/Makefile (CFLAGS-support_paths.c): Add definition
11945 for OBJDIR_ELF_LDSO_PATH.
11946 * support/test-container.c (main): Search for the ld.so
11947 which is also used by the testsuite.
11948
11949 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11950
11951 [BZ #20209]
11952 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11953 should be "sap" rather than "sab".
11954 (day): Fix spelling of Sunday, should be "sapaat" rather than
11955 "sabaat".
11956
11957 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11958
11959 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11960
11961 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11962
11963 [BZ #19444]
11964 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11965 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11966 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11967
11968 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11969
11970 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11971
11972 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11973
11974 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11975 Add -mrtm.
11976 (CFLAGS-elision-unlock.c): Likewise.
11977 (CFLAGS-elision-timed.c): Likewise.
11978 (CFLAGS-elision-trylock.c): Likewise.
11979 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11980
11981 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11982
11983 [BZ #21037]
11984 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11985 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11986 new fd_to_filename interface.
11987 * libio/freopen64.c (freopen64): Likewise.
11988 * libio/tst-memstream.h: New file.
11989 * libio/tst-memstream4.c: Likewise.
11990 * libio/tst-wmemstream4.c: Likewise.
11991 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11992 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11993 and remove internal dynamic allocation.
11994
11995 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11996
11997 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11998 (MREMAP_MAYMOVE): Do not define here.
11999 [__USE_GNU] (MREMAP_FIXED): Likewise.
12000 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
12001 (MREMAP_MAYMOVE): Define here instead.
12002 [__USE_GNU] (MREMAP_FIXED): Likewise.
12003 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
12004 (MREMAP_MAYMOVE): Remove.
12005 [__USE_GNU] (MREMAP_FIXED): Likewise.
12006
12007 2018-09-28 Joseph Myers <joseph@codesourcery.com>
12008
12009 * math/fromfp.h: Do not include <math_private.h>.
12010 * math/s_cacosh_template.c: Likewise.
12011 * math/s_casin_template.c: Likewise.
12012 * math/s_casinh_template.c: Likewise.
12013 * math/s_ccos_template.c: Likewise.
12014 * math/s_cproj_template.c: Likewise.
12015 * math/s_fdim_template.c: Likewise.
12016 * math/s_fmaxmag_template.c: Likewise.
12017 * math/s_fminmag_template.c: Likewise.
12018 * math/s_iseqsig_template.c: Likewise.
12019 * math/s_ldexp_template.c: Likewise.
12020 * math/s_nextdown_template.c: Likewise.
12021 * math/w_log1p_template.c: Likewise.
12022 * math/w_scalbln_template.c: Likewise.
12023 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12024 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12025 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12026 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12027 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12028 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12029 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12030 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12031 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12032 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12033 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12034 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12035 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12036 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12037 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12038 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12039 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12040 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12041 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12042 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12043 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12044 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12045 * sysdeps/ieee754/k_standardf.c: Likewise.
12046 * sysdeps/ieee754/k_standardl.c: Likewise.
12047 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12048 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12049 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12050 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12051 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12052 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12053 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12054 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12055 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12056 * sysdeps/ieee754/s_signgam.c: Likewise.
12057 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12058 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12059 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12060 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12061 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12062 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12063 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12064 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12065 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12066 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12067 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12068 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12069 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12070 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12071 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12072 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12073 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12074 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12075 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12076 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12077 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12078 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12079 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12080 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12081 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12082 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12083 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12084 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12085 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12086 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12087 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12088 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12089 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12090 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12091 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12092 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12093 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12094 <math_private.h>.
12095 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12096
12097 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12098
12099 [BZ #23716]
12100 * sysdeps/i386/dl-cet.c: Removed.
12101 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12102 prototype.
12103 (_dl_runtime_profile_shstk): Likewise.
12104 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12105 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12106
12107 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12108
12109 [BZ #23579]
12110 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12111 do_test_with_invalid_iov): New tests.
12112 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12113 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12114 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12115 errno is ENOSYS.
12116 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12117 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12118 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12119
12120 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12121
12122 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12123 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12124 (MATH_REDIRECT_BINARY_ARGS): New macro.
12125 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12126 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12127 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12128 header inclusion.
12129 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12130 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12131 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12132 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12133 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12134 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12135 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12136 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12137 Likewise.
12138 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12139 Likewise.
12140 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12142 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12143 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12145 Likewise.
12146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12147 Likewise.
12148 * sysdeps/generic/math_private_calls.h
12149 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12150 Do not declare and define as an inline function.
12151 * math/divtc3.c (__divtc3): Use copysign functions instead of
12152 __copysign variants.
12153 * math/multc3.c (__multc3): Likewise.
12154 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12155 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12156 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12157 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12158 Likewise.
12159 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12160 (__ieee754_yn): Likewise.
12161 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12162 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12163 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12164 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12165 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12166 (__sin): Likewise.
12167 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12168 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12169 Likewise.
12170 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12171 Likewise.
12172 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12173 Likewise.
12174 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12175 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12176 Likewise.
12177 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12178 (__ieee754_ynf): Likewise.
12179 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12180 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12181 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12182 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12183 Likewise.
12184 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12185 (__ieee754_ynl): Likewise.
12186 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12187 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12188 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12189 Likewise.
12190 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12191 (__ieee754_ynl): Likewise.
12192 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12193 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12194 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12195 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12196 Likewise.
12197 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12198 (__ieee754_ynl)
12199 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12200 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12201 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12202 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12203 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12204
12205 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12206 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12207 using MATH_REDIRECT.
12208 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12209 header inclusion.
12210 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12211 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12212 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12213 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12214 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12215 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12216 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12217 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12218 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12219 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12221 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12222 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12223 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12224 (round): Redirect to __round.
12225 (__roundl): Call round instead of __round.
12226 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12227 Remove macro.
12228 [_ARCH_PWR5X] (__roundf): Likewise.
12229 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12230 functions instead of __round variants.
12231 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12232 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12233 Likewise.
12234 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12235 Likewise.
12236 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12237 Likewise.
12238 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12239 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12240 __lroundl.
12241 (__ieee754_expl): Call roundl instead of __roundl.
12242
12243 2018-09-27 Andreas Schwab <schwab@suse.de>
12244
12245 [BZ #23717]
12246 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12247 (do_test): Make st1 static.
12248
12249 2018-09-26 Andreas Schwab <schwab@suse.de>
12250
12251 [BZ #23707]
12252 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12253 * elf/Makefile (tests): Add tst-unwind-ctor.
12254 (modules-names): Add tst-unwind-ctor-lib.
12255 ($(objpfx)tst-unwind-ctor): Depend on
12256 $(objpfx)tst-unwind-ctor-lib.so.
12257
12258 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12259
12260 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12261 file. Most contents moved from ....
12262 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12263 and include <bits/mman-map-flags-generic.h>.
12264 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12265 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12266 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12267 <bits/mman-map-flags-generic.h>.
12268 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12269 macros defined in <bits/mman-map-flags-generic.h>.
12270 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12271 <bits/mman-map-flags-generic.h>.
12272 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12273 defined in <bits/mman-map-flags-generic.h>.
12274
12275 2018-09-26 Andreas Schwab <schwab@suse.de>
12276
12277 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12278 output.
12279
12280 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12281 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12282 Fangrui Song <maskray@google.com>
12283
12284 [BZ #20480]
12285 * config.make.in (have-textrel_ifunc): New define.
12286 * configure.ac: Add check if linker supports textrel relocation with
12287 ifunc.
12288 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12289 tst-ifunc-textrel.
12290 (CFLAGS-tst-ifunc-textrel.c): New rule.
12291 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12292 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12293 * elf/tst-ifunc-textrel.c: New file.
12294
12295 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12296
12297 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12298 <bits/procfs-prregset.h>.
12299 (prgregset_t): Define using __prgregset_t.
12300 (prfpregset_t): Define using __prfpregset_t.
12301 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12302 (sysdep_headers): Add bits/procfs-prregset.h.
12303 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12304 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12305 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12306 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12307
12308 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12309 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12310 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12311 pr_uid and pr_gid.
12312 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12313 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12314 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12315 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12316 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12317 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12318 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12319 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12320 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12321 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12322 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12323 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12324 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12325 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12326 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12327 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12328 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12329 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12330 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12331 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12332 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12333 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12334 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12335 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12336
12337 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12338 AArch64 version. Include <bits/procfs.h>.
12339 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12340 (sysdep_headers): Add bits/procfs.h.
12341 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12342 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12343 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12344 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12345 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12346 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12347 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12348 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12349 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12350 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12351 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12352 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12353 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12354 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12355 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12356 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12357 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12358
12359 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12360
12361 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12362 Use libsupport.
12363
12364 2018-09-25 Arjun Shankar <arjun@redhat.com>
12365
12366 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12367 (__gconv_max_path_elem_len): Likewise.
12368 (__gconv_nmodules): Likewise.
12369 (__gconv_get_path): Likewise.
12370 (path_elem): Move to ...
12371 * iconv/gconv_conf.c: ... here.
12372 (__gconv_get_path): Mark function static.
12373 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12374 * iconv/gconv_open.c: ... here.
12375
12376 2018-09-24 Andreas Schwab <schwab@suse.de>
12377
12378 * scripts/haveversions.awk: New file.
12379 * Makerules ($(common-objpfx)Versions.def)
12380 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12381 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12382 Move rules ...
12383 * Makeconfig ($(common-objpfx)Versions.def)
12384 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12385 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12386 ... here.
12387 ($(common-objpfx)Versions.mk): New rule. Include it.
12388 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12389 Emit error if build-obsolete-nsl = yes.
12390 * manual/install.texi (Configuring and compiling): Describe
12391 --enable-obsolete-nsl as unavaiable after version 2.28.
12392 * INSTALL: Regenerate.
12393
12394 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12395
12396 * NEWS: Add note about new TLE support on powerpc64le.
12397 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12398 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12399 __ununsed1.
12400 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12401 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12402 * sysdeps/powerpc/powerpc32/sysdep.h,
12403 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12404 ABORT_TRANSACTION): Remove macros.
12405 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12406 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12407 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12408 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12409 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12410 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12411 usage.
12412 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12413
12414 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12415
12416 [BZ #10425]
12417 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12418 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12419 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12420 which is the same as in it_IT.
12421 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12422 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12423
12424 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12425
12426 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12427 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12428 using MATH_REDIRECT.
12429 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12430 header inclusion.
12431 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12432 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12433 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12434 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12435 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12436 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12438 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12441 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12442 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12443 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12444 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12445 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12446 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12447 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12448 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12449 (ceil): Redirect to __ceil.
12450 (floor): Redirect to __floor.
12451 (trunc): Redirect to __trunc.
12452 (__truncl): Call trunc instead of __trunc.
12453 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12454 Remove macro.
12455 [_ARCH_PWR5X] (__truncf): Likewise.
12456 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12457 trunc functions instead of __trunc variants.
12458 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12459 Likewise.
12460 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12461 Likewise.
12462 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12463 Likewise.
12464 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12465 Likewise.
12466
12467 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12468 [__i586__ || __pentium__].
12469 [__i486__]: Handle explicitly.
12470 (HAS_CPUID): Define to 1 if above macros are undefined.
12471 (HAS_I586): Likewise.
12472 (HAS_I686): Likewise.
12473
12474 2018-09-20 Florian Weimer <fweimer@redhat.com>
12475
12476 * misc/tst-gethostid.c: New file.
12477 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12478 (tst-gethostid): Link with -ldl.
12479
12480 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12481
12482 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12483 value from gethostbyname_r.
12484
12485 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12486
12487 * stdlib/tst-setcontext9.c (f1): Rename to...
12488 (f1a): ... this.
12489 (f1b): New function implementing lower half of f1 in alternate stack.
12490
12491 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12492
12493 Fix mktime localtime offset confusion
12494 [BZ #23603]
12495 * include/time.h (__mktime_internal): The localtime offset is now
12496 of type long int instead of time_t. This is the longstanding type
12497 in glibc, and it is more than enough to represent difference
12498 between localtime and gmtime even if it is 32 bits and time_t is
12499 64. Changing it now will let us avoid an unnecessary change when
12500 time_t is widened to 64 bits on 32-bit platforms.
12501 * time/mktime-internal.h (mktime_offset_t): Now long int.
12502
12503 Merge mktime, timegm from upstream Gnulib
12504 [BZ #23603][BZ #16346]
12505 This fixes some obscure problems with integer overflow.
12506 Although it looks scary, it is almost all a byte-for-byte copy
12507 from Gnulib, and the Gnulib code has been tested reasonably well.
12508 * include/intprops.h: New file, copied from Gnulib.
12509 * include/verify.h, time/mktime-internal.h:
12510 New tiny files, simplified from Gnulib.
12511 * time/mktime.c: Copy from Gnulib. This has the following changes:
12512 Do not include config.h if DEBUG_MKTIME is nonzero.
12513 Include stdbool.h, intprops.h, verify.h.
12514 Include string.h only if needed.
12515 Include stdlib.h on MS-Windows.
12516 Include mktime-internal.h.
12517 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12518 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12519 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12520 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12521 simplify later conditionals; default the others to zero. Use
12522 these conditionals to express only the code needed on the current
12523 platform. In uses of these conditionals, explicitly spell out how
12524 _LIBC affects things, so it’s easier to review from a glibc
12525 viewpoint.
12526 (WRAPV): Remove; no longer needed now that we have
12527 systematic overflow checking.
12528 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12529 compartmentalize tzset issues. Move system-dependent tzsettish
12530 code here from mktime.
12531 (verify): Remove; now done by verify.h. All uses changed.
12532 (long_int): Use a more-conservative definition, to avoid
12533 integer overflow.
12534 (SHR): Remove, replacing with ...
12535 (shr): New function, which means we needn’t worry about side
12536 effects in args, and conversion analysis is simpler.
12537 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12538 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12539 (time_t_avg, time_t_add_ok): Remove.
12540 (mktime_min, mktime_max): New constants.
12541 (leapyear, isdst_differ): Use bool for booleans.
12542 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12543 Use long_int, not time_t, for mktime differences.
12544 (long_int_avg): New function, replacing time_t_avg.
12545 INT_ADD_WRAPV replaces time_t_add_ok.
12546 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12547 All uses changed.
12548 (convert_time): New function.
12549 (ranged_convert): Use it.
12550 (__mktime_internal): Last arg now points to mktime_offset_t, not
12551 time_t. All uses changed. This is a no-op on glibc, where
12552 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12553 offset guess. Directly check for integer overflow instead of
12554 using a heuristic that works only 99.9...% of the time.
12555 Access *OFFSET only once, to avoid an unlikely race if the
12556 compiler delays a load and if this cascades into a signed integer
12557 overflow.
12558 (mktime): Move tzsettish code to my_tzset, and move
12559 localtime_offset to within mktime so that it doesn’t
12560 need a separate ifdef.
12561 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12562 instead of localtime.
12563 * time/timegm.c: Copy from Gnulib. This has the following changes:
12564 Include mktime-internal.h.
12565 [!_LIBC]: Include config.h and time.h. Do not include
12566 timegm.h or time_r.h. Make __mktime_internal a macro,
12567 and include mktime-internal.h to get its declaration.
12568 (timegm): Temporary is now mktime_offset_t, not time_t.
12569 This affects only Gnulib.
12570
12571 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12572
12573 [BZ #23637]
12574 * string/test-strstr.c (pr23637): New function.
12575 (test_main): Add tests with longer needles.
12576 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12577 * string/strstr.c (AVAILABLE): Likewise.
12578
12579 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12580
12581 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12582
12583 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12584
12585 * NEWS: Mention pow improvements.
12586 * math/Makefile (type-double-routines): Add e_pow_log_data.
12587 * sysdeps/generic/math_private.h (__exp1): Remove.
12588 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12589 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12590 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12591 contraction.
12592 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12593 (exp_inline): Remove.
12594 (__ieee754_exp): Only single double input is handled.
12595 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12596 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12597 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12598 (__pow_log_data): Define.
12599 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12600 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12601 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12602 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12603 contraction.
12604 (CFLAGS-e_pow-fma4.c): Likewise.
12605
12606 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12607
12608 Simplify tzfile fstat failure code
12609 [BZ #21716]
12610 * time/tzfile.c (__tzfile_read): Simplify slightly.
12611
12612 Fix tzfile low-memory assertion failure
12613 [BZ #21716]
12614 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12615 when registering time zone abbreviations.
12616
12617 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12618
12619 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12620 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12621 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12622 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12623 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12624 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12625 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12626 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12627 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12628
12629 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12630 __ceil.
12631 (__ceill): Call ceil instead of __ceil.
12632 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12633 __floor.
12634 (__floorl): Call floor instead of __floor.
12635
12636 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12637
12638 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12639 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12640 using MATH_REDIRECT.
12641 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12642 header inclusion.
12643 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12644 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12645 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12646 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12647 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12648 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12649 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12650 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12651 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12652 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12654 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12655 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12656 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12657 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12658 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12659 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12660 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12661 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12662 Remove macro.
12663 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12664 functions instead of __ceil variants.
12665 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12666 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12667 Likewise.
12668 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12669 Likewise.
12670 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12671 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12672 Likewise.
12673 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12674 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12675
12676 [BZ #21286]
12677 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12678 constant.
12679 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12680 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12681 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12682 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12683 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12684 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12685 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12686 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12687 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12688 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12689 (ILL_BADIADDR): Remove constant.
12690 (TRAP_BRANCH): Likewise.
12691 (TRAP_HWBKPT): Likewise.
12692
12693 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12694
12695 [BZ #23656]
12696 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12697 Remove [_MIPS_SIM = _ABIN32] conditional case.
12698 (struct elf_prpsinfo): Likewise.
12699
12700 [BZ #23649]
12701 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12702 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12703 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12704 Likewise.
12705 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12706 elf_prpsinfo): Likewise.
12707 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12708 elf_prpsinfo): Likewise.
12709 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12710 Likewise.
12711
12712 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12713 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12714 using MATH_REDIRECT.
12715 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12716 header inclusion.
12717 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12718 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12719 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12720 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12721 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12722 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12723 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12724 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12725 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12726 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12727 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12728 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12729 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12730 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12731 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12732 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12733 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12734 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12735 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12736 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12738 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12739 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12740 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12741 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12742 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12743 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12744 __rint variants.
12745 * math/e_scalbf.c (invalid_fn): Likewise.
12746 * math/e_scalbl.c (invalid_fn): Likewise.
12747 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12748 Likewise.
12749 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12750 Likewise.
12751 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12752 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12753 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12754 Likewise.
12755 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12756 Likewise.
12757 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12758 Likewise.
12759 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12760 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12761
12762 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12763 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12764 New macro.
12765 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12766 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12767 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12768 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12769 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12770 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12771 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12772 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12773 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12774 && !NO_MATH_REDIRECT] (floor): Likewise.
12775 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12776 header inclusion.
12777 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12778 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12779 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12780 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12781 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12782 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12783 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12784 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12785 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12786 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12789 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12790 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12791 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12792 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12793 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12794 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12795 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12796 Remove macro.
12797 [_ARCH_PWR5X] (__floorf): Likewise.
12798 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12799 inline function.
12800 [__SSE4_1__] (__floorf): Likewise.
12801 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12802 instead of __floor variants.
12803 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12804 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12805 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12806 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12807 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12808 * math/w_tgamma_compat.c (__tgamma): Likewise.
12809 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12810 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12811 * math/w_tgammal_compat.c (__tgammal): Likewise.
12812 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12813 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12814 Likewise.
12815 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12816 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12817 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12818 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12819 Likewise.
12820 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12821 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12822 Likewise.
12823 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12824 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12825 Likewise.
12826 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12827 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12828 Likewise.
12829 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12830 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12831 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12832 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12833 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12834 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12835
12836 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12837
12838 * elf/Makefile (modules-names-tests): New variable.
12839
12840 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12841
12842 * NEWS: Mention log2 improvements.
12843 * math/Makefile (type-double-routines): Add e_log2_data.
12844 * sysdeps/i386/fpu/e_log2_data.c: New file.
12845 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12846 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12847 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12848 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12849 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12850 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12851
12852 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12853
12854 * NEWS: Mention log improvement.
12855 * math/Makefile (type-double-routines): Add e_log_data.
12856 * sysdeps/i386/fpu/e_log_data.c: New file.
12857 * sysdeps/ia64/fpu/e_log_data.c: New file.
12858 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12859 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12860 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12861 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12862 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12863 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12864
12865 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12866 Xuepeng Guo <xuepeng.guo@intel.com>
12867
12868 [BZ #23606]
12869 * sysdeps/i386/start.S: Include <sysdep.h>
12870 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12871 enabled. Add cfi_undefined (eip).
12872
12873 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12874
12875 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12876 (MOVQ): Likewise.
12877 (EXTRACT_WORDS64): Likewise.
12878 (INSERT_WORDS64): Likewise.
12879 (GET_FLOAT_WORD): Likewise.
12880 (SET_FLOAT_WORD): Likewise.
12881
12882 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12883 argument.
12884 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12885 build, but not for second build if --full-gcc. Use
12886 --enable-languages=all for second build if --full-gcc.
12887 (get_parser): Add --full-gcc option.
12888 (main): Update call to Context.
12889
12890 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12891
12892 [BZ #10797]
12893 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12894 Single Quotation Mark).
12895 (thousands_sep): Likewise.
12896 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12897 * localedata/locales/it_IT (thousands_sep): Use ".".
12898 (grouping): Use "3;3".
12899
12900 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12901
12902 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12903 x86_64 and i686 configs using --enable-obsolete-rpc
12904 --enable-obsolete-nsl.
12905
12906 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12907
12908 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12909
12910 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12911
12912 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12913 Increment size of new_argv by one.
12914
12915 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12916
12917 [BZ #17426]
12918 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12919 * localedata/locales/ar_IN (d_fmt): Likewise.
12920 * localedata/locales/bhb_IN (d_fmt): Likewise.
12921 * localedata/locales/bho_IN (d_fmt): Likewise.
12922 * localedata/locales/bn_BD (d_fmt): Likewise.
12923 * localedata/locales/bn_IN (d_fmt): Likewise.
12924 * localedata/locales/doi_IN (d_fmt): Likewise.
12925 * localedata/locales/gu_IN (d_fmt): Likewise.
12926 * localedata/locales/hi_IN (d_fmt): Likewise.
12927 * localedata/locales/hne_IN (d_fmt): Likewise.
12928 * localedata/locales/kn_IN (d_fmt): Likewise.
12929 * localedata/locales/mag_IN (d_fmt): Likewise.
12930 * localedata/locales/mai_IN (d_fmt): Likewise.
12931 * localedata/locales/mjw_IN (d_fmt): Likewise.
12932 * localedata/locales/ml_IN (d_fmt): Likewise.
12933 * localedata/locales/mni_IN (d_fmt): Likewise.
12934 * localedata/locales/mr_IN (d_fmt): Likewise.
12935 * localedata/locales/pa_IN (d_fmt): Likewise.
12936 * localedata/locales/raj_IN (d_fmt): Likewise.
12937 * localedata/locales/sat_IN (d_fmt): Likewise.
12938 * localedata/locales/sd_IN (d_fmt): Likewise.
12939 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12940 * localedata/locales/ta_IN (d_fmt): Likewise.
12941 * localedata/locales/ta_LK (d_fmt): Likewise.
12942 * localedata/locales/tcy_IN (d_fmt): Likewise.
12943 * localedata/locales/ur_IN (d_fmt): Likewise.
12944
12945 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12946 * localedata/locales/ks_IN (d_fmt): Likewise.
12947 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12948
12949 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12950 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12951 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12952 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12953
12954 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12955
12956 * NEWS: Mention exp and exp2 improvements.
12957 * math/Makefile (libm-support): Remove t_exp.
12958 (type-double-routines): Add math_err and e_exp_data.
12959 * sysdeps/aarch64/libm-test-ulps: Update.
12960 * sysdeps/arm/libm-test-ulps: Update.
12961 * sysdeps/i386/fpu/e_exp_data.c: New file.
12962 * sysdeps/i386/fpu/math_err.c: New file.
12963 * sysdeps/i386/fpu/t_exp.c: Remove.
12964 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12965 * sysdeps/ia64/fpu/math_err.c: New file.
12966 * sysdeps/ia64/fpu/t_exp.c: Remove.
12967 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12968 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12969 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12970 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12971 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12972 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12973 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12974 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12975 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12976 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12977 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12978 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12979 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12980 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12981 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12982 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12983
12984 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12985
12986 * sysdeps/alpha/fpu/math_private.h: Remove.
12987
12988 * sysdeps/generic/math_private.h
12989 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12990 Move this inline function ....
12991 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12992 * include/math.h [!_ISOMAC]: To here....
12993
12994 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12995
12996 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12997 code ....
12998 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12999 * include/fenv.h [!_ISOMAC]: ... to here.
13000 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
13001 (feraiseexcept): Likewise.
13002 * math/fromfp.h: Do not include <fenv_private.h>.
13003 * math/s_cexp_template.c: Likewise.
13004 * math/s_csin_template.c: Likewise.
13005 * math/s_csinh_template.c: Likewise.
13006 * math/s_ctan_template.c: Likewise.
13007 * math/s_ctanh_template.c: Likewise.
13008 * math/s_iseqsig_template.c: Likewise.
13009 * math/w_acos_compat.c: Likewise.
13010 * math/w_acosf_compat.c: Likewise.
13011 * math/w_acosl_compat.c: Likewise.
13012 * math/w_asin_compat.c: Likewise.
13013 * math/w_asinf_compat.c: Likewise.
13014 * math/w_asinl_compat.c: Likewise.
13015 * math/w_j0_compat.c: Likewise.
13016 * math/w_j0f_compat.c: Likewise.
13017 * math/w_j0l_compat.c: Likewise.
13018 * math/w_j1_compat.c: Likewise.
13019 * math/w_j1f_compat.c: Likewise.
13020 * math/w_j1l_compat.c: Likewise.
13021 * math/w_jn_compat.c: Likewise.
13022 * math/w_jnf_compat.c: Likewise.
13023 * math/w_log10_compat.c: Likewise.
13024 * math/w_log10f_compat.c: Likewise.
13025 * math/w_log10l_compat.c: Likewise.
13026 * math/w_log2_compat.c: Likewise.
13027 * math/w_log2f_compat.c: Likewise.
13028 * math/w_log2l_compat.c: Likewise.
13029 * math/w_log_compat.c: Likewise.
13030 * math/w_logf_compat.c: Likewise.
13031 * math/w_logl_compat.c: Likewise.
13032 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13033 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13034 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13035 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13036 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13037 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13038 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13039 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13040 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13041 * sysdeps/ieee754/k_standardl.c: Likewise.
13042 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13043 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13044 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13045 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13046 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13047 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13048 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13049 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13050 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13051 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13052 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13053 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13054 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13055 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13056 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13057 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13058 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13059 * math/w_ilogb_template.c: Include <fenv.h> instead of
13060 <fenv_private.h>.
13061 * math/w_llogb_template.c: Likewise.
13062 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13063 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13064
13065 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13066
13067 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13068 * math/fromfp.h: Include <fenv_private.h>.
13069 * math/math-narrow.h: Likewise.
13070 * math/s_cexp_template.c: Likewise.
13071 * math/s_csin_template.c: Likewise.
13072 * math/s_csinh_template.c: Likewise.
13073 * math/s_ctan_template.c: Likewise.
13074 * math/s_ctanh_template.c: Likewise.
13075 * math/s_iseqsig_template.c: Likewise.
13076 * math/w_acos_compat.c: Likewise.
13077 * math/w_acosf_compat.c: Likewise.
13078 * math/w_acosl_compat.c: Likewise.
13079 * math/w_asin_compat.c: Likewise.
13080 * math/w_asinf_compat.c: Likewise.
13081 * math/w_asinl_compat.c: Likewise.
13082 * math/w_ilogb_template.c: Likewise.
13083 * math/w_j0_compat.c: Likewise.
13084 * math/w_j0f_compat.c: Likewise.
13085 * math/w_j0l_compat.c: Likewise.
13086 * math/w_j1_compat.c: Likewise.
13087 * math/w_j1f_compat.c: Likewise.
13088 * math/w_j1l_compat.c: Likewise.
13089 * math/w_jn_compat.c: Likewise.
13090 * math/w_jnf_compat.c: Likewise.
13091 * math/w_llogb_template.c: Likewise.
13092 * math/w_log10_compat.c: Likewise.
13093 * math/w_log10f_compat.c: Likewise.
13094 * math/w_log10l_compat.c: Likewise.
13095 * math/w_log2_compat.c: Likewise.
13096 * math/w_log2f_compat.c: Likewise.
13097 * math/w_log2l_compat.c: Likewise.
13098 * math/w_log_compat.c: Likewise.
13099 * math/w_logf_compat.c: Likewise.
13100 * math/w_logl_compat.c: Likewise.
13101 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13102 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13103 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13104 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13105 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13106 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13107 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13108 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13109 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13110 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13111 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13112 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13113 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13114 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13115 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13116 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13117 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13118 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13119 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13120 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13121 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13122 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13123 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13124 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13125 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13126 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13127 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13128 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13129 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13130 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13131 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13132 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13133 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13134 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13135 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13136 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13137 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13138 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13139 * sysdeps/ieee754/k_standardl.c: Likewise.
13140 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13141 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13142 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13143 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13144 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13145 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13146 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13147 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13148 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13149 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13150 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13151 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13152 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13153 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13154 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13155 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13156 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13157 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13158 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13159 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13160 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13161 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13162 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13163 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13164 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13165 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13166 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13167 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13168 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13169 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13170 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13171 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13172 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13173 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13174 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13175 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13176 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13177 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13178 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13179 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13180 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13181 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13182 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13183 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13184 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13185 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13186 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13187 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13188 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13189 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13190 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13191 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13192 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13193 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13194 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13195 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13196 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13197 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13198 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13199 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13200 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13201 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13202 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13203 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13204 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13205 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13206 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13207 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13208 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13209 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13210 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13211
13212 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13213
13214 [BZ #20271]
13215 * include/stdio.h (__libc_fatal): Mention newline in comment.
13216 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13217 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13218 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13219 * nss/nsswitch.c (__nss_next2): Likewise.
13220 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13221 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13222 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13223 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13224 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13225 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13226 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13227 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13228 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13229 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13230 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13231 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13232 (__netlink_assert_response): Likewise.
13233
13234 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13235
13236 * conform/glibcconform.py: New file.
13237 * conform/list-header-symbols.py: Likewise.
13238 * conform/list-header-symbols.pl: Remove.
13239 * conform/Makefile (tests-special): Only add linknamespace tests
13240 if [PYTHON].
13241 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13242
13243 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13244
13245 [BZ #23597]
13246 * support/Makefile (libsupport-routines): Add
13247 support_copy_file_range and xcopy_file_range.
13248 * support/support.h: Include <sys/types.h>.
13249 (support_copy_file_range): New prototype.
13250 * support/support_copy_file_range.c: New file. Copied and
13251 modified from io/copy_file_range-compat.c.
13252 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13253 instead of copy_file_range.
13254 * support/xcopy_file_range.c: New file.
13255 * support/xunistd.h (xcopy_file_range): New prototype.
13256
13257 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13258
13259 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13260 xpthread_create and xpthread_join.
13261
13262 2018-08-30 Florian Weimer <fweimer@redhat.com>
13263
13264 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13265
13266 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13267
13268 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13269 if malloc fails.
13270
13271 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13272
13273 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13274 and minus_oflow as non-finite.
13275
13276 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13277
13278 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13279 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13280 moved to fenv_private.h except for ...
13281 (TOINT_INTRINSICS): Kept in math_private.h.
13282 (roundtoint): Likewise.
13283 (converttoint): Likewise.
13284 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13285 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13286 * sysdeps/arm/math_private.h: Remove.
13287 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13288 ....
13289 * sysdeps/generic/math_private.h: ... this file. Include
13290 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13291 Include <fenv_private.h>. Remove functions and macros moved to
13292 fenv_private.h.
13293 * sysdeps/i386/fpu/math_private.h: Remove.
13294 * sysdeps/mips/math_private.h: Move to ....
13295 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13296 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13297 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13298 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13299 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13300 * sysdeps/powerpc/fpu/math_private.h: Do not include
13301 <fenv_private.h>.
13302 * sysdeps/riscv/rvf/math_private.h: Move to ....
13303 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13304 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13305 <fenv_private.h>.
13306 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13307 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13308 * sysdeps/sparc/fpu/math_private.h: Remove.
13309 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13310 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13311 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13312 <fenv_private.h>.
13313 * sysdeps/x86_64/fpu/math_private.h: Do not include
13314 <sysdeps/i386/fpu/fenv_private.h>.
13315
13316 2018-08-28 Florian Weimer <fweimer@redhat.com>
13317
13318 [BZ #23578]
13319 * posix/tst-regcomp-truncated.c: New file.
13320 * posix/Makefile (tests): Add it.
13321 (tst-regcomp-truncated.out): Depend on generated locales.
13322
13323 2018-08-28 Florian Weimer <fweimer@redhat.com>
13324
13325 * support/test-container.c (main): Treat unshare failure with
13326 EPERM as an unsupported test.
13327
13328 2018-08-28 Florian Weimer <fweimer@redhat.com>
13329
13330 [BZ #23520]
13331 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13332 * nscd/netgroupcache.c
13333 (addgetnetgrentX): Add tofreep parameter. Do not free
13334 heap-allocated buffer.
13335 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13336 (addgetnetgrentX_ignore): New function.
13337 (addgetnetgrent): Call it.
13338 (readdgetnetgrent): Likewise.
13339
13340 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13341
13342 * string/memmem.c: Use memcmp for first match.
13343
13344 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13345
13346 [BZ #17426]
13347 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13348
13349 2018-08-27 DJ Delorie <dj@redhat.com>
13350
13351 * support/Makefile (others): Don't list programs explicitly as a
13352 dependency of "others".
13353
13354 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13355
13356 * sysdeps/generic/math-tests-trap-force.h: New file.
13357 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13358 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13359 * sysdeps/powerpc/math-tests.h: Remove file.
13360 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13361
13362 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13363 Torvald Riegel <triegel@redhat.com>
13364
13365 [BZ #23538]
13366 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13367 Update r to include the set wake-request flag if waiters are
13368 remaining after spinning.
13369
13370 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13371
13372 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13373
13374 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13375
13376 [BZ #23578]
13377 regex: fix uninitialized memory access
13378 I introduced this bug into gnulib in commit
13379 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13380 eventually it was merged into glibc. The bug was found by
13381 project-repo <bugs@feusi.co> and reported here:
13382 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13383 Diagnosis and draft fix reported by Assaf Gordon here:
13384 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13385 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13386 * posix/regex_internal.c (build_wcs_upper_buffer):
13387 Fix bug when mbrtowc returns 0.
13388
13389 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13390
13391 * po/be.po: Update translation.
13392
13393 2018-08-24 DJ Delorie <dj@delorie.com>
13394
13395 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13396 $(libunwind).
13397
13398 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13399
13400 [BZ #23400]
13401 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13402 create temporary files in source tree.
13403
13404 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13405
13406 * sysdeps/generic/math-tests-trap.h: New file.
13407 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13408 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13409 * sysdeps/aarch64/math-tests.h: Remove file.
13410 * sysdeps/arm/math-tests.h: Likewise.
13411 * sysdeps/riscv/math-tests.h: Likewise.
13412 * sysdeps/aarch64/math-tests-trap.h: New file.
13413 * sysdeps/arm/math-tests-trap.h: Likewise.
13414 * sysdeps/riscv/math-tests-trap.h: Likewise.
13415
13416 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13417
13418 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13419 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13420 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13421 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13422 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13423 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13424 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13425 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13426 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13427 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13428 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13429 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13430 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13431 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13432 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13433 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13434 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13435 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13436
13437 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13438
13439 * sysdeps/generic/math-tests-exceptions.h: New file.
13440 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13441 (EXCEPTION_TESTS_float): Do not define here.
13442 (EXCEPTION_TESTS_double): Likewise.
13443 (EXCEPTION_TESTS_long_double): Likewise.
13444 (EXCEPTION_TESTS_float128): Likewise.
13445 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13446 Likewise.
13447 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13448 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13449 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13450 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13451 * sysdeps/mips/math-tests.h: Likewise.
13452 * sysdeps/nios2/math-tests.h: Likewise.
13453 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13454 (EXCEPTION_TESTS_float): Do not define here.
13455 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13456 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13457 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13458
13459 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13460
13461 * NEWS: Move optimized sinf entry to 2.29.
13462
13463 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13464
13465 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13466
13467 2018-08-22 DJ Delorie <dj@redhat.com>
13468
13469 * Makefile (testroot.pristine): New rules to initialize the
13470 test-in-container "testroot".
13471 * Makerules (all-testsuite): Add tests-container.
13472 * Rules (tests-expected): Add tests-container.
13473 (binaries-all-tests): Likewise.
13474 (tests-container): New, run these tests in the testroot container.
13475 * support/Makefile (others): Add *-container, support_paths.c,
13476 xmkdirp, and links-dso-program.
13477 * support/links-dso-program-c.c: New.
13478 * support/links-dso-program.cc: New.
13479 * support/test-container.c: New.
13480 * support/shell-container.c: New.
13481 * support/echo-container.c: New.
13482 * support/true-container.c: New.
13483 * support/xmkdirp.c: New.
13484 * support/xsymlink.c: New.
13485 * support/support_paths.c: New.
13486 * support/support.h: Add support paths prototypes.
13487 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13488
13489 * nss/tst-nss-test3.c: Convert to test-in-container.
13490 * nss/tst-nss-test3.root/: New.
13491
13492 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13493
13494 regex: port Gnulib code to z/OS POSIX environment
13495 Problem reported by Arnold Robbins in:
13496 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13497 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13498 Undef.
13499
13500 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13501
13502 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13503 (ROUNDING_TESTS_double): Remove.
13504 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13505 (ROUNDING_TESTS_double): Remove.
13506 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13507 (ROUNDING_TESTS_double): Remove.
13508 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13509 (ROUNDING_TESTS_float): Remove.
13510 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13511 (ROUNDING_TESTS_float): Remove.
13512 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13513 (ROUNDING_TESTS_float): Remove.
13514 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13515 !TEST_MATHVEC here.
13516 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13517 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13518
13519 * sysdeps/generic/math-tests-rounding.h: New file.
13520 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13521 (ROUNDING_TESTS_float): Do not define here.
13522 (ROUNDING_TESTS_double): Likewise.
13523 (ROUNDING_TESTS_long_double): Likewise.
13524 (ROUNDING_TESTS_float128): Likewise.
13525 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13526 (ROUNDING_TESTS_double): Undefine before defining.
13527 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13528 (ROUNDING_TESTS_double): Undefine before defining.
13529 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13530 (ROUNDING_TESTS_double): Undefine before defining.
13531 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13532 (ROUNDING_TESTS_float): Undefine before defining.
13533 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13534 (ROUNDING_TESTS_float): Undefine before defining.
13535 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13536 (ROUNDING_TESTS_float): Undefine before defining.
13537 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13538 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13539 not define here.
13540 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13541 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13542 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13543 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13544 (ROUNDING_TESTS_float): Do not define here.
13545 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13546 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13547 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13548 (ROUNDING_TESTS_float): Likewise.
13549 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13550 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13551 * sysdeps/mips/math-tests.h [__mips_soft_float]
13552 (ROUNDING_TESTS_float): Likewise.
13553 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13554 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13555 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13556 (ROUNDING_TESTS_double): Likewise.
13557 (ROUNDING_TESTS_long_double): Likewise.
13558
13559 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13560
13561 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13562 (PF_XDP): New macro.
13563 (AF_XDP): New macro.
13564 (SOL_XDP): New macro.
13565
13566 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13567
13568 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13569 (TCP_INQ): Likewise.
13570 (TCP_CM_INQ): Likewise.
13571 (TCP_REPAIR_ON): Likewise.
13572 (TCP_REPAIR_OFF): Likewise.
13573 (TCP_REPAIR_OFF_NO_WP): Likewise.
13574 (struct tcp_zerocopy_receive): New type.
13575
13576 2018-08-21 Florian Weimer <fweimer@redhat.com>
13577
13578 * support/support.h (support_descriptor_supports_holes): Declare.
13579 * support/Makefile (libsupport-routines): Add
13580 support_descriptor_supports_holes.
13581 * support/support_descriptor_supports_holes.c: New file.
13582 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13583 and stop testing if holes are not supported.
13584 * io/test-lfs.c (do_prepare): Likewise.
13585 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13586 Likewise.
13587 * timezone/tst-tzset.c (create_tz_file): Likewise.
13588 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13589 variable.
13590 (do_prepare): Set it.
13591 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13592
13593 2018-08-21 Florian Weimer <fweimer@redhat.com>
13594
13595 [BZ #17248]
13596 * Makeconfig (+cflags): Do not sort (and deduplicate).
13597
13598 2018-08-21 Florian Weimer <fweimer@redhat.com>
13599
13600 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13601 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13602
13603 2018-08-20 Florian Weimer <fweimer@redhat.com>
13604
13605 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13606 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13607
13608 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13609
13610 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13611 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13612 and ssi_arch members.
13613
13614 * elf/elf.c (NT_VMCOREDD): New macro.
13615 (AT_MINSIGSTKSZ): Likewise.
13616
13617 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13618
13619 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13620 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13621 s_cosf-ppc64 and s_cosf-power8.
13622 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13623 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13624 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13625 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13626 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13628 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13629 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13631 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13632 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13633 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13634
13635 2018-08-17 Florian Weimer <fweimer@redhat.com>
13636
13637 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13638
13639 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13640
13641 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13642
13643 2018-08-16 Florian Weimer <fweimer@redhat.com>
13644
13645 * configure.ac: Add --with-nonshared-cflags option.
13646 * config.make.in (extra-nonshared-cflags): Set variable.
13647 * Makeconfig (CFLAGS-.oS): Use it.
13648 * manual/install.texi (Configuring and compiling): Document
13649 --with-nonshared-cflags.
13650 * configure: Regenerate.
13651 * INSTALL: Likewise.
13652
13653 2018-08-16 Florian Weimer <fweimer@redhat.com>
13654
13655 * Makeconfig (ASFLAGS): Always append required assembler flags.
13656
13657 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13658
13659 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13660 (malloc_consolidate): Likewise.
13661
13662 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13663
13664 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13665
13666 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13667
13668 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13669 every strlen call.
13670
13671 * benchtests/bench-strlen.c: Print performance numbers in json.
13672
13673 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13674
13675 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13676 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13677 only for little endian.
13678 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13679 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13680 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13681 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13682 Add check for little endian.
13683 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13684 (__strcmp_power9): Add check for little endian.
13685 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13686 Add check for little endian.
13687 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13688 (__strncmp_power9): Add check for little endian.
13689 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13690 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13691 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13692 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13693 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13694
13695 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13696
13697 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13698 [!STRLEN](STRLEN): Set to __strlen.
13699 * sysdeps/aarch64/multiarch/strlen.c: New file.
13700 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13701 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13702 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13703 (__libc_ifunc_impl_list): Add strlen.
13704 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13705 strlen_generic and strlen_asimd.
13706
13707 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13708
13709 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13710 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13711 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13712
13713 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13714
13715 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13716
13717 2018-08-14 Florian Weimer <fweimer@redhat.com>
13718
13719 [BZ #23519]
13720 * include/stdio.h (__vfxprintf): Declare.
13721 * stdio-common/fxprintf.c (__vfxprintf): New function.
13722 (__fxprintf): Call it.
13723 * misc/err.c (convert_and_print): Remove function.
13724 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13725 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13726 * misc/Makefile (tests): Add tst-warn-wide.
13727 * misc/tst-warn-wide.c: New file.
13728
13729 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13730 Szabolcs Nagy <szabolcs.nagy@arm.com>
13731
13732 * NEWS: Mention sinf, cosf, sincosf.
13733 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13734 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13735 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13736 constants rather than including generic sincosf.h.
13737 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13738 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13739 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13740 (reduced_cos): Remove.
13741 (sinf_poly): New function.
13742 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13743
13744 2018-08-14 Florian Weimer <fweimer@redhat.com>
13745
13746 [BZ #23521]
13747 [BZ #23522]
13748 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13749 processing, bail out if no room, and close the stream before
13750 returning ERANGE.
13751 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13752 (tst-nss-files-alias-leak): Link with libdl.
13753 (tst-nss-files-alias-leak.out): Depend on nss_files.
13754
13755 * nss/tst-nss-files-alias-leak.c: New file.
13756
13757 2018-08-14 Florian Weimer <fweimer@redhat.com>
13758
13759 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13760 server_user, stat_user.
13761
13762 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13763
13764 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13765 version to 4.18.
13766 (io_pgetevents): New syscall.
13767 (rseq): Likewise.
13768
13769 * manual/install.texi (Configuring and compiling): Do not list
13770 tools used for testing pretty printers here.
13771 (Tools for Compilation): List Python, PExpect and GDB here.
13772 Update descriptions of uses of Perl and Python.
13773 * INSTALL: Regenerate.
13774
13775 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13776 version to 4.18.
13777
13778 2018-08-13 Florian Weimer <fweimer@redhat.com>
13779
13780 * misc/error.c (error): Add missing va_end call.
13781 (error_at_line): Likewise.
13782
13783 2018-08-13 Florian Weimer <fweimer@redhat.com>
13784
13785 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13786
13787 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13788
13789 * benchtests/scripts/benchout.schema.json (properties): Add
13790 new properties.
13791
13792 * benchtests/bench-skeleton.c (main): Add duration and
13793 iterations attributes.
13794
13795 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13796
13797 regex: Gnulib unibyte RRI uses bytes not chars
13798 Adjust the non-glibc code to agree with what Gawk needs for
13799 rational range interpretation (RRI) for regular expression ranges.
13800 In unibyte locales, Gawk wants ranges to use the underlying byte
13801 rather than the character code point. This change does not affect
13802 glibc proper.
13803 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13804 In unibyte locales, use the byte value rather than
13805 running it through btowc.
13806
13807 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13808
13809 * sysdeps/generic/math-tests-snan.h: New file.
13810 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13811 (SNAN_TESTS_float): Do not define here.
13812 (SNAN_TESTS_double): Likewise.
13813 (SNAN_TESTS_long_double): Likewise.
13814 (SNAN_TESTS_float128): Likewise.
13815 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13816 * sysdeps/i386/fpu/math-tests.h: Remove file.
13817 * sysdeps/ia64/math-tests-snan.h: New file.
13818 * sysdeps/ia64/math-tests.h: Remove file.
13819 * sysdeps/x86/math-tests.h: Likewise.
13820 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13821
13822 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13823 Szabolcs Nagy <szabolcs.nagy@arm.com>
13824
13825 * math/Makefile: Add s_sincosf_data.c.
13826 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13827 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13828 (sincosf_poly): Likewise.
13829 (reduce_small): Likewise.
13830 (reduce_large): Likewise.
13831 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13832 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13833 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13834 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13835
13836 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13837 Szabolcs Nagy <szabolcs.nagy@arm.com>
13838
13839 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13840 (converttoint): Use lround.
13841 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13842 document the semantics when TOINT_INTRINSICS is set.
13843 (converttoint): Likewise.
13844 (TOINT_RINT): Remove.
13845 (TOINT_SHIFT): Remove.
13846 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13847 path.
13848
13849 2018-08-10 Florian Weimer <fweimer@redhat.com>
13850
13851 [BZ #23497]
13852 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13853 function.
13854 (__old_getdents64): Use getdents64. Convert entries without
13855 moving them.
13856 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13857 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13858 tst-readdir64-compat.
13859
13860 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13861
13862 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13863 Fix unwind.
13864
13865 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13866
13867 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13868 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13869 code to s390x-mcount.h and #include it.
13870 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13871 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13872 (__fentry__): Add.
13873
13874 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13875
13876 * stdlib/Versions: Remove __fentry__.
13877 * sysdeps/i386/Versions: Add __fentry__.
13878 * sysdeps/x86_64/Versions: Add __fentry__.
13879
13880 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13881
13882 * sysdeps/s390/Makefile: Register the new tests.
13883 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13884 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13885 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13886 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13887 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13888 * sysdeps/s390/tst-dl-runtime.c: New file.
13889
13890 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13891
13892 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13893 Do not clobber R0.
13894
13895 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13896
13897 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13898 Do not clobber R0.
13899
13900 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13901
13902 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13903 Do not clobber R0.
13904
13905 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13906
13907 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13908 Do not clobber R0.
13909
13910 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13911
13912 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13913 Use symbolic offsets for stack variables.
13914
13915 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13916
13917 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13918 Use symbolic offsets for stack variables.
13919
13920 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13921
13922 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13923 Use symbolic offsets for stack variables.
13924
13925 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13926
13927 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13928 Use symbolic offsets for stack variables.
13929
13930 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13931
13932 * math/gen-libm-test.py: New file.
13933 * math/gen-libm-test.pl: Remove.
13934 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13935 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13936 gen-libm-test.pl.
13937 ($(libm-test-c-noauto-obj)): Likewise.
13938 ($(libm-test-c-auto-obj)): Likewise.
13939 ($(libm-test-c-narrow-obj)): Likewise.
13940 (regen-ulps): Likewise.
13941 * math/README.libm-test: Update references to gen-libm-test.pl.
13942 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13943 referencing gen-libm-test.pl.
13944 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13945 * math/libm-test-support.c: Likewise.
13946 * math/libm-test-support.h: Likewise.
13947 * sysdeps/generic/libm-test-ulps: Likewise.
13948
13949 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13950
13951 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13952 Fix value.
13953
13954 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13955
13956 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13957 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13958
13959 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13960
13961 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13962 symbols.
13963 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13964 __pthread_setspecific): Add hidden proto.
13965 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13966 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13967
13968 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13969
13970 * benchtests/bench-string.h (buf1_size, buf2_size): New
13971 variables.
13972 (init_sizes): New function.
13973 (test_init): Use it.
13974 (alloc_buf, exit_error): New functions.
13975 (alloc_bufs): Use ALLOC_BUF.
13976 (realloc_bufs): Remove.
13977 * benchtests/bench-memcmp.c (do_test): Adjust.
13978 * benchtests/bench-memset-large.c (do_test): Likewise.
13979 * benchtests/bench-memset-walk.c (do_test): Likewise.
13980 * benchtests/bench-memset.c (do_test): Likewise.
13981 * benchtests/bench-strncmp.c (do_test): Likewise.
13982
13983 2018-08-06 Andreas Schwab <schwab@suse.de>
13984
13985 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13986 of CONST_THREAD_AREA.
13987
13988 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13989
13990 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13991 (STATE_SAVE_MASK): Likewise.
13992 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13993 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13994 (STATE_SAVE_MASK): Likewise.
13995 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13996 instead of <cpu-features.h>.
13997
13998 2018-08-03 DJ Delorie <dj@redhat.com>
13999
14000 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
14001 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
14002
14003 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
14004
14005 2018-08-03 Joseph Myers <joseph@codesourcery.com>
14006
14007 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
14008 after TEST_* calls.
14009 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
14010 * math/libm-test-logb.inc (logb_test_data): Likewise.
14011
14012 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
14013
14014 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14015 * string/strstr.c (AVAILABLE): Likewise.
14016
14017 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14018
14019 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14020 <init-arch.h>.
14021 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14022 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14023 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14024
14025 2018-08-03 Carlos O'Donell <carlos@redhat.com>
14026
14027 * po/be.po: Update translation.
14028
14029 * po/be.po: Update translation.
14030
14031 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14032
14033 * sysdeps/x86/cpu-features-offsets.sym
14034 (rtld_global_ro_offsetof): Removed.
14035 (CPU_FEATURES_SIZE): Likewise.
14036 (CPUID_OFFSET): Likewise.
14037 (CPUID_SIZE): Likewise.
14038 (CPUID_EAX_OFFSET): Likewise.
14039 (CPUID_EBX_OFFSET): Likewise.
14040 (CPUID_ECX_OFFSET): Likewise.
14041 (CPUID_EDX_OFFSET): Likewise.
14042 (FAMILY_OFFSET): Likewise.
14043 (MODEL_OFFSET): Likewise.
14044 (FEATURE_OFFSET): Likewise.
14045 (FEATURE_SIZ): Likewise.
14046 (COMMON_CPUID_INDEX_1): Likewise.
14047 (COMMON_CPUID_INDEX_7): Likewise.
14048 (FEATURE_INDEX_1): Likewise.
14049 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14050
14051 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14052
14053 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14054 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14055 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14056 (install-locales): Depend on install-locale-archive.
14057 (install-locale-archive): Define.
14058 (install-locale-files): Define.
14059 (build-one-locale): Define macro.
14060 * manual/install.texi (Running make install): Document.
14061 * manual/INSTALL: Regenerate.
14062
14063 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14064
14065 * benchtests/scripts/compare_strings.py: Import traceback.
14066 (parse_file): Pretty-print error.
14067
14068 * NEWS: Mention the change.
14069 * elf/dl-tunables.list: Rename tune namespace to cpu.
14070 * sysdeps/powerpc/dl-tunables.list: Likewise.
14071 * sysdeps/x86/dl-tunables.list: Likewise.
14072 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14073 cpu.name.
14074 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14075 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14076 * manual/README.tunables: Likewise.
14077 * manual/tunables.texi: Likewise.
14078 * sysdeps/powerpc/cpu-features.c: Likewise.
14079 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14080 (init_cpu_features): Likewise.
14081 * sysdeps/x86/cpu-features.c: Likewise.
14082 * sysdeps/x86/cpu-features.h: Likewise.
14083 * sysdeps/x86/cpu-tunables.c: Likewise.
14084 * sysdeps/x86_64/Makefile: Likewise.
14085 * sysdeps/x86/dl-cet.c: Likewise.
14086
14087 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14088
14089 [BZ #23479]
14090 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14091 [__mips_hard_float].
14092 (FE_UNDERFLOW): Likewise.
14093 (FE_OVERFLOW): Likewise.
14094 (FE_DIVBYZERO): Likewise.
14095 (FE_INVALID): Likewise.
14096 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14097 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14098 (FE_UPWARD): Likewise.
14099 (FE_DOWNWARD): Likewise.
14100 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14101 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14102 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14103 [__mips_hard_float].
14104 (FP_ROUNDMODE): Likewise.
14105 (FP_RND_NEAREST): Likewise.
14106 (FP_RND_ZERO): Likewise.
14107 (FP_RND_PINF): Likewise.
14108 (FP_RND_MINF): Likewise.
14109 (FP_EX_INVALID): Likewise.
14110 (FP_EX_OVERFLOW): Likewise.
14111 (FP_EX_UNDERFLOW): Likewise.
14112 (FP_EX_DIVZERO): Likewise.
14113 (FP_EX_INEXACT): Likewise.
14114 (FP_INIT_ROUNDMODE): Likewise.
14115 * sysdeps/mips/nofpu/fesetenv.c: New file.
14116 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14117
14118 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14119
14120 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14121 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14122 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14123 conditional on [FE_UPWARD].
14124
14125 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14126
14127 regex: fix memory leak in Gnulib
14128 Problem and fix reported by Assaf Gordon in:
14129 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14130 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14131 range_ends members too, as they are defined in 'struct
14132 re_charset_t' even if not _LIBC. This affects only Gnulib.
14133
14134 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14135
14136 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14137 ...
14138 (get_common_indices): This.
14139 (init_cpu_features): Updated.
14140
14141 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14142
14143 * sysdeps/generic/math-tests-snan-payload.h: New file.
14144 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14145 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14146 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14147 * sysdeps/generic/math-tests.h: Include
14148 <math-tests-snan-payload.h>.
14149 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14150 * sysdeps/hppa/math-tests.h: Remove file.
14151 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14152 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14153 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14154 Likewise.
14155
14156 * sysdeps/generic/math-tests-snan-cast.h: New file.
14157 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14158 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14159 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14160 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14161
14162 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14163
14164 * version.h (RELEASE): Set to "development".
14165 (VERSION): Set to "2.28.9000".
14166 * NEWS (2.29): New section.
14167
14168 * version.h (RELEASE): Set to "stable".
14169 (VERSION): Set to "2.28".
14170 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14171 * NEWS: Add the list of bugs fixed in 2.28.
14172
14173 * po/ca.po: Update to latest version.
14174 * po/cs.po: Likewise
14175 * po/da.po: Likewise
14176 * po/el.po: Likewise
14177 * po/eo.po: Likewise
14178 * po/es.po: Likewise
14179 * po/fi.po: Likewise
14180 * po/fr.po: Likewise
14181 * po/gl.po: Likewise
14182 * po/hu.po: Likewise
14183 * po/ia.po: Likewise
14184 * po/id.po: Likewise
14185 * po/it.po: Likewise
14186 * po/ja.po: Likewise
14187 * po/ko.po: Likewise
14188 * po/lt.po: Likewise
14189 * po/nb.po: Likewise
14190 * po/nl.po: Likewise
14191 * po/pt_BR.po: Likewise
14192 * po/ru.po: Likewise
14193 * po/rw.po: Likewise
14194 * po/sk.po: Likewise
14195 * po/sl.po: Likewise
14196 * po/tr.po: Likewise
14197 * po/zh_CN.po: Likewise
14198 * po/zh_TW.po: Likewise
14199
14200 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14201
14202 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14203 initialization...
14204 (init): ... before initializing libpthread.
14205
14206 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14207 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14208 (__mach_setup_tls): ... new function.
14209 (mach_setup_tls): New alias.
14210 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14211 __mach_setup_thread.
14212 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14213 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14214 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14215 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14216
14217 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14218
14219 * manual/install.texi: Update versions.
14220 * INSTALL: Regenerate.
14221
14222 * manual/contrib.texi (Contributors): Update contributions.
14223
14224 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14225
14226 * po/be.po: Update translations.
14227
14228 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14229
14230 * sysdeps/sh/libm-test-ulps: Update.
14231
14232 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14233
14234 * po/bg.po: Update translations.
14235 * po/de.po: Likewise.
14236 * po/hr.po: Likewise.
14237 * po/pt_BR.po: Likewise.
14238 * po/sv.po: Likewise.
14239 * po/vi.po: Likewise.
14240
14241 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14242
14243 [BZ #23467]
14244 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14245 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14246 (CFLAGS-tst-cet-property-1.o): New.
14247 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14248 ($(objpfx)tst-cet-property-2): Likewise.
14249 ($(objpfx)tst-cet-property-2.out): Likewise.
14250 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14251 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14252 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14253 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14254 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14255
14256 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14257
14258 [BZ #23458]
14259 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14260
14261 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14262
14263 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14264 __sbrk): Do not set attribute_hidden.
14265 * sysdeps/mach/hurd/not-errno.h: New file.
14266 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14267 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14268
14269 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14270
14271 * po/uk.po: Update translations.
14272 * po/cs.po: Likewise.
14273 * po/pl.po: Likewise.
14274
14275 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14276
14277 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14278 parse beyond the note end.
14279
14280 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14281
14282 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14283 kernel does not support OFD locks.
14284 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14285
14286 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14287
14288 * sysdeps/mach/hurd/Versions (libc): Make __access and
14289 __access_noerrno external so they can override the ld symbols.
14290 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14291 __writev, __open64, __access_noerrno extern so they can be overrided.
14292 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14293 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14294
14295 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14296
14297 * po/libc.pot: Regenerate.
14298
14299 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14300
14301 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14302
14303 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14304
14305 [BZ #23459]
14306 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14307 function.
14308 (init_cpu_features): Call get_extended_indices for both Intel
14309 and AMD CPUs.
14310 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14311 Remove "for AMD" comment.
14312
14313 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14314
14315 [BZ # 23456]
14316 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14317 COMMON_CPUID_INDEX_80000001.
14318
14319 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14320
14321 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14322 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14323
14324 2018-07-26 Florian Weimer <fweimer@redhat.com>
14325
14326 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14327 aliases for symbols not in the implementation namespace.
14328
14329 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14330
14331 [BZ #23393]
14332 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14333 lowercase in LATIN script.
14334 * localedata/Makefile (test-input): Add en_US.UTF-8.
14335 * localedata/en_US.UTF-8.in: New file.
14336 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14337 and restore old tests.
14338 * posix/tst-regexloc.c (do_test): Add back range expression test.
14339
14340 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14341
14342 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14343
14344 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14345
14346 * nptl/threads.h: Move to ...
14347 * sysdeps/nptl/threads.h: ... here.
14348 * sysdeps/hurd/stdc-predef.h: New file.
14349
14350 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14351
14352 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14353 tst-cet-setcontext-1 if CET is enabled.
14354 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14355 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14356
14357 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14358
14359 * include/threads.h: Move to ...
14360 * sysdeps/nptl/threads.h: ... here.
14361 * sysdeps/htl/threads.h: New file.
14362 * conform/Makefile (linknamespace-libs-ISO11): Use
14363 static-thread-library instead of linking libpthread.
14364 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14365
14366 2018-07-25 Florian Weimer <fweimer@redhat.com>
14367
14368 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14369 nanoseconds into seconds.
14370 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14371 (do_test): Likewise.
14372 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14373 (do_test): Likewise. Avoid nanosecond overflow and spurious
14374 timeouts due to system load.
14375 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14376 (child_wait): Increment it.
14377 (do_test): Wait as long as necessary until all expected threads
14378 have arrived.
14379
14380 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14381 H.J. Lu <hongjiu.lu@intel.com>
14382
14383 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14384 __ssp.
14385 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14386 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14387 (__push___start_context): New.
14388 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14389 <asm/prctl.h>.
14390 (__getcontext): Record the current shadow stack base. Save the
14391 caller's shadow stack pointer and base.
14392 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14393 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14394 (__push___start_context): New prototype.
14395 (__makecontext): Call __push___start_context to allocate a new
14396 shadow stack, push __start_context onto the new stack as well
14397 as the new shadow stack.
14398 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14399 <asm/prctl.h>.
14400 (__setcontext): Restore the target shadow stack.
14401 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14402 <asm/prctl.h>.
14403 (__swapcontext): Record the current shadow stack base. Save
14404 the caller's shadow stack pointer and base. Restore the target
14405 shadow stack.
14406 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14407 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14408 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14409
14410 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14411
14412 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14413 tst-setcontext8 and tst-setcontext9.
14414 * stdlib/tst-setcontext6.c: New file.
14415 * stdlib/tst-setcontext7.c: Likewise.
14416 * stdlib/tst-setcontext8.c: Likewise.
14417 * stdlib/tst-setcontext9.c: Likewise.
14418
14419 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14420
14421 * stdlib/Makefile ((tests): Add tst-setcontext5.
14422 * stdlib/tst-setcontext5.c: New file.
14423
14424 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14425
14426 * stdlib/Makefile (tests): Add tst-setcontext4.
14427 * stdlib/tst-setcontext4.c: New file.
14428
14429 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14430
14431 * stdlib/Makefile (tests): Add tst-swapcontext1.
14432 * stdlib/tst-swapcontext1.c: New test.
14433
14434 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14435
14436 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14437 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14438 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14439 and tst-cet-legacy-4c.
14440 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14441 and tst-cet-legacy-mod-4.
14442 (CFLAGS-tst-cet-legacy-2.c): New.
14443 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14444 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14445 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14446 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14447 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14448 ($(objpfx)tst-cet-legacy-1): Likewise.
14449 ($(objpfx)tst-cet-legacy-2): Likewise.
14450 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14451 ($(objpfx)tst-cet-legacy-2a): Likewise.
14452 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14453 ($(objpfx)tst-cet-legacy-4): Likewise.
14454 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14455 ($(objpfx)tst-cet-legacy-4a): Likewise.
14456 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14457 (tst-cet-legacy-4a-ENV): Likewise.
14458 ($(objpfx)tst-cet-legacy-4b): Likewise.
14459 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14460 (tst-cet-legacy-4b-ENV): Likewise.
14461 ($(objpfx)tst-cet-legacy-4c): Likewise.
14462 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14463 (tst-cet-legacy-4c-ENV): Likewise.
14464 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14465 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14466 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14467 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14468 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14469 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14470 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14471 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14472 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14473 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14474 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14475
14476 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14477
14478 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14479 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14480 with ssp_base.
14481 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14482 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14483 with ssp_base.
14484
14485 2018-07-25 Andreas Schwab <schwab@suse.de>
14486
14487 [BZ #23442]
14488 * locale/weightwc.h (findidx): Handle the case where usrc is a
14489 prefix of cp but one character too short.
14490
14491 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14492
14493 * NEWS: Add ISO C threads addition.
14494
14495 2018-07-24 Florian Weimer <fweimer@redhat.com>
14496
14497 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14498 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14499 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14500 4.13.
14501
14502 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14503
14504 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14505 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14506 <sys/prctl.h> and <asm/prctl.h>.
14507 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14508 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14509 and <asm/prctl.h>.
14510 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14511 ARCH_CET_LEGACY_BITMAP.
14512 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14513 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14514 * sysdeps/x86/libc-start.c: Include <startup.h>.
14515
14516 2018-07-24 Florian Weimer <fweimer@redhat.com>
14517
14518 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14519 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14520
14521 2018-07-24 Rical Jasan <rj@2c3t.io>
14522 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14523 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14524
14525 [BZ #14092]
14526 * manual/debug.texi: Update adjacent chapter name.
14527 * manual/probes.texi: Likewise.
14528 * manual/threads.texi (ISO C Threads): New section.
14529 (POSIX Threads): Convert to a section.
14530
14531 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14532 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14533
14534 [BZ# 14092]
14535 * nptl/Makefile (tests): Add new test files.
14536 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14537 * nptl/tst-cnd-basic.c: Likewise.
14538 * nptl/tst-cnd-broadcast.c: Likewise.
14539 * nptl/tst-cnd-timedwait.c: Likewise.
14540 * nptl/tst-mtx-basic.c: Likewise.
14541 * nptl/tst-mtx-recursive.c: Likewise.
14542 * nptl/tst-mtx-timedlock.c: Likewise.
14543 * nptl/tst-mtx-trylock.c: Likewise.
14544 * nptl/tst-thrd-basic.c: Likewise.
14545 * nptl/tst-thrd-detach.c: Likewise.
14546 * nptl/tst-thrd-sleep.c: Likewise.
14547 * nptl/tst-tss-basic.c: Likewise.
14548
14549 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14550
14551 [BZ #14092]
14552 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14553 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14554 symbols.
14555 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14556 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14557 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14559 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14560 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14561 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14562 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14563 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14564 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14565 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14568 Likewise.
14569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14570 Likewise.
14571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14572 Likewise.
14573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14574 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14575 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14576 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14578 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14579 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14580 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14581 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14582 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14583 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14584 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14585 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14586 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14587 Likewise.
14588 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14589 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14590 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14592 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14593 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14596 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14597 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14600 ikewise.
14601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14603 Likewise.
14604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14605 Likewise.
14606 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14611 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14614
14615 [BZ #14092]
14616 * conform/data/threads.h-data (thread_local): New macro.
14617 (TSS_DTOR_ITERATIONS): Likewise.
14618 (tss_t): New type.
14619 (tss_dtor_t): Likewise.
14620 (tss_create): New function.
14621 (tss_get): Likewise.
14622 (tss_set): Likewise.
14623 (tss_delete): Likewise.
14624 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14625 tss_get, and tss_set objects.
14626 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14627 * nptl/tss_create.c: New file.
14628 * nptl/tss_delete.c: Likewise.
14629 * nptl/tss_get.c: Likewise.
14630 * nptl/tss_set.c: Likewise.
14631 * sysdeps/nptl/threads.h (thread_local): New define.
14632 (TSS_DTOR_ITERATIONS): Likewise.
14633 (tss_t): New typedef.
14634 (tss_dtor_t): Likewise.
14635 (tss_create): New prototype.
14636 (tss_get): Likewise.
14637 (tss_set): Likewise.
14638 (tss_delete): Likewise.
14639
14640 [BZ #14092]
14641 * conform/data/threads.h-data (cnd_t): New type.
14642 (cnd_init): New function.
14643 (cnd_signal): Likewise.
14644 (cnd_broadcast): Likewise.
14645 (cnd_wait): Likewise.
14646 (cnd_timedwait): Likewise.
14647 (cnd_destroy): Likewise.
14648 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14649 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14650 object.
14651 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14652 * nptl/cnd_broadcast.c: New file.
14653 * nptl/cnd_destroy.c: Likewise.
14654 * nptl/cnd_init.c: Likewise.
14655 * nptl/cnd_signal.c: Likewise.
14656 * nptl/cnd_timedwait.c: Likewise.
14657 * nptl/cnd_wait.c: Likewise.
14658 * sysdeps/nptl/threads.h (cnd_t): New type.
14659 (cnd_init): New prototype.
14660 (cnd_signa): Likewise.
14661 (cnd_broadcast): Likewise.
14662 (cnd_wait): Likewise.
14663 (cnd_timedwait): Likewise.
14664 (cnd_destroy): Likewise.
14665
14666 [BZ #14092]
14667 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14668 (once_flag): New type.
14669 (call_once): New function.
14670 * nptl/Makefile (libpthread-routines): Add call_once object.
14671 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14672 * nptl/call_once.c: New file.
14673 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14674 (once_flag): New type.
14675 (call_once): New prototype.
14676
14677 [BZ #14092]
14678 * conform/data/threads.h-data (mtx_plain): New constant.
14679 (mtx_recursive): Likewise.
14680 (mtx_timed): Likewise.
14681 (mtx_t): New type.
14682 (mtx_init): New function.
14683 (mtx_lock): Likewise.
14684 (mtx_timedlock): Likewise.
14685 (mtx_trylock): Likewise.
14686 (mtx_unlock): Likewise.
14687 (mtx_destroy): Likewise.
14688 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14689 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14690 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14691 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14692 * nptl/mtx_destroy.c: New file.
14693 * nptl/mtx_init.c: Likewise.
14694 * nptl/mtx_lock.c: Likewise.
14695 * nptl/mtx_timedlock.c: Likewise.
14696 * nptl/mtx_trylock.c: Likewise.
14697 * nptl/mtx_unlock.c: Likewise.
14698 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14699 (mtx_recursive): Likewise.
14700 (mtx_timed): Likewise.
14701 (mtx_t): New type.
14702 (mtx_init): New prototype.
14703 (mtx_lock): Likewise.
14704 (mtx_timedlock): Likewise.
14705 (mtx_trylock): Likewise.
14706 (mtx_unlock): Likewise.
14707 (mtx_destroy): Likewise.
14708
14709 [BZ #14092]
14710 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14711 (linknamespace-libs-ISO11): Add libpthread.a.
14712 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14713 functions.
14714 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14715 * nptl/Makefile (headers): Add threads.h.
14716 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14717 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14718 thrd_yield.
14719 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14720 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14721 thrd_join, thrd_sleep, and thrd_yield symbols.
14722 * nptl/descr.h (struct pthread): Add c11 field.
14723 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14724 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14725 routine with expected function prototype.
14726 (__pthread_create_2_1): Add C11 threads check based on attribute
14727 value.
14728 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14729 * nptl/thrd_create.c: New file.
14730 * nptl/thrd_current.c: Likewise.
14731 * nptl/thrd_detach.c: Likewise.
14732 * nptl/thrd_equal.c: Likewise.
14733 * nptl/thrd_exit.c: Likewise.
14734 * nptl/thrd_join.c: Likewise.
14735 * nptl/thrd_priv.h: Likewise.
14736 * nptl/thrd_sleep.c: Likewise.
14737 * nptl/thrd_yield.c: Likewise.
14738 * include/threads.h: Likewise.
14739
14740 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14741
14742 * bits/indirect-return.h: New file.
14743 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14744 * sysdeps/x86/bits/indirect-return.h: Likewise.
14745 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14746 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14747 (swapcontext): Add __INDIRECT_RETURN.
14748 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14749 (prepare_test_buffer): Use it.
14750
14751 2018-07-24 Andreas Schwab <schwab@suse.de>
14752
14753 [BZ #23448]
14754 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14755 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14756
14757 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14758
14759 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14760 Redefine if shadow stack is enabled.
14761 (SYSCALL_ERROR_LABEL): Likewise.
14762 (__vfork): Pop shadow stack and jump back to to caller directly
14763 when shadow stack is in use.
14764 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14765 Redefine if shadow stack is enabled.
14766 (SYSCALL_ERROR_LABEL): Likewise.
14767 (__vfork): Pop shadow stack and jump back to to caller directly
14768 when shadow stack is in use.
14769
14770 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14771
14772 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14773 enabled.
14774 (foo): Likewise.
14775 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14776 (foo): Likewise.
14777
14778 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14779
14780 * scripts/build-many-glibcs.py (Context.checkout): Default
14781 binutils version to 2.31 branch.
14782
14783 2018-07-20 Zong Li <zong@andestech.com>
14784
14785 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14786 URL of gcc's tarball.
14787
14788 2018-07-20 Florian Weimer <fweimer@redhat.com>
14789
14790 [BZ #23396]
14791 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14792 not compare an extra byte after the end of the weights.
14793
14794 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14795
14796 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14797 to 1.
14798 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14799 hidden prototypes.
14800 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14801 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14802 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14803 list of libraries whose stack executability is expected.
14804 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14805 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14806 variable.
14807 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14808 libc.so libpthread.so.
14809
14810 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14811
14812 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14813 SOCK_NONBLOCK.
14814 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14815 and SOCK_NONBLOCK.
14816 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14817 implement __pipe2.
14818 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14819
14820 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14821
14822 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14823 library to improve command line parsing.
14824 (__main__): make schema file as optional parameter (--schema),
14825 defaulting to benchtests/scripts/benchout.schema.json.
14826 (main): move out of the parsing stuff to __main_  and leave it
14827 only as caller of main comparison functions.
14828
14829 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14830
14831 * NEWS: Add a note for Intel CET status.
14832 * manual/install.texi: Likewise.
14833 * INSTALL: Regenerated.
14834
14835 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14836
14837 [BZ #23140]
14838 * localedata/locales/oc_FR (mon): Rename to...
14839 (alt_mon): This, then update October (typo fix).
14840 (mon): New content (genitive case, month names preceded by
14841 "de" or "d’").
14842
14843 [BZ #23422]
14844 * localedata/locales/oc_FR (abday): Update all items.
14845 (day): Update Wednesday and Saturday (typo fixes).
14846 (abmon): Update all items, except May.
14847 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14848 (LC_IDENTIFICATION): Bump the revision number and date.
14849 Keep the "category" entries in alphabetic order.
14850 (LC_ADDRESS): Remove no longer needed comment.
14851 (LC_COLLATE): Use “copy "ca_ES"”.
14852 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14853 "name_mrs".
14854
14855 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14856
14857 * grp/tst_fgetgrent.c: Include <unistd.h>.
14858 (main): Use mkstemp instead of tmpnam.
14859 * io/test-utime.c (main): Likewise.
14860 * posix/annexc.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 * posix/bug-getopt1.c: Include <stdlib.h>.
14866 (do_test): Use mkstemp instead of tmpnam.
14867 * posix/bug-getopt2.c: Include <stdlib.h>.
14868 (do_test): Use mkstemp instead of tmpnam.
14869 * posix/bug-getopt3.c: Include <stdlib.h>.
14870 (do_test): Use mkstemp instead of tmpnam.
14871 * posix/bug-getopt4.c: Include <stdlib.h>.
14872 (do_test): Use mkstemp instead of tmpnam.
14873 * posix/bug-getopt5.c: Include <stdlib.h>.
14874 (do_test): Use mkstemp instead of tmpnam.
14875 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14876 (main): Use mkstemp instead of tmpnam.
14877 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14878 (main): Use mkstemp instead of tmpnam.
14879 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14880 (main): use mkstemp instead of tmpnam.
14881 * stdlib/isomac.c (macrofile): Change to modifiable array.
14882 (main): Remove macrofile here.
14883 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14884 macrofile here.
14885 (check_header): Do not remove macrofile here.
14886
14887 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14888
14889 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14890 glibc.tune.x86_shstk.
14891
14892 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14893
14894 * NEWS: Mention --enable-cet.
14895 * manual/install.texi: Document --enable-cet.
14896 * INSTALL: Regenerated.
14897
14898 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14899
14900 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14901 Add _CET_NOTRACK before indirect jump to jump table.
14902
14903 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14904
14905 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14906 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14907 to jump table.
14908
14909 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14910
14911 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14912 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14913 to jump table.
14914
14915 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14916
14917 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14918 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14919 to jump table.
14920
14921 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14922
14923 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14924 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14925 to jump table.
14926
14927 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14928
14929 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14930 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14931 to jump table.
14932 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14933
14934 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14935
14936 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14937 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14938 to jump table.
14939
14940 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14941
14942 * sysdeps/i386/i686/multiarch/memset-sse2.S
14943 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14944 to jump table.
14945
14946 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14947
14948 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14949 indirect jump to jump table.
14950
14951 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14952
14953 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14954 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14955 to jump table.
14956 (MEMCPY): Likewise.
14957
14958 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14959
14960 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14961 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14962 to jump table.
14963 (MEMCPY): Likewise.
14964
14965 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14966
14967 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14968 _CET_NOTRACK before indirect jump to jump table.
14969
14970 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14971
14972 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14973 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14974 to jump table.
14975
14976 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14977
14978 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14979 indirect jump to jump table.
14980
14981 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14982
14983 [BZ #22241]
14984 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14985 (LOCALES): Likewise.
14986 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14987 * localedata/locales/sah_RU: New file.
14988 * localedata/sah_RU.UTF-8.in: New file.
14989
14990 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14991
14992 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14993 "sysdep.h".
14994 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14995 _CET_ENDBR to indirect jump targets and adjust jump destination
14996 for _CET_ENDBR.
14997 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14998 "sysdep.h".
14999 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15000 _CET_ENDBR to indirect jump targets and adjust jump destination
15001 for _CET_ENDBR.
15002 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
15003 "sysdep.h".
15004 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
15005 _CET_ENDBR to indirect jump targets and adjust jump destination
15006 for _CET_ENDBR.
15007
15008 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15009
15010 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15011 _CET_ENDBR.
15012
15013 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15014
15015 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15016 _CET_ENDBR.
15017 (_dl_tlsdesc_undefweak): Likewise.
15018 (_dl_tlsdesc_dynamic): Likewise.
15019 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15020 (_dl_tlsdesc_resolve_rel): Likewise.
15021 (_dl_tlsdesc_resolve_rela): Likewise.
15022 (_dl_tlsdesc_resolve_hold): Likewise.
15023 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15024 (_dl_tlsdesc_undefweak): Likewise.
15025 (_dl_tlsdesc_dynamic): Likewise.
15026 (_dl_tlsdesc_resolve_rela): Likewise.
15027 (_dl_tlsdesc_resolve_hold): Likewise.
15028
15029 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15030
15031 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15032 (_fini): Likewise.
15033 * sysdeps/x86_64/crti.S (_init): Likewise.
15034 (_fini): Likewise.
15035
15036 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
15037
15038 [BZ #23140]
15039 * localedata/locales/os_RU (mon): Rename to...
15040 (alt_mon): This.
15041 (mon): Import from CLDR (genitive case).
15042
15043 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15044
15045 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15046 cet-tunables.h> when CET is enabled.
15047
15048 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15049
15050 [BZ #21598]
15051 * configure.ac: Add --enable-cet.
15052 * configure: Regenerated.
15053 * elf/Makefille (all-built-dso): Add a comment.
15054 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15055 Include <dl-prop.h>.
15056 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15057 segment.
15058 * elf/dl-open.c: Include <dl-prop.h>.
15059 (dl_open_worker): Call _dl_open_check.
15060 * elf/rtld.c: Include <dl-prop.h>.
15061 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15062 _rtld_main_check.
15063 * sysdeps/generic/dl-prop.h: New file.
15064 * sysdeps/i386/dl-cet.c: Likewise.
15065 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15066 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15067 * sysdeps/x86/cet-tunables.h: Likewise.
15068 * sysdeps/x86/check-cet.awk: Likewise.
15069 * sysdeps/x86/configure: Likewise.
15070 * sysdeps/x86/configure.ac: Likewise.
15071 * sysdeps/x86/dl-cet.c: Likewise.
15072 * sysdeps/x86/dl-procruntime.c: Likewise.
15073 * sysdeps/x86/dl-prop.h: Likewise.
15074 * sysdeps/x86/libc-start.h: Likewise.
15075 * sysdeps/x86/link_map.h: Likewise.
15076 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15077 _CET_ENDBR.
15078 (_dl_runtime_profile): Likewise.
15079 (_dl_runtime_resolve_shstk): New.
15080 (_dl_runtime_profile_shstk): Likewise.
15081 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15082 if CET is enabled.
15083 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15084 (CFLAGS-.os): Likewise.
15085 (CFLAGS-.op): Likewise.
15086 (CFLAGS-.oS): Likewise.
15087 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15088 is enabled.
15089 (tests-special): Add $(objpfx)check-cet.out.
15090 (cet-built-dso): New.
15091 (+$(cet-built-dso:=.note)): Likewise.
15092 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15093 ($(objpfx)check-cet.out): New.
15094 (generated): Add check-cet.out.
15095 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15096 <cet-tunables.h>.
15097 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15098 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15099 (init_cpu_features): Call get_cet_status to check CET status
15100 and update dl_x86_feature_1 with CET status. Call
15101 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15102 (set_x86_shstk). Disable and lock CET in libc.a.
15103 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15104 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15105 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15106 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15107 (_CET_ENDBR): Define if not defined.
15108 (ENTRY): Add _CET_ENDBR.
15109 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15110 x86_shstk.
15111 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15112 _CET_ENDBR.
15113 (_dl_runtime_profile): Likewise.
15114
15115 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15116
15117 [BZ #21895]
15118 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15119 restore r2 on longjmp.
15120 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15121 test list.
15122 Added rules to build test tst-setjmp-bug21895-static.
15123 Added module setjmp-bug21895 and rules to build a shared object from it.
15124 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15125 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15126
15127 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15128
15129 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15130 * benchtests/bench-strstr.c: Likewise.
15131 * string/memmem.c (FASTSEARCH): Define.
15132 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15133 Add support for FASTSEARCH.
15134 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15135 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15136 (FASTSEARCH): Define.
15137 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15138 * string/test-strstr.c: Likewise.
15139
15140 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15141
15142 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15143 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15144
15145 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15146 H.J. Lu <hongjiu.lu@intel.com>
15147
15148 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15149 (__longjmp): Restore shadow stack pointer if shadow stack is
15150 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15151 isn't defined for __longjmp_cancel.
15152 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15153 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15154 and SHADOW_STACK_POINTER_OFFSET is defined.
15155 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15156 (setjmp): Save shadow stack pointer if shadow stack is enabled
15157 and SHADOW_STACK_POINTER_OFFSET is defined.
15158 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15159 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15160 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15161 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15162 <jmp_buf-ssp.h>.
15163 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15164 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15165 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15166 Remove jmp_buf-ssp.sym.
15167 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15168 <jmp_buf-ssp.h>.
15169 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15170 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15171 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15172 jmp_buf-ssp.sym.
15173 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15174 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15175 (__longjmp): Restore shadow stack pointer if shadow stack is
15176 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15177 isn't defined for __longjmp_cancel.
15178 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15179 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15180 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15181
15182 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15183
15184 [BZ #22563]
15185 * nptl/pthread_create.c: Include <tls-setup.h>.
15186 (__pthread_create_2_1): Call tls_setup_tcbhead.
15187 * sysdeps/generic/tls-setup.h: New file.
15188 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15189 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15190 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15191 Likewise.
15192 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15193 to feature_1.
15194 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15195 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15196 (X86_FEATURE_1_SHSTK): Likewise.
15197 (CET_ENABLED): Likewise.
15198 (IBT_ENABLED): Likewise.
15199 (SHSTK_ENABLED): Likewise.
15200
15201 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15202
15203 [BZ #23208]
15204 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15205 (LOCALES): Likewise.
15206 * localedata/dsb_DE.UTF-8.in: New file.
15207 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15208
15209 2018-07-12 Florian Weimer <fweimer@redhat.com>
15210
15211 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15212 __mprotect, not mprotect.
15213
15214 2018-07-11 Florian Weimer <fweimer@redhat.com>
15215
15216 * io/Makefile (headers): Add bits/statx.h.
15217
15218 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15219
15220 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15221 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15222 and headers.
15223 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15224 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15225 for utf8_gen.py
15226
15227 2018-07-10 Florian Weimer <fweimer@redhat.com>
15228
15229 * io/Makefile (routines): Add statx.
15230 (tests-internal): Add tst-statx.
15231 * io/Versions (GLIBC_2.28): Export statx.
15232 * io/bits/statx.h: New file.
15233 * io/sys/stat.h [__USE_GNU]: Include it.
15234 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15235 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15236 Define.
15237 * io/statx.c: New file.
15238 * io/statx_generic.: Likewise.
15239 * io/tst-statx.: Likewise.
15240 * include/bits/statx.h: Likewise.
15241 * sysdeps/unix/sysv/linux/kernel-features.h
15242 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15243 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15244 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15245 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15246 Undefine.
15247 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15248 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15249 * sysdeps/unix/sysv/linux/statx.c: New file.
15250 * manual/filesys.texi: Note that statx is undocumented.
15251 * sysdeps/**/libc*.abilist: Update.
15252
15253 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15254
15255 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15256 a kernel issue which lead to test failure in some cases.
15257
15258 2018-07-10 Florian Weimer <fweimer@redhat.com>
15259
15260 [BZ #23036]
15261 * posix/regexec.c (check_node_accept_bytes): When comparing
15262 weights, do not compare an extra byte after the end of the
15263 weights.
15264
15265 2018-07-10 Florian Weimer <fweimer@redhat.com>
15266
15267 * libio/readline.c: Fix copyright year.
15268 * libio/tst-readline.c Likewise.
15269 * nss/tst-nss-files-hosts-getent.c: Likewise.
15270
15271 2018-07-06 Florian Weimer <fweimer@redhat.com>
15272
15273 [BZ #18991]
15274 * nss/nss_files/files-XXX.c (internal_getent): Use
15275 __libc_readline_unlocked. Seek back to the start of the line if
15276 parsing failes with ERANGE.
15277 (get_contents_ret, get_contents): Remove.
15278 * nss/tst-nss-files-hosts-getent.c: New file.
15279 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15280 (tst-nss-files-hosts-getent): Link with -ldl.
15281
15282 2018-07-06 Florian Weimer <fweimer@redhat.com>
15283
15284 * include/stdio.h (__libc_readline_unlocked): Declare.
15285 (__ftello64, __fseeko64): Declare aliases.
15286 * libio/readline.c: New file.
15287 * libio/tst-readline.c: Likewise.
15288 (routines): Add readline.
15289 (tests-internal): Add tst-readlime.
15290 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15291 __libc_readline_unlocked.
15292 * libio/fseeko.c (__fseeko): Rename from fseeko.
15293 (fseeko): Add alias.
15294 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15295 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15296 (fseeko64): Add alias.
15297 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15298 * libio/ftello64.c (__ftello64): Rename from ftello64.
15299 (ftello64): Add alias.
15300
15301 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15302
15303 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15304 HWCAP_ATOMICS.
15305
15306 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15307
15308 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15309 Use dl_hwcap without masking.
15310 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15311 Remove HWCAP_CPUID.
15312
15313 2018-07-06 Florian Weimer <fweimer@redhat.com>
15314
15315 * conform/conformtest.pl (checknamespace): Escape literal braces
15316 in regular expressions.
15317
15318 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15319
15320 * sysdeps/x86/cpu-features.c (get_common_indeces):
15321 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15322 * sysdeps/x86/cpu-features.c (init_cpu_features):
15323 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15324
15325 2018-07-05 Florian Weimer <fweimer@redhat.com>
15326
15327 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15328 protector.
15329 (CFLAGS-elf-init.oS): Likewise.
15330
15331 2018-07-05 Florian Weimer <fweimer@redhat.com>
15332 Carlos O'Donell <carlos@redhat.com>
15333
15334 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15335 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15336 with stack protector enabled because there is no risk of infinite
15337 recursion.
15338
15339 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15340
15341 [BZ #19818]
15342 [BZ #23307]
15343 * libc-abis (ABSOLUTE): New ABI.
15344 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15345 * NEWS: Mention the new ABI.
15346
15347 2018-07-05 Florian Weimer <fweimer@redhat.com>
15348
15349 [BZ # 17662]
15350 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15351 (RENAME_WHITEOUT): Define.
15352 [__USE_GNU] (renameat2): Declare.
15353 * stdio-common/Makefile (routines): Add renameat2.
15354 (tests): Add tst-renameat2.
15355 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15356 * stdio-common/renameat2.c: New file.
15357 * stdio-common/tst-renameat2.c: Likewise.
15358 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15359 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15360 undocumented.
15361 * sysdeps/unix/sysv/linux/kernel-features.h
15362 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15363 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15364 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15365 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15366 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15367 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15368 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15369 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15370 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15371 * include/stdio.h (__renameat): Add alias for renameat.
15372 * stdio-common/renameat.c (__renameat): Rename from renameat.
15373 Add hidden definition and alias.
15374 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15375 * sysdeps/mach/hurd/renameat.c: Likewise.
15376 * sysdeps/**/libc*.abilist: Add renameat2.
15377
15378 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15379
15380 * posix/bug-regex33.c: Fix build after regex sync.
15381
15382 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15383
15384 [BZ #23164]
15385 * localedata/tst-langinfo-setlocale.c: New file.
15386 * localedata/tst-langinfo-setlocale-static.c: New file.
15387 * localedata/tst-langinfo-newlocale.c: New file.
15388 * localedata/tst-langinfo-newlocale-static.c: New file.
15389 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15390 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15391 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15392 (tests-static): Remove tst-langinfo-static. Add
15393 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15394 (tests-special): Remove $(objpfx)tst-langinfo.out,
15395 $(objpfx)tst-langinfo-static.out. Add
15396 $(objpfx)tst-langinfo-setlocale.out,
15397 $(objpfx)tst-langinfo-newlocale.out,
15398 $(objpfx)tst-langinfo-setlocale-static.out,
15399 $(objpfx)tst-langinfo-newlocale-static.out.
15400 ($(objpfx)tst-langinfo.out): Remove.
15401 ($(objpfx)tst-langinfo-static.out): Remove.
15402 ($(objpfx)tst-langinfo-newlocale.out): New target.
15403 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15404 (test-xfail-tst-langinfo-newlocale-static): Add.
15405 ($(objpfx)tst-langinfo-setlocale.out): New target.
15406 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15407 * localedata/tst-langinfo.c: Call test_locale.
15408 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15409 data.
15410
15411 2018-07-04 Florian Weimer <fweimer@redhat.com>
15412
15413 testrun.sh: Implement --tool=strace, --tool=valgrind
15414 * Makefile (testrun-script): Define variable.
15415 (testrun.sh): Use variable.
15416 * manual/install.texi (Tools for Compilation): make 4.0 or later
15417 is required.
15418 * configure.ac: Check for make 4.0 or later.
15419 * INSTALL: Regenerate.
15420 * configure: Likewise.
15421
15422 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15423
15424 [BZ #23233]
15425 [BZ #21163]
15426 [BZ #18986]
15427 [BZ #13762]
15428 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15429 * posix/PCRE.tests: Remove invalid test.
15430 * posix/bug-regex28.c: Fix expected values for used syntax.
15431 * posix/bug-regex37.c: New file.
15432 * posix/bug-regex38.c: Likewise.
15433 * posix/regcomp.c: Sync with gnulib.
15434 * posix/regex.c: Likewise.
15435 * posix/regex.h: Likewise.
15436 * posix/regex_internal.c: Likewise.
15437 * posix/regex_internal.h: Likewise.
15438 * posix/regexec.c: Likewise.
15439
15440 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15441
15442 [BZ #23308]
15443 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15444 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15445 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15446 * localedata/unicode-gen/PropList.txt: likewise.
15447 * localedata/unicode-gen/UnicodeData.txt: likewise.
15448 * localedata/charmaps/UTF-8: Regenerate.
15449 * localedata/locales/i18n_ctype: likewise.
15450 * localedata/locales/tr_TR: likewise.
15451 * localedata/locales/translit_circle: likewise.
15452 * localedata/locales/translit_cjk_compat: likewise.
15453 * localedata/locales/translit_combining: likewise.
15454 * localedata/locales/translit_compat: likewise.
15455 * localedata/locales/translit_font: likewise.
15456 * localedata/locales/translit_fraction: likewise.
15457
15458 2018-07-03 Florian Weimer <fweimer@redhat.com>
15459
15460 [BZ #23363]
15461 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15462 * stdio-common/tst-printf.sh: Adjust expected output.
15463 * LICENSES: Update.
15464
15465 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15466
15467 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15468 symbol.
15469
15470 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15471
15472 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15473 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15474 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15475 * stdio-common/tst-printfsz-islongdouble.c: New file.
15476 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15477 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15478 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15479 [subdir == stdio-common] (tests-internal): Add
15480 test-printf-size-ieee128, and test-printf-size-ibm128.
15481 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15482 (CFLAGS-test-printf-size-ibm128.c): New variables.
15483 [subdir == stdio-common] (tests-special): Add
15484 $(objpfx)test-printf-size-ieee128.out and
15485 $(objpfx)test-printf-size-ibm128.out.
15486 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15487 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15488 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15489 __printf_sizeieee128.
15490 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15491 New file.
15492 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15493 Likewise.
15494 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15495 Likewise.
15496
15497 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15498
15499 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15500 (exp2f_inline): Likewise.
15501 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15502 (__math_uflowf): Likewise.
15503 (__math_may_uflowf): Likewise.
15504 (__math_divzerof): Likewise.
15505 (__math_invalidf): Likewise.
15506 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15507 (__math_oflowf): Likewise.
15508 (__math_uflowf): Likewise.
15509 (__math_may_uflowf): Likewise.
15510 (__math_divzerof): Likewise.
15511 (__math_invalidf): Likewise.
15512
15513 2018-06-29 DJ Delorie <dj@redhat.com>
15514 Carlos O'Donell <carlos@redhat.com>
15515
15516 [BZ #23329]
15517 * include/libc-symbols.h: Comment the freeres framework.
15518 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15519 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15520 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15521 * dlfcn/dlerror.c: Include libc-symbols.h
15522 (__dlerror_main_freeres): New function.
15523 * dlfcn/dlfreeres.c: New file.
15524 * dlfcn/sdlfreeres.c: New file.
15525 * include/dlfcn.h: Declare __dlerror_main_freeres.
15526 * malloc/set-freeres.c: Declare __libdl_freeres, and
15527 __libpthread_freeres.
15528 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15529 the releavant libraries are loaded.
15530 * malloc/thread-freeres.c: Add comments.
15531 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15532 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15533 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15534 (__free_stacks): Rename to...
15535 (free_stacks): ...this. Mark static.
15536 (queue_stack): Call free_stacks.
15537 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15538 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15539 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15540 ptr_freeres element from struct.
15541 (pthread_functions): Remove .ptr_freeres from struct initializer.
15542 [SHARED] (nptl_freeres): Remove.
15543 * nptl/nptlfreeres.c: New file.
15544 * nptl/pthreadP.h
15545 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15546 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15547 attribute_hidden.
15548 (__free_stacks): Rename to...
15549 (__nptl_stacks_freeres): ...this.
15550 (__shm_directory_freeres): Declare.
15551 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15552 (__nptl_unwind_freeres): ...this.
15553 * resolv/res-close.c: Add comment.
15554 * resolv/resolv_conf.c: Include libc-symbols.h.
15555 * string/strerror_l.c: Include libc-symbols.h.
15556 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15557 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15558 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15559 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15560
15561 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15562
15563 * stdlib/tst-strfmon_l.c: Add tests for long double.
15564
15565 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15566
15567 [BZ #23208]
15568 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15569 * localedata/locales/dsb_DE: New file.
15570
15571 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15572
15573 [BZ #23140]
15574 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15575 genitive case).
15576 (alt_mon): New entry, import from CLDR (nominative case).
15577
15578 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15579
15580 [BZ #22996]
15581 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15582
15583 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15584
15585 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15586 Use vector registers.
15587
15588 * sysdeps/aarch64/multiarch/memmove_falkor.S
15589 (__memcpy_falkor): Use vector registers.
15590
15591 2018-06-29 Martin Sebor <msebor@redhat.com>
15592
15593 * manual/stdio.texi (Customizing Printf): Mention interaction
15594 with GCC built-ins.
15595
15596 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15597
15598 [BZ #23307]
15599 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15600 `st_value' is 0 if `st_shndx' is SHN_ABS.
15601 * elf/tst-absolute-zero.c: New file.
15602 * elf/tst-absolute-zero-lib.c: New file.
15603 * elf/tst-absolute-zero-lib.lds: New file.
15604 * elf/Makefile (tests): Add `tst-absolute-zero'.
15605 (modules-names): Add `tst-absolute-zero-lib'.
15606 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15607 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15608 ($(objpfx)tst-absolute-zero: New dependency.
15609
15610 2018-06-29 Zack Weinberg <zackw@panix.com>
15611
15612 * configure.ac: New command-line option --disable-crypt.
15613 Force --disable-nss-crypt when --disable-crypt is given, with a
15614 warning if it was explicitly enabled.
15615 * configure: Regenerate.
15616 * config.make.in: New boolean substitution variable $(build-crypt).
15617 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15618 when $(build-crypt).
15619 * manual/install.texi: Document --disable-crypt.
15620 * INSTALL: Regenerate.
15621
15622 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15623 which is never set.
15624 * conform/Makefile: Only include libcrypt.a in
15625 linknamespace-libs-xsi and linknamespace-libs-XPG4
15626 when $(build-crypt).
15627 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15628 USE_CRYPT to 1 when $(build-crypt).
15629 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15630 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15631 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15632
15633 2018-06-29 Zack Weinberg <zackw@panix.com>
15634
15635 * crypt/crypt.h, posix/unistd.h: Update comments and
15636 prototypes for crypt and crypt_r.
15637
15638 * manual/crypt.texi (Cryptographic Functions): New initial
15639 exposition.
15640 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15641 (Unpredictable Bytes): Improve initial exposition. Clarify error
15642 behavior of getentropy and getrandom.
15643 * manual/examples/genpass.c: Generate a salt using getentropy
15644 instead of the current time. Use hash $5$ (SHA-2-256).
15645 * manual/examples/testpass.c: Demonstrate validation against
15646 hashes generated with three different one-way functions.
15647
15648 * manual/intro.texi: crypt.texi does not need an overview
15649 anymore.
15650
15651 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15652 * manual/terminal.texi: Consistently refer to "passphrases"
15653 * instead of "passwords", and to the "user database" instead
15654 * of the "password database".
15655 * manual/users.texi: Similarly. Add notes about how actual
15656 passphrase hashes are now stored in the shadow database.
15657 Remove 20-year-old junk todo note.
15658
15659 2018-06-29 Zack Weinberg <zackw@panix.com>
15660
15661 * manual/crypt.texi: Use a normal top-level @node declaration.
15662 Move most of the introductory text to the 'crypt' section.
15663 Move the example programs below the @deftypefun for 'crypt_r'.
15664 Move the 'getpass' section...
15665 * manual/terminal.texi: ...here.
15666
15667 2018-06-29 Zack Weinberg <zackw@panix.com>
15668 Florian Weimer <fweimer@redhat.com>
15669
15670 * posix/unistd.h: Do not declare encrypt.
15671 (_XOPEN_CRYPT): Remove macro definition.
15672 (crypt): Declare only for _USE_MISC.
15673 * stdlib/stdlib.h: Do not declare setkey.
15674 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15675 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15676
15677 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15678 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15679 into compat symbols. Don't define initial_perm if it's not
15680 going to be used.
15681 * crypt/cert.c: Link explicitly with the expected versions for
15682 setkey and encrypt. If they are not available at all, mark
15683 the test as unsupported.
15684
15685 * sunrpc/des_crypt.c: Unconditionally block linkage with
15686 cbc_crypt and ecb_crypt for new binaries.
15687 * sunrpc/des_soft.c: Unconditionally block linkage with
15688 des_setparity for new binaries.
15689
15690 * manual/crypt.texi: Remove the entire "DES Encryption"
15691 section. Also remove the paragraph talking about FIPS 140-2
15692 from the introduction.
15693 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15694 of libgcrypt for "real" encryption, not DES.
15695 * manual/conf.texi (Constants for Sysconf): Mention that
15696 _XOPEN_CRYPT is no longer impelemented.
15697
15698 * conform/data/unistd.h-data: Remove crypt function declaration.
15699
15700 2018-06-29 Florian Weimer <fweimer@redhat.com>
15701
15702 [BZ #23351]
15703 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15704 (disallow_malloc_check): Remove variable.
15705 (__malloc_check_init): Adjust.
15706 (malloc_set_state): Update comment.
15707 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15708 declarations.
15709
15710 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15711
15712 [BZ #23140]
15713 * localedata/locales/ast_ES (mon): Rename to...
15714 (alt_mon): This.
15715 (mon): Import from CLDR (genitive case).
15716
15717 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15718 Jakub Sitnicki <jkbs@redhat.com>
15719
15720 [BZ #21812]
15721 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15722 on NLM_F_DUMP_INTR.
15723
15724 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15725
15726 * manual/llio.texi: Remove spurious space.
15727
15728 2018-06-28 Florian Weimer <fweimer@redhat.com>
15729
15730 [BZ #23349]
15731 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15732 _STRUCT_TIMESPEC.
15733
15734 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15735
15736 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15737 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15738 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15739 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15740 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15741 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15742 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15743
15744 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15745
15746 [BZ #23266]
15747 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15748 Copy and null-terminate entries that are not terminated, in
15749 addition to empty ones.
15750
15751 2018-06-27 Florian Weimer <fweimer@redhat.com>
15752
15753 [BZ #18023]
15754 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15755 (extend_alloca_account): Remove.
15756 * manual/stdio.texi (Variable Arguments Output): Update comment.
15757
15758 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15759
15760 * nptl/sockperf.c: Remove file.
15761
15762 2018-06-27 Florian Weimer <fweimer@redhat.com>
15763
15764 [BZ #18023]
15765 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15766 scratch_buffer instead of extend_alloca.
15767
15768 2018-06-27 Florian Weimer <fweimer@redhat.com>
15769
15770 [BZ #18023]
15771 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15772 scratch_buffer instead of extend_alloca. Update comments.
15773
15774 2018-06-27 Florian Weimer <fweimer@redhat.com>
15775
15776 [BZ #18023]
15777 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15778 instead of extend_alloca.
15779
15780 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15781
15782 [BZ #13888]
15783 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15784 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15785 /tmp.
15786 * scripts/test-installation.pl: Put temporary files in build
15787 directory, not /tmp.
15788 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15789 (CFLAGS-bug4.c): Likewise.
15790 (CFLAGS-bug5.c): Likewise.
15791 (CFLAGS-test-fseek.c): Likewise.
15792 (CFLAGS-test-popen.c): Likewise.
15793 (CFLAGS-test_rdwr.c): Likewise.
15794 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15795 /tmp.
15796 * stdio-common/bug4.c (main): Likewise.
15797 * stdio-common/bug5.c (main): Likewise.
15798 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15799 * stdio-common/test-popen.c (do_test): Likewise.
15800 * stdio-common/test_rdwr.c (main): Likewise.
15801
15802 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15803
15804 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15805 (sem_open): Set sem.newsem.pad to zero for valgrind.
15806
15807 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15808
15809 [BZ #20251]
15810 * NEWS: Mention fcntl64 addition.
15811 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15812 * login/utmp_file.c: Likewise.
15813 * sysdeps/posix/fdopendir.c: Likewise.
15814 * sysdeps/posix/opendir.c: Likewise.
15815 * sysdeps/unix/pt-fcntl.c: Likewise.
15816 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15817 __fcntl64_nocancel_adjusted): New prototype.
15818 (__fcntl_nocancel_adjusted): Remove prototype.
15819 * io/Makefile (routines): Add fcntl64.
15820 (CFLAGS-fcntl64.c): New rule.
15821 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15822 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15823 * io/fcntl.h (fcntl64): Add prototype and redirect if
15824 __USE_FILE_OFFSET64 is defined.
15825 * io/fcntl64.c: New file.
15826 * manual/llio.text: Add a note for which commands fcntl acts a
15827 cancellation point.
15828 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15829 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15830 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15831 New symbols.
15832 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15833 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15834 non-LFS case.
15835 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15836 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15837 to __fcntl64_nocancel.
15838 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15839 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15840 to __fcntl64_nocancel.
15841 * sysdeps/generic/not-cancel.h: Likewise.
15842 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15843 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15844 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15845 (fcntl64): New symbol.
15846 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15847 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15848 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15851 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15852 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15853 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15854 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15855 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15856 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15857 fcntl64): Likewise.
15858 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15859 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15860 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15861 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15862 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15863 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15864 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15865 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15866 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15868 Likewise.
15869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15870 Likewise.
15871 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15872 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15873 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15874
15875 2018-06-26 Florian Weimer <fweimer@redhat.com>
15876
15877 Run thread shutdown functions in an explicit order.
15878 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15879 definition.
15880 (__libc_thread_freeres): Call thread shutdown functions
15881 explicitly.
15882 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15883 * include/string.h (__strerror_thread_freeres): Declare.
15884 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15885 arena_thread_freeres. No longer static. Remove thread shutdown
15886 hook registration.
15887 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15888 Declare.
15889 * resolv/res-close.c (__res_thread_freeres): Renamed from
15890 res_thread_freeres. No longer static. Remove thread shutdown
15891 hook registration.
15892 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15893 * resolv/resolv_conf.c (freeres): Remove incorrect section
15894 attribute and use libc_freeres_fn.
15895 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15896 strerror_thread_freeres. No longer static. Remove thread
15897 shutdown hook registration.
15898 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15899 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15900 shutdown hook registration.
15901 * Makerules (shlib.lds): Do not provide section boundary symbols
15902 for __libc_thread_subfreeres.
15903 * manual/memory.texi (Basic Allocation): Update comment.
15904
15905 2018-06-26 Florian Weimer <fweimer@redhat.com>
15906
15907 Remove always-defined _RPC_THREAD_SAFE_ macro.
15908 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15909 Do not define _RPC_THREAD_SAFE_.
15910 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15911 conditional.
15912 * sunrpc/clnt_perr.c: Likewise.
15913 * sunrpc/clnt_raw.c: Likewise.
15914 * sunrpc/clnt_simp.c: Likewise.
15915 * sunrpc/key_call.c: Likewise.
15916 * sunrpc/rpc_common.c: Likewise.
15917 * sunrpc/rpc_main.c: Likewise.
15918 * sunrpc/rpc_thread.c: Likewise.
15919 * sunrpc/svc.c: Likewise.
15920 * sunrpc/svc_raw.c: Likewise.
15921 * sunrpc/svc_simple.c: Likewise.
15922 * sumrpc/svcauth_des.c: Likewise.
15923
15924 2018-06-26 Florian Weimer <fweimer@redhat.com>
15925
15926 * libio/Makefile (tests-internal): Add tst-vtables,
15927 tst-vtables-interposed.
15928 * libio/tst-vtables.c: New file.
15929 * libio/tst-vtables-common.c: Likewise.
15930 * libio/tst-vtables-interposed.c: Likewise.
15931
15932 2018-06-26 Florian Weimer <fweimer@redhat.com>
15933
15934 * support/support_test_main.c (support_test_main): Only call
15935 setvbuf if not disables.
15936 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15937 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15938
15939 2018-06-26 Florian Weimer <fweimer@redhat.com>
15940
15941 [BZ #23313]
15942 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15943
15944 2018-06-25 Florian Weimer <fweimer@redhat.com>
15945
15946 [BZ #18023]
15947 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15948 Use struct scratch_buffer instead of extend_alloca.
15949
15950 2018-06-25 Florian Weimer <fweimer@redhat.com>
15951
15952 [BZ #18023]
15953 * nss/getent.c (initgroups_keys): Use dynarray instead of
15954 extend_alloca.
15955
15956 2018-06-25 Florian Weimer <fweimer@redhat.com>
15957
15958 [BZ #18023]
15959 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15960 Use struct scratch_buffer instead of extend_alloca.
15961
15962 2018-06-25 Florian Weimer <fweimer@redhat.com>
15963
15964 [BZ #18023]
15965 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15966 back to malloc directly, without stack allocations.
15967
15968 2018-06-25 Florian Weimer <fweimer@redhat.com>
15969
15970 [BZ #18023]
15971 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15972 of extend_alloca.
15973
15974 2018-06-25 Florian Weimer <fweimer@redhat.com>
15975
15976 [BZ #18023]
15977 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15978 of extend_alloca.
15979 * nscd/hstcache.c (addhstbyX): Likewise.
15980 * nscd/pwdcache.c (addpwbyX): Likewise.
15981 * nscd/servicescache.c (addservbyX): Likewise.
15982
15983 2018-06-25 Florian Weimer <fweimer@redhat.com>
15984
15985 [BZ #18023]
15986 * nscd/connections.c (read_cmdline): New function.
15987 (restart): Use it. Update comment.
15988
15989 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15990
15991 [BZ #23140]
15992 * localedata/locales/csb_PL (mon): Rename to...
15993 (alt_mon): This.
15994 (abmon): Rename to...
15995 (ab_alt_mon): This.
15996 (mon): Add with proper genitive forms, copy from Wikipedia.
15997 (abmon): Likewise.
15998
15999 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
16000
16001 [BZ #19485]
16002 * localedata/locales/csb_PL (mon): Fix typos:
16003 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
16004 (yesstr): Add, value is "jo".
16005 (nostr): Add, value is "nié".
16006
16007 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16008
16009 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
16010 all log1p and significand functions on m680x0.
16011 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
16012 of s_significand.c..
16013 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16014 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16015 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16016 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16017 s_log1p.c and include it..
16018
16019 2018-06-21 Vincent Chen <vincentc@andestech.com>
16020
16021 * elf/elf.h (R_NDS32_NONE): New define.
16022 (R_NDS32_32_RELA): Likewise.
16023 (R_NDS32_COPY): Likewise.
16024 (R_NDS32_GLOB_DAT): Likewise.
16025 (R_NDS32_JUMP_SLOT): Likewise.
16026 (R_NDS32_RELATIVE): Likewise.
16027 (R_NDS32_TLS_TPOFF): Likewise.
16028 (R_NDS32_TLS_DESC): Likewise.
16029
16030 2018-06-21 Mark Wielaard <mark@klomp.org>
16031
16032 * elf/elf.h (R_BPF_MAP_FD): Removed.
16033 (R_BPF_64_64, R_BPF_64_32): New.
16034
16035 2018-06-21 Florian Weimer <fweimer@redhat.com>
16036
16037 [BZ #23253]
16038 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16039 Renamed from libc_feholdsetround_ctx.
16040 (default_libc_feresetround_ctx): Renamed from
16041 libc_feresetround_ctx.
16042 (default_libc_feholdsetround_noex_ctx): Renamed from
16043 libc_feholdsetround_noex_ctx.
16044 (default_libc_feresetround_noex_ctx): Renamed from
16045 libc_feresetround_noex_ctx.
16046 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16047 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16048 forwardning to the old implementations under the new names.
16049 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16050 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16051 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16052 (libc_feresetround_ctx): Forward to default implements for i386
16053 and MATH_SET_BOTH_ROUNDING_MODES.
16054 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16055 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16056
16057 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16058
16059 * string/tst-cmp.c: Include <libc-diag.h>.
16060 (strncmp_max): Disable -Wstringop-overflow= around call to
16061 strncmp.
16062 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16063 strncasecmp.
16064
16065 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16066 (main): Disable -Wunused-value around call to strpbrk.
16067 * string/bug-strspn1.c: Include <libc-diag.h>.
16068 (main): Disable -Wunused-value around call to strspn.
16069
16070 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16071 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16072
16073 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16074 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16075
16076 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16077
16078 * math/Makefile (libm-calls): Move s_significandF to...
16079 (gen-libm-calls): ... here.
16080 * math/s_significand_template.c: New file.
16081 * math/s_significand.c: Removed.
16082 * math/s_significandf.c: Removed.
16083 * math/s_significandl.c: Removed.
16084 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16085 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16086
16087 * math/e_exp2_template.c (declare_mgen_finite_alias,
16088 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16089 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16090 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16091
16092 2018-06-20 Florian Weimer <fweimer@redhat.com>
16093
16094 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16095
16096 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16097
16098 [BZ #23280]
16099 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16100 floating-point number to strtod functions rather than possibly
16101 negating result of those functions.
16102 * stdio-common/tst-scanf-round.c: New file.
16103 * stdio-common/Makefile (tests): Add tst-scanf-round.
16104 ($(objpfx)tst-scanf-round): Depend on $(libm).
16105
16106 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16107
16108 * sysdeps/mach/hurd/localplt.data: Move to...
16109 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16110 R_386_GLOB_DAT like on Linux i386.
16111
16112 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16113
16114 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16115 (SHM_STAT_ANY): New macro.
16116 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16117 (SHM_STAT_ANY): Likewise.
16118 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16119 (SHM_STAT_ANY): Likewise.
16120 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16121 (SHM_STAT_ANY): Likewise.
16122 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16123 (SHM_STAT_ANY): Likewise.
16124 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16125 (SHM_STAT_ANY): Likewise.
16126 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16127 (SHM_STAT_ANY): Likewise.
16128 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16129 (SHM_STAT_ANY): Likewise.
16130 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16131 (SHM_STAT_ANY): Likewise.
16132 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16133 (SHM_STAT_ANY): Likewise.
16134 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16135 (SHM_STAT_ANY): Likewise.
16136 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16137 (SHM_STAT_ANY): Likewise.
16138
16139 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16140 (SEM_STAT_ANY): New macro.
16141 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16142 (SEM_STAT_ANY): Likewise.
16143 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16144 (SEM_STAT_ANY): Likewise.
16145 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16146 (SEM_STAT_ANY): Likewise.
16147 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16148 (SEM_STAT_ANY): Likewise.
16149 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16150 (SEM_STAT_ANY): Likewise.
16151 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16152 (SEM_STAT_ANY): Likewise.
16153 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16154 (SEM_STAT_ANY): Likewise.
16155 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16156 (SEM_STAT_ANY): Likewise.
16157 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16158 (SEM_STAT_ANY): Likewise.
16159
16160 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16161 (MSG_STAT_ANY): New macro.
16162 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16163 (MSG_STAT_ANY): Likewise.
16164 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16165 (MSG_STAT_ANY): Likewise.
16166 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16167 (MSG_STAT_ANY): Likewise.
16168 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16169 (MSG_STAT_ANY): Likewise.
16170 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16171 (MSG_STAT_ANY): Likewise.
16172 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16173 (MSG_STAT_ANY): Likewise.
16174 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16175 (MSG_STAT_ANY): Likewise.
16176 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16177 (MSG_STAT_ANY): Likewise.
16178 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16179 (MSG_STAT_ANY): Likewise.
16180
16181 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16182 (MAP_TYPE): Change value to 0x2b.
16183
16184 2018-06-18 Florian Weimer <fweimer@redhat.com>
16185
16186 [BZ #15722]
16187 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16188 socket with SOCK_CLOEXEC.
16189
16190 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16191
16192 [BZ #23303]
16193 * sysdeps/powerpc/powerpc64/le/Makefile
16194 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16195 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16196 (gnulib-tests): Also add $(f128-loader-link) for
16197 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16198
16199 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16200
16201 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16202 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16203 of sendfile.
16204 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16205 (sendfile64): New strong alias.
16206 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16207 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16208 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16209 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16210 attribute.
16211 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16212 ___pthread_get_cleanup_stack.
16213 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16214 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16215 * mach/shortcut.awk: Make syscall stubs include
16216 <mach-shortcuts-hidden.h> and add hidden definition.
16217 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16218 (__mach_msg): Add hidden prototype.
16219 * mach/msg.c: Include <mach.h>.
16220 (__mach_msg): Add hidden definition.
16221 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16222 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16223 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16224 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16225 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16226 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16227 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16228 prototype and definition.
16229 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16230 hidden target for _hurd_self_sigstate.
16231
16232 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16233
16234 [BZ #23007]
16235 * stdlib/tst-strtod-nan-sign-main.c: New file.
16236 * stdlib/tst-strtod-nan-sign.c: Likewise.
16237 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16238 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16239 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16240 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16241 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16242
16243 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16244
16245 [BZ #23007]
16246 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16247 appropriate sign.
16248
16249 2018-06-14 Florian Weimer <fweimer@redhat.com>
16250
16251 [BZ #23290]
16252 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16253 that the result stays within the ISO-8859-1 range.
16254 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16255 characters are defined in IBM273.
16256
16257 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16258
16259 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16260 __mach_task_self): Remove attribute_hidden.
16261
16262 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16263
16264 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16265 ignore -Wrestrict for one test.
16266
16267 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16268 Szabolcs Nagy <szabolcs.nagy@arm.com>
16269
16270 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16271
16272 2018-06-14 Florian Weimer <fweimer@redhat.com>
16273
16274 * scripts/update-abilist.sh: Accept empty list of files to patch.
16275
16276 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16277
16278 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16279 test-xfail-check-abi-libmachuser): Add.
16280 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16281 __libc_read and __libc_write to __read and __write.
16282 * sysdeps/hurd/include/hurd/port.h: New file.
16283 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16284 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16285 __thread_switch, __evc_wait): Move declarations to...
16286 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16287 attribute_hidden.
16288 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16289 use PLT to call _hurd_self_sigstate.
16290
16291 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16292
16293 [BZ #23279]
16294 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16295 MAX_EXP as overflowing.
16296 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16297 overflow flag.
16298 (round_str): Output also whether result overflows in each rounding
16299 mode.
16300 * stdlib/tst-strtod-round-data: Add more tests.
16301 * stdlib/tst-strtod-round-data.h: Regenerated.
16302 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16303 (TEST): Handle extra arguments for overflow flags.
16304 (struct test_overflow): New type.
16305 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16306 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16307 (test_in_one_mode): Take argument with overflow information.
16308 (do_test): Update calls to test_in_one_mode.
16309
16310 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16311
16312 * elf/dl-load (_dl_dst_substitute): Correct comment.
16313 (_dl_dst_count): Likewise.
16314
16315 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16316 lll_futex_timed_wait.
16317
16318 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16319
16320 [BZ #23277]
16321 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16322 attribute.
16323 * math/test-nan-const.c: New file.
16324 * math/Makefile (tests): Add test-nan-const.
16325 (CFLAGS-test-nan-const.c): New variable.
16326
16327 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16328
16329 * benchtests/scripts/compare_strings.py (process_results): Add
16330 funcs argument. Compare only functions which are selected.
16331 (main): Check if base function is among selected functions.
16332 Pass selected functions to process_results.
16333 (__main__): Add -f/--functions argument.
16334
16335 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16336 Hongbo Zhang <hongbo.zhang@linaro.org>
16337
16338 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16339 __memcpy_falkor for phecda core.
16340 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16341 __memmove_falkor for phecda core.
16342 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16343 __memset_falkor for phecda core.
16344 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16345 for phecda core.
16346 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16347 macro to identify phecda core.
16348
16349 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16350 Andreas Schwab <schwab@suse.de>
16351 Dmitry V. Levin <ldv@altlinux.org>
16352 Florian Weimer <fweimer@redhat.com>
16353
16354 [BZ #23102]
16355 [BZ #21942]
16356 [BZ #18018]
16357 [BZ #23259]
16358 CVE-2011-0536
16359 * elf/dl-dst.h: Remove DL_DST_COUNT.
16360 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16361 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16362 (is_dst): Comment. Support ELF gABI.
16363 (_dl_dst_count): Comment. Simplify and count DSTs.
16364 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16365 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16366 locals.
16367
16368 2018-06-12 Zack Weinberg <zackw@panix.com>
16369
16370 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16371 * sysdeps/unix/sysv/linux/dl-sysdep.c
16372 Include not-cancel.h. Use __close_nocancel instead of __close,
16373 __open64_nocancel instead of __open, __read_nocancel instead of
16374 __libc_read, and __write_nocancel instead of __libc_write.
16375
16376 * csu/check_fds.c (check_one_fd)
16377 * sysdeps/posix/fdopendir.c (__fdopendir)
16378 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16379 instead of __fcntl and/or __libc_fcntl.
16380
16381 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16382 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16383 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16384 Use __open64_nocancel instead of __open_nocancel.
16385
16386 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16387 hidden_proto declarations to the end and issue them if either
16388 IS_IN(libc) or IS_IN(rtld).
16389 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16390 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16391 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16392 read_nocancel, waitpid_nocancel, write_nocancel.
16393
16394 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16395 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16396 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16397
16398 * nptl/pt-fcntl.c: New file.
16399 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16400 (libpthread-routines): Add pt-fcntl.
16401 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16402 (__libc_fcntl): Remove attribute_hidden.
16403 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16404 __fcntl_nocancel_adjusted, not fcntl_common.
16405 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16406 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16407 to fcntl_nocancel.c.
16408 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16411 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16412
16413 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16414 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16415 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16416 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16417 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16418 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16419 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16420 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16421 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16422 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16423 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16424 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16425 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16426 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16427 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16428 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16429 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16430 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16431 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16432 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16433
16434 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16435 libpthread-routines.
16436 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16437 defines nothing.
16438
16439 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16440 __libc_read, and __write instead of __libc_write. Define
16441 __open64 in addition to __open.
16442
16443 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16444
16445 [BZ #23250]
16446 [BZ #10686]
16447 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16448 to _private_tm[3] and add __glibc_reserved2.
16449 Add _Static_assert of offset of __private_ss == 0x30.
16450 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16451 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16452
16453 2018-06-12 Florian Weimer <fweimer@redhat.com>
16454
16455 x86: Make strncmp usable from rtld.
16456 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16457 __strncmp_ia32 if in libc (and not in rtld).
16458 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16459 strncmp if not in libc (and not to __strncmp_sse2).
16460
16461 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16462
16463 [BZ #23140]
16464 * localedata/locales/gd_GB (mon): Rename to...
16465 (alt_mon): This.
16466 (mon): Import from CLDR (genitive case).
16467 * localedata/locales/hsb_DE (mon): Rename to...
16468 (alt_mon): This.
16469 (mon): Import from CLDR (genitive case).
16470 * localedata/locales/wa_BE (mon): Rename to...
16471 (alt_mon): This.
16472 (mon): Add, fill with the proper genitive forms, but CLDR data
16473 is incomplete; completed according to the comments in this file.
16474 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16475
16476 * localedata/locales/wa_BE (country_name): Reword
16477 "Beljike" -> "Beldjike".
16478
16479 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16480
16481 [BZ #23272]
16482 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16483 cases of non-finite arguments.
16484 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16485
16486 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16487
16488 [BZ #23174]
16489 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16490
16491 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16492
16493 [BZ #23264]
16494 * include/unistd.h (__execvpex): New prototype.
16495 * posix/Makefile (tests): Add tst-spawn4.
16496 (tests-internal): Add tst-spawn4-compat.
16497 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16498 * posix/tst-spawn4-compat.c: New file.
16499 * posix/tst-spawn4.c: Likewise.
16500 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16501 binaries as shell scripts.
16502 * sysdeps/posix/spawni.c (__spawni): Likewise.
16503
16504 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16505
16506 [BZ #23145]
16507 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16508 ($(all-built-dso:=.dynsym): New target.
16509 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16510 ($(objpfx)check-initfini.out): New target.
16511 (generated): Add check-initfini.out.
16512 * scripts/check-initfini.awk: New file.
16513 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16514 (_fini): Likewise.
16515 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16516 (_fini): Likewise.
16517 * sysdeps/arm/crti.S (_init): Mark as hidden.
16518 (_fini): Likewise.
16519 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16520 (_fini): Likewise.
16521 * sysdeps/i386/crti.S (_init): Mark as hidden.
16522 (_fini): Likewise.
16523 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16524 (_fini): Likewise.
16525 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16526 (_fini): Likewise.
16527 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16528 (_fini): Likewise.
16529 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16530 (_fini): Likewise.
16531 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16532 (_fini): Likewise.
16533 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16534 (_fini): Likewise.
16535 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16536 (_fini): Likewise.
16537 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16538 (_fini): Likewise.
16539 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16540 (_fini): Likewise.
16541 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16542 (_fini): Likewise.
16543 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16544 (_fini): Likewise.
16545 * sysdeps/sh/crti.S (_init): Mark as hidden.
16546 (_fini): Likewise.
16547 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16548 (_fini): Likewise.
16549 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16550 (_fini): Likewise.
16551
16552 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16553
16554 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16555 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16556 and TF redirection to KFtype and KF only when the default
16557 long double type is not the IEEE 128-bit floating point type.
16558
16559 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16560
16561 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16562 macro.
16563 (HWCAP_USCAT): Likewise.
16564 (HWCAP_ILRCPC): Likewise.
16565 (HWCAP_FLAGM): Likewise.
16566 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16567 Increase to 28.
16568 (_dl_aarch64_cap_flags): Add new flag names.
16569
16570 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16571 (MAP_FIXED_NOREPLACE): New macro.
16572 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16573 (MAP_FIXED_NOREPLACE): Likewise.
16574 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16575 (MAP_FIXED_NOREPLACE): Likewise.
16576 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16577 (MAP_FIXED_NOREPLACE): Likewise.
16578 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16579 (MAP_FIXED_NOREPLACE): Likewise.
16580 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16581 (MAP_FIXED_NOREPLACE): Likewise.
16582 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16583 (MAP_FIXED_NOREPLACE): Likewise.
16584 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16585 (MAP_FIXED_NOREPLACE): Likewise.
16586 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16587 (MAP_FIXED_NOREPLACE): Likewise.
16588 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16589 (MAP_FIXED_NOREPLACE): Likewise.
16590 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16591 (MAP_FIXED_NOREPLACE): Likewise.
16592 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16593 (MAP_FIXED_NOREPLACE): Likewise.
16594 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16595 (MAP_FIXED_NOREPLACE): Likewise.
16596 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16597 (MAP_FIXED_NOREPLACE): Likewise.
16598 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16599 (MAP_FIXED_NOREPLACE): Likewise.
16600
16601 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16602 version to 4.17.
16603
16604 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16605
16606 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16607 version to 4.17
16608
16609 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16610
16611 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16612 int.
16613 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16614
16615 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16616
16617 * benchtests/scripts/compare_string.py: (process_results) Catch
16618 exception in non-existent base_func and catch exception in
16619 non-existent attribute.
16620 (parse_file) Catch exception if input file does not exist.
16621
16622 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16623
16624 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16625 options to avoid diff calculation and omit header, respectively.
16626 (main): process --no-diff and --no-header
16627
16628 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16629 H.J. Lu <hongjiu.lu@intel.com>
16630
16631 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16632 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16633 wcsncmp-sse2.
16634 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16635 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16636 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16637 and __wcsncmp_sse2.
16638 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16639 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16640 AVX unaligned load is fast and vzeroupper is preferred.
16641 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16642 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16643 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16644 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16645 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16646 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16647 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16648 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16649 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16650 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16651 is undefined.
16652
16653 2018-06-01 Florian Weimer <fweimer@redhat.com>
16654
16655 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16656 configuring with --disable-multi-arch, building with
16657 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16658 Haswell-era CPU.
16659
16660 2018-06-01 Florian Weimer <fweimer@redhat.com>
16661
16662 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16663 results from building with “-march=x86-64 -mtune=generic
16664 -mfpmath=sse” and running on a Haswell-era CPU.
16665
16666 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16667
16668 [BZ #18473]
16669 * soft-fp/sqrttf2.c: Remove file.
16670 * soft-fp/sqrtdf2.c: Move to ....
16671 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16672 <shlib-compat.h>.
16673 (__sqrtdf2): Make conditional on
16674 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16675 symbol.
16676 * soft-fp/sqrtsf2.c: Move to ....
16677 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16678 <shlib-compat.h>.
16679 (__sqrtsf2): Make conditional on
16680 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16681 symbol.
16682 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16683 (gcc-double-routines): Remove sqrtdf2.
16684 (gcc-quad-routines): Remove sqrttf2.
16685 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16686 Do not filter out sqrtsf2 and sqrtdf2.
16687 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16688 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16689
16690 2018-06-01 Florian Weimer <fweimer@redhat.com>
16691
16692 * sysdeps/generic/libcidn.abilist: Remove file.
16693
16694 2018-06-01 Florian Weimer <fweimer@redhat.com>
16695
16696 [BZ #23236]
16697 * libio/strfile.h (struct _IO_str_fields): Rename members to
16698 discourage their use and add comment.
16699 (_IO_STR_DYNAMIC): Remove unused macro.
16700 * libio/strops.c (_IO_str_init_static_internal): Do not use
16701 callback pointers. Call malloc and free.
16702 (_IO_str_overflow): Do not use callback pointers. Call malloc
16703 and free.
16704 (enlarge_userbuf): Likewise.
16705 (_IO_str_finish): Call free.
16706 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16707 _allocate_buffer_unused.
16708 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16709 and free.
16710 (enlarge_userbuf): Likewise.
16711 (_IO_wstr_finish): Call free.
16712 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16713 _allocate_buffer_unused, _free_buffer_unused.
16714 * libio/memstream.c (__open_memstream): Likewise.
16715 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16716 * libio/wmemstream.c (open_wmemstream): Likewise.
16717
16718 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16719
16720 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16721 AMD Ryzen 7 1800X.
16722
16723 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16724
16725 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16726 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16727 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16728 New file.
16729 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16730 Likewise.
16731 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16732
16733 2018-05-29 Florian Weimer <fweimer@redhat.com>
16734
16735 * support/Makefile (libsupport-routines): Add
16736 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16737 xpthread_barrierattr_setpshared.
16738 * support/xpthread_barrierattr_destroy.c: New file.
16739 * support/xpthread_barrierattr_init.c: Likewise.
16740 * support/xpthread_barrierattr_setpshared.c: Likewise.
16741
16742 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16743
16744 [BZ #23206]
16745 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16746 _r_debug and update DT_DEBUG for debugger.
16747
16748 2018-05-29 Florian Weimer <fweimer@redhat.com>
16749
16750 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16751 (tst-strtod5i.out): Likewise.
16752
16753 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16754
16755 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16756 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16757 (sparc64-quad-routines): New variable. Moved from ....
16758 [$(subdir) = soft-fp] (sysdep_routines): Add
16759 $(sparc64-quad-routines). Moved from ....
16760 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16761 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16762 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16763 moved from ....
16764 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16765 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16766 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16767 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16768 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16769 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16770 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16771 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16772 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16773 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16774 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16775 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16776 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16777 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16778 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16779 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16780 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16781 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16782 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16783 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16784 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16785 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16786 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16787 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16788 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16789 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16790 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16791 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16792 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16793 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16794 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16795 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16796 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16797 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16798 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16799 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16800 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16801 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16802 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16803 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16804 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16805 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16806 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16807 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16808 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16809 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16810 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16811 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16812 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16813 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16814 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16815 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16816 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16817 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16818 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16819 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16820 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16821 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16822
16823 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16824 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16825 (sparc32-quad-routines): New variable. Moved from ....
16826 [$(subdir) = soft-fp] (sysdep_routines): Add
16827 $(sparc32-quad-routines). Moved from ....
16828 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16829 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16830 moved from ....
16831 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16832 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16833 * sysdeps/sparc/sparc32/q_add.c: ... here.
16834 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16835 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16836 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16837 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16838 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16839 * sysdeps/sparc/sparc32/q_div.c: ... here.
16840 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16841 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16842 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16843 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16844 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16845 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16846 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16847 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16848 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16849 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16850 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16851 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16852 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16853 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16854 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16855 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16856 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16857 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16858 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16859 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16860 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16861 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16862 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16863 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16864 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16865 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16866 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16867 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16868 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16869 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16870 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16871 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16872 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16873 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16874 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16875 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16876 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16877 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16878 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16879 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16880 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16881 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16882 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16883 * sysdeps/sparc/sparc32/q_util.c: ... here.
16884 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16885 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16886 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16887 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16888
16889 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16890 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16891
16892 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16893 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16894 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16895 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16896
16897 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16898
16899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16900 powerpc/soft-fp.
16901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16902 Likewise.
16903 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16904 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16905
16906 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16907
16908 [BZ #23171]
16909 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16910 double version.
16911
16912 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16913
16914 * sysdeps/sh/Implies: Remove sh/soft-fp.
16915 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16916 * sysdeps/sh/sfp-machine.h: ... here.
16917
16918 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16919
16920 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16921 (__mempcpy_erms): Skip zero length.
16922 (__memmove_erms): Likewise.
16923 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16924 (__memset_erms): Likewise.
16925
16926 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16927
16928 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16929 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16930 Add functions moved from ....
16931 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16932 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16933 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16934 from ....
16935 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16936 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16937 * sysdeps/alpha/e_sqrtl.c: ... here.
16938 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16939 * sysdeps/alpha/local-soft-fp.h: ... here.
16940 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16941 * sysdeps/alpha/ots_add.c: ... here.
16942 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16943 * sysdeps/alpha/ots_cmp.c: ... here.
16944 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16945 * sysdeps/alpha/ots_cmpe.c: ... here.
16946 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16947 * sysdeps/alpha/ots_cvtqux.c: ... here.
16948 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16949 * sysdeps/alpha/ots_cvtqx.c: ... here.
16950 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16951 * sysdeps/alpha/ots_cvttx.c: ... here.
16952 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16953 * sysdeps/alpha/ots_cvtxq.c: ... here.
16954 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16955 * sysdeps/alpha/ots_cvtxt.c: ... here.
16956 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16957 * sysdeps/alpha/ots_div.c: ... here.
16958 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16959 * sysdeps/alpha/ots_mul.c: ... here.
16960 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16961 * sysdeps/alpha/ots_nintxq.c: ... here.
16962 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16963 * sysdeps/alpha/ots_sub.c: ... here.
16964 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16965 * sysdeps/alpha/sfp-machine.h: ... here.
16966
16967 2018-05-23 Florian Weimer <fweimer@redhat.com>
16968
16969 [BZ #19728]
16970 [BZ #19729]
16971 [BZ #22247]
16972 CVE-2016-6261
16973 CVE-2016-6263
16974 CVE-2017-14062
16975 Switch to extern IDNA implementation (libidn2).
16976 * libidn: Remove subdirectory.
16977 * LICENSES: Do not mention licensing conditions for the removed
16978 libidn code.
16979 * config.h.in (HAVE_LIBIDN): Remove.
16980 * include/dlfcn.h (__libc_dlopen): Update comment.
16981 * include/idna.h: Remove file.
16982 * inet/Makefile (routines): Add idna.
16983 (tests-static, tests-internal): Add tst-idna_name_classify.
16984 (LOCALES): Generate locales for tests.
16985 (tst-idna_name_classify.out): Depend on generated locales.
16986 * inet/idna_name_classify.c: New file.
16987 * inet/tst-idna_name_classify.c: Likewise.
16988 * inet/net-internal.h (__idna_to_dns_encoding)
16989 (__idna_from_dns_encoding): Declare.
16990 * inet/net-internal.h (enum idna_name_classification): Define.
16991 (__idna_name_classify): Declare.
16992 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16993 __idna_from_dns_encoding.
16994 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16995 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16996 name as a fallback in case of encoding errors.
16997 (getnameinfo): Use DEPRECATED_NI_IDN.
16998 * inet/idna.c: New file.
16999 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
17000 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
17001 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
17002 (modules-names): Add tst-no-libidn2.
17003 (extra-test-objs): Add tst-no-libidn2.os.
17004 (LDFLAGS-tst-no-libidn2.so): Set soname.
17005 (LOCALES): Set, and generate locales.
17006 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
17007 (tst-resolv-ai_idn-latin1): Likewise.
17008 (tst-resolv-ai_idn-nolibidn2): Likewise.
17009 (tst-resolv-ai_idn.out): Depend on locales.
17010 (tst-resolv-ai_idn-latin1.out): Depend on locales.
17011 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
17012 tst-no-libidn2.so.
17013 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17014 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17015 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17016 * resolv/tst-resolv-ai_idn.c: New file.
17017 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17018 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17019 * resolv/tst-no-libidn2.c: Likewise.
17020 * support/support_format_addrinfo.c (format_ai_flags): Do not
17021 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17022 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17023 (gaih_inet): Call __idna_to_dns_encoding and
17024 __idna_from_dns_encoding, and use the original (punycode) name if
17025 __idna_from_dns_encoding fails due to an encoding error.
17026 (getaddrinfo): Use DEPRECATED_AI_IDN.
17027 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17028 * sysdeps/unix/inet/configure: Remove file.
17029 * sysdeps/unix/inet/configure.ac: Likewise.
17030
17031 2018-05-23 Florian Weimer <fweimer@redhat.com>
17032
17033 Implement allocate_once.
17034 * include/allocate_once.h: New file.
17035 * misc/allocate_once.c: Likewise.
17036 * misc/tst-allocate_once.c: Likewise.
17037 * misc/Makefile (routines): Add allocate_once.
17038 (tests-internal): Add tst-allocate_once.
17039 (generated): Add tst-allocate_once.mtrace,
17040 tst-allocate_once-mem.out.
17041 (tests-special): Add tst-allocate_once-mem.out.
17042 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17043 (tst-allocate_once-mem.out): Call mtrace.
17044 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17045
17046 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17047
17048 [BZ #23196]
17049 * string/test-memcpy.c (do_test1): New function.
17050 (test_main): Call it.
17051
17052 2018-05-23 Andreas Schwab <schwab@suse.de>
17053
17054 [BZ #23196]
17055 CVE-2018-11237
17056 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17057 (L(preloop_large)): Save initial destination pointer in %r11 and
17058 use it instead of %rax after the loop.
17059 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17060
17061 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17062
17063 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17064 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17065 -I../soft-fp. Moved from ....
17066 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17067 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17068 * sysdeps/aarch64/e_sqrtl.c: ... here.
17069 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17070 * sysdeps/aarch64/sfp-machine.h: ... here.
17071
17072 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17073 -Wmaybe-uninitialized around access to fq[0].
17074 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17075 Likewise.
17076
17077 [BZ #18471]
17078 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17079 aliases for non-libc case of versioned symbols.
17080 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17081 (llseek): Define as compat symbol if
17082 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17083 with link warning.
17084 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17085 Make into a compat symbol, disabled for minimum symbol version
17086 GLIBC_2.28 and later.
17087 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17088
17089 2018-05-22 Florian Weimer <fweimer@redhat.com>
17090
17091 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17092 not add -mpreferred-stack-boundary=4.
17093 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17094 (stack-align-test-flags): Likewise.
17095 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17096 Likewise.
17097 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17098 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17099 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17100 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17101 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17102 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17103 (CFLAGS-tst-align2.c): Likewise.
17104
17105 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17106
17107 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17108 (index_arch_Prefer_FSRM): Likewise.
17109 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17110 Also check Prefer_FSRM.
17111 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17112 Also return OPTIMIZE (erms) for Prefer_FSRM.
17113
17114 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17115
17116 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17117 (index_cpu_FSRM): Likewise.
17118 (reg_FSRM): Likewise.
17119
17120 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17121
17122 * math/gen-tgmath-tests.py: Import sys.
17123 (Tests.__init__): Initialize macros_seen.
17124 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17125 if requested to do so for this macro.
17126 (Tests.add_all_tests): Take argument for macro for which to
17127 generate tests.
17128 (Tests.check_macro_list): New function.
17129 (main): Handle check-list argument and argument specifying macro
17130 for which to generate tests.
17131 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17132 [PYTHON] (tgmath3-macro-tests): Likewise.
17133 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17134 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17135 not test-tgmath3.c.
17136 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17137 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17138 to CFLAGS.
17139 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17140 [PYTHON] ($(foreach
17141 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17142 rule.
17143 [PYTHON] (tests-special): Add
17144 $(objpfx)test-tgmath3-macro-list.out.
17145 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17146
17147 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17148 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17149 later.
17150
17151 [BZ #22639]
17152 * time/tzset.c (SECSPERDAY): Cast to time_t.
17153 * time/tst-y2039.c: New file.
17154 * time/Makefile (tests): Add tst-y2039.
17155
17156 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17157
17158 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17159 (PREFETCH_ONE_SET): Remove duplicate line.
17160
17161 2018-05-17 Florian Weimer <fweimer@redhat.com>
17162
17163 * sysdeps/generic/math-type-macros-double.h: Include
17164 <math-nan-payload-double.h> after <libm-alias-double.h>.
17165 * sysdeps/generic/math-type-macros-float.h: Include
17166 <math-nan-payload-float.h> after <libm-alias-float.h>.
17167 * sysdeps/generic/math-type-macros-float128.h: Include
17168 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17169 * sysdeps/generic/math-type-macros-ldouble.h: Include
17170 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17171
17172 2018-05-17 Andreas Schwab <schwab@suse.de>
17173
17174 * resolv/res_send.c (__res_context_send): Don't set errno when
17175 returing error after malloc failure.
17176
17177 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17178
17179 * nptl/allocatestack.c (allocate_stack): Remove the
17180 !__ASSUME_PRIVATE_FUTEX paths.
17181 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17182 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17183 Likewise.
17184 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17185 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17186 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17187 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17188 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17189 !__ASSUME_PRIVATE_FUTEX path.
17190 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17191 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17192 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17193 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17194 !__ASSUME_PRIVATE_FUTEX macros.
17195 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17196 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17197 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17198 * sysdeps/unix/sysv/linux/kernel-features.h
17199 (__ASSUME_PRIVATE_FUTEX): Removed.
17200
17201 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17202
17203 * math/Makefile (libm-narrow-fns): Add div.
17204 (libm-test-funcs-narrow): Likewise.
17205 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17206 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17207 * math/gen-auto-libm-tests.c (test_functions): Add div.
17208 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17209 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17210 (NARROW_DIV_TRIVIAL): Likewise.
17211 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17212 macro.
17213 (__ddivl): Likewise.
17214 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17215 ddiv.
17216 (CFLAGS-nldbl-ddiv.c): New variable.
17217 (CFLAGS-nldbl-fdiv.c): Likewise.
17218 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17219 __nldbl_ddivl.
17220 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17221 prototype.
17222 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17223 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17224 * math/auto-libm-test-in: Add tests of div.
17225 * math/auto-libm-test-out-narrow-div: New generated file.
17226 * math/libm-test-narrow-div.inc: New file.
17227 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17228 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17229 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17230 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17231 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17232 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17233 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17234 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17235 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17236 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17237 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17238 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17239 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17240 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17241 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17242 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17243 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17244 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17245 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17246 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17247 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17248 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17249 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17250 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17251 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17252 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17253 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17254 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17255 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17256 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17257 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17258 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17262 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17263 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17264 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17265 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17266 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17267 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17268 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17269 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17270 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17271
17272 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17273
17274 [BZ #23178]
17275 * nscd/nscd-client.h (sendfileall): Remove prototype.
17276 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17277 (handle_request): Use writeall instead of sendfileall.
17278 * nscd/aicache.c (addhstaiX): Likewise.
17279 * nscd/grpcache.c (cache_addgr): Likewise.
17280 * nscd/hstcache.c (cache_addhst): Likewise.
17281 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17282 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17283 * nscd/pwdcache.c (cache_addpw): Likewise.
17284 * nscd/servicescache.c (cache_addserv): Likewise.
17285 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17286 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17287 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17288 Remove define.
17289
17290 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17291
17292 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17293 Include <string/strncat.c>.
17294 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17295 alias.
17296 (__GI___strncat): New hidden alias.
17297
17298 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17299
17300 * sysdeps/mips/mips32/libm-test-ulps: Update.
17301 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17302
17303 2018-05-16 Florian Weimer <fweimer@redhat.com>
17304
17305 * support/Makefile (libsupport-routines): Add support_quote_blob,
17306 support_test_compare_blob.
17307 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17308 * support/check.h (TEST_COMPARE_BLOB): Define.
17309 (support_test_compare_blob): Declare.
17310 * support/support.h (support_quote_blob): Declare.
17311 * support/support_quote_blob.c: New file.
17312 * support/support_test_compare_blob.c: Likewise.
17313 * support/tst-support_quote_blob.c: Likewise.
17314 * support/tst-test_compare_blob.c: Likewise.
17315
17316 2018-05-16 Florian Weimer <fweimer@redhat.com>
17317
17318 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17319 of <strtod_nan_double.h>.
17320 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17321 instead of SET_MANTISSA.
17322 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17323 of include <strtod_nan_float.h>.
17324 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17325 instead of <strtod_nan_ldouble.h>.
17326 * stdlib/strtod_nan_double.h: Move to ...
17327 * sysdeps/generic/math-nan-payload-double.h: ... here.
17328 (FLOAT): Remove definition.
17329 (SET_MANTISSA): Rename to ...
17330 (SET_NAN_PAYLOAD): ... this.
17331 * stdlib/strtod_nan_float.h: Move to ...
17332 * sysdeps/generic/math-nan-payload-float.h: ... here.
17333 (FLOAT): Remove definition.
17334 (SET_MANTISSA): Rename to ...
17335 (SET_NAN_PAYLOAD): ... this.
17336 * sysdeps/generic/math-type-macros-double.h: Include
17337 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17338 instead of <math-svid-compat.h>.
17339 * sysdeps/generic/math-type-macros-float.h: Include
17340 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17341 instead of <math-svid-compat.h>.
17342 * sysdeps/generic/math-type-macros-float128.h: Include
17343 <math-nan-payload-float128.h>.
17344 * sysdeps/generic/math-type-macros-ldouble.h: Include
17345 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17346 instead of <math-svid-compat.h>.
17347 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17348 check for definition.
17349 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17350 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17351 Include <ieee754_float128.h>.
17352 (FLOAT): Remove definition.
17353 (SET_MANTISSA): Rename to ...
17354 (SET_NAN_PAYLOAD): ... this.
17355 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17356 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17357 Do not include <float128_private.h>.
17358 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17359 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17360 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17361 (FLOAT): Remove definition.
17362 (SET_MANTISSA): Rename to ...
17363 (SET_NAN_PAYLOAD): ... this.
17364 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17365 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17366 (FLOAT): Remove definition.
17367 (SET_MANTISSA): Rename to ...
17368 (SET_NAN_PAYLOAD): ... this.
17369 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17370 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17371 (FLOAT): Remove definition.
17372 (SET_MANTISSA): Rename to ...
17373 (SET_NAN_PAYLOAD): ... this.
17374 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17375 of "../stdlib/strtod_nan_double.h".
17376 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17377 of "../stdlib/strtod_nan_float.h".
17378 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17379 instead of "../stdlib/strtod_nan_ldouble.h".
17380 * manual/arith.texi (Parsing of Floats): Adjust comment.
17381
17382 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17383
17384 * math/Makefile (libm-narrow-fns): Add mul.
17385 (libm-test-funcs-narrow): Likewise.
17386 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17387 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17388 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17389 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17390 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17391 (NARROW_MUL_TRIVIAL): Likewise.
17392 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17393 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17394 macro.
17395 (__dmull): Likewise.
17396 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17397 dmul.
17398 (CFLAGS-nldbl-dmul.c): New variable.
17399 (CFLAGS-nldbl-fmul.c): Likewise.
17400 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17401 __nldbl_dmull.
17402 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17403 prototype.
17404 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17405 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17406 * math/auto-libm-test-in: Add tests of mul.
17407 * math/auto-libm-test-out-narrow-mul: New generated file.
17408 * math/libm-test-narrow-mul.inc: New file.
17409 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17410 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17411 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17412 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17413 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17414 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17415 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17416 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17417 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17418 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17419 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17420 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17421 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17422 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17423 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17424 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17425 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17426 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17427 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17428 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17429 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17430 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17431 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17432 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17433 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17434 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17435 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17436 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17437 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17438 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17439 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17440 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17444 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17445 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17446 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17447 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17448 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17449 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17450 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17451 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17452 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17453
17454 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17455
17456 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17457 with *%eax in call.
17458
17459 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17460
17461 * sysdeps/i386/ldsodefs.h: Removed.
17462 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17463 * sysdeps/x86/ldsodefs.h: This.
17464 (La_i86_regs): New.
17465 (La_i86_retval): Likewise.
17466 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17467 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17468
17469 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17470
17471 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17472 unnecessary testl.
17473
17474 2018-05-13 Alan Modra <amodra@gmail.com>
17475
17476 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17477 R_PARISC_TLS_DTPOFF32 reloc addend.
17478
17479 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17480
17481 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17482 * math/math.h: Restrict the prototype definition for the functions
17483 issignaling(_Float128) and iszero(_Float128); and template
17484 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17485 __HAVE_FLOAT128_UNLIKE_LDBL.
17486 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17487 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17488 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17489 __f128() constants; define the type _Float128 as long double;
17490 and reuse long double in __CFLOAT128.
17491
17492 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17493
17494 * sysdeps/generic/math_private.h: Do not include
17495 <math-barriers.h>.
17496 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17497 <math_private.h>.
17498 * math/fromfp.h: Include <math-barriers.h>.
17499 * math/math-narrow.h: Likewise.
17500 * math/s_nextafter.c: Likewise.
17501 * math/s_nexttowardf.c: Likewise.
17502 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17503 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17504 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17505 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17506 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17507 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17508 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17509 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17510 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17511 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17512 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17513 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17514 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17515 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17516 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17517 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17518 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17519 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17520 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17521 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17522 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17523 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17524 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17525 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17526 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17527 * sysdeps/ieee754/k_standardl.c: Likewise.
17528 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17529 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17530 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17531 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17532 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17533 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17534 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17535 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17536 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17537 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17538 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17539 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17540 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17541 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17542 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17543 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17544 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17545 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17546 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17547 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17548 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17549 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17550
17551 2018-05-11 Florian Weimer <fweimer@redhat.com>
17552
17553 Use 64-bit epoch values in the time zone file parser.
17554 * include/time.h (internal_time_t): Define.
17555 (__tzfile_compute): Use it.
17556 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17557 member.
17558 (transitions): Switch to internal_time_t.
17559 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17560 types.
17561 (__tzfile_compute): Use internal_time_t for timer argument. Check
17562 for truncation before calling __offtime.
17563
17564 2018-05-11 Florian Weimer <fweimer@redhat.com>
17565
17566 [BZ #23166]
17567 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17568 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17569 Likewise.
17570 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17571 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17572 export without --enable-obsolete-rpc.
17573 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17574 symbol. This should not have been exported, ever.
17575
17576 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17577
17578 [BZ #23152]
17579 * localedata/locales/gd_GB (abmon): Fix typo in May:
17580 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17581
17582 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17583
17584 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17585 Use multiple registers to copy data in loop tail.
17586
17587 * sysdeps/aarch64/multiarch/memmove_falkor.S
17588 (__memmove_falkor): Use multiple registers to move data in
17589 loop tail.
17590
17591 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17592
17593 * math/math-underflow.h: New file.
17594 * sysdeps/generic/math_private.h: Do not include <float.h>.
17595 (fabs_tg): Remove macro. Moved to math-underflow.h.
17596 (min_of_type_f): Likewise.
17597 (min_of_type_): Likewise.
17598 (min_of_type_l): Likewise.
17599 (min_of_type_f128): Likewise.
17600 (min_of_type): Likewise.
17601 (math_check_force_underflow): Likewise.
17602 (math_check_force_underflow_nonneg): Likewise.
17603 (math_check_force_underflow_complex): Likewise.
17604 * math/e_exp2_template.c: Include <math-underflow.h>.
17605 * math/k_casinh_template.c: Likewise.
17606 * math/s_catan_template.c: Likewise.
17607 * math/s_catanh_template.c: Likewise.
17608 * math/s_ccosh_template.c: Likewise.
17609 * math/s_cexp_template.c: Likewise.
17610 * math/s_clog10_template.c: Likewise.
17611 * math/s_clog_template.c: Likewise.
17612 * math/s_csin_template.c: Likewise.
17613 * math/s_csinh_template.c: Likewise.
17614 * math/s_csqrt_template.c: Likewise.
17615 * math/s_ctan_template.c: Likewise.
17616 * math/s_ctanh_template.c: Likewise.
17617 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17618 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17619 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17620 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17621 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17622 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17623 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17624 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17625 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17626 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17627 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17628 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17629 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17630 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17631 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17632 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17633 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17634 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17635 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17636 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17637 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17638 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17639 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17640 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17641 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17642 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17643 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17644 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17645 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17646 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17647 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17648 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17649 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17650 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17651 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17652 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17653 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17654 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17655 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17656 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17657 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17658 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17659 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17660 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17661 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17662 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17663 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17664 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17665 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17666 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17667 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17668 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17669 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17670 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17671 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17672 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17673 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17674 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17675 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17676 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17677 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17678 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17679 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17680 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17681 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17682 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17683 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17684 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17685 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17686 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17687 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17688 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17689 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17690 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17691 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17692 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17693 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17694 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17695 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17696 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17697 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17698 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17699 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17700 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17701
17702 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17703
17704 * sysdeps/generic/math-barriers.h: New file.
17705 * sysdeps/generic/math_private.h [!math_opt_barrier]
17706 (math_opt_barrier): Move to math-barriers.h.
17707 [!math_opt_barrier] (math_force_eval): Likewise.
17708 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17709 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17710 math-barriers.h.
17711 (math_force_eval): Likewise.
17712 * sysdeps/alpha/fpu/math-barriers.h: New file.
17713 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17714 math-barriers.h.
17715 (math_force_eval): Likewise.
17716 * sysdeps/x86/fpu/math-barriers.h: New file.
17717 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17718 math-barriers.h.
17719 (math_force_eval): Likewise.
17720 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17721 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17722 multiple-include guard for rename.
17723 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17724 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17725 math-barriers.h.
17726 (math_force_eval): Likewise.
17727
17728 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17729
17730 [BZ #22786]
17731 CVE-2018-11236
17732 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17733 computation.
17734 * stdlib/Makefile (test-bz22786): New test.
17735 * stdlib/test-bz22786.c: New test.
17736
17737 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17738
17739 * include/math-narrow-eval.h: New file. Contents moved from ....
17740 * sysdeps/generic/math_private.h: ... here.
17741 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17742 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17743 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17744 * stdlib/strtod_l.c: Likewise.
17745 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17746 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17747 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17748 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17749 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17750 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17751 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17752 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17753 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17754 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17755 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17756 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17757 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17758 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17759 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17760 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17761 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17762 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17763 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17764 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17765 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17766 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17767 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17768 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17769 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17770 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17771 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17772 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17773 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17774
17775 2018-05-08 Andreas Schwab <schwab@suse.de>
17776
17777 * sysdeps/nptl/internaltypes.h: Fix comment.
17778
17779 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17780
17781 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17782 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17783 hidden.
17784
17785 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17786
17787 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17788 of I into loop header.
17789 * benchtests/bench-memmove-walk.c
17790 (test_main): Likewise.
17791
17792 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17793
17794 Revert:
17795 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17796 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17797
17798 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17799
17800 [BZ #20419]
17801 * elf/dl-load.c (open_verify): Fix stack overflow.
17802 * elf/Makefile (tst-big-note): New test.
17803 * elf/tst-big-note-lib.S: New.
17804 * elf/tst-big-note.c: New.
17805
17806 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17807
17808 * scripts/abilist.awk: Ignore absolute symbols.
17809 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17810 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17811 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17812 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17813 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17814 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17815 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17816 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17817 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17818 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17819 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17820 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17821 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17822 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17823 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17824 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17825 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17829 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17830 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17831 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17832 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17833 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17834 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17836 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17837 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17839 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17840 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17841 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17842 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17843 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17844 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17845 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17846 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17847 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17849 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17850 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17851 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17852 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17853 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17872 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17873 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17874 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17875 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17876 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17878 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17879 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17880 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17881 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17882 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17883 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17884 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17885 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17886 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17887 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17889 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17890 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17891 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17892 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17895 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17901 Likewise.
17902 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17911 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17912 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17915 Likewise.
17916 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17923 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17924 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17925 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17926 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17929 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17933 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17943 Likewise.
17944 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17960 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17961 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17964 Likewise.
17965 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17967 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17968 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17970 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17971 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17972 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17973 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17974 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17975 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17976 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17977 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17978 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17979 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17980 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17981 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17982 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17983 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17984 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17992 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17997 Likewise.
17998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
18000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
18001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
18003 Likewise.
18004 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
18005 Likewise.
18006 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
18007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
18008 Likewise.
18009 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18011 Likewise.
18012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18013 Likewise.
18014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18015 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18017 Likewise.
18018 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18019 Likewise.
18020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18021 Likewise.
18022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18026 Likewise.
18027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18029 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18033 Likewise.
18034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18036 Likewise.
18037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18038 Likewise.
18039 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18040 Likewise.
18041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18042 Likewise.
18043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18046 Likewise.
18047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18048 Likewise.
18049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18050 Likewise.
18051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18052 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18053 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18054 Likewise.
18055 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18056 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18057 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18058 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18059 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18060 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18061 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18062 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18063 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18064 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18065 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18066 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18067 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18068 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18069 Likewise.
18070 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18071 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18072 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18073 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18074 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18075 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18076 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18077 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18078 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18079 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18080 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18081 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18082 Likewise.
18083 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18084 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18085 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18086 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18087 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18088 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18089 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18090 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18091 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18092 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18093 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18094 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18095 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18096 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18097 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18098 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18099 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18100 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18101 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18102 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18103 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18104 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18105 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18106 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18107 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18108 Likewise.
18109 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18110 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18111 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18112 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18113 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18114 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18115 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18116 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18117 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18120 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18121 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18122 Likewise.
18123 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18124 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18125 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18126 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18127 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18128 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18129 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18130 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18131 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18132 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18133 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18134 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18135 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18136 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18137 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18138 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18139 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18140 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18141 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18142 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18143 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18144 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18145 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18146 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18147 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18148 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18149 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18150 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18151 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18152 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18153 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18154 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18155 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18156 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18157 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18158 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18159 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18160 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18161
18162 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18163
18164 [BZ #23137]
18165 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18166 Use atomic_load_acquire to load __tid.
18167
18168 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18169
18170 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18171 Restore the pointer into %rdx, after syscall and use %rdx,
18172 instead of %rsi, to restore context.
18173
18174 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18175
18176 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18177 Pop the pointer into %rdx after syscall and use %rdx, instead
18178 of %rsi, to restore context.
18179
18180 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18181
18182 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18183 handlers after setjmp.
18184 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18185 defined.
18186 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18187 <libc-pointer-arith.h>.
18188 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18189 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18190 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18191 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18192 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18193 * sysdeps/x86/__longjmp_cancel.S: New file.
18194 * sysdeps/x86/longjmp.c: Likewise.
18195 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18196
18197 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18198
18199 * NEWS: Add ustat.h deprecation entry.
18200 * bits/ustat.h: Remove file.
18201 * misc/sys/ustat.h: Likewise.
18202 * misc/ustat.h: Likewise.
18203 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18204 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18205 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18206 compatibility mode.
18207 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18208 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18209 generic Linux implementation.
18210
18211 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18212
18213 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18214 * math/w_expl_compat.c: Likewise.
18215 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18216
18217 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18218
18219 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18220
18221 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18222
18223 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18224 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18225 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18226 Remove.
18227 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18229 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18230 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18231 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18232 and SYSCALL_LL64.
18233
18234 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18235
18236 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18237
18238 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18239 * math/w_asin_template.c: Likewise.
18240 * math/w_atanh_template.c: Likewise.
18241
18242 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18243
18244 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18245 to powerpc/powerpc64/be for big-endian.
18246 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18247 little-endian.
18248
18249 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18250 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18251 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18252 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18253 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18254 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18255 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18256 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18257 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18258 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18259 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18260 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18261 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18262 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18263 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18264 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18265 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18266 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18267 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18268 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18269 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18270 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18271 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18272 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18273 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18274 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18275 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18276 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18277 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18278 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18279 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18280 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18281
18282 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18283 adjusted to imply powerpc64 and older processors on powerpc64/be.
18284 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18285 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18286 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18287 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18288 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18289 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18290 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18291 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18292 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18293 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18294 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18295 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18296 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18297 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18298 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18299 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18300 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18301 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18302 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18303 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18304 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18305 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18306 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18307 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18308 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18309 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18310 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18311 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18312 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18313 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18314 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18315
18316 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18317 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18318 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18319 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18320
18321 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18322 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18323 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18324 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18325
18326 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18327 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18328 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18329 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18330 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18331 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18332 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18333 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18334 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18335 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18336 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18337
18338 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18339 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18340 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18341 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18342 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18343 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18344 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18345 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18346 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18347 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18348 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18349
18350 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18351 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18352 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18353 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18354 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18355 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18356 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18357 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18358 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18359 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18360 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18361 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18362
18363 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18364 and adjusted to imply olders processors.
18365 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18366 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18367 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18368 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18369 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18370 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18371 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18372 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18373 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18374 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18375 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18376
18377 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18378 powerpc64/le.
18379 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18380 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18381
18382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18383 powerpc64le.
18384 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18386
18387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18388 powerpc64/be.
18389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18392
18393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18394 powerpc64 and adjusted.
18395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18398 Likewise.
18399
18400 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18401
18402 * sysdeps/tile: Remove.
18403 * sysdeps/unix/sysv/linux/tile: Likewise.
18404 * README (tilegx-*-linux-gnu): Remove from list of supported
18405 configurations.
18406 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18407 contribution of support for generic Linux kernel syscall
18408 interface.
18409 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18410 tilegx configurations.
18411 (Config.install_linux_headers): Do not handle tile.
18412 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18413 in comment.
18414 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18415 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18416 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18417 conditional undefine and redefine.
18418 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18419 in comment.
18420 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18421 conditional undefine and redefine.
18422
18423 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18424
18425 * signal/tst-sigaction.c: New file to test BZ #23069.
18426 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18427
18428 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18429
18430 [BZ #22766]
18431 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18432 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18433 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18434 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18435
18436 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18437
18438 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18439 _DIRENT_MATCHES_DIRENT64 is not defined.
18440 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18441 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18442 is defined.
18443 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18444 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18445
18446 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18447
18448 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18449 version to GCC 8 branch.
18450
18451 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18452
18453 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18454 (check_no_hidden): Use type of original function when declaring
18455 alias.
18456
18457 * sysdeps/unix/sysv/linux/sys/ptrace.h
18458 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18459 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18460 (struct __ptrace_seccomp_metadata): New type.
18461 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18462 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18463 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18464 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18465 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18466 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18467 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18468 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18469 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18470 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18471 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18472 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18473 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18474 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18475 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18476 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18477
18478 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18479
18480 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18481 defined.
18482 * dirent/versionsort.c (versionsort): Likewise.
18483 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18484 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18485 * dirent/versionsort64.c (versionsort64): Likewise.
18486 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18487 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18488 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18489 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18490 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18491 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18492 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18493 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18494 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18495 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18498 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18499 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18500
18501 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18502
18503 * elf/elf.h (NT_PPC_PKEY): New macro.
18504
18505 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18506
18507 [BZ #23094]
18508 * localedata/locales/hr_HR: fix thousands_sep and
18509 mon_thousands_sep
18510
18511 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18512
18513 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18514 (XTABS): Define to TAB3.
18515
18516 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18517
18518 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18519
18520 * dirent/scandir-tail-common.c: New file.
18521 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18522 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18523 * dirent/scandir.c: Use scandir-tail-common.c.
18524 * dirent/scandirat.c: Likewise.
18525 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18526 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18527 if _DIRENT_MATCHES_DIRENT64 is defined.
18528 * dirent/scandirat64.c (scandirat64): Likewise.
18529 * include/dirent.h (__scandir_tail): Only define iff
18530 _DIRENT_MATCHES_DIRENT64 is not defined.
18531 (__scandir64_tail): Define regardless.
18532 (__scandirat, scandirat64): Remove libc_hidden_proto.
18533 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18534 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18536 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18537 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18538 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18539 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18540
18541 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18542
18543 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18544 New macro.
18545 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18546 Increase to 24.
18547 (_dl_aarch64_cap_flags): Add asimdfhm.
18548
18549 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18550
18551 * sysdeps/nios2/libm-test-ulps: Update.
18552
18553 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18554
18555 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18556 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18557
18558 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18559 requirements.
18560 (_DIRENT_MATCHES_DIRENT64): Undef
18561 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18562 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18563 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18564 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18565 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18566 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18567 use getdents64 syscalls as base.
18568 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18569 symbol if required.
18570 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18571 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18572 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18573 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18574 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18575 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18576 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18577 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18578 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18579 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18580 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18581
18582 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18583
18584 * scripts/test_printers_common.py (init_test): Disable lock elision.
18585
18586 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18587
18588 * math/test-tgmath.c (count_double, count_float,
18589 count_ldouble, count_cdouble, count_cfloat,
18590 count_cldouble): Use volatile int.
18591
18592 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18593
18594 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18595 (conformtest-xfail-conds): Add i386-gnu.
18596 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18597 i386-gnu.
18598 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18599 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18600 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18601 msqid_ds.msg_lrpid): Likewise.
18602 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18603 Likewise.
18604 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18605 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18606 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18607 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18608 unsigned int.
18609 (struct statvfs64): Likewise.
18610 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18611 Likewise.
18612 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18613 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18614 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18615 instead of wait_queue.
18616 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18617 instead of vm_area_struct.
18618 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18619 struct sched_param definition to it.
18620 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18621 * bits/types/struct_sched_param.h: New file.
18622 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18623 <bits/types/struct_sched_param.h> instead of <sched.h>.
18624 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18625 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18626 generic version but include <bits/pthreadtypes.h> to make struct
18627 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18628 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18629 non-compliant.
18630 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18631 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18632 [__USE_XOPEN] (OFDEL): New macro.
18633 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18634 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18635 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18636 prototypes.
18637 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18638 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18639 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18640 non-compliant.
18641 * sysdeps/i386/sys/ucontext.h: Likewise.
18642 * sysdeps/m68k/sys/ucontext.h: Likewise.
18643 * sysdeps/mips/sys/ucontext.h: Likewise.
18644 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18645 * sysdeps/mach/hurd/i386/Makefile
18646 (test-xfail-POSIX/fcntl.h/conform): Add.
18647 (test-xfail-POSIX/signal.h/conform): Add.
18648 (test-xfail-POSIX/semaphore.h/conform): Add.
18649 (test-xfail-POSIX/regex.h/conform): Add.
18650 (test-xfail-POSIX/aio.h/conform): Add.
18651 (test-xfail-POSIX/mqueue.h/conform): Add.
18652 (test-xfail-POSIX/sys/types.h/conform): Add.
18653 (test-xfail-UNIX98/fcntl.h/conform): Add.
18654 (test-xfail-UNIX98/netdb.h/conform): Add.
18655 (test-xfail-UNIX98/signal.h/conform): Add.
18656 (test-xfail-UNIX98/semaphore.h/conform): Add.
18657 (test-xfail-UNIX98/regex.h/conform): Add.
18658 (test-xfail-UNIX98/aio.h/conform): Add.
18659 (test-xfail-UNIX98/ftw.h/conform): Add.
18660 (test-xfail-UNIX98/mqueue.h/conform): Add.
18661 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18662 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18663 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18664 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18665 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18666 (test-xfail-UNIX98/sys/types.h/conform): Add.
18667 (test-xfail-UNIX98/stdlib.h/conform): Add.
18668 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18669 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18670 (test-xfail-POSIX2008/netdb.h/conform): Add.
18671 (test-xfail-POSIX2008/signal.h/conform): Add.
18672 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18673 (test-xfail-POSIX2008/regex.h/conform): Add.
18674 (test-xfail-POSIX2008/aio.h/conform): Add.
18675 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18676 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18677 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18678 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18679 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18680 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18681 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18682 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18683 (test-xfail-XOPEN2K/signal.h/conform): Add.
18684 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18685 (test-xfail-XOPEN2K/regex.h/conform): Add.
18686 (test-xfail-XOPEN2K/aio.h/conform): Add.
18687 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18688 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18689 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18690 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18691 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18692 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18693 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18694 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18695 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18696 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18697 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18698 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18699 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18700 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18701 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18702 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18703 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18704 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18705 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18706 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18707 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18708 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18709 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18710 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18711 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18712 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18713 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18714 i386-gnu.
18715 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18716 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18717
18718 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18719
18720 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18721 --enable-obsolete for powerpc-linux-gnuspe.
18722
18723 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18724
18725 * conform/data/sys/un.h-data: Allow sun_ prefix.
18726 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18727 prototypes.
18728 * sysdeps/mach/include/mach.h: Likewise.
18729 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18730 * sysdeps/mach/include/mach_error.h: Likewise.
18731
18732 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18733
18734 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18735 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18736 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18737 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18738
18739 2018-04-16 Andreas Schwab <schwab@suse.de>
18740
18741 [BZ #19527]
18742 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18743
18744 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18745
18746 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18747 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18748
18749 2018-04-12 DJ Delorie <dj@redhat.com>
18750
18751 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18752 version to 4.16.
18753
18754 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18755
18756 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18757 (struct kernel_sigaction): Use the same definition on 31bit as is used
18758 on 64bit.
18759
18760 2018-04-09 Florian Weimer <fweimer@redhat.com>
18761
18762 [BZ #23037]
18763 * resolv/res_send.c (send_dg): Use designated initializers instead
18764 of assignment to zero-initialize other fields of struct mmsghdr.
18765
18766 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18767
18768 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18769 __READDIR_ALIAS): Undefine after usage.
18770 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18771 __READDIR_R_ALIAS): Likewise.
18772 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18773 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18774 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18775 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18776 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18777 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18778 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18779 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18780 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18781 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18782 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18783 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18784 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18785 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18786 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18787 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18788 * sysdeps/unix/sysv/linux/readdir.c: New file.
18789 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18790 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18791 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18792
18793 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18794
18795 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18796
18797 * manual/charset.texi (Converting a Character): Fix typo.
18798
18799 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18800
18801 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18802
18803 * sysdeps/arm/libm-test-ulps: Update.
18804
18805 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18806 as base implementation.
18807 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18808 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18809 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18810 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18811 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18812 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18813 remove unrequired definitions and update comments.
18814 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18815 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18816 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18817 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18818 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18819 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18820 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18821 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18822 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18823 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18824 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18825 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18826 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18827 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18828 and RESET_SA_RESTORER hooks.
18829
18830 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18831
18832 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18833
18834 2018-04-05 Florian Weimer <fweimer@redhat.com>
18835
18836 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18837 integer overflow, memory leak on error, and indeterminate errno
18838 value. Add a null wide character to terminate the result string.
18839 * manual/charset.texi (Converting a Character): Mention embedded
18840 null bytes in the mbrtowc input string. Explain what happens in
18841 the -2 result case. Do not claim that mbrtowc is simple or
18842 obvious to use. Adjust the description of the code example. Use
18843 @code, not @var, for concrete variables.
18844
18845 2018-04-05 Florian Weimer <fweimer@redhat.com>
18846
18847 * manual/examples/mbstouwcs.c: New file.
18848 * manual/charset.texi (Converting a Character): Include it.
18849
18850 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18851
18852 * include/dirent.h (dirfd): Add hidden proto.
18853 * dirent/dirfd.c (dirfd): Add hidden def.
18854 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18855 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18856
18857 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18858
18859 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18860 sin, cos and sincos to 1 ULP.
18861
18862 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18863
18864 [BZ #19818]
18865 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18866 symbols.
18867 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18868 * elf/tst-absolute-sym.c: New file.
18869 * elf/tst-absolute-sym-lib.c: New file.
18870 * elf/tst-absolute-sym-lib.lds: New file.
18871 * elf/Makefile (tests): Add `tst-absolute-sym'.
18872 (modules-names): Add `tst-absolute-sym-lib'.
18873 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18874 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18875 ($(objpfx)tst-absolute-sym): New dependency.
18876
18877 [BZ #19818]
18878 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18879 parameter.
18880 (SYMBOL_ADDRESS): New macro.
18881 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18882 SYMBOL_ADDRESS for symbol address calculation.
18883 * elf/dl-runtime.c (_dl_fixup): Likewise.
18884 (_dl_profile_fixup): Likewise.
18885 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18886 * elf/rtld.c (dl_main): Likewise.
18887 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18888 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18889 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18890 (elf_machine_rela): Likewise.
18891 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18892 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18893 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18894 (elf_machine_rela): Likewise.
18895 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18896 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18897 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18898 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18899 Likewise.
18900 (elf_machine_reloc): Likewise.
18901 (elf_machine_got_rel): Likewise.
18902 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18903 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18904 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18905 Likewise.
18906 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18907 Likewise.
18908 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18909 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18910 Likewise.
18911 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18912 Likewise.
18913 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18914 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18915 Likewise.
18916 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18917 Likewise.
18918 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18919 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18920
18921 2018-04-04 Zack Weinberg <zackw@panix.com>
18922
18923 * sysdeps/generic/internal-signals.h: Include signal.h,
18924 sigsetops.h, and stdbool.h.
18925 (__libc_signal_block_all): Actually block all signals.
18926 (__libc_signal_block_app): Likewise.
18927 (__libc_signal_restore_set): Actually restore the signal mask.
18928
18929 2018-04-04 Florian Weimer <fweimer@redhat.com>
18930
18931 inet: Actually build and run tst-deadline.
18932 * inet/Makefile (tests-internal): Add tst-deadline and do not
18933 overwrite the variable.
18934 (tests-static-internal): Remove variable.
18935
18936 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18937
18938 [BZ #22947]
18939 * bits/uio-ext.h (RWF_APPEND): New.
18940 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18941 * manual/llio.texi: Document RWF_APPEND.
18942 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18943 (RWF_SUPPORTED): Add RWF_APPEND.
18944
18945 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18946
18947 [BZ #22391]
18948 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18949 check for internal nptl signals.
18950 * nptl/sigaction.c (__sigaction): Likewise.
18951 * signal/sigaddset.c (sigaddset): Likewise.
18952 * signal/sigdelset.c (sigdelset): Likewise.
18953 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18954 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18955 value.
18956 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18957 to filter out internal nptl signals.
18958 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18959 also check realtime signals using standard macros.
18960 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18961 __is_internal_signal, __libc_signal_block_all,
18962 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18963 * sysdeps/nptl/sigfillset.c: Remove file.
18964 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18965 Change return to bool.
18966 (__clear_internal_signals): Remove SIGTIMER clean since it is
18967 equal to SIGCANEL on Linux.
18968 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18969 signal set was constructed using standard functions.
18970
18971 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18972
18973 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18974 ifname is too long.
18975 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18976 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18977 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18978 hidden def.
18979 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18980 * signal/sigaddset.c: Include <sigsetopts.h>.
18981 * signal/sigdelset.c: Likewise.
18982
18983 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18984
18985 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18986 (__cos): Likewise.
18987 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18988 logic as sin and cos.
18989
18990 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18991
18992 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18993 inputs. Return correct sign.
18994 (do_sincos): Remove small input check before do_sin, let do_sin set
18995 the sign.
18996 (__sin): Likewise.
18997 (__cos): Likewise.
18998
18999 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19000
19001 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
19002 (do_cos_slow): Likewise.
19003 (do_sin_slow): Likewise.
19004 (reduce_and_compute): Likewise.
19005 (slow): Likewise.
19006 (slow1): Likewise.
19007 (slow2): Likewise.
19008 (sloww): Likewise.
19009 (sloww1): Likewise.
19010 (sloww2): Likewise.
19011 (bslow): Likewise.
19012 (bslow1): Likewise.
19013 (bslow2): Likewise.
19014 (cslow2): Likewise.
19015
19016 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19017
19018 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19019 (do_cos): Remove corp parameter and calculations.
19020 (do_sin): Likewise.
19021 (do_sincos): Remove cor variable.
19022 (__sin): Use do_sincos for huge inputs.
19023 (__cos): Likewise.
19024 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19025 (reduce_and_compute_sincos): Remove unused function.
19026
19027 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19028
19029 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19030 reduce_sincos, improve accuracy to 136 bits.
19031 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19032 (__sin): Use improved reduction and simplified do_sincos calculation.
19033 (__cos): Likewise.
19034 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19035
19036 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19037
19038 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19039 (do_sincos_2): Likewise.
19040 (__sin): Remove middle range reduction case.
19041 (__cos): Likewise.
19042 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19043 reduction case.
19044
19045 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19046
19047 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19048 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19049 inputs.
19050 (__cos): Likewise.
19051 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19052
19053 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19054
19055 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19056 version to 4.16
19057
19058 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19059
19060 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19061 Remove definitions.
19062 (opendir_oflags): Use O_DIRECTORY regardless.
19063 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19064 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19065
19066 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19067
19068 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19069 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19070 macros.
19071 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19072 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19073 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19074 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19075 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19076 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19077
19078 * htl/Makefile: Bump licence to LGPL 2.1+.
19079 * htl/alloca_cutoff.c: Likewise.
19080 * htl/cthreads-compat.c: Likewise.
19081 * htl/lockfile.c: Likewise.
19082 * htl/pt-alloc.c: Likewise.
19083 * htl/pt-cancel.c: Likewise.
19084 * htl/pt-cleanup.c: Likewise.
19085 * htl/pt-create.c: Likewise.
19086 * htl/pt-dealloc.c: Likewise.
19087 * htl/pt-detach.c: Likewise.
19088 * htl/pt-exit.c: Likewise.
19089 * htl/pt-getattr.c: Likewise.
19090 * htl/pt-initialize.c: Likewise.
19091 * htl/pt-internal.h: Likewise.
19092 * htl/pt-join.c: Likewise.
19093 * htl/pt-self.c: Likewise.
19094 * htl/pt-setcancelstate.c: Likewise.
19095 * htl/pt-setcanceltype.c: Likewise.
19096 * htl/pt-sigmask.c: Likewise.
19097 * htl/pt-spin-inlines.c: Likewise.
19098 * htl/pt-testcancel.c: Likewise.
19099 * htl/pt-yield.c: Likewise.
19100 * htl/tests/test-1.c: Likewise.
19101 * htl/tests/test-10.c: Likewise.
19102 * htl/tests/test-11.c: Likewise.
19103 * htl/tests/test-12.c: Likewise.
19104 * htl/tests/test-13.c: Likewise.
19105 * htl/tests/test-14.c: Likewise.
19106 * htl/tests/test-15.c: Likewise.
19107 * htl/tests/test-16.c: Likewise.
19108 * htl/tests/test-17.c: Likewise.
19109 * htl/tests/test-2.c: Likewise.
19110 * htl/tests/test-3.c: Likewise.
19111 * htl/tests/test-4.c: Likewise.
19112 * htl/tests/test-5.c: Likewise.
19113 * htl/tests/test-6.c: Likewise.
19114 * htl/tests/test-7.c: Likewise.
19115 * htl/tests/test-8.c: Likewise.
19116 * htl/tests/test-9.c: Likewise.
19117 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19118 * sysdeps/htl/bits/cancelation.h: Likewise.
19119 * sysdeps/htl/bits/pthread-np.h: Likewise.
19120 * sysdeps/htl/bits/pthread.h: Likewise.
19121 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19122 * sysdeps/htl/bits/semaphore.h: Likewise.
19123 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19124 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19125 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19126 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19127 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19128 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19129 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19130 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19131 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19132 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19133 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19134 * sysdeps/htl/old_pt-atfork.c: Likewise.
19135 * sysdeps/htl/pt-atfork.c: Likewise.
19136 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19137 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19138 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19139 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19140 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19141 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19142 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19143 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19144 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19145 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19146 * sysdeps/htl/pt-attr-init.c: Likewise.
19147 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19148 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19149 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19150 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19151 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19152 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19153 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19154 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19155 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19156 * sysdeps/htl/pt-attr.c: Likewise.
19157 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19158 * sysdeps/htl/pt-barrier-init.c: Likewise.
19159 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19160 * sysdeps/htl/pt-barrier.c: Likewise.
19161 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19162 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19163 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19164 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19165 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19166 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19167 * sysdeps/htl/pt-cond-init.c: Likewise.
19168 * sysdeps/htl/pt-cond-signal.c: Likewise.
19169 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19170 * sysdeps/htl/pt-cond-wait.c: Likewise.
19171 * sysdeps/htl/pt-cond.c: Likewise.
19172 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19173 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19174 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19175 * sysdeps/htl/pt-condattr-init.c: Likewise.
19176 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19177 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19178 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19179 * sysdeps/htl/pt-equal.c: Likewise.
19180 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19181 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19182 * sysdeps/htl/pt-getschedparam.c: Likewise.
19183 * sysdeps/htl/pt-getspecific.c: Likewise.
19184 * sysdeps/htl/pt-init-specific.c: Likewise.
19185 * sysdeps/htl/pt-key-create.c: Likewise.
19186 * sysdeps/htl/pt-key-delete.c: Likewise.
19187 * sysdeps/htl/pt-key.h: Likewise.
19188 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19189 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19190 * sysdeps/htl/pt-mutex-init.c: Likewise.
19191 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19192 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19193 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19194 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19195 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19196 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19197 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19198 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19199 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19200 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19201 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19202 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19203 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19204 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19205 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19206 * sysdeps/htl/pt-mutexattr.c: Likewise.
19207 * sysdeps/htl/pt-once.c: Likewise.
19208 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19209 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19210 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19211 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19212 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19213 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19214 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19215 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19216 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19217 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19218 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19219 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19220 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19221 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19222 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19223 * sysdeps/htl/pt-setschedparam.c: Likewise.
19224 * sysdeps/htl/pt-setschedprio.c: Likewise.
19225 * sysdeps/htl/pt-setspecific.c: Likewise.
19226 * sysdeps/htl/pt-spin.c: Likewise.
19227 * sysdeps/htl/pt-startup.c: Likewise.
19228 * sysdeps/htl/pthread.h: Likewise.
19229 * sysdeps/htl/sem-close.c: Likewise.
19230 * sysdeps/htl/sem-destroy.c: Likewise.
19231 * sysdeps/htl/sem-getvalue.c: Likewise.
19232 * sysdeps/htl/sem-init.c: Likewise.
19233 * sysdeps/htl/sem-open.c: Likewise.
19234 * sysdeps/htl/sem-post.c: Likewise.
19235 * sysdeps/htl/sem-timedwait.c: Likewise.
19236 * sysdeps/htl/sem-trywait.c: Likewise.
19237 * sysdeps/htl/sem-unlink.c: Likewise.
19238 * sysdeps/htl/sem-wait.c: Likewise.
19239 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19240 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19241 * sysdeps/mach/htl/pt-block.c: Likewise.
19242 * sysdeps/mach/htl/pt-spin.c: Likewise.
19243 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19244 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19245 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19246 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19247 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19248 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19249 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19250 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19251 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19252 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19253 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19254 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19255 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19256 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19257 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19258 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19259 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19260 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19261 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19262 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19263 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19264 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19265 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19266 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19267 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19268 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19269 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19270 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19271 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19272 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19273 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19274 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19275 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19276 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19277 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19278 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19279 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19280 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19281 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19282 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19283 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19284 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19285 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19286
19287 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19288 * README: Remove the mention of out-of-tree patches needed for
19289 GNU/Hurd.
19290
19291 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19292 (UTIME_NOW, UTIME_OMIT): Define macros.
19293
19294 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19295 instead of pthread_detach.
19296 (__cthread_fork): Call __pthread_create instead of pthread_create.
19297 (__cthread_keycreate): Call __pthread_key_create instead of
19298 pthread_key_create.
19299 (__cthread_getspecific): Call __pthread_getspecific instead of
19300 pthread_getspecific.
19301 (__cthread_setspecific): Call __pthread_setspecific instead of
19302 pthread_setspecific.
19303 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19304 __pthread_mutex_unlock instead of pthread_mutex_lock and
19305 pthread_mutex_unlock.
19306 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19307 ___pthread_get_cleanup_stack.
19308 (__pthread_get_cleanup_stack): New strong alias.
19309 * htl/pt-create.c: Include <pthreadP.h>.
19310 (entry_point): Call __pthread_exit instead of pthread_exit.
19311 (pthread_create): Rename to __pthread_create.
19312 (pthread_create): New strong alias.
19313 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19314 (pthread_detach): New strong alias.
19315 (__pthread_detach): Call __pthread_cond_broadcast instead of
19316 pthread_cond_broadcast.
19317 * htl/pt-exit.c: Include <pthreadP.h>.
19318 (__pthread_exit): Call __pthread_setcancelstate and
19319 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19320 __pthread_get_cleanup_stack.
19321 * htl/pt-testcancel.c: Include <pthreadP.h>.
19322 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19323 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19324 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19325 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19326 pthread_attr_getstacksize.
19327 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19328 Rename to __pthread_attr_getstackaddr.
19329 (pthread_attr_getstackaddr): New strong alias.
19330 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19331 Rename to __pthread_attr_getstacksize.
19332 (pthread_attr_getstacksize): New strong alias.
19333 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19334 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19335 (pthread_attr_setstack): New strong alias.
19336 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19337 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19338 pthread_attr_getstacksize, pthread_attr_setstacksize and
19339 pthread_attr_setstackaddr.
19340 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19341 Rename to __pthread_attr_setstackaddr.
19342 (pthread_attr_setstackaddr): New strong alias.
19343 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19344 Rename to __pthread_attr_setstacksize.
19345 (pthread_attr_setstacksize): New strong alias.
19346 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19347 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19348 pthread_exit.
19349 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19350 (__pthread_key_create): New hidden def.
19351 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19352 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19353 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19354 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19355 __pthread_setspecific, __pthread_setcancelstate,
19356 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19357 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19358 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19359 declarations.
19360 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19361 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19362 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19363 (pthread_attr_setstackaddr): New strong alias.
19364 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19365 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19366 (pthread_attr_setstacksize): New strong alias.
19367 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19368 (call_exit): Call __pthread_exit instead of pthread_exit.
19369 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19370 (_pthread_mutex_init): New hidden definition.
19371 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19372 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19373 instead of pthread_attr_init and pthread_attr_setstack.
19374
19375 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19376 __vm_deallocate instead of vm_allocate and vm_deallocate.
19377 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19378 setenv.
19379 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19380 of geteuid.
19381 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19382 strdup.
19383 * hurd/siginfo.c: Include <libioP.h>.
19384 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19385 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19386 munmap.
19387 * mach/devstream.c: Include <libioP.h>.
19388 (dealloc_ref): Call __mach_port_deallocate instead of
19389 mach_port_deallocate.
19390 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19391 Call __mach_port_deallocate instead of mach_port_deallocate.
19392 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19393 pathconf.
19394 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19395 munmap.
19396 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19397 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19398 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19399 of munmap.
19400 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19401 of close.
19402 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19403 instead of sysconf.
19404 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19405 __clock_gettime instead of clock_gettime.
19406 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19407 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19408 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19409 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19410 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19411 tcgetattr.
19412 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19413 __clock_gettime and __nanosleep instead of clock_gettime and
19414 nanosleep.
19415 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19416 __hurd_catch_signal.
19417 (hurd_catch_signal): New strong alias.
19418 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19419 __hurd_catch_signal instead of hurd_catch_signal.
19420 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19421 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19422 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19423 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19424 (_hurd_thread_sigstate): Add hidden def.
19425 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19426 mutex_unlock.
19427 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19428 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19429 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19430 __hurd_file_name_path_lookup.
19431 (hurd_file_name_path_lookup): New strong alias.
19432 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19433 hurd_file_name_path_lookup.
19434 * mach/errstring.c (mach_error_type): Add hidden def.
19435 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19436 * mach/mutex-init.c (__mutex_init): Add hidden def.
19437 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19438 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19439 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19440 * sysdeps/mach/hurd/getcwd.c
19441 (_hurd_canonicalize_directory_name_internal): Rename to
19442 __hurd_canonicalize_directory_name_internal.
19443 (_hurd_canonicalize_directory_name_internal): New strong alias.
19444 (__canonicalize_directory_name_internal, __getcwd): Call
19445 __hurd_canonicalize_directory_name_internal instead of
19446 _hurd_canonicalize_directory_name_internal.
19447 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19448 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19449 hidden defs.
19450 * sysdeps/hurd/include/hurd.h: New file.
19451 * sysdeps/hurd/include/hurd/fd.h: New file.
19452 * sysdeps/hurd/include/hurd/signal.h: New file.
19453 * sysdeps/mach/include/lock-intern.h: New file.
19454 * sysdeps/mach/include/mach.h: New file.
19455 * sysdeps/mach/include/mach/mig_support.h: New file.
19456 * sysdeps/mach/include/mach_error.h: New file.
19457 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19458 prototype.
19459 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19460 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19461 _HEADER_H_HIDDEN_DEF macro.
19462 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19463 _hurd_fd_error_signal): Add hidden prototype.
19464 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19465 hidden def.
19466 * libio/iolibio.h (_IO_puts): New hidden prototype.
19467 * libio/ioputs.c (_IO_puts): New hidden def.
19468 * sysdeps/mach/hurd/localplt.data: New file.
19469
19470 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19471 Amos Jeffries <squid3@treenet.co.nz>
19472 David Michael <fedora.dm0@gmail.com>
19473 Marco Gerards <marco@gnu.org>
19474 Marcus Brinkmann <marcus@gnu.org>
19475 Neal H. Walfield <neal@gnu.org>
19476 Pino Toscano <toscano.pino@tiscali.it>
19477 Richard Braun <rbraun@sceen.net>
19478 Roland McGrath <roland@gnu.org>
19479 Samuel Thibault <samuel.thibault@ens-lyon.org>
19480 Thomas DiModica <ricinwich@yahoo.com>
19481 Thomas Schwinge <tschwinge@gnu.org>
19482
19483 * htl: New directory.
19484 * sysdeps/htl: New directory.
19485 * sysdeps/hurd/htl: New directory.
19486 * sysdeps/i386/htl: New directory.
19487 * sysdeps/mach/htl: New directory.
19488 * sysdeps/mach/hurd/htl: New directory.
19489 * sysdeps/mach/hurd/i386/htl: New directory.
19490 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19491 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19492 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19493
19494 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19495
19496 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19497 signals in thread created for runing timers.
19498
19499 2018-04-01 Florian Weimer <fweimer@redhat.com>
19500
19501 * support/support_format_addrinfo.c (support_format_addrinfo):
19502 Include unknown error number in formatted result.
19503
19504 2018-03-29 Florian Weimer <fweimer@redhat.com>
19505
19506 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19507 capture SIGBUS.
19508
19509 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19510
19511 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19512 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19513 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19514 (__ASSUME_CLONE_BACKWARDS): Define.
19515
19516 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19517
19518 [BZ #23024]
19519 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19520 early when linux sentinel value is set.
19521
19522 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19523
19524 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19525
19526 2018-03-27 Andreas Schwab <schwab@suse.de>
19527
19528 [BZ #23005]
19529 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19530 allocation of private copy of nsaddr_list fails.
19531
19532 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19533
19534 [BZ #16552]
19535 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19536 * sysdeps/unix/sysv/linux/umount.c: ... here.
19537 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19538 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19539 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19540 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19542 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19543 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19544
19545 2018-03-26 Andreas Schwab <schwab@suse.de>
19546
19547 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19548 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19549 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19550 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19551 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19552 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19553 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19554 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19555 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19556 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19557 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19558 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19559 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19560 (R_RISCV_NUM): Define.
19561
19562 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19563
19564 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19565 TLS declaration of errno.
19566 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19567 __libc_setup_tls.
19568 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19569 (ARCH_SETUP_TLS): Likewise.
19570 * sysdeps/mach/hurd/libc-start.h: New file copied from
19571 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19572 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19573 instead of __libc_setup_tls.
19574 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19575 __libc_setup_tls before initializing libpthread and running _hurd_init
19576 which starts the signal thread.
19577 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19578 Declare function.
19579 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19580
19581 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19582
19583 [BZ #22998]
19584 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19585 after it is defined.
19586
19587 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19588 Max Horn <max@quendi.de>
19589
19590 [BZ #22644]
19591 CVE-2017-18269
19592 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19593 branch conditions.
19594 * string/test-memmove.c (do_test2): New testcase.
19595
19596 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19597
19598 * sysdeps/generic/frame.h: Remove file.
19599 * sysdeps/arm/frame.h: Likewise.
19600 * sysdeps/hppa/frame.h: Likewise.
19601 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19602 macro.
19603 (GET_FRAME): Likewise.
19604 (GET_STACK): Likewise.
19605 (CALL_SIGHANDLER): Likewise.
19606 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19607 Likewise.
19608 (GET_FRAME): Likewise.
19609 (GET_STACK): Likewise.
19610 (CALL_SIGHANDLER): Likewise.
19611 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19612 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19613 (GET_FRAME): Likewise.
19614 (GET_STACK): Likewise.
19615 (CALL_SIGHANDLER): Likewise.
19616 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19617 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19618 (GET_FRAME): Likewise.
19619 (GET_STACK): Likewise.
19620 (ADVANCE_STACK_FRAME): Likewise.
19621 (CALL_SIGHANDLER): Likewise.
19622 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19623 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19624 (GET_FRAME): Likewise.
19625 (GET_STACK): Likewise.
19626 (CALL_SIGHANDLER): Likewise.
19627 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19628 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19629 (GET_FRAME): Likewise.
19630 (GET_STACK): Likewise.
19631 (CALL_SIGHANDLER): Likewise.
19632 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19633 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19634 (GET_FRAME): Likewise.
19635 (GET_STACK): Likewise.
19636 (CALL_SIGHANDLER): Likewise.
19637 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19638 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19639 (GET_FRAME): Likewise.
19640 (GET_STACK): Likewise.
19641 (CALL_SIGHANDLER): Likewise.
19642 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19643 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19644 (GET_FRAME): Likewise.
19645 (GET_STACK): Likewise.
19646 (CALL_SIGHANDLER): Likewise.
19647 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19648 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19649 (GET_FRAME): Likewise.
19650 (GET_STACK): Likewise.
19651 (CALL_SIGHANDLER): Likewise.
19652 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19653 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19654 (GET_FRAME): Likewise.
19655 (GET_STACK): Likewise.
19656 (CALL_SIGHANDLER): Likewise.
19657 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19658 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19659 (GET_FRAME): Likewise.
19660 (GET_STACK): Likewise.
19661 (CALL_SIGHANDLER): Likewise.
19662 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19663 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19664 (GET_FRAME): Likewise.
19665 (GET_STACK): Likewise.
19666 (CALL_SIGHANDLER): Likewise.
19667 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19668 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19669 (FIRST_FRAME_POINTER): Likewise.
19670 (ADVANCE_STACK_FRAME): Likewise.
19671 (GET_STACK): Likewise.
19672 (GET_FRAME): Likewise.
19673 (CALL_SIGHANDLER): Likewise.
19674 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19675 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19676 (ADVANCE_STACK_FRAME): Likewise.
19677 (GET_STACK): Likewise.
19678 (GET_FRAME): Likewise.
19679 (CALL_SIGHANDLER): Likewise.
19680 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19681 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19682 (GET_FRAME): Likewise.
19683 (GET_STACK): Likewise.
19684 (CALL_SIGHANDLER): Likewise.
19685 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19686 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19687 (GET_FRAME): Likewise.
19688 (GET_STACK): Likewise.
19689 (CALL_SIGHANDLER): Likewise.
19690
19691 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19692
19693 * sysdeps/x86_64/backtrace.c: Move to ....
19694 * debug/backtrace.c: ... here.
19695 * sysdeps/aarch64/backtrace.c: Remove file.
19696 * sysdeps/alpha/backtrace.c: Likewise.
19697 * sysdeps/hppa/backtrace.c: Likewise.
19698 * sysdeps/ia64/backtrace.c: Likewise.
19699 * sysdeps/mips/backtrace.c: Likewise.
19700 * sysdeps/nios2/backtrace.c: Likewise.
19701 * sysdeps/riscv/backtrace.c: Likewise.
19702 * sysdeps/sh/backtrace.c: Likewise.
19703 * sysdeps/tile/backtrace.c: Likewise.
19704
19705 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19706
19707 [BZ #22987]
19708 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19709 function.
19710 (fdimf): Likewise.
19711 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19712
19713 [BZ #17343]
19714 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19715 possibly overflowing computations.
19716
19717 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19718
19719 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19720 values from Linux-specific section now that it is in the GNU section.
19721 * sysdeps/gnu/errlist.c: Regenerate.
19722
19723 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19724
19725 * math/Makefile (libm-narrow-fns): Add sub.
19726 (libm-test-funcs-narrow): Likewise.
19727 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19728 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19729 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19730 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19731 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19732 (NARROW_SUB_TRIVIAL): Likewise.
19733 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19734 macro.
19735 (__dsubl): Likewise.
19736 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19737 dsub.
19738 (CFLAGS-nldbl-dsub.c): New variable.
19739 (CFLAGS-nldbl-fsub.c): Likewise.
19740 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19741 __nldbl_dsubl.
19742 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19743 prototype.
19744 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19745 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19746 * math/auto-libm-test-in: Add tests of sub.
19747 * math/auto-libm-test-out-narrow-sub: New generated file.
19748 * math/libm-test-narrow-sub.inc: New file.
19749 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19750 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19751 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19752 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19753 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19754 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19755 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19756 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19757 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19758 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19759 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19760 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19761 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19762 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19763 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19764 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19765 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19766 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19767 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19768 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19769 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19770 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19771 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19772 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19773 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19774 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19775 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19776 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19777 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19778 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19779 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19780 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19781 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19785 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19786 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19787 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19788 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19789 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19790 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19791 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19792 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19793 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19794 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19795
19796 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19797
19798 [BZ #20079]
19799 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19800
19801 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19802
19803 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19804
19805 2018-03-18 Richard Braun <rbraun@sceen.net>
19806
19807 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19808 thread reference.
19809
19810 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19811
19812 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19813 (__libc_cleanup_fct): Define function.
19814 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19815 __libc_cleanup_end): Rewrite implementation using
19816 __attribute__ ((__cleanup__)).
19817 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19818 * hurd/Makefile (routines): Add hurdlock.
19819 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19820 interface.
19821 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19822 * hurd/hurdpid.c: Include <lowlevellock.h>
19823 (_S_msg_proc_newids): Use lll_wait to synchronize.
19824 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19825 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19826 * mach/Makefile (lock-headers): Remove machine-lock.h.
19827 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19828 <machine-lock.h>.
19829 (__spin_lock_t): New type.
19830 (__SPIN_LOCK_INITIALIZER): New macro.
19831 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19832 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19833 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19834 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19835 (__mutex_init): Initialize with lll.
19836 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19837 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19838 needing lll.
19839 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19840 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19841 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19842 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19843 (__setpgid): Use lll for synchronization.
19844 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19845 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19846 instead of <cthreads.h>.
19847 (_IO_lock_inexpensive): New macro
19848 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19849 (__libc_lock_self0): New declaration.
19850 (__libc_lock_owner_self): New macro.
19851 (__libc_key_t): Remove type.
19852 (_LIBC_LOCK_INITIALIZER): New macro.
19853 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19854 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19855 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19856 __libc_lock_define_initialized_recursive,
19857 __rtld_lock_define_initialized_recursive,
19858 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19859 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19860 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19861 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19862 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19863 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19864 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19865 New macros.
19866 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19867 * hurd/hurdlock.c: New file.
19868 * hurd/hurdlock.h: New file.
19869 * mach/lowlevellock.h: New file
19870
19871 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19872
19873 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19874 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19875 when opening a symlink with O_NOFOLLOW.
19876 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19877 path when flags contains O_NOFOLLOW.
19878 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19879 if flags contains O_DIRECTORY and the result is a directory.
19880 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19881 oneself when the pointer given in D is nul (as set by ext2fs).
19882 * sysdeps/mach/hurd/mlockall.c: New file.
19883 * sysdeps/mach/hurd/munlockall.c: New file.
19884
19885 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19886
19887 * hurd/hurdsig.c: Include <pthread.h>.
19888 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19889 get the signal thread stack layout.
19890 * hurd/Makefile (headers): Remove threadvar.h.
19891 (inline-headers): Remove threadvar.h.
19892 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19893 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19894 __hurd_threadvar_max, __hurd_errno_location.
19895 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19896 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19897 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19898 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19899 unless TLS is not initialized yet, in which case we do not need a
19900 critical section yet anyway.
19901 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19902 <machine-sp.h>.
19903 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19904 declarations.
19905 (__hurd_threadvar_index): Remove enum.
19906 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19907 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19908 inlines.
19909 (__hurd_reply_port0): New variable declaration.
19910 (__hurd_local_reply_port): New macro.
19911 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19912 (interrupted_reply_port_location): Add thread_t parameter. Use it
19913 with THREAD_TCB to access thread-local variables.
19914 (_hurdsig_abort_rpcs): Pass ss->thread to
19915 interrupted_reply_port_location.
19916 (_hurd_internal_post_signal): Likewise.
19917 (_hurdsig_init): Use presence of cthread_fork instead of
19918 __hurd_threadvar_stack_mask to start signal thread by hand.
19919 Remove signal thread threadvar initialization.
19920 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19921 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19922 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19923 of threadvar.
19924 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19925 __libc_lock_self0.
19926 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19927 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19928 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19929 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19930 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19931 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19932 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19933 define variables.
19934 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19935 <hurd/threadvar.h>.
19936 [IS_IN(rtld)] (rtld_errno): New variable.
19937 [IS_IN(rtld)] (__errno_location): New weak function.
19938 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19939 * sysdeps/mach/hurd/errno.c: Remove file.
19940 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19941 (__fork): Remove THREADVAR_SPACE macro and its use.
19942 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19943 variable.
19944 (init): Do not initialize threadvar.
19945 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19946 symbol.
19947 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19948 __hurd_local_reply_port instead of threadvar.
19949 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19950 _hurd_sigstate fields.
19951 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19952 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19953 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19954 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19955 instead of threadvar.
19956 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19957 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19958 (use_threadvar, global_reply_port): Remove variables.
19959 (__hurd_reply_port0): New variable.
19960 (__mig_get_reply_port): Use __hurd_local_reply_port and
19961 __hurd_reply_port0 instead of threadvar.
19962 (__mig_dealloc_reply_port): Likewise.
19963 (__mig_init): Do not initialize threadvar.
19964 * sysdeps/mach/hurd/profil.c: Fix comment.
19965 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19966 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19967 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19968 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19969 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19970 __cthread_setspecific.
19971 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19972 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19973 __cthread_t instead of cthread_fork, cthread_detach,
19974 pthread_getattr_np, pthread_attr_getstack.
19975 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19976 __cthread_keycreate.
19977 (cthread_getspecific): Rename to __cthread_getspecific.
19978 (cthread_setspecific): Rename to __cthread_setspecific.
19979 (__libc_getspecific): Use __cthread_getspecific instead of
19980 cthread_getspecific.
19981 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19982 __cthread_keycreate instead of cthread_keycreate.
19983 (__libc_setspecific): Use __cthread_setspecific instead of
19984 cthread_setspecific.
19985 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19986 Likewise.
19987 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19988 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19989 testing whether it is defined.
19990
19991 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19992
19993 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19994 Define macro.
19995 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19996 * sysdeps/mach/i386/thread_state.h
19997 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19998 i386_THREAD_STATE.
19999 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
20000 i386_THREAD_STATE.
20001 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
20002
20003 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
20004 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
20005
20006 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
20007 macros.
20008 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
20009 descriptor instead of creating a new one.
20010 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
20011
20012 * mach/setup-thread.c: Include <ldsodefs.h>.
20013 (__mach_setup_thread): Call _dl_allocate_tls, pass
20014 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20015 MACHINE_THREAD_STATE_FLAVOR, before getting
20016 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20017 MACHINE_THREAD_STATE_FLAVOR with the result.
20018 * hurd/hurdfault.c (_hurdsig_fault_init): Call
20019 MACHINE_THREAD_STATE_FIX_NEW.
20020 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20021 too. Add original thread parameter.
20022
20023 2018-03-16 Joseph Myers <joseph@codesourcery.com>
20024
20025 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20026 Remove inline function.
20027
20028 * sysdeps/i386/fpu/libm-test-ulps: Update.
20029 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20030
20031 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20032
20033 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20034 commit.
20035
20036 2018-03-15 Joseph Myers <joseph@codesourcery.com>
20037
20038 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20039 (__sincos_code): Remove define and undefine.
20040 [__FAST_MATH__] (__sincos): Remove inline function.
20041 [__FAST_MATH__] (__sincosf): Remove inline function.
20042 [__FAST_MATH__] (__sincosl): Remove inline function.
20043 (__atan2l): Remove inline functions.
20044 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20045 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20046 function.
20047 (floor): Remove inline function.
20048 (ceil): Likewise.
20049 [__FAST_MATH__] (__ldexp_code): Remove macro.
20050 [__FAST_MATH__] (ldexp): Remove inline function.
20051 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20052 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20053 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20054 [__USE_ISOC99] (__lrint_code): Remove macro.
20055 [__USE_ISOC99] (__llrint_code): Likewise.
20056 [__USE_ISOC99] (lrintf): Remove inline function.
20057 [__USE_ISOC99] (lrint): Likewise.
20058 [__USE_ISOC99] (lrintl): Likewise.
20059 [__USE_ISOC99] (llrint): Likewise.
20060 [__USE_ISOC99] (llrintf): Likewise.
20061 [__USE_ISOC99] (llrintl): Likewise.
20062
20063 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20064
20065 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20066 (__ieee754_sqrtf): Remove.
20067 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20068 (__ieee754_sqrtf): Remove.
20069 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20070 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20071 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20072 (__ieee754_sqrtf): Remove.
20073 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20074 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20075 (sqrtf): Remove.
20076 (sqrtl): Remove.
20077 (__ieee754_sqrt): Remove.
20078 (__ieee754_sqrtf): Remove.
20079 (__ieee754_sqrtl): Remove.
20080 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20081 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20082 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20083 (__ieee754_sqrtf): Remove.
20084 (__ieee754_sqrtl): Remove.
20085
20086 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20087
20088 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20089 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20090 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20091 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20092 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20093 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20094 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20095 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20096 Likewise.
20097 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20098 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20099 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20100 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20101 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20102 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20103 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20104 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20105 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20106 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20107 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20108 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20109 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20110 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20111 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20112 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20113 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20114 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20115 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20116 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20117 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20118 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20119 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20120 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20121 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20122 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20123 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20124 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20125 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20126 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20127 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20128 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20129 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20130 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20131 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20132 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20133 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20134 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20135 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20136 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20137
20138 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20139
20140 * include/math.h (sqrt): Declare with asm redirect.
20141 (sqrtf): Likewise.
20142 (sqrtl): Likewise.
20143 (sqrtf128): Likewise.
20144 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20145 nonlib and libnldbl with -fmath-errno.
20146 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20147 * math/w_sqrt_template.c: Likewise.
20148 * math/w_sqrtf_compat.c: Likewise.
20149 * math/w_sqrtl_compat.c: Likewise.
20150 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20151 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20152 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20153 complex.h.
20154
20155 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20156
20157 * benchtests/Makefile: Define _ISOMAC.
20158 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20159 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20160 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20161 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20162 * benchtests/bench-timing.h: Define attribute_hidden.
20163
20164 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20165
20166 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20167 mov + lsr.
20168
20169 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20170
20171 [BZ #22963]
20172 * localedata/locales/cs_CZ (mon): Rename to...
20173 (alt_mon): This.
20174 (mon): Import from CLDR (genitive case).
20175
20176 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20177
20178 [BZ #22937]
20179 * localedata/locales/el_CY (abmon): Rename to...
20180 (ab_alt_mon): This.
20181 (abmon): Import from CLDR (abbreviated genitive case).
20182 * localedata/locales/el_GR (abmon): Rename to...
20183 (ab_alt_mon): This.
20184 (abmon): Import from CLDR (abbreviated genitive case).
20185
20186 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20187
20188 [BZ #22932]
20189 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20190
20191 2018-03-15 Robert Buj <robert.buj@gmail.com>
20192
20193 [BZ #22848]
20194 * localedata/locales/ca_ES (abmon): Rename to...
20195 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20196 (mon): Rename to...
20197 (alt_mon): This.
20198 (abmon): Import from CLDR (genitive case, month names preceded by
20199 "de" or "d’").
20200 (mon): Likewise.
20201 (abday): Synchronize with CLDR.
20202 (d_t_fmt): Likewise.
20203 (d_fmt): Likewise.
20204 (am_pm): Likewise.
20205
20206 (LC_TIME): Improve indentation.
20207 (LC_TELEPHONE): Likewise.
20208 (LC_NAME): Likewise.
20209 (LC_ADDRESS): Likewise.
20210
20211 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20212
20213 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20214 (lrintf): Remove definitions used only with old GCC.
20215 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20216 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20217 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20218 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20219 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20220 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20221 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20222 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20223 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20224 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20225 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20226 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20227 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20228 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20229 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20230 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20231 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20232 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20233 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20234 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20235 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20236 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20237 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20238 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20239 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20240 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20241 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20242 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20243
20244 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20245
20246 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20247 instruction to unbreak builds with binutils 2.26 and older.
20248
20249 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20250
20251 * sysdeps/aarch64/strncmp.S (count): New macro.
20252 (strncmp): Store misaligned length in SRC1 in COUNT.
20253 (mutual_align): Adjust.
20254 (misaligned8): Load dword at a time when it is safe.
20255
20256 2018-03-12 Zack Weinberg <zackw@panix.com>
20257
20258 [BZ #1190]
20259 [BZ #19476]
20260 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20261 if the _IO_EOF_SEEN bit is already set; update commentary.
20262 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20263 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20264
20265 * support/support_openpty.c, support/tty.h: New files.
20266 * support/Makefile (libsupport-routines): Add support_openpty.
20267
20268 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20269 New test cases.
20270 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20271 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20272
20273 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20274
20275 * po/pt_BR.po: Update translations.
20276
20277 2018-03-12 David Michael <fedora.dm0@gmail.com>
20278
20279 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20280 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20281 get a port to the startup server.
20282
20283 2018-03-11 Zack Weinberg <zackw@panix.com>
20284
20285 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20286 before nldbl-compat.h.
20287
20288 2018-03-10 Zack Weinberg <zackw@panix.com>
20289
20290 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20291 math.h or math_private.h.
20292
20293 * sysdeps/alpha/fpu/s_isnan.c
20294 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20295 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20296 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20297 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20298 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20299 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20300 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20301 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20302 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20303 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20304 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20305 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20306 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20307 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20308 Include math_private.h.
20309
20310 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20311 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20312 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20313 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20314 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20315 * sysdeps/powerpc/power7/fpu/s_logb.c:
20316 Include math.h and math_private.h.
20317
20318 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20319 uses of $at in .set noat / .set at.
20320
20321 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20322
20323 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20324 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20325 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20326 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20327 Likewise.
20328
20329 2018-03-09 Florian Weimer <fweimer@redhat.com>
20330
20331 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20332 in comment.
20333
20334 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20335
20336 [BZ #22919]
20337 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20338 Add nop before __startcontext, add explaining comments.
20339
20340 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20341
20342 [BZ #22926]
20343 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20344 empty for __SPE__.
20345 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20346 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20347 Do not build hardware transactional code for __SPE__.
20348 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20349 (__lll_trylock_elision): Likewise.
20350 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20351 (__lll_unlock_elision): Likewise.
20352
20353 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20354 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20355 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20356 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20357 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20358 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20359 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20360 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20361 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20362 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20363 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20364 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20365 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20366 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20367 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20368 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20369 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20370 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20371 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20372 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20373 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20374 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20375 (__ASSUME_CLONE_BACKWARDS): Define.
20376 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20377 __clone2 if __NR_clone2 is defined.
20378 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20379 (__ASSUME_CLONE_BACKWARDS): Likewise.
20380 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20381 (__ASSUME_CLONE_BACKWARDS): Likewise.
20382 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20383 (__ASSUME_CLONE2): Likewise.
20384 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20385 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20386 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20387 variants and the define architecture can use.
20388 (__ASSUME_CLONE_DEFAULT): Define as default.
20389 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20390 (__ASSUME_CLONE_BACKWARDS): Likewise.
20391 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20392 (__ASSUME_CLONE_BACKWARDS): Likewise.
20393 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20394 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20395
20396 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20397
20398 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20399
20400 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20401 time.
20402
20403 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20404 (do_test_limit): Likewise.
20405
20406 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20407 for every implementation.
20408 (do_test): Likewise.
20409
20410 * benchtests/bench-strncmp.c: Convert output to json.
20411
20412 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20413
20414 * io/futimens.c: Add missing start-of-file descriptive comment.
20415 * io/utime.c: Likewise.
20416 * misc/futimesat.c: Likewise.
20417 * misc/utimes.c: Likewise.
20418 * sysdeps/mach/hurd/futimesat.c: Likewise.
20419 * sysdeps/mach/hurd/utimes.c: Likewise.
20420 * sysdeps/posix/utime.c: Likewise.
20421 * sysdeps/posix/utimes.c: Likewise.
20422 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20423 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20424 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20425 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20426
20427 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20428
20429 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20430 hurd_futimes.
20431 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20432 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20433 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20434 (__futimens): Move implementation to...
20435 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20436 utime_tvalue_from_tspec): ... new helper functions.
20437 (hurd_futimens): New function.
20438 * sysdeps/mach/hurd/futimesat.c: New file.
20439 * sysdeps/mach/hurd/utimensat.c: New file.
20440
20441 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20442
20443 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20444 UTIME_OMIT): New macros.
20445 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20446 before reverting to converting time spec to time value and calling
20447 __file_utimes.
20448 * sysdeps/mach/hurd/utime-helper.c: New file.
20449 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20450 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20451 reverting to utime_tvalue_from_tval and __file_utimes.
20452 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20453 (__lutimes): Just call hurd_futimens after lookup.
20454 * sysdeps/mach/hurd/utimes.c: Likewise.
20455
20456 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20457
20458 * bits/sigaction.h: Add include guard.
20459 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20460 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20461 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20462 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20463 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20464 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20465 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20466 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20467 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20468
20469 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20470
20471 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20472 -Wmaybe-uninitialized for -Os.
20473 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20474 this disabling.
20475
20476 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20477
20478 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20479 __INO_T_MATCHES_INO64_T is defined.
20480 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20481 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20482 of definition.
20483 * dirent/alphasort64.c: Likewise.
20484 * dirent/scandir.c: Likewise.
20485 * dirent/scandir64-tail.c: Likewise.
20486 * dirent/scandir64.c: Likewise.
20487 * dirent/scandirat.c: Likewise.
20488 * dirent/scandirat64.c: Likewise.
20489 * dirent/versionsort.c: Likewise.
20490 * dirent/versionsort64.c: Likewise.
20491 * include/dirent.h: Likewise.
20492
20493 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20494 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20495 for socketpair endpoint.
20496 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20497 WRITE_BUFFER_SIZE as buffer size for sending socket.
20498 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20499 issue on system where send is implemented with sendto syscall.
20500 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20501 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20502 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20503 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20504
20505 [BZ #21269]
20506 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20507 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20508 sa_restorer for vDSO case.
20509 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20510
20511 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20512
20513 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20514 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20515 * hurd/hurd/ioctl.h: Include <mach/port.h>
20516 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20517 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20518 <mach/mach_types.h> and <mach/message.h>.
20519 (headers): Move mach/param.h to bits/mach/param.h.
20520 * sysdeps/mach/i386/mach/param.h: Move file to ...
20521 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20522 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20523 of <mach/param.h>.
20524 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20525 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20526 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20527 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20528 trivial, for C++ conformity.
20529 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20530 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20531 Process mig output through $(migheadersed).
20532 * hurd/Makefile (migheadersed): Define variable.
20533 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20534 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20535 headers.
20536 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20537 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20538 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20539 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20540 <bits/types/sigset_t.h>.
20541 [!defined __USE_GNU]: Do not #error out.
20542 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20543 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20544 Include <stddef.h> and <bits/types/sigset_t.h>
20545 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20546 instead of sighandler_t.
20547 * stdlib/errno.h (error_t): Move definition to...
20548 * bits/types/error_t.h: ... new header.
20549 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20550 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20551 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20552 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20553 * hurd/hurd.h: Include <bits/types/error_t.h>
20554 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20555 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20556 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20557 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20558 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20559 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20560 * sysdeps/mach/hurd/futimens.c: New file.
20561
20562 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20563
20564 [BZ #22918]
20565 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20566 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20567 * nscd/gai.c (__nss_hosts_database): Readd definition.
20568 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20569 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20570 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20571
20572 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20573
20574 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20575 (ifunc_one): Likewise.
20576
20577 2018-03-01 DJ Delorie <dj@delorie.com>
20578
20579 [BZ #22342]
20580 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20581 key value.
20582
20583 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20584
20585 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20586 `match_pid' parameter.
20587 (td_ta_thr_iter): Update accordingly.
20588
20589 2018-03-01 Florian Weimer <fweimer@redhat.com>
20590
20591 * nptl/Makefile (install-lib-ldscripts): Remove.
20592 (install): Remove rule.
20593 ($(inst_libdir)/libpthread.so): Likewise.
20594
20595 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20596
20597 [BZ #22896]
20598 * localedata/locales/an_ES: update month and day names,
20599 improve d_fmt, improve postal_fmt, add country_post,
20600 add country_isbn
20601
20602 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20603
20604 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20605 Ukrainian instead of Bulgarian.
20606
20607 2018-03-01 Florian Weimer <fweimer@redhat.com>
20608
20609 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20610 reference.
20611
20612 2018-03-01 Florian Weimer <fweimer@redhat.com>
20613
20614 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20615 * nptl/Makefile (routines): Add pthread_atfork.
20616 (static-only-routines): Set to pthread_atfork.
20617 (libpthread-routines): Remove pthread_atfork.
20618 (libpthread-static-only-routines): Remove.
20619 (install): Update comment.
20620 (libpthread.so): Do not install libpthread_nonshared.a.
20621 (tests): Do not link with libpthread_nonshared.a.
20622 (generated): Remove libpthread_nonshared.a.
20623 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20624 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20625 with libpthread_nonshared.a.
20626
20627 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20628
20629 [BZ #22902]
20630 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20631 (libc_feholdexcept_setroundf128): New macro.
20632 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20633
20634 [BZ #15105]
20635 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20636 libc_hidden_def.
20637 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20638 * include/inttypes.h: New file.
20639
20640 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20641
20642 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20643 -Os in two more places.
20644
20645 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20646
20647 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20648 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20649 be sorted correctly at the moment because of a bug.
20650
20651 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20652
20653 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20654 treat ñ as a primary different character, sync the collation
20655 for Spanish with CLDR.
20656 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20657 * localedata/Makefile: Add new test files.
20658 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20659 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20660 collation order.
20661 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20662 * localedata/am_ET.UTF-8.in: New test file.
20663 * localedata/az_AZ.UTF-8.in: Likewise.
20664 * localedata/be_BY.UTF-8.in: Likewise.
20665 * localedata/ber_DZ.UTF-8.in: Likewise.
20666 * localedata/ber_MA.UTF-8.in: Likewise.
20667 * localedata/bg_BG.UTF-8.in: Likewise.
20668 * localedata/br_FR.UTF-8.in: Likewise.
20669 * localedata/cmn_TW.UTF-8.in: Likewise.
20670 * localedata/crh_UA.UTF-8.in: Likewise.
20671 * localedata/csb_PL.UTF-8.in: Likewise.
20672 * localedata/cv_RU.UTF-8.in: Likewise.
20673 * localedata/cy_GB.UTF-8.in: Likewise.
20674 * localedata/dz_BT.UTF-8.in: Likewise.
20675 * localedata/eo.UTF-8.in: Likewise.
20676 * localedata/es_ES.UTF-8.in: Likewise.
20677 * localedata/fa_IR.UTF-8.in: Likewise.
20678 * localedata/fi_FI.UTF-8.in: Likewise.
20679 * localedata/fil_PH.UTF-8.in: Likewise.
20680 * localedata/fur_IT.UTF-8.in: Likewise.
20681 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20682 * localedata/ha_NG.UTF-8.in: Likewise.
20683 * localedata/ig_NG.UTF-8.in: Likewise.
20684 * localedata/ik_CA.UTF-8.in: Likewise.
20685 * localedata/kk_KZ.UTF-8.in: Likewise.
20686 * localedata/ku_TR.UTF-8.in: Likewise.
20687 * localedata/ky_KG.UTF-8.in: Likewise.
20688 * localedata/ln_CD.UTF-8.in: Likewise.
20689 * localedata/mi_NZ.UTF-8.in: Likewise.
20690 * localedata/ml_IN.UTF-8.in: Likewise.
20691 * localedata/mn_MN.UTF-8.in: Likewise.
20692 * localedata/mr_IN.UTF-8.in: Likewise.
20693 * localedata/mt_MT.UTF-8.in: Likewise.
20694 * localedata/nb_NO.UTF-8.in: Likewise.
20695 * localedata/om_KE.UTF-8.in: Likewise.
20696 * localedata/os_RU.UTF-8.in: Likewise.
20697 * localedata/ps_AF.UTF-8.in: Likewise.
20698 * localedata/ro_RO.UTF-8.in: Likewise.
20699 * localedata/ru_RU.UTF-8.in: Likewise.
20700 * localedata/sc_IT.UTF-8.in: Likewise.
20701 * localedata/se_NO.UTF-8.in: Likewise.
20702 * localedata/sq_AL.UTF-8.in: Likewise.
20703 * localedata/sv_SE.UTF-8.in: Likewise.
20704 * localedata/szl_PL.UTF-8.in: Likewise.
20705 * localedata/tg_TJ.UTF-8.in: Likewise.
20706 * localedata/tk_TM.UTF-8.in: Likewise.
20707 * localedata/tt_RU.UTF-8.in: Likewise.
20708 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20709 * localedata/ug_CN.UTF-8.in: Likewise.
20710 * localedata/uz_UZ.UTF-8.in: Likewise.
20711 * localedata/vi_VN.UTF-8.in: Likewise.
20712 * localedata/yi_US.UTF-8.in: Likewise.
20713 * localedata/yo_NG.UTF-8.in: Likewise.
20714 * localedata/zh_CN.UTF-8.in: Likewise.
20715 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20716 file and fix bugs in the collation.
20717 * localedata/locales/az_AZ: Likewise.
20718 * localedata/locales/be_BY: Likewise.
20719 * localedata/locales/ber_DZ: Likewise.
20720 * localedata/locales/ber_MA: Likewise.
20721 * localedata/locales/bg_BG: Likewise.
20722 * localedata/locales/br_FR: Likewise.
20723 * localedata/locales/br_FR@euro: Likewise.
20724 * localedata/locales/ca_ES: Likewise.
20725 * localedata/locales/cns11643_stroke: Likewise.
20726 * localedata/locales/crh_UA: Likewise.
20727 * localedata/locales/cs_CZ: Likewise.
20728 * localedata/locales/csb_PL: Likewise.
20729 * localedata/locales/cv_RU: Likewise.
20730 * localedata/locales/cy_GB: Likewise.
20731 * localedata/locales/da_DK: Likewise.
20732 * localedata/locales/dz_BT: Likewise.
20733 * localedata/locales/en_CA: Likewise.
20734 * localedata/locales/eo: Likewise.
20735 * localedata/locales/es_CU: Likewise.
20736 * localedata/locales/es_EC: Likewise.
20737 * localedata/locales/es_ES: Likewise.
20738 * localedata/locales/es_US: Likewise.
20739 * localedata/locales/et_EE: Likewise.
20740 * localedata/locales/fa_IR: Likewise.
20741 * localedata/locales/fi_FI: Likewise.
20742 * localedata/locales/fil_PH: Likewise.
20743 * localedata/locales/fur_IT: Likewise.
20744 * localedata/locales/gez_ER@abegede: Likewise.
20745 * localedata/locales/ha_NG: Likewise.
20746 * localedata/locales/hr_HR: Likewise.
20747 * localedata/locales/hsb_DE: Likewise.
20748 * localedata/locales/hu_HU: Likewise.
20749 * localedata/locales/ig_NG: Likewise.
20750 * localedata/locales/ik_CA: Likewise.
20751 * localedata/locales/is_IS: Likewise.
20752 * localedata/locales/iso14651_t1_pinyin: Likewise.
20753 * localedata/locales/kk_KZ: Likewise.
20754 * localedata/locales/ku_TR: Likewise.
20755 * localedata/locales/ky_KG: Likewise.
20756 * localedata/locales/ln_CD: Likewise.
20757 * localedata/locales/lt_LT: Likewise.
20758 * localedata/locales/lv_LV: Likewise.
20759 * localedata/locales/mi_NZ: Likewise.
20760 * localedata/locales/ml_IN: Likewise.
20761 * localedata/locales/mn_MN: Likewise.
20762 * localedata/locales/mr_IN: Likewise.
20763 * localedata/locales/mt_MT: Likewise.
20764 * localedata/locales/nb_NO: Likewise.
20765 * localedata/locales/om_KE: Likewise.
20766 * localedata/locales/os_RU: Likewise.
20767 * localedata/locales/pl_PL: Likewise.
20768 * localedata/locales/ps_AF: Likewise.
20769 * localedata/locales/ro_RO: Likewise.
20770 * localedata/locales/ru_RU: Likewise.
20771 * localedata/locales/ru_UA: Likewise.
20772 * localedata/locales/sc_IT: Likewise.
20773 * localedata/locales/se_NO: Likewise.
20774 * localedata/locales/si_LK: Likewise.
20775 * localedata/locales/sq_AL: Likewise.
20776 * localedata/locales/sv_FI: Likewise.
20777 * localedata/locales/sv_FI@euro: Likewise.
20778 * localedata/locales/sv_SE: Likewise.
20779 * localedata/locales/szl_PL: Likewise.
20780 * localedata/locales/tg_TJ: Likewise.
20781 * localedata/locales/ti_ER: Likewise.
20782 * localedata/locales/tk_TM: Likewise.
20783 * localedata/locales/tl_PH: Likewise.
20784 * localedata/locales/tr_TR: Likewise.
20785 * localedata/locales/tt_RU: Likewise.
20786 * localedata/locales/tt_RU@iqtelif: Likewise.
20787 * localedata/locales/ug_CN: Likewise.
20788 * localedata/locales/uk_UA: Likewise.
20789 * localedata/locales/uz_UZ: Likewise.
20790 * localedata/locales/uz_UZ@cyrillic: Likewise.
20791 * localedata/locales/vi_VN: Likewise.
20792 * localedata/locales/yi_US: Likewise.
20793 * localedata/locales/yo_NG: Likewise.
20794
20795 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20796
20797 * gen-locales.mk: Make test files which contain @ modifiers in their
20798 name work.
20799 * localedata/gen-locale.sh: Likewise.
20800
20801 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20802
20803 * posix/tst-fnmatch.input: Fix results for range expressions
20804 for non C locales.
20805 * posix/tst-regexloc.c: Do not use a range expression for
20806 de_DE.ISO-8859-1 locale.
20807
20808 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20809
20810 * posix/bug-regex5.c: Fix test case because with the new
20811 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20812 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20813 file.
20814
20815 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20816
20817 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20818 downloaded from ISO, the collation order of @-. and space has changed.
20819 Therefore, this test file needed to be adapted.
20820 * localedata/fr_CA.UTF-8.in: Likewise.
20821 * localedata/fr_FR.UTF-8.in: Likewise.
20822 * localedata/uk_UA.UTF-8.in: Likewise.
20823
20824 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20825
20826 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20827 order of ȥ in the new iso14651_t1_common file.
20828 * localedata/pl_PL.UTF-8.in: Likewise.
20829
20830 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20831
20832 * localedata/locales/iso14651_t1_common: Add sections for various
20833 scripts to the iso14651_t1_common file.
20834
20835 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20836
20837 * localedata/locales/iso14651_t1_common: Use the code point of a
20838 character in the fourth collation level instead of IGNORE for all
20839 entries which have IGNORE on all 4 levels.
20840
20841 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20842
20843 * localedata/locales/iso14651_t1_common: Add some convenient collation
20844 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20845 rules similar to those in CLDR.
20846
20847 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20848
20849 * localedata/locales/iso14651_t1_common: The new version of this
20850 file downloaded from ISO contained several syntax errors which
20851 are fixed by this patch.
20852
20853 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20854
20855 * localedata/locales/iso14651_t1_common: replace all <U.....>
20856 with <U000.....> because glibc understands only 4 digit or 8 digit
20857
20858 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20859
20860 * localedata/locales/iso14651_t1_common: Necessary changes
20861 to make the file downloaded from ISO usable by glibc.
20862
20863 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20864
20865 [BZ #14095]
20866 * localedata/locales/iso14651_t1_common: Update file to
20867 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20868
20869 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20870
20871 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20872 of <nptl/pthreadP.h>
20873 (thread_attr_compare): Move function to...
20874 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20875 * sysdeps/nptl/timer_routines.h: ... new header.
20876 * sysdeps/mach/hurd/gai_misc.h: New file.
20877
20878 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20879
20880 * string/strcoll_l.c: Include <libc-diag.h>.
20881 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20882 declarations of seq1 and seq2.
20883
20884 [BZ #15105]
20885 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20886 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20887
20888 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20889
20890 [BZ #22433]
20891 [BZ #22807]
20892 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20893 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20894 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20895 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20896 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20897 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20898
20899 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20900
20901 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20902 macros used in __ptrace_request.
20903
20904 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20905
20906 [BZ #22792]
20907 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20908 to $(CC).
20909 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20910 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20911 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20912 <tcb-offsets.h>.
20913
20914 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20915
20916 [BZ #15105]
20917 * ctype/ctype.c (tolower): Use libc_hidden_def.
20918 (toupper): Likewise.
20919 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20920 [!_ISOMAC] (toupper): Likewise.
20921
20922 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20923
20924 * localedata/Makefile: Remove --quiet argument when
20925 installing locales
20926
20927 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20928
20929 [BZ #17438]
20930 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20931 in d_fmt.
20932 * localedata/locales/pt_PT (LC_TIME): likewise
20933
20934 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20935
20936 [BZ #22646]
20937 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20938 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20939 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20940
20941 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20942
20943 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20944
20945 * nptl/Makefile (routines): Remove unregister-atfork.
20946 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20947 (fork_handler_alloc): Remove function.
20948 (fork_handlers, fork_handler_init): New variables.
20949 (__fork_lock): Rename to atfork_lock.
20950 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20951 to use a dynamic array to add/remove atfork handlers.
20952 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20953 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20954 Remove declaration.
20955 (fork_handler): Remove next, refcntr, and need_signal member.
20956 (__run_fork_handler_type): New enum.
20957 (__run_fork_handlers): New prototype.
20958 * nptl/register-atfork.c: Remove file.
20959 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20960
20961 * sysdeps/nptl/nptl-signals.h: Move to ...
20962 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20963 comments.
20964 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20965 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20966 unnecessary check for SIGTIMER.
20967 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20968 remove unnecessary removal of SIGTIMER.
20969 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20970 include-signals.h rename.
20971 * nptl/pthreadP.h: Likewise.
20972 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20973 __is_internal_signal instead of __nptl_is_internal_signal.
20974
20975 2018-02-22 Andrew Waterman <andrew@sifive.com>
20976
20977 [BZ # 22884]
20978 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20979 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20980 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20981 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20982
20983 2018-02-22 DJ Delorie <dj@delorie.com>
20984
20985 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20986
20987 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20988
20989 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20990 do_misaligned, not misaligned8.
20991
20992 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20993
20994 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20995 Add memcpy_thunderx2.
20996 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20997 Increment to 4.
20998 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20999 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
21000 and IS_THUNDERX2PA checks.
21001 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
21002 Use macro to set name appropriately.
21003 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
21004 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
21005 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
21006 New macro.
21007 (IS_THUNDERX2): New macro.
21008
21009 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
21010
21011 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21012
21013 2018-02-21 Zack Weinberg <zackw@panix.com>
21014
21015 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21016 Define here, unconditionally.
21017 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21018 * libio/libioP.h: Remove #if 0 blocks.
21019 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21020 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21021 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21022
21023 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21024 Assume weak_alias is always defined.
21025
21026 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21027 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21028 Remove #if 0 and #ifdef TODO blocks.
21029 Assume text_set_element is always defined.
21030
21031 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21032 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21033 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21034
21035 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21036 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21037 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21038 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21039 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21040 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21041 Reformat bit flags for _flags field to make occupancy clearer.
21042 Update commentary.
21043 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21044 Keep definitions consistent with those in libio/libio.h.
21045
21046 * libio/libio.h (_IO_file_flags): Remove macro.
21047 All uses changed to _flags.
21048
21049 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21050 (__HAVE_COLUMN, _IO_BE): Don't define.
21051 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21052 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21053 * libio/libioP.h (EOF): Don't define.
21054 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21055 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21056 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21057 testing _IO_UNIFIED_JUMPTABLES.
21058
21059 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21060 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21061 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21062 (_IO_size_t): Delete; all uses changed to size_t.
21063 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21064 (_IO_off_t): Delete; all uses changed to off_t.
21065 (_IO_off64_t): Delete; all uses changed to off64_t.
21066 (_IO_pid_t): Delete; all uses changed to pid_t.
21067 (_IO_uid_t): Delete; all uses changed to uid_t.
21068 (_IO_wint_t): Delete; all uses changed to wint_t.
21069 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21070 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21071 (_IO_cookie_io_functions_t): Delete; all uses changed to
21072 cookie_io_functions_t.
21073 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21074 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21075 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21076 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21077
21078 * libio/iofopncook.c: Remove unnecessary forward declarations.
21079 * libio/iolibio.h: Correct outdated commentary.
21080 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21081 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21082 Remove unnecessary casts.
21083 * stdio-common/getline.c: Use _IO_getdelim directly.
21084 Don't redefine ssize_t.
21085 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21086 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21087 Remove outdated comments.
21088 * stdio-common/vfscanf.c: Don't redefine va_list.
21089
21090 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21091 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21092 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21093 which are always true, and __cplusplus, which is always false.
21094
21095 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21096
21097 [BZ #15105]
21098 [BZ #19463]
21099 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21100 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21101 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21102 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21103 libc_hidden_proto.
21104 [!_ISOMAC] (putc_unlocked): Likewise.
21105 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21106 define inline if [__USE_EXTERN_INLINES].
21107 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21108 putc_unlocked.
21109
21110 [BZ #15105]
21111 [BZ #19463]
21112 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21113 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21114 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21115 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21116 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21117 getc_unlocked.
21118 * time/tzfile.c (__tzfile_read): Likewise.
21119
21120 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21121
21122 [BZ #22517]
21123 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21124
21125 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21126
21127 * io/fcntl.h: Fix a typo in a comment.
21128
21129 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21130
21131 [BZ #22862]
21132 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21133 define _DEFAULT_SOURCE.
21134 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21135
21136 2018-02-21 Florian Weimer <fweimer@redhat.com>
21137
21138 [BZ #20890]
21139 * elf/cache.c (save_cache): Call fsync on temporary file before
21140 renaming it.
21141 (save_aux_cache): Call fdatasync on temporary file before renaming
21142 it.
21143
21144 2018-02-21 Florian Weimer <fweimer@redhat.com>
21145
21146 [BZ #22787]
21147 * include/caller.h: Remove file.
21148 * elf/dl-caller.c: Likewise.
21149 * elf/Makefile (dl-routines): Remove dl-caller.
21150 (shared-only-routines): Do not add dl-caller.
21151 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21152 __check_caller.
21153 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21154 member.
21155 (dl_open_worker): Do not call __check_caller.
21156 (_dl_open): Do not set caller_dl_open member.
21157 * elf/rtld.c (_rtld_global_ro): Do not initialize
21158 _dl_check_caller member.
21159 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21160 _dl_check_caller member.
21161 (_dl_check_caller): Remove declaration.
21162 * sysdeps/unix/sysv/linux/dl-execstack.c
21163 (_dl_make_stack_executable): Do not call __check_caller.
21164
21165 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21166
21167 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21168 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21169
21170 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21171
21172 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21173 description.
21174
21175 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21176
21177 [BZ #16335]
21178 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21179 of 199606L, 200112L, and 200809L.
21180 (_XOPEN_SOURCE): Document special values of 600 and 700.
21181 (_ISOC11_SOURCE): Document macro.
21182 (_ATFILE_SOURCE): Likewise.
21183 (_FORTIFY_SOURCE): Likewise.
21184
21185 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21186
21187 [BZ #15105]
21188 [BZ #19463]
21189 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21190 and define as weak alias of __ferror_unlocked. Use
21191 libc_hidden_weak.
21192 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21193 libc_hidden_proto.
21194 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21195 function if [__USE_EXTERN_INLINES].
21196 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21197 ferror_unlocked.
21198
21199 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21200
21201 [BZ #6889]
21202 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21203
21204 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21205
21206 [BZ #22818]
21207 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21208 the GLIBC_2.1 version.
21209
21210 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21211
21212 [BZ #21508]
21213 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21214 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21215 intl/tst-gettext-de.po from po/de.po by removing the
21216 POT-Creation-Date line.
21217 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21218 ../po/de.po.
21219 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21220 ../po/de.po.
21221
21222 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21223
21224 * mach/Makefile (headers): Add mach/param.h.
21225 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21226 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21227 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21228 (__ptsname_r): Move implementation to...
21229 (__ptsname_internal): ... new function. Add filling the STP
21230 structure.
21231
21232 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21233
21234 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21235 idouble to 1 ULP.
21236
21237 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21238
21239 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21240 syntax.
21241
21242 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21243
21244 * nptl/Makefile (tst-mutex8-ENV): Delete.
21245 * nptl/tst-mutex8.c (check_type):
21246 Add runtime check if mutex will be elided.
21247
21248 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21249
21250 [BZ #20980]
21251 [BZ #21234]
21252 * manual/install.texi (Configuring and compiling): Describe
21253 passing CC and CFLAGS on configure command line, not as
21254 environment variables. Use @code markup on those variables.
21255 Specify what options go in CC and what go in CFLAGS. Note the
21256 requirement to compile with optimization.
21257 * INSTALL: Regenerated.
21258
21259 [BZ #18124]
21260 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21261 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21262 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21263 __sigprocmask instead of sigprocmask.
21264 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21265 Likewise.
21266 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21267 __sigsetjmp and sigprocmask.
21268
21269 [BZ #15105]
21270 * include/argz.h (argz_next): Use libc_hidden_proto.
21271 (__argz_next): Likewise.
21272 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21273 (argz_next): Use libc_hidden_weak.
21274
21275 [BZ #15105]
21276 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21277 libc_hidden_proto.
21278 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21279 libc_hidden_def.
21280
21281 [BZ #15105]
21282 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21283 libc_hidden_proto.
21284 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21285
21286 [BZ #15105]
21287 [BZ #19463]
21288 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21289 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21290 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21291 (__feof_unlocked): New declaration, and inline function if
21292 [__USE_EXTERN_INLINES].
21293 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21294 instead of feof_unlocked.
21295 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21296 * nss/nsswitch.c (nss_parse_file): Likewise.
21297 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21298 Likewise.
21299 * time/getdate.c (__getdate_r): Likewise.
21300 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21301 Define as macro to call __feof_unlocked.
21302
21303 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21304
21305 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21306
21307 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21308
21309 * math/Makefile: Remove mpexp.c and mplog.c
21310 * sysdeps/i386/fpu/mpexp.c: Delete file.
21311 * sysdeps/i386/fpu/mplog.c: Likewise.
21312 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21313 * sysdeps/ia64/fpu/mplog.c: Likewise.
21314 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21315 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21316 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21317 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21318 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21319 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21320 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21321 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21322 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21323 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21324 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21325 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21326 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21327 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21328 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21329 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21330
21331 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21332
21333 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21334
21335 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21336
21337 * sysdeps/sh/libm-test-ulps: Update.
21338
21339 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21340
21341 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21342 idouble to 1 ULP.
21343
21344 2018-02-12 Zack Weinberg <zackw@panix.com>
21345
21346 [BZ #19239]
21347 * posix/sys/types.h: Don't include sys/sysmacros.h.
21348 * misc/sys/sysmacros.h: Remove the conditional deprecation
21349 warnings for the macros defined by this header.
21350
21351 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21352
21353 * manual/probes.texi: Remove slowexp probes.
21354 * math/Makefile: Remove slowexp.
21355 * sysdeps/generic/math_private.h (__slowexp): Remove.
21356 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21357 document error bounds.
21358 * sysdeps/i386/fpu/slowexp.c: Remove.
21359 * sysdeps/ia64/fpu/slowexp.c: Remove.
21360 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21361 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21362 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21363 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21364 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21365 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21366 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21367 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21368 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21369 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21370 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21371
21372 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21373
21374 [BZ #13932]
21375 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21376 * benchtests/pow-inputs: Update comment for slow path cases.
21377 * manual/probes.texi (slowpow_p10): Delete removed probe.
21378 (slowpow_p10): Likewise.
21379 * math/Makefile: Remove halfulp.c and slowpow.c.
21380 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21381 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21382 (__halfulp): Remove.
21383 (__slowpow): Remove.
21384 * sysdeps/i386/fpu/halfulp.c: Delete file.
21385 * sysdeps/i386/fpu/slowpow.c: Likewise.
21386 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21387 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21388 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21389 improve comments and add error analysis.
21390 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21391 (power1): Remove function:
21392 (log1): Remove error argument, add error analysis.
21393 (my_log2): Remove function.
21394 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21395 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21396 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21397 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21398 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21399 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21400 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21401 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21402 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21403 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21404 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21405 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21406 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21407 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21408
21409 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21410
21411 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21412 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21413
21414 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21415
21416 [BZ #22433]
21417 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21418 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21419 and PTRACE_SETHBPREGS.
21420
21421 2018-02-10 Zack Weinberg <zackw@panix.com>
21422
21423 [BZ #22830]
21424 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21425 correctly.
21426 * malloc/tst-malloc-stats-cancellation.c: New test case.
21427 * malloc/Makefile: Add new test case.
21428
21429 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21430
21431 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21432
21433 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21434
21435 * math/Makefile (libm-narrow-fns): Add add.
21436 (libm-test-funcs-narrow): Likewise.
21437 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21438 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21439 * math/gen-auto-libm-tests.c (test_functions): Add add.
21440 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21441 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21442 (NARROW_ADD_TRIVIAL): Likewise.
21443 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21444 macro.
21445 (__daddl): Likewise.
21446 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21447 dadd.
21448 (CFLAGS-nldbl-dadd.c): New variable.
21449 (CFLAGS-nldbl-fadd.c): Likewise.
21450 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21451 __nldbl_daddl.
21452 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21453 prototype.
21454 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21455 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21456 * math/auto-libm-test-in: Add tests of add.
21457 * math/auto-libm-test-out-narrow-add: New generated file.
21458 * math/libm-test-narrow-add.inc: New file.
21459 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21460 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21461 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21462 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21463 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21464 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21465 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21466 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21467 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21468 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21469 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21470 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21471 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21472 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21473 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21474 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21475 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21476 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21477 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21478 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21479 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21480 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21481 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21482 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21483 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21484 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21485 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21486 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21487 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21488 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21489 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21490 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21492 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21493 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21494 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21495 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21496 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21497 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21498 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21499 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21500 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21501 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21502 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21503 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21504 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21505
21506 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21507 (f128-pairs): New variable.
21508 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21509 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21510 to CFLAGS.
21511 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21512 Also make tests add $(f128-loader-link) to gnulib-tests.
21513
21514 2018-02-09 DJ Delorie <dj@redhat.com>
21515
21516 [BZ #22827]
21517 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21518 64-bit ELF type for 64-bit ELF objects.
21519
21520 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21521
21522 * math/libm-test-driver.c (snan_tests_arg): New variable.
21523 * math/libm-test-support.h (snan_tests_arg): New declaration.
21524 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21525
21526 * math/Makefile (test-type-pairs): New variable.
21527 (test-type-pairs-f64xf128-yes): Likewise.
21528 (tests): Add test-narrow-macros.
21529 (libm-test-funcs-narrow): New variable.
21530 (libm-test-c-narrow): Likewise.
21531 (generated): Add $(libm-test-c-narrow).
21532 (libm-tests-base-narrow): New variable.
21533 (libm-tests-narrow): Likewise.
21534 (libm-tests): Add $(libm-tests-narrow).
21535 (libm-tests-for-type): Handle $(libm-tests-narrow).
21536 (libm-test-c-narrow-obj): New variable.
21537 ($(libm-test-c-narrow-obj)): New rule.
21538 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21539 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21540 $(o-iterator) to set dependencies and CFLAGS.
21541 * math/gen-auto-libm-tests.c: Document use for narrowing
21542 functions.
21543 (output_for_one_input_case): Take argument NARROW.
21544 (generate_output): Likewise. Update call to
21545 output_for_one_input_case.
21546 (main): Take --narrow option. Update call to generate_output.
21547 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21548 (apply_lit): Update call to _apply_lit.
21549 (apply_arglit): New function.
21550 (parse_args): Handle "a" arguments.
21551 (parse_auto_input): Handle format names using ":".
21552 * math/README.libm-test: Document "a" parameter type.
21553 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21554 (ARG_TYPE_TRUE_MIN): Likewise.
21555 (ARG_TYPE_MAX): Likwise.
21556 (ARG_MIN_EXP): Likewise.
21557 (ARG_MAX_EXP): Likewise.
21558 (ARG_MANT_DIG): Likewise.
21559 (TEST_COND_arg_ibm128): Likewise.
21560 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21561 (TEST_COND_arg_fmt): New macro.
21562 (init_max_error): Update prototype.
21563 * math/libm-test-support.c (test_ibm128): New variable.
21564 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21565 instead of using [TEST_COND_ibm128] conditional.
21566 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21567 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21568 [TEST_NARROW] (TEST_MSG): New definition.
21569 (arg_plus_zero): New macro.
21570 (arg_minus_zero): Likewise.
21571 (arg_plus_infty): Likewise.
21572 (arg_minus_infty): Likewise.
21573 (arg_qnan_value_pl): Likewise.
21574 (arg_qnan_value): Likewise.
21575 (arg_snan_value_pl): Likewise.
21576 (arg_snan_value): Likewise.
21577 (arg_max_value): Likewise.
21578 (arg_min_value): Likewise.
21579 (arg_min_subnorm_value): Likewise.
21580 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21581 (RUN_TEST_LOOP_aa_f): New macro.
21582 (TEST_SUFF): New macro.
21583 (TEST_SUFF_STR): Likewise.
21584 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21585 (TEST_COND_any_ibm128): New macro.
21586 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21587 this_func. Update call to init_max_error.
21588 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21589 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21590 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21591 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21592 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21593 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21594 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21595 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21596 * math/test-math-vector.h (TEST_NARROW): Likewise.
21597 * math/test-arg-double.h: New file.
21598 * math/test-arg-float128.h: Likewise.
21599 * math/test-arg-float32x.h: Likewise.
21600 * math/test-arg-float64.h: Likewise.
21601 * math/test-arg-float64x.h: Likewise.
21602 * math/test-arg-ldouble.h: Likewise.
21603 * math/test-math-narrow.h: Likewise.
21604 * math/test-narrow-macros.c: Likewise.
21605 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21606 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21607 test-narrow-macros-ldbl-64.
21608 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21609
21610 * math/bits/mathcalls-narrow.h: New file.
21611 * include/bits/mathcalls-narrow.h: Likewise.
21612 * math/math-narrow.h: Likewise.
21613 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21614 (__MATHCALL_NARROW_ARGS_2): Likewise.
21615 (__MATHCALL_NARROW_ARGS_3): Likewise.
21616 (__MATHCALL_NARROW_NORMAL): Likewise.
21617 (__MATHCALL_NARROW_REDIR): Likewise.
21618 (__MATHCALL_NARROW): Likewise.
21619 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21620 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21621 defined.
21622 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21623 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21624 (libm-narrow-fns): New variable.
21625 (libm-narrow-types-basic): Likewise.
21626 (libm-narrow-types-ldouble-yes): Likewise.
21627 (libm-narrow-types-float128-yes): Likewise.
21628 (libm-narrow-types-float128-alias-yes): Likewise.
21629 (libm-narrow-types): Likewise.
21630 (libm-routines): Add narrowing functions.
21631 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21632 (libc_feholdexcept_setroundf128): New macro.
21633 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21634 * sysdeps/ieee754/float128/float128_private.h: Include
21635 <math/math-narrow.h>.
21636 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21637 Undefine and redefine.
21638 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21639 (libm_alias_float_ldouble): Undefine and redefine.
21640 (libm_alias_double_ldouble): Likewise.
21641
21642 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21643
21644 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21645
21646 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21647 FPCR/FPSR.
21648
21649 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21650
21651 * manual/creature.texi: Convert references to gcc.info to gcc.
21652 * manual/stdio.texi: Likewise.
21653 * manual/string.texi: Likewise.
21654
21655 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21656
21657 [BZ #17979]
21658 * posix/bits/types.h (__int_least8_t): New typedef.
21659 (__uint_least8_t): Likewise.
21660 (__int_least16_t): Likewise.
21661 (__uint_least16_t): Likewise.
21662 (__int_least32_t): Likewise.
21663 (__uint_least32_t): Likewise.
21664 (__int_least64_t): Likewise.
21665 (__uint_least64_t): Likewise.
21666 * sysdeps/generic/stdint.h (int_least8_t): Define using
21667 __int_least8_t.
21668 (int_least16_t): Define using __int_least16_t.
21669 (int_least32_t): Define using __int_least32_t.
21670 (int_least64_t): Define using __int_least64_t.
21671 (uint_least8_t): Define using __uint_least8_t.
21672 (uint_least16_t): Define using __uint_least16_t.
21673 (uint_least32_t): Define using __uint_least32_t.
21674 (uint_least64_t): Define using __uint_least64_t.
21675 * wcsmbs/uchar.h: Include <bits/types.h>.
21676 (char16_t): Define using __uint_least16_t conditional only on
21677 [!__USE_ISOCXX11].
21678 (char32_t): Define using __uint_least32_t conditional only on
21679 [!__USE_ISOCXX11].
21680 * wcsmbs/test-char-types.c: New file.
21681 * wcsmbs/Makefile (tests): Add test-char-types.
21682
21683 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21684 version to 4.0.1.
21685
21686 2018-02-07 Zack Weinberg <zackw@panix.com>
21687
21688 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21689 Delete all contents except for definitions of _G_HAVE_MMAP and
21690 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21691 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21692 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21693 change as above.
21694
21695 * libio/libio.h: Don't include bits/_G_config.h here.
21696 Include stddef.h with __need_wchar_t defined. Include
21697 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21698 Define _IO_iconv_t here, directly.
21699 Don't define _IO_HAVE_ST_BLKSIZE.
21700 * libio/libioP.h: Include _G_config.h here. Move include of
21701 shlib-compat.h up with rest of includes. Simplify conditionals
21702 controlling definition of _IO_JUMPS_OFFSET.
21703
21704 * csu/init.c: Remove always-true #if around entire file.
21705 Don't include stdio.h. Set _IO_stdin_used to hardwired
21706 constant 0x20001, and update commentary.
21707 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21708 Replace all uses of _G_va_list with __gnuc_va_list.
21709 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21710 instead of #if _IO_HAVE_ST_BLKSIZE.
21711 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21712 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21713 not #ifdef.
21714
21715 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21716 multiple-include guard to match.
21717 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21718 into this file.
21719 Remove preprocessor conditionals that are always true and/or
21720 redundant to other preprocessor conditionals in the same nest.
21721 Include shlib-compat.h unconditionally.
21722 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21723 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21724 defined after including stdio.h.
21725 Use __BEGIN_DECLS/__END_DECLS.
21726
21727 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21728 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21729 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21730
21731 2018-02-07 Zack Weinberg <zackw@panix.com>
21732
21733 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21734 New single-type headers split from _G_config.h.
21735 * libio/bits/types/cookie_io_functions_t.h
21736 * libio/bits/types/struct_FILE.h
21737 New single-type headers split from libio.h.
21738
21739 * libio/Makefile: Install the above new headers. Don't install
21740 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21741 bits/libio-ldbl.h.
21742 * libio/_G_config.h, libio/libio.h: Delete file.
21743
21744 * libio/bits/libio.h: Remove improper-inclusion guard.
21745 Include stdio.h and don't repeat anything that it does.
21746 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21747 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21748 __io_read_fn as cookie_read_function_t,
21749 __io_write_fn as cookie_write_function_t,
21750 __io_seek_fn as cookie_seek_function_t,
21751 __io_close_fn as cookie_close_function_t,
21752 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21753 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21754 here, in the "compatibility defines" section. Remove an #if 0
21755 block. Use the "body" macros from bits/types/struct_FILE.h to
21756 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21757 and _IO_ferror_unlocked.
21758 Move prototypes of __uflow and __overflow...
21759
21760 * libio/stdio.h: ...here. Don't include bits/libio.h.
21761 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21762 directly from stdarg.h. Include bits/types/__fpos_t.h,
21763 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21764 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21765 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21766 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21767 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21768 __ssize_t, not _IO_ssize_t. Unconditionally define
21769 BUFSIZ as 8192 and EOF as (-1).
21770
21771 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21772 macros from bits/types/struct_FILE.h instead of _IO_* macros
21773 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21774 instead of _IO_ssize_t.
21775 * libio/bits/stdio2.h: Similarly.
21776
21777 * libio/iolibio.h: Add multiple-include guard.
21778 Include bits/libio.h after stdio.h.
21779 * libio/libioP.h: Add multiple-include guard.
21780 Include stdio.h and bits/libio.h before iolibio.h.
21781
21782 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21783 * include/bits/types/cookie_io_functions_t.h
21784 * include/bits/types/struct_FILE.h: New wrappers.
21785
21786 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21787 Get definitions of _G_fpos_t and _G_fpos64_t from
21788 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21789 respectively. Remove improper-inclusion guards.
21790
21791 * conform/data/stdio.h-data: Update expectations of va_list.
21792 * scripts/check-installed-headers.sh: Remove special case for
21793 libio.h and _G_config.h.
21794
21795 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21796
21797 [BZ #15105]
21798 [BZ #19463]
21799 * include/sys/sysmacros.h [!_ISOMAC]
21800 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21801 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21802 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21803 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21804 libc_hidden_proto.
21805 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21806 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21807 Likewise.
21808 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21809 Undefine and redefine to add use __gnu_dev_ prefix.
21810 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21811 Likewise.
21812 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21813 and define as hidden inline function.
21814 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21815 Likewise.
21816 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21817 Likewise.
21818 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21819 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21820 (gnu_dev_minor): Likewise.
21821 (gnu_dev_makedev): Likewise.
21822 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21823 makedev.
21824 * posix/wordexp.c (exec_comm_child): Likewise.
21825 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21826 instead of minor and __gnu_dev_major instead of major.
21827 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21828 __gnu_dev_major instead of major.
21829 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21830 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21831 instead of gnu_dev_minor.
21832 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21833 (SLAVE_P): Likewise.
21834 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21835 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21836 instead of major.
21837
21838 [BZ #21313]
21839 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21840 in another place.
21841 * locale/weightwc.h (findidx): Likewise.
21842
21843 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21844
21845 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21846 (slowlog_inexact): Likewise
21847 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21848 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21849
21850 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21851
21852 [BZ #22797]
21853 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21854 missing second underscore to parameter name.
21855
21856 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21857
21858 [BZ #14508]
21859 [BZ #15512]
21860 [BZ #17082]
21861 [BZ #20530]
21862 * bits/byteswap.h: Update file comment. Do not include
21863 <bits/byteswap-16.h>.
21864 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21865 constant.
21866 (__bswap_16): Define as inline function.
21867 (__bswap_constant_32): Reformat definition.
21868 (__bswap_32): Always define as inline function, not macro, using
21869 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21870 otherwise __bswap_constant_32.
21871 (__bswap_constant_64): Reformat definition. Do not use
21872 __extension__ here.
21873 (__bswap_64): Always define as inline function, not macro. Use
21874 __extension__ on function definition. Use __builtin_bswap64 if
21875 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21876 * string/test-endian-file-scope.c: New file.
21877 * string/test-endian-sign-conversion.c: Likewise.
21878 * string/Makefile (headers): Remove bits/byteswap-16.h.
21879 (tests): Add test-endian-file-scope and
21880 test-endian-sign-conversion.
21881 (CFLAGS-test-endian-sign-conversion.c): New variable.
21882 * bits/byteswap-16.h: Remove file.
21883 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21884 * sysdeps/ia64/bits/byteswap.h: Likewise.
21885 * sysdeps/m68k/bits/byteswap.h: Likewise.
21886 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21887 * sysdeps/s390/bits/byteswap.h: Likewise.
21888 * sysdeps/tile/bits/byteswap.h: Likewise.
21889 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21890 * sysdeps/x86/bits/byteswap.h: Likewise.
21891
21892 [BZ #17721]
21893 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21894 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21895 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21896 199901L] (__restrict): Define to restrict.
21897
21898 [BZ #19667]
21899 * string/testcopy.c: Include <support/support.h>. Do not include
21900 <malloc.h>. Use <support/test-driver.c>.
21901 (main): Rename to do_test. Make static. Use xmalloc instead of
21902 malloc.
21903
21904 [BZ #13575]
21905 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21906 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21907 (SSIZE_MAX): Define to INT_MAX.
21908 * posix/test-ssize-max.c: New file.
21909 * posix/Makefile (tests): Add test-ssize-max.
21910
21911 [BZ #19668]
21912 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21913 <support/support.h>. Do not include <malloc.h>.
21914 (query_auxv): Use xmalloc instead of malloc.
21915
21916 [BZ #14553]
21917 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21918 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21919 instead of loff_t.
21920
21921 2018-02-06 Florian Weimer <fweimer@redhat.com>
21922
21923 [BZ #18023]
21924 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21925 Use scratch_buffer instead of extend_alloca.
21926
21927 2018-02-06 Zack Weinberg <zackw@panix.com>
21928
21929 * libio/stdio.h: Don't define getc or putc as macros.
21930 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21931 not _IO_getc and _IO_putc.
21932
21933 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21934 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21935
21936 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21937
21938 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21939 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21940
21941 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21942
21943 [BZ #14890]
21944 * elf/elf.h (NT_PRFPREG): New macro.
21945 (NT_S390_VXRS_LOW): Likewise.
21946 (NT_S390_VXRS_HIGH): Likewise.
21947 (NT_S390_GS_CB): Likewise.
21948 (NT_S390_GS_BC): Likewise.
21949 (NT_S390_RI_CB): Likewise.
21950
21951 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21952 (MAP_SYNC): New macro.
21953 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21954 Likewise.
21955 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21956 (MAP_SYNC): Likewise.
21957 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21958 (MAP_SYNC): Likewise.
21959 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21960 (MAP_SYNC): Likewise.
21961 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21962 (MAP_SYNC): Likewise.
21963 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21964 (MAP_SYNC): Likewise.
21965 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21966 (MAP_SYNC): Likewise.
21967 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21968 Likewise.
21969 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21970 Likewise.
21971
21972 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21973 (MAP_SHARED_VALIDATE): New macro.
21974 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21975 (MAP_SHARED_VALIDATE): Likewise.
21976
21977 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21978
21979 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21980 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21981 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21982
21983 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21984
21985 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21986 (DT_NUM): Updated to 35.
21987
21988 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21989
21990 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21991 __builtin_expect with __glibc_likely and __glibc_unlikely.
21992 (elf_machine_rela): Likewise.
21993 (elf_machine_lazy_rel): Likewise.
21994
21995 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21996
21997 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21998 __builtin_expect with __glibc_likely and __glibc_unlikely.
21999 (elf_machine_lazy_rel): Likewise.
22000
22001 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22002
22003 [BZ #22638]
22004 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
22005 SHARED.
22006 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
22007
22008 2018-02-05 Andreas Schwab <schwab@suse.de>
22009
22010 [BZ #22761]
22011 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
22012 string.
22013
22014 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
22015
22016 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22017 not check against PTHREAD_STACK_MIN.
22018
22019 2018-02-02 Sean McKean <smckean83@gmail.com>
22020
22021 [BZ #22735]
22022 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22023
22024 2018-02-02 Florian Weimer <fweimer@redhat.com>
22025
22026 [BZ #22753]
22027 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22028 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22029 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22030 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22031 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22032 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22033 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22034 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22035 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22036 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22037 * misc/tst-preadvwritev2.c (do_test): Call it.
22038 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22039
22040 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22041
22042 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22043
22044 * benchtests/bench-memcmp.c: Print json instead of plain text.
22045
22046 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22047 every test run.
22048
22049 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22050
22051 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22052 version to 4.15.
22053 (s390_sthyi): New syscall.
22054
22055 * sysdeps/generic/ldbl-classify-compat.h: New file.
22056 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22057 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22058 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22059 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22060 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22061 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22062 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22063 <ldbl-classify-compat.h>.
22064 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22065 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22066 <ldbl-classify-compat.h>.
22067 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22068 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22069 <ldbl-classify-compat.h>.
22070 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22071 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22072 <ldbl-classify-compat.h>.
22073 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22074 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22075 <ldbl-classify-compat.h>.
22076 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22077 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22078 <ldbl-classify-compat.h>.
22079 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22080 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22081 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22082 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22083 * sysdeps/microblaze/math_private.h: Likewise.
22084 * sysdeps/nios2/math_private.h: Likewise.
22085 * sysdeps/sh/math_private.h: Likewise.
22086
22087 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22088 * sysdeps/m68k/coldfire/math_private.h: ... here.
22089 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22090 * sysdeps/tile/math_private.h: Likewise.
22091 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22092 Remove macro.
22093 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22094 Likewise.
22095
22096 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22097 Remove macro.
22098 (libc_fetestexcept): Likewise.
22099 (libc_feupdateenv_test): Likewise.
22100 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22101 (libc_fetestexcept): Likewise.
22102 (libc_feupdateenv_test): Likewise.
22103 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22104 (libc_fetestexcept): Likewise.
22105 (libc_feupdateenv_test): Likewise.
22106 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22107 (libc_fetestexcept): Likewise.
22108 (libc_feupdateenv_test): Likewise.
22109
22110 * sysdeps/generic/math_private.h
22111 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22112 New inline function.
22113 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22114 Likewise.
22115
22116 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22117 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22118 * sysdeps/generic/math_private.h
22119 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22120 inline function.
22121 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22122 Likewise.
22123 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22124 Likewise.
22125 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22126 Likewise.
22127 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22128 Likewise.
22129 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22130 Likewise.
22131 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22132 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22133 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22134 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22135 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22136 (__fegetenv): Likewise.
22137 (fesetenv): Likewise.
22138 (__fesetenv): Likewise.
22139 (feupdateenv): Likewise.
22140 (__feupdateenv): Likewise.
22141 (fegetround): Likewise.
22142 (__fegetround): Likewise.
22143 (fesetround): Likewise.
22144 (__fesetround): Likewise.
22145
22146 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22147 (feraiseexcept): New macro.
22148 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22149 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22150 Remove macro.
22151 (__feraiseexcept): Likewise.
22152 (feclearexcept): Likewise.
22153 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22154 (__feraiseexcept): Likewise.
22155 (feclearexcept): Likewise.
22156 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22157 (__feraiseexcept): Likewise.
22158 (feclearexcept): Likewise.
22159 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22160 (__feraiseexcept): Likewise.
22161 (feclearexcept): Likewise.
22162 (fetestexcept): Likewise.
22163
22164 * sysdeps/m68k/coldfire/math-tests.h: New file.
22165
22166 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22167 * sysdeps/m68k/bits/fenv.h: ... here.
22168 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22169 not define.
22170 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22171 Likewise.
22172 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22173 Likewise.
22174 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22175 Likewise.
22176 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22177 Likewise.
22178 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22179 Define to 0.
22180 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22181 (__FE_UNDEFINED): New enum constant.
22182 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22183 Do not define.
22184 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22185 Likewise.
22186 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22187 Likewise.
22188 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22189 to match generic bits/fenv.h.
22190 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22191 Do not define.
22192
22193 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22194 packed on bits.
22195 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22196 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22197 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22198 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22199
22200 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22201 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22202 Joseph Myers <joseph@codesourcery.com>
22203
22204 [BZ #21314]
22205 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22206 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22207 computation using c.
22208 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22209 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22210 computation using c.
22211
22212 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22213
22214 * version.h (RELEASE): Set to "development".
22215 (VERSION): Set to "2.27.9000".
22216 * NEWS (2.28): New section.
22217
22218 * version.h (RELEASE): Set to "stable".
22219 (VERSION): Set to "2.27".
22220 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22221
22222 * NEWS: Add the list of bugs fixed in 2.27.
22223
22224 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22225
22226 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22227 against PTHREAD_STACK_MIN.
22228
22229 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22230
22231 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22232 New entries.
22233 (Rafał Lużyński, Andreas Schwab): Update.
22234
22235 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22236
22237 [BZ #10871]
22238 * NEWS: List the languages which actually use the alternative
22239 months feature in this release. Also explain that "alt_mon" and
22240 "ab_alt_mon" are optional.
22241
22242 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22243
22244 [BZ #22765]
22245 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22246
22247 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22248
22249 * manual/install.texi (Tools for Compilation): Update the newest
22250 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22251 * INSTALL: Regenerated.
22252
22253 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22254
22255 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22256 instead of __builtin_expect.
22257
22258 2018-01-30 Florian Weimer <fweimer@redhat.com>
22259
22260 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22261 data.
22262 * nss/tst-nss-getpwent.c (do_test): Likewise.
22263
22264 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22265
22266 [BZ #10871]
22267 * localedata/locales/hr_HR (mon): Rename to...
22268 (alt_mon): This.
22269 (mon): Import from CLDR (genitive case).
22270 (d_t_fmt): Update the comment.
22271
22272 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22273
22274 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22275 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22276 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22277
22278 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22279
22280 * mach/Versions: Fix version when __mach_host_self_ was added.
22281 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22282 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22283 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22284 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22285 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22286 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22287 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22288 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22289 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22290 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22291 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22292 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22293 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22294 || to respect codestyle.
22295 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22296 (do_test_bz20181): Rename accordingly.
22297 * malloc/malloc.c: Include <assert.h>.
22298 (assert): Do not define.
22299 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22300 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22301 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22302 * sysdeps/mach/hurd/hp-timing.h: New file.
22303 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22304
22305 2018-01-29 Darius Rad <darius@bluespec.com>
22306
22307 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22308
22309 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22310
22311 * sysdeps/init_array/crti.S (.section .init_array): Add
22312 PREINIT_FUNCTION when defined.
22313 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22314 * config.h.in: Regenerate.
22315 * manual/platform.texi: Add RISC-V documenation for
22316 __riscv_flush_icache.
22317 * sysdeps/riscv/__longjmp.S: New file.
22318 * sysdeps/riscv/backtrace.c: Likewise.
22319 * sysdeps/riscv/bits/endian.h: Likewise.
22320 * sysdeps/riscv/bits/setjmp.h: Likewise.
22321 * sysdeps/riscv/bits/wordsize.h: Likewise.
22322 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22323 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22324 * sysdeps/riscv/dl-trampoline.S: Likewise.
22325 * sysdeps/riscv/gccframe.h: Likewise.
22326 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22327 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22328 * sysdeps/riscv/machine-gmon.h: Likewise.
22329 * sysdeps/riscv/memusage.h: Likewise.
22330 * sysdeps/riscv/setjmp.S: Likewise.
22331 * sysdeps/riscv/sys/asm.h: Likewise.
22332 * sysdeps/riscv/tls-macros.h: Likewise.
22333 * sysdeps/riscv/dl-tls.h: New file.
22334 * sysdeps/riscv/libc-tls.c: Likewise.
22335 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22336 * sysdeps/riscv/nptl/tls.h: Likewise.
22337 * sysdeps/riscv/stackinfo.h: Likewise.
22338 * sysdeps/riscv/bits/fenv.h: New file.
22339 * sysdeps/riscv/e_sqrtl.c: Likewise.
22340 * sysdeps/riscv/fpu_control.h: Likewise.
22341 * sysdeps/riscv/math-tests.h: Likewise.
22342 * sysdeps/riscv/nofpu/Implies: Likewise.
22343 * sysdeps/riscv/sfp-machine.h: Likewise.
22344 * sysdeps/riscv/tininess.h: Likewise.
22345 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22346 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22347 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22348 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22349 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22350 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22351 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22352 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22353 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22354 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22355 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22356 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22357 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22358 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22359 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22360 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22361 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22362 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22363 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22364 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22365 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22366 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22367 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22368 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22369 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22370 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22371 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22372 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22373 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22374 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22375 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22376 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22377 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22378 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22379 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22380 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22381 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22382 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22383 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22384 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22385 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22386 * sysdeps/riscv/rvf/math_private.h: Likewise.
22387 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22388 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22389 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22390 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22391 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22392 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22393 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22394 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22395 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22396 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22397 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22398 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22399 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22400 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22401 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22402 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22403 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22404 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22405 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22406 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22407 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22408 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22409 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22410 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22411 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22412 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22413 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22414 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22415 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22416 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22417 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22418 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22419 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22420 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22421 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22422 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22423 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22424 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22425 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22426 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22427 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22428 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22429 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22430 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22431 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22432 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22433 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22434 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22435 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22436 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22437 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22438 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22439 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22440 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22441 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22442 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22443 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22444 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22445 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22446 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22447 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22448 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22449 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22450 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22451 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22452 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22453 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22454 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22455 * sysdeps/riscv/Implies: New file.
22456 * sysdeps/riscv/Makefile: Likewise.
22457 * sysdeps/riscv/configure: Likewise.
22458 * sysdeps/riscv/configure.ac: Likewise.
22459 * sysdeps/riscv/nptl/Makefile: Likewise.
22460 * sysdeps/riscv/preconfigure: Likewise.
22461 * sysdeps/riscv/rv64/Implies-after: Likewise.
22462 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22463 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22464 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22465 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22466 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22467 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22468 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22469 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22470 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22471 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22472 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22473 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22474 (Config): Likewise.
22475
22476 2018-01-29 Florian Weimer <fweimer@redhat.com>
22477
22478 [BZ #22701]
22479 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22480 libnsl_hidden_proto.
22481 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22482 libnsl_hidden_proto.
22483 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22484 * nis/Makefile (libnsl-routines): Add nss-default only for
22485 build-obsolete-nsl.
22486 * nis/nis_defaults.c (__nis_default_ttl): Add
22487 libnsl_hidden_nolink_def.
22488 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22489 declaration.
22490 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22491 * nis/ypclnt.c (yp_maplist): Likewise.
22492
22493 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22494
22495 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22496 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22497
22498 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22499
22500 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22501 clean -dxfq for git updates when replacing sources.
22502
22503 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22504 --disable-libcilkrts unconditionally, not just for the final GCC
22505 build for Hurd.
22506
22507 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22508 version to 4.15.
22509
22510 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22511
22512 [BZ #10871]
22513 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22514 case).
22515
22516 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22517
22518 [BZ #10871]
22519 * localedata/locales/be_BY (mon): Rename to...
22520 (alt_mon): This, then synchronize with CLDR (nominative case).
22521 (abmon): Rename to...
22522 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22523 (mon): Import from CLDR (genitive case).
22524 (abmon): Likewise.
22525 * localedata/locales/be_BY@latin (mon): Rename to...
22526 (alt_mon): This.
22527 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22528
22529 * localedata/locales/be_BY@latin (lang_name): Reworded to
22530 "biełaruskaja mova".
22531
22532 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22533
22534 [BZ #10871]
22535 * localedata/locales/el_CY (mon): Renamed to...
22536 (alt_mon): This.
22537 (mon): Import from CLDR (genitive case).
22538 * localedata/locales/el_GR: Likewise.
22539
22540 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22541
22542 [BZ #10871]
22543 * localedata/locales/ru_RU (mon): Rename to...
22544 (alt_mon): This.
22545 (abmon): Rename to...
22546 (ab_alt_mon): This.
22547 (mon): Import from CLDR (genitive case).
22548 (abmon): Copy from the old content except the 5th month which is
22549 now in the genitive case, even when abbreviated.
22550 * localedata/locales/ru_UA: Likewise.
22551 * time/tst-strptime.c (day_tests): Add an actual example of
22552 a difference between %b and %Ob in Russian.
22553
22554 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22555
22556 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22557 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22558 a `c' variable.
22559 * resolv/res-close.c: Include <stdlib.h>.
22560 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22561 <sys/wait.h>, <time.h>, <sys/uio.h>.
22562 (NOT_CANCEL_H): Add inclusion guard.
22563 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22564 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22565 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22566 return 0.
22567 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22568 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22569 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22570 instead of void *.
22571 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22572 timer_ptr2id to cast struct timer_node * to void *.
22573 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22574 --disable-libcilkrts to gcc configure.
22575 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22576 and make them the default for now.
22577 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22578 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22579 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22580 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22581 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22582 MACH_IPC_COMPAT.
22583 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22584 __task_terminate would ever return successfully.
22585 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22586 to global scope.
22587 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22588 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22589 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22590 critical section to make code simpler and avoid warning.
22591 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22592 critical section to make code simpler and avoid warning.
22593 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22594 const char * instead of char *.
22595 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22596 __hurd_file_name_split, hurd_file_name_split,
22597 __hurd_directory_name_split, hurd_directory_name_split,
22598 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22599 hurd_file_name_path_lookup): Make lookup function parameter take a
22600 const char *name instead of char *name.
22601 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22602 __hurd_directory_name_split): Likewise.
22603 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22604 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22605 * sysdeps/mach/hurd/check_native.c: New file.
22606 * sysdeps/mach/hurd/check_pf.c: New file.
22607 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22608 (__freeifaddrs): Define macro to freeifaddrs.
22609 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22610 * sysdeps/mach/libmachuser.abilist: New file.
22611 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22612 (do_test_bz20181): Rename accordingly.
22613 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22614 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22615 <sys/mount.h>.
22616 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22617 version only if __USE_EXTERN_INLINES is defined.
22618 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22619 __hurd_sockfail): Likewise.
22620 (_hurd_fd_get): Always declare functions, and provide inline versions
22621 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22622 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22623 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22624 _hurd_port_set): Always declare functions, and provide inline versions
22625 only if __USE_EXTERN_INLINES and _LIBC are defined and
22626 IS_IN(libc).
22627 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22628 _hurd_critical_section_unlock): Likewise.
22629 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22630 * __hurd_threadvar_location): Likewise.
22631 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22632 _hurd_userlink_clear): Likewise.
22633 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22634 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22635 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22636 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22637 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22638 __spin_lock_locked): Likewise.
22639 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22640 __spin_lock_locked): Likewise.
22641 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22642 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22643 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22644 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22645 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22646 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22647 _POSIX_NO_TRUNC): Define to 0.
22648 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22649 check size against PTHREAD_STACK_MIN.
22650 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22651 IS_IN(libpthread)]: Include <sigsetops.h>.
22652 * mach/Makefile (user-interfaces): Add mach/gnumach.
22653 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22654 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22655 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22656 instead of invalid -1.
22657 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22658 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22659 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22660 <net/ppp_defs.h>.
22661
22662 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22663
22664 * hurd/fcntl-internal.h: New file.
22665
22666 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22667
22668 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22669
22670 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22671
22672 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22673
22674 [BZ #22701]
22675 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22676 Build only shared objects.
22677
22678 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22679
22680 * README: Update for hppa.
22681
22682 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22683
22684 * sysdeps/sparc/fpu/libm-test-ulps: Update
22685 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22686
22687 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22688
22689 Revert:
22690
22691 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22692
22693 [BZ #22563]
22694 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22695 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22696 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22697 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22698 to feature_1.
22699
22700 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22701
22702 [BZ #22563]
22703 * bits/types/__cancel_jmp_buf_tag.h: New file.
22704 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22705 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22706 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22707 * nptl/Makefile (headers): Add
22708 bits/types/__cancel_jmp_buf_tag.h.
22709 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22710 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22711 * sysdeps/nptl/pthread.h: Include
22712 <bits/types/__cancel_jmp_buf_tag.h>.
22713 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22714 __cancel_jmp_buf.
22715 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22716
22717 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22718
22719 [BZ #10871]
22720 * localedata/locales/uk_UA (mon): Renamed to...
22721 (alt_mon): This.
22722 (alt_digits): "0" removed and then renamed to...
22723 (mon): This.
22724 (date_fmt): Definition changed not to use the alternative
22725 digits hack.
22726
22727 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22728
22729 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22730 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22731 * elf/elf.h (EF_RISCV_RVC): New define.
22732 (EF_RISCV_FLOAT_ABI): Likewise.
22733 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22734 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22735 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22736 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22737 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22738 define.
22739 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22740
22741 2018-01-25 Andreas Schwab <schwab@suse.de>
22742
22743 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22744 single quotes.
22745 * sysdeps/gnu/configure: Regenerate.
22746 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22747 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22749 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22750 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22751 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22752 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22753 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22754
22755 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22756
22757 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22758 URL, and run autoconf, make it the default for now.
22759
22760 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22761
22762 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22763 soft-float ColdFire configuration.
22764
22765 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22766 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22767 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22768
22769 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22770 MicroBlaze file.
22771
22772 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22773 ....
22774 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22775 ... here.
22776 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22777 New file.
22778
22779 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22780 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22781 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22782 file.
22783
22784 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22785
22786 [BZ #22742]
22787 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22788 Rename to __reserved and add comment.
22789 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22790 Rename to __reserved.
22791
22792 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22793
22794 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22795 i686-gnu configurations.
22796 (Context.run_builds): Include mig, gnumach and hurd in components
22797 considered.
22798 (Context.checkout): Add mig, gnumach and hurd to components.
22799 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22800 hurd.
22801 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22802 (Config.build): Install gnumach headers, build mig and install
22803 hurd headers for 'gnu' OS.
22804 (Config.install_gnumach_headers): New function.
22805 (Config.install_hurd_headers): Likewise.
22806 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22807 when building for 'gnu' OS.
22808
22809 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22810
22811 * manual/tunables.texi (Hardware Capability Tunables): Fix
22812 spelling.
22813
22814 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22815
22816 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22817 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22818 (ALTMON_11, ALTMON_12): Improve documentation.
22819 * manual/time.texi (strftime): Likewise.
22820
22821 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22822
22823 [BZ #10871]
22824 * localedata/locales/pl_PL: Alternative month names added,
22825 primary month names are genitive now.
22826 * time/tst-strptime.c (day_tests): Actually use a genitive case
22827 of a month name in Polish language.
22828
22829 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22830
22831 [BZ #10871]
22832 * manual/locale.texi: Document ALTMON_1..12 constants for
22833 nl_langinfo. Specify when to use ALTMON instead of MON.
22834 * manual/time.texi (strftime, strptime): Document GNU extension
22835 permitting O modifier with %B and %b. Specify when to use
22836 %OB instead of %B.
22837
22838 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22839
22840 [BZ #10871]
22841 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22842 names, define them as the same as abbreviated month names explicitly.
22843 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22844 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22845 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22846 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22847 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22848 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22849 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22850 _NL_WABALTMON_12): New enum constants.
22851 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22852 wab_alt_mon, and ab_alt_mon_defined members.
22853 (time_output): Output ab_alt_mon and wab_alt_mon members.
22854 (time_read): Read them, initialize them as copies of abmon and wabmon
22855 respectively if they are missing, initialize ab_alt_mon_defined.
22856 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22857 * locale/programs/locfile-kw.h: Regenerate.
22858 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22859 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22860 and ru_RU.UTF-8.
22861 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22862 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22863 (__strftime_internal): Handle %Ob and %Oh formats.
22864 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22865 (__strptime_internal): Handle %Ob and %Oh formats.
22866 * time/tst-strptime.c (day_tests): Add more tests to parse different
22867 forms of month names including the new %Ob format specifier.
22868
22869 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22870
22871 [BZ #10871]
22872 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22873 define them as the same as primary full month names explicitly.
22874 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22875 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22876 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22877 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22878 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22879 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22880 _NL_WALTMON_12): New enum constants.
22881 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22882 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22883 macros.
22884 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22885 walt_mon, and alt_mon_defined members.
22886 (time_output): Output alt_mon and walt_mon members.
22887 (time_read): Read them, initialize them as copies of mon and wmon
22888 respectively if they are missing, initialize alt_mon_defined.
22889 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22890 * locale/programs/locfile-kw.h: Regenerate.
22891 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22892 * localedata/tst-langinfo.c (map): Add tests for the new constants
22893 ALTMON_1 .. ALTMON_12.
22894 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22895 and pl_PL.UTF-8.
22896 * time/strftime_l.c (f_altmonth): New macro.
22897 (__strftime_internal): Handle %OB format.
22898 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22899 (__strptime_internal): Handle %OB format.
22900 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22901 of month names including the new %OB format specifier.
22902
22903 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22904
22905 [BZ #22685]
22906 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22907 from ABORT_TRANSACTION.
22908 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22909 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22910 ABORT_TRANSACTION_IMPL): Likewise.
22911 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22912 Linux code, but remove the code that aborts transactions.
22913
22914 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22915
22916 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22917
22918 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22919
22920 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22921 in date: "2004-14-09" should be "2004-09-14".
22922 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22923 "2003-15-09" should be "2003-09-15".
22924
22925 2018-01-18 Arjun Shankar <arjun@redhat.com>
22926
22927 [BZ #22343]
22928 [BZ #22774]
22929 CVE-2018-6485
22930 CVE-2018-6551
22931 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22932 after padding.
22933 (_int_memalign): check for integer overflow before calling
22934 _int_malloc.
22935 * malloc/tst-malloc-too-large.c: New test.
22936 * malloc/Makefile: Add tst-malloc-too-large.
22937
22938 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22939
22940 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22941 in date: "2017-24-07" should be "2017-07-24".
22942 * localedata/locales/mai_IN: Likewise.
22943 * localedata/locales/mai_NP: Likewise.
22944
22945 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22946
22947 * po/ru.po: Update translations.
22948
22949 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22950
22951 [BZ #22719]
22952 * sysdeps/hppa/backtrace.c: New file.
22953
22954 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22955
22956 [BZ #22715]
22957 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22958 align La_x86_64_retval to VEC_SIZE.
22959
22960 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22961
22962 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22963 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22964
22965 2018-01-16 Florian Weimer <fweimer@redhat.com>
22966
22967 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22968 Move tst-thread-exit-clobber ...
22969 [$(CXX)] (tests-unsupported): ... to here.
22970
22971 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22972
22973 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22974 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22975 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22976 (_dl_aarch64_cap_flags): Update.
22977 (_DL_HWCAP_COUNT): Update.
22978
22979 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22980
22981 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22982 (_DL_HWCAP_LAST): Remove.
22983 (_DL_HWCAP_COUNT): Move to ...
22984 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22985 (_DL_HWCAP_COUNT): ... here.
22986
22987 2018-01-16 Florian Weimer <fweimer@redhat.com>
22988
22989 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22990 mode with GNU extensions.
22991
22992 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22993
22994 * elf/elf.h (NT_ARM_SVE): Define.
22995
22996 2018-01-15 Florian Weimer <fweimer@redhat.com>
22997
22998 [BZ #22636]
22999 * nptl/tst-minstack-throw.cc: New file.
23000 * nptl/Makefile (tests): Add tst-minstack-throw.
23001 (LDLIBS-tst-minstack-throw): Link with libstdc++.
23002 [!CXX] (tests-unsupported): Add tst-minstack-throw.
23003
23004 2018-01-15 Joseph Myers <joseph@codesourcery.com>
23005
23006 * scripts/build-many-glibcs.py (Context.checkout): Default
23007 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
23008 version to 1.1.0.
23009
23010 2018-01-13 Carlos O'Donell <carlos@redhat.com>
23011
23012 [BZ #22707]
23013 * elf/elf.h (DF_1_STUB): Define.
23014 (DF_1_PIE): Define.
23015
23016 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23017
23018 [BZ #22697]
23019 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23020 Do not add 0.5 to integer or out-of-range arguments.
23021
23022 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23023
23024 * po/bg.po: Update translations.
23025 * po/cs.po: Likewise.
23026 * po/de.po: Likewise.
23027 * po/ko.po: Likewise.
23028 * po/pl.po: Likewise.
23029 * po/sv.po: Likewise.
23030 * po/uk.po: Likewise.
23031 * po/vi.po: Likewise.
23032
23033 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23034
23035 * aarch64/start.S (_start): Use __wrap_main.
23036 (__wrap_main): New local symbol.
23037
23038 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23039
23040 [BZ #22679]
23041 CVE-2018-1000001
23042 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23043 generic_getcwd if the path returned by getcwd syscall is not absolute.
23044 * io/tst-getcwd-abspath.c: New test.
23045 * io/Makefile (tests): Add tst-getcwd-abspath.
23046
23047 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23048
23049 * malloc/malloc.c (malloc_consolidate): Add size check.
23050
23051 2018-01-12 Florian Weimer <fweimer@redhat.com>
23052
23053 * support/write_message.c (write_message): Preserve errno.
23054 * support/check.c (print_failure): Likewise.
23055 * support/support_test_verify_impl.c (support_test_verify_impl):
23056 Likewise.
23057 * support/support_test_compare_failure.c
23058 (support_test_compare_failure): Likewise.
23059
23060 2018-01-12 Florian Weimer <fweimer@redhat.com>
23061
23062 [BZ #22701]
23063 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23064 Prevent installation of libnsl.so.
23065 (libnsl-inhibit-o): Do not build (or install) static libraries.
23066
23067 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23068
23069 [BZ #22657]
23070 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23071 before the day number which may produce a double space.
23072 (date_fmt): Likewise.
23073
23074 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23075
23076 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23077 instead of fegetenv.
23078
23079 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23080
23081 [BZ #22702]
23082 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23083 comment to say exceptions are discarded.
23084 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23085 __fegetenv.
23086 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23087 be enabled.
23088
23089 2018-01-11 Florian Weimer <fweimer@redhat.com>
23090
23091 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23092 and error message.
23093
23094 2018-01-11 Florian Weimer <fweimer@redhat.com>
23095
23096 [BZ #22636]
23097 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23098 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23099
23100 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23101
23102 [BZ #22693]
23103 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23104 negative arguments in test for NaN or infinity argument.
23105
23106 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23107
23108 * po/libc.pot: Regenerate.
23109
23110 2018-01-10 Florian Weimer <fweimer@redhat.com>
23111
23112 [BZ #22636]
23113 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23114 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23115
23116 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23117
23118 * hurd/hurd/fd.h: Include <fcntl.h>
23119 (__hurd_at_flags): New function.
23120 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23121 with call to __hurd_at_flags.
23122 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23123 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23124 __faccessat
23125 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23126 (__access_noerrno): Use __faccessat_common instead of access_common.
23127 (__access): Likewise.
23128 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23129 with a call to __faccessat.
23130 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23131 (__faccessat_common): ... this. Move implementation of __access into it when
23132 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23133 reauthenticate_cwdir_at helper to implement AT mechanism.
23134 (__faccessat_noerrno): New function, just calls __faccessat_common.
23135 (__faccessat): New function, just calls __faccessat_common.
23136 (faccessat): Define weak alias.
23137
23138 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23139
23140 [BZ #22691]
23141 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23142 (CFLAGS-s_fmaxmagl.c): New variable.
23143 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23144
23145 [BZ #22690]
23146 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23147 long int for arguments of possibly overflowing addition or
23148 subtraction.
23149 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23150
23151 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23152
23153 [BZ #22688]
23154 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23155 (CFLAGS-e_remainderl.c): New variable.
23156
23157 [BZ #22687]
23158 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23159 variable.
23160 (CFLAGS-s_cacoshl.c): Likewise.
23161 (CFLAGS-s_casinhl.c): Likewise.
23162 (CFLAGS-s_catanl.c): Likewise.
23163 (CFLAGS-s_catanhl.c): Likewise.
23164 (CFLAGS-s_cexpl.c): Likewise.
23165 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23166 (CFLAGS-s_csinhl.c): Likewise.
23167 (CFLAGS-s_clogl.c): Likewise.
23168 (CFLAGS-s_clog10l.c): Likewise.
23169 (CFLAGS-s_csinl.c): Likewise.
23170 (CFLAGS-s_csqrtl.c): Likewise.
23171
23172 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23173 2017-01-09 Svante Signell <svante.signell@gmail.com>
23174
23175 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23176 (_hurd_exec_paths): New function.
23177 * hurd/hurd.h (_hurd_exec): Deprecate function.
23178 (_hurd_exec_paths): Declare function.
23179 * hurd/Versions: Export _hurd_exec_paths.
23180 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23181 (__execve): Use __getcwd to build absolute path, and use
23182 _hurd_exec_paths instead of _hurd_exec.
23183 * sysdeps/mach/hurd/spawni.c: Likewise.
23184 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23185 _hurd_exec.
23186
23187 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23188
23189 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23190 test instead of failing in case of ENOENT returned by posix_openpt.
23191
23192 2018-01-08 Florian Weimer <fweimer@redhat.com>
23193
23194 resolv: Support binary labels in test framework.
23195 * support/resolv_test.c (struct to_be_freed): Remove.
23196 (struct compressed_name): New.
23197 (allocate_compressed_name, ascii_tolower)
23198 (compare_compressed_name): New functions.
23199 (struct resolv_response_builder): Update type of
23200 compression_offsets for use with tsearch. Rempve to_be_freed.
23201 (response_push_pointer_to_free): Remove function.
23202 (resolv_response_add_name): Rewrite using struct compressed_name
23203 and tsearch instead of hsearch_r.
23204 (response_builder_allocate): Remove initialization of
23205 compression_offsets.
23206 (response_builder_free): Update for removal of to_be_freed. Use
23207 tdestroy instead of hdestroy_r.
23208 * resolv/Makefile (tests): Add tst-resolv-binary.
23209 (tst-resolv-binary): Link with -lresolv -lpthread.
23210
23211 2018-01-08 Florian Weimer <fweimer@redhat.com>
23212
23213 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23214 time. Pass positive flag instead of negative flag to
23215 support_test_compare_failure.
23216 (support_test_compare_failure): Change negative parameter to
23217 positive.
23218 * support/support_test_compare_failure.c (report)
23219 (support_test_compare_failure): Likewise.
23220 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23221 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23222
23223 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23224
23225 [BZ #22637]
23226 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23227 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23228 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23229 stacksize.
23230 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23231
23232 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23233
23234 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23235 Add s_sincosf-sse2 and s_sincosf-fma.
23236 (CFLAGS-s_sincosf-fma.c): New.
23237 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23238 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23239 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23240 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23241 __sincosf is defined.
23242
23243 2018-01-08 Florian Weimer <fweimer@redhat.com>
23244
23245 * nptl/tst-thread-exit-clobber.cc: New file.
23246 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23247 C++11 mode.
23248 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23249 (tests): Add tst-thread-exit-clobber.
23250 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23251
23252 2018-01-08 Florian Weimer <fweimer@redhat.com>
23253
23254 * support/check.h (support_static_assert): Define.
23255 (TEST_COMPARE): Use it.
23256
23257 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23258
23259 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23260 [!__RLIM_T_MATCHES_RLIM64_T]
23261 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23262 __getrlimit64. Add libc_hidden_weak.
23263
23264 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23265
23266 * elf/elf.h (R_RISCV_NONE): New define.
23267 (R_RISCV_32): Likewise.
23268 (R_RISCV_64): Likewise.
23269 (R_RISCV_RELATIVE): Likewise.
23270 (R_RISCV_COPY): Likewise.
23271 (R_RISCV_JUMP_SLOT): Likewise.
23272 (R_RISCV_TLS_DTPMOD32): Likewise.
23273 (R_RISCV_TLS_DTPMOD64): Likewise.
23274 (R_RISCV_TLS_DTPREL32): Likewise.
23275 (R_RISCV_TLS_DTPREL64): Likewise.
23276 (R_RISCV_TLS_TPREL32): Likewise.
23277 (R_RISCV_TLS_TPREL64): Likewise.
23278 * Makerules (make-link-multidir): Make directories before linking into
23279 them.
23280 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23281 define.
23282 (VDSO_HASH_LINUX_4_15): Likewise.
23283 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23284 in subdirectories of lib.
23285 * nptl/Makefile (/librt.so): Always depend on
23286 "$(shared-thread-library)".
23287
23288 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23289
23290 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23291 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23292 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23293 (___tls_get_addr).
23294 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23295 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23296 "-O2 -march=i686".
23297 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23298 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23299 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23300 * sysdeps/gnu/glob-lstat-compat.c: New file.
23301 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23302 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23303
23304 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23305
23306 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23307 Reserve 16 chars to reloc_addr before calling _itoa_word.
23308
23309 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23310
23311 [BZ #22678]
23312 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23313 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23314
23315 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23316 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23317
23318 * resource/tst-getrlimit.c: Add copyright header.
23319
23320 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23321 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23322
23323 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23324 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23325 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23326 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23327 instead.
23328 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23329 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23330 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23331 RLIM64_INFINITY): Fix values to match the kernel ones.
23332 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23333 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23334 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23335 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23336 getrlimit64@@GLIBC_2_27.
23337 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23338 and setrlimit64.
23339 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23340 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23341 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23342 setrlimit, getrlimit64 and setrlimit64.
23343
23344 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23345
23346 [BZ #22648]
23347 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23348 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23349
23350 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23351
23352 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23353 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23354 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23355
23356 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23357
23358 [BZ #15479]
23359 [BZ #22666]
23360 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23361 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23362
23363 [BZ #15479]
23364 [BZ #22665]
23365 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23366 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23367 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23368 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23369
23370 2018-01-04 Florian Weimer <fweimer@redhat.com>
23371
23372 [BZ #22667]
23373 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23374 Align the stack before calling exit.
23375 * stdlib/tst-makecontext-align.c: New file.
23376 * stdlib/Makefile (tests): Add tst-makecontext-align.
23377
23378 2018-01-04 Florian Weimer <fweimer@redhat.com>
23379
23380 Add support for calling dlvsym from libc.so.
23381 * include/dlfcn.h (__libc_dlvsym): Declare.
23382 * elf/Makefile (tests-static-internal): Add
23383 tst-libc_dlvsym-static.
23384 (tests-internal): Add tst-libc_dlvsym.
23385 (modules-names): Add tst-libc_dlvsym-dso.
23386 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23387 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23388 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23389 object tst-libc_dlvsym-dso.so needs to be built before running
23390 these tests.
23391 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23392 * elf/Versions: Export __libc_dlvsym.
23393 * elf/dl-libc.c (struct do_dlvsym_args): New.
23394 (do_dlvsym, __libc_dlvsym): New functions.
23395 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23396 (_dl_open_hook2): New variable.
23397 (__libc_register_dl_open_hook): Set it.
23398 * elf/tst-libc_dlvsym-dso.c: New file.
23399 * elf/tst-libc_dlvsym-static.c: Likewise.
23400 * elf/tst-libc_dlvsym.c: Likewise.
23401 * elf/tst-libc_dlvsym.h: Likewise.
23402
23403 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23404
23405 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23406 include <sys/mount.h>.
23407
23408 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23409
23410 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23411 Add __NO_MATH_ERRNO__ check.
23412
23413 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23414
23415 * sysdeps/mips/mips32/libm-test-ulps: Update.
23416 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23417
23418 2018-01-02 Florian Weimer <fweimer@redhat.com>
23419
23420 * misc/tst-pselect.c: Add copyright header.
23421
23422 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23423
23424 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23425 comment.
23426 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23427 comment.
23428 (settrlimit): Rename into setrlimit.
23429 (__sttrlimit): Rename into __setrlimit.
23430
23431 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23432 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23433 never defined in that case.
23434
23435 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23436
23437 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23438
23439 * sysdeps/arm/libm-test-ulps: Update.
23440
23441 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23442 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23443
23444 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23445
23446 * NEWS: Add cosf and sincosf to list of optimized functions.
23447
23448 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23449
23450 [BZ #22660]
23451 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23452 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23453 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23454 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23455
23456 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23457
23458 [BZ #22433]
23459 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23460
23461 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23462 making a copy of it.
23463
23464 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23465
23466 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23467 trailing whitespace removed.
23468 * scripts/config.guess: Update to version 2018-01-01.
23469 * scripts/config.sub: Update to version 2018-01-01.
23470 * scripts/move-if-change: Update from gnulib.
23471
23472 * NEWS: Update copyright dates.
23473 * catgets/gencat.c (print_version): Likewise.
23474 * csu/version.c (banner): Likewise.
23475 * debug/catchsegv.sh: Likewise.
23476 * debug/pcprofiledump.c (print_version): Likewise.
23477 * debug/xtrace.sh (do_version): Likewise.
23478 * elf/ldconfig.c (print_version): Likewise.
23479 * elf/ldd.bash.in: Likewise.
23480 * elf/pldd.c (print_version): Likewise.
23481 * elf/sotruss.sh: Likewise.
23482 * elf/sprof.c (print_version): Likewise.
23483 * iconv/iconv_prog.c (print_version): Likewise.
23484 * iconv/iconvconfig.c (print_version): Likewise.
23485 * locale/programs/locale.c (print_version): Likewise.
23486 * locale/programs/localedef.c (print_version): Likewise.
23487 * login/programs/pt_chown.c (print_version): Likewise.
23488 * malloc/memusage.sh (do_version): Likewise.
23489 * malloc/memusagestat.c (print_version): Likewise.
23490 * malloc/mtrace.pl: Likewise.
23491 * manual/libc.texinfo: Likewise.
23492 * nptl/version.c (banner): Likewise.
23493 * nscd/nscd.c (print_version): Likewise.
23494 * nss/getent.c (print_version): Likewise.
23495 * nss/makedb.c (print_version): Likewise.
23496 * posix/getconf.c (main): Likewise.
23497 * scripts/test-installation.pl: Likewise.
23498 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23499
23500 * All files with FSF copyright notices: Update copyright dates
23501 using scripts/update-copyrights.
23502 * locale/programs/charmap-kw.h: Regenerated.
23503 * locale/programs/locfile-kw.h: Likewise.
23504
23505 2017-12-31 Zack Weinberg <zackw@panix.com>
23506
23507 * libio/bits/libio-ldbl.h: Correct check for improper
23508 inclusion. Add own multiple include guard.
23509
23510 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23511 Dmitry V. Levin <ldv@altlinux.org>
23512
23513 [BZ #22625]
23514 CVE-2017-16997
23515 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23516 string token expansion. Check for NULL pointer or empty string possibly
23517 returned by expand_dynamic_string_token.
23518 (decompose_rpath): Check for empty path after dynamic string
23519 token expansion.
23520
23521 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23522
23523 [BZ #22433]
23524 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23525
23526 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23527 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23528 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23529 and PTRACE_SYSCALL.
23530 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23531 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23532 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23533 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23534 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23535 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23536
23537 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23538 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23539 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23540 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23541 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23542 bits/ptrace-shared.h.
23543 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23544 <bits/ptrace-shared.h>.
23545 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23546 __ptrace_peeksiginfo_flags, ptrace): Remove.
23547 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23548 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23549 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23550 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23551 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23552
23553 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23554
23555 [BZ #17804]
23556 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23557 end of the loop. Improve comments.
23558
23559 2017-12-29 Zack Weinberg <zackw@panix.com>
23560
23561 [BZ #22615]
23562 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23563 might be set on success.
23564
23565 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23566
23567 [BZ #22611]
23568 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23569 is unchanged on success.
23570
23571 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23572
23573 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23574 updated.
23575 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23576 expand_dynamic_string_token): Likewise.
23577 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23578 is_path argument.
23579
23580 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23581 contains ':'.
23582
23583 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23584 is set and name contains ':', and all code depending on these checks.
23585
23586 2017-12-24 Zack Weinberg <zackw@panix.com>
23587
23588 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23589 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23590 respectively.
23591 * libio/libio.h: Rename the original version of this file to
23592 libio/bits/libio.h. Error out if not included by stdio.h or the
23593 stub libio.h.
23594 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23595 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23596 if not included by bits/libio.h or the stub _G_config.h.
23597 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23598 sysdeps/unix/sysv/linux/bits. Error out if not included by
23599 bits/libio.h or the stub _G_config.h.
23600 * libio/stdio.h: Include bits/libio.h, not libio.h.
23601 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23602 well as libio.h and _G_config.h.
23603
23604 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23605 * libio/strfile.h, stdio-common/vfscanf.c
23606 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23607 Include stdio.h, not _G_config.h nor libio.h.
23608 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23609 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23610
23611 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23612
23613 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23614
23615 [BZ #22347]
23616 * stdlib/getrandom.c (getrandom): Fix comment.
23617 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23618
23619 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23620
23621 [BZ #21161]
23622 * manual/arith.texi (strtoul): Fix a typo.
23623
23624 [BZ #22596]
23625 * manual/arith.texi (finite): Fix the description of the return
23626 value.
23627
23628 2017-12-22 Eric Blake <ebb9@byu.net>
23629
23630 Avoid gcc warnings on cygwin
23631 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23632 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23633 Avoid unused variable.
23634
23635 2017-12-22 Florian Weimer <fweimer@redhat.com>
23636
23637 * io/Makefile (routines): Add copy_file_range.
23638 (tests): Add tst-copy_file_range.
23639 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23640 * io/Versions (GLIBC_2.27): Export copy_file_range.
23641 * io/copy_file_range-compat.c: New file.
23642 * io/copy_file_range.c: Likewise.
23643 * io/tst-copy_file_range-compat.c: Likewise.
23644 * io/tst-copy_file_range.c: Likewise.
23645 * manual/llio.texi (Copying File Data): New section.
23646 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23647 * support/Makefile (libsupport-routines): Add support-xfstat,
23648 xftruncate, xlseek.
23649 * support/support-xfstat.c: New file.
23650 * support/xftruncate.c: Likewise.
23651 * support/xlseek.c: Likewise.
23652 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23653 * sysdeps/unix/sysv/linux/**.abilist: Update.
23654 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23655
23656 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23657
23658 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23659 disable-multi-arch variant to aarch64-linux-gnu.
23660
23661 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23662
23663 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23664 trailing whitespace removed.
23665 * scripts/config.guess: Update to version 2017-12-17.
23666 * scripts/config.sub: Update to version 2017-11-23.
23667 * scripts/install-sh: Update to version 2017-09-23.17.
23668 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23669
23670 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23671
23672 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23673 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23674 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23675 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23676 * sysdeps/tile/crtn.S: Likewise.
23677 * sysdeps/tile/dl-start.S (_start): Likewise.
23678 * sysdeps/tile/dl-trampoline.S: Likewise.
23679 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23680 * sysdeps/tile/start.S (_start): Likewise.
23681 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23682 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23683 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23684 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23685 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23686 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23687 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23688
23689 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23690 comment.
23691 * sysdeps/tile/preconfigure: Remove tilegx folder.
23692 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23693 * sysdeps/tile/Implies: ... here.
23694 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23695 * sysdeps/tile/Makefile: ... here.
23696 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23697 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23698 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23699 * sysdeps/tile/bits/wordsize.h: ... here.
23700 * sysdeps/tile/tilegx/*: Move to ...
23701 * sysdeps/tile/*: ... here.
23702 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23703 * sysdeps/tile/tilegx32/Implies: ... here.
23704 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23705 * sysdeps/tile/tilegx64/Implies: ... here.
23706 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23707 to ...
23708 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23709 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23710 * sysdeps/unix/sysv/linux/tile/*: ... here.
23711 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23712 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23713 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23714 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23715
23716 * README: Remove tilepro-*-linux-gnu from supported architecture.
23717 * scripts/build-many-glibcs.py: Likewise.
23718 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23719 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23720 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23721 elf_machine_matches_host, elf_machine_dynamic,
23722 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23723 howto, elf_machine_rela): Likewise.
23724 * sysdeps/tile/dl-start.S (_start): Likewise.
23725 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23726 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23727 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23728 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23729 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23730 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23731 Likewise.
23732 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23733 * sysdeps/tile/preconfigure: Likewise.
23734 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23735 POINTER_CHK_GUARD): Likewise.
23736 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23737 * sysdeps/tile/start.S (_start): Likewise.
23738 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23739 Likewise.
23740 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23741 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23742 CMOVNEZ): Remove.
23743 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23744 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23745 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23746 Likewise.
23747 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23748 * sysdeps/tile/tilepro/Implies: Remove file.
23749 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23750 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23751 * sysdeps/tile/tilepro/memchr.c: Likewise.
23752 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23753 * sysdeps/tile/tilepro/memset.c: Likewise.
23754 * sysdeps/tile/tilepro/memusage.h: Likewise.
23755 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23756 * sysdeps/tile/tilepro/strchr.c: Likewise.
23757 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23758 * sysdeps/tile/tilepro/strlen.c: Likewise.
23759 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23760 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23761 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23762 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23763 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23764 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23765 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23766 Likewise.
23767 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23768 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23769 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23770 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23771 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23772 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23773 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23774 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23775 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23776 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23777 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23778 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23779 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23780 tilepro mention in comment.
23781
23782 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23783 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23784 * nptl/pthread_join_common.c: New file: common function used on
23785 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23786 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23787 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23788 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23789 (cleanup): Move definition to pthread_join_common.c.
23790 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23791 Remove superflous checks.
23792 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23793 Likewise.
23794
23795 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23796
23797 * sysdeps/aarch64/libm-test-ulps: Update.
23798
23799 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23800
23801 * sysdeps/aarch64/memset.S (MEMSET): Define.
23802
23803 2017-12-20 Florian Weimer <fweimer@redhat.com>
23804
23805 [BZ #22635]
23806 nptl: Provide full implementation of pthread_self in libc.so.
23807 * nptl/Makefile (routines): Add pthread_self.
23808 (libpthread-routines): Replace pthread_self with
23809 compat-pthread_self.
23810 * nptl/forward.c (pthread_self): Remove.
23811 * nptl/nptl-init.c (pthread_functions): Do not initialize
23812 ptr_pthread_self.
23813 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23814 * nptl/compat-pthread_self.c: New file.
23815 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23816 Remove ptr_pthread_self.
23817
23818 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23819
23820 * posix/regcomp.c: Fix spelling in comments.
23821 * posix/regex.h: Likewise.
23822 * posix/regex_internal.c: Likewise.
23823 * posix/regexec.c: Likewise.
23824
23825 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23826
23827 [BZ #22377]
23828 * math/Makefile [C++] (tests): Add test for iseqsig.
23829 * math/math.h [C++] (iseqsig): New implementation, which does
23830 not rely on __MATH_TG/__builtin_types_compatible_p.
23831 * math/test-math-iseqsig.cc: New file.
23832 * sysdeps/powerpc/powerpc64le/Makefile
23833 (CFLAGS-test-math-iseqsig.cc): New variable.
23834
23835 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23836
23837 * elf/dl-load.c (is_trusted_path): Remove.
23838 (fillin_rpath): Remove check_trusted argument and its use,
23839 all callers changed.
23840
23841 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23842
23843 [BZ #22630]
23844 * Makeconfig (link-pie-before-libc): Replace -pie with
23845 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23846 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23847 (tst-dlopen-aout-no-pie): New.
23848 (LDFLAGS-tst-prelink): Removed.
23849 (tst-prelink-no-pie): New.
23850 (LDFLAGS-tst-main1): Removed.
23851 (tst-main1-no-pie): New.
23852 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23853 (tst-gmon-no-pie): New.
23854
23855 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23856
23857 * manual/install.texi: Document that --enable-static-pie
23858 implies PIE.
23859 * INSTALL: Regenerated.
23860
23861 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23862
23863 [BZ #21309]
23864 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23865 unsigned.
23866
23867 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23868
23869 Revert:
23870
23871 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23872
23873 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23874
23875 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23876
23877 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23878 <errno.h>. Include "eexp.tbl".
23879 (half): New constant.
23880 (one): Likewise.
23881 (__ieee754_exp): Rewrite.
23882 (__slowexp): Remove prototype.
23883 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23884 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23885 * sysdeps/i386/fpu/slowexp.c: Likewise.
23886 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23887 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23888 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23889 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23890 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23891 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23892 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23893 comment.
23894 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23895 (CPPFLAGS-slowexp.c): Remove variable.
23896 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23897 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23898 (CFLAGS-slowexp-fma.c): Remove variable.
23899 (CFLAGS-slowexp-fma4.c): Likewise.
23900 (CFLAGS-slowexp-avx.c): Likewise.
23901 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23902 define as macro.
23903 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23904 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23905 * math/Makefile (type-double-routines): Remove slowexp.
23906 * manual/probes.texi (slowexp_p6): Remove.
23907 (slowexp_p32): Likewise.
23908
23909 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23910
23911 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23912 arithmetic.
23913
23914 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23915
23916 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23917
23918 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23919
23920 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23921
23922 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23923 <errno.h>. Include "eexp.tbl".
23924 (half): New constant.
23925 (one): Likewise.
23926 (__ieee754_exp): Rewrite.
23927 (__slowexp): Remove prototype.
23928 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23929 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23930 * sysdeps/i386/fpu/slowexp.c: Likewise.
23931 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23932 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23933 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23934 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23935 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23936 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23937 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23938 comment.
23939 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23940 (CPPFLAGS-slowexp.c): Remove variable.
23941 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23942 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23943 (CFLAGS-slowexp-fma.c): Remove variable.
23944 (CFLAGS-slowexp-fma4.c): Likewise.
23945 (CFLAGS-slowexp-avx.c): Likewise.
23946 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23947 define as macro.
23948 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23949 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23950 * math/Makefile (type-double-routines): Remove slowexp.
23951 * manual/probes.texi (slowexp_p6): Remove.
23952 (slowexp_p32): Likewise.
23953
23954 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23955 James Clarke <jrtc27@jrtc27.com>
23956
23957 [BZ #22603]
23958 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23959 addition.
23960
23961 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23962
23963 [BZ #22605]
23964 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23965 code.
23966
23967 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23968
23969 [BZ #22563]
23970 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23971 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23972 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23973 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23974 to feature_1.
23975
23976 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23977
23978 [BZ #22563]
23979 * bits/types/__cancel_jmp_buf_tag.h: New file.
23980 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23981 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23982 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23983 * nptl/Makefile (headers): Add
23984 bits/types/__cancel_jmp_buf_tag.h.
23985 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23986 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23987 * sysdeps/nptl/pthread.h: Include
23988 <bits/types/__cancel_jmp_buf_tag.h>.
23989 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23990 __cancel_jmp_buf.
23991 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23992
23993 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23994
23995 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23996 --enable-static-pie variants to x86_64, x32 and i686.
23997
23998 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23999
24000 [BZ #22631]
24001 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
24002 argument for attrubutes. All callers changed.
24003 (__inline_mathop1): Likewise. All callers changed.
24004 (__inline_mathop): Likewise. All callers changed.
24005 [__USE_MISC] (scalbn): Use __inline_forward instead of
24006 __inline_forward_c.
24007 [__USE_ISOC99] (scalbln): Likewise.
24008 [__USE_ISOC99] (nearbyint): Likewise.
24009 [__USE_ISOC99] (lrint): Likewise.
24010 [__USE_MISC] (scalbnf): Likewise.
24011 [__USE_ISOC99] (scalblnf): Likewise.
24012 [__USE_ISOC99] (nearbyintf): Likewise.
24013 [__USE_ISOC99] (lrintf): Likewise.
24014 [__USE_MISC] (scalbnl): Likewise.
24015 [__USE_ISOC99] (scalblnl): Likewise.
24016 [__USE_ISOC99] (nearbyintl): Likewise.
24017 [__USE_ISOC99] (lrintl): Likewise.
24018 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24019 __inline_mathop and __m81_defun changed.
24020
24021 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24022 CPU or FPU for ARM hard-float configurations.
24023
24024 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24025
24026 * nptl/tst-attr3.c: Include <libc-diag.h>.
24027 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24028
24029 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24030
24031 * string/tester.c (test_strncat): Also disable -Warray-bounds
24032 warnings for two tests.
24033
24034 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24035
24036 [BZ #22614]
24037 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24038 $(cc-pie-default) == yes.
24039 * config.make.in (cc-pie-default): New.
24040 * configure.ac (libc_cv_pie_default): Renamed to ...
24041 (libc_cv_cc_pie_default): This.
24042 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24043 * configure: Regenerated.
24044
24045 2017-12-18 Florian Weimer <fweimer@redhat.com>
24046
24047 [BZ #20204]
24048 ld.so: Harden dl-libc/libdl hooks.
24049 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24050 (rtld_active): New function.
24051 * dlfcn/dladdr.c (__dladdr): Call it.
24052 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24053 * dlfcn/dlclose.c (__dlcose): Likewise.
24054 * dlfcn/dlerror.c (__dlerror): Likewise.
24055 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24056 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24057 * dlfcn/dlopen.c (__dlopen): Likewise.
24058 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24059 * dlfcn/dlsym.c (__dlsym): Likewise.
24060 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24061 * libio/vtables.c (_IO_vtable_check): Likewise.
24062 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24063 (__libc_dlclose): Likewise.
24064 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24065 assignment.
24066
24067 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24068
24069 [BZ #22446]
24070 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24071 buffers for readlink input and output.
24072
24073 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24074
24075 [BZ #22624]
24076 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24077 inhibit_stack_protector.
24078
24079 [BZ #22624]
24080 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24081 inhibit_stack_protector.
24082
24083 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24084
24085 [BZ #22627]
24086 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24087 code and invocation.
24088
24089 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24090
24091 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24092
24093 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24094
24095 [BZ #22505]
24096 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24097
24098 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24099
24100 * sysdeps/s390/fpu/libm-test-ulps: Update.
24101
24102 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24103
24104 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24105
24106 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24107
24108 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24109 constants to s_sincosf.h file.
24110 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24111 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24112 implementation.
24113 * sysdeps/ieee754/flt-32/s_sincosf.h:
24114 New file.
24115
24116 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24117
24118 [BZ #14681]
24119 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24120 before mtrace.
24121
24122 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24123
24124 [BZ #19574]
24125 * INSTALL: Regenerated.
24126 * Makeconfig (real-static-start-installed-name): New.
24127 (pic-default): Updated for --enable-static-pie.
24128 (pie-default): New for --enable-static-pie.
24129 (default-pie-ldflag): Likewise.
24130 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24131 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24132 Replace $(static-start-installed-name) with
24133 $(real-static-start-installed-name).
24134 (+prectorT): Updated for --enable-static-pie.
24135 (+postctorT): Likewise.
24136 (CFLAGS-.o): Add $(pie-default).
24137 (CFLAGS-.op): Likewise.
24138 * NEWS: Mention --enable-static-pie.
24139 * config.h.in (ENABLE_STATIC_PIE): New.
24140 * configure.ac (--enable-static-pie): New configure option.
24141 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24142 (have-static-pie): Likewise.
24143 Enable static PIE if linker supports --no-dynamic-linker.
24144 (ENABLE_STATIC_PIE): New AC_DEFINE.
24145 (enable-static-pie): New LIBC_CONFIG_VAR.
24146 * configure: Regenerated.
24147 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24148 gr$(start-installed-name) for --enable-static-pie.
24149 (extra-objs): Likewise.
24150 (install-lib): Likewise.
24151 (extra-objs): Add static-reloc.o and static-reloc.os
24152 ($(objpfx)$(start-installed-name)): Also depend on
24153 $(objpfx)static-reloc.o.
24154 ($(objpfx)r$(start-installed-name)): New.
24155 ($(objpfx)g$(start-installed-name)): Also depend on
24156 $(objpfx)static-reloc.os.
24157 ($(objpfx)gr$(start-installed-name)): New.
24158 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24159 in libc.a.
24160 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24161 initimage.
24162 * csu/static-reloc.c: New file.
24163 * elf/Makefile (routines): Add dl-reloc-static-pie.
24164 (elide-routines.os): Likewise.
24165 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24166 (tst-tls1-static-non-pie-no-pie): New.
24167 * elf/dl-reloc-static-pie.c: New file.
24168 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24169 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24170 STATIC_PIE_BOOTSTRAP.
24171 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24172 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24173 (tests-static): Likewise.
24174 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24175 (tst-gmon-static-no-pie): New.
24176 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24177 (CRT-tst-gmon-static-pie): Likewise.
24178 (tst-gmon-static-pie-ENV): Likewise.
24179 (tests-special): Likewise.
24180 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24181 (clean-tst-gmon-static-pie-data): Likewise.
24182 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24183 * gmon/tst-gmon-static-pie.c: New file.
24184 * manual/install.texi: Document --enable-static-pie.
24185 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24186 (_dl_get_dl_main_map): Likewise.
24187 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24188 * sysdeps/x86_64/configure.ac: Likewise.
24189 * sysdeps/i386/configure: Regenerated.
24190 * sysdeps/x86_64/configure: Likewise.
24191 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24192 (ASFLAGS-.op): Likewise.
24193
24194 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24195
24196 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24197 * posix/tst-mmap-offset.c (fname): Use /tmp.
24198 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24199
24200 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24201
24202 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24203
24204 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24205
24206 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24207 errno.
24208
24209 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24210
24211 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24212 --with-float=hard for arm-linux-gnueabihf configurations.
24213
24214 [BZ #14121]
24215 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24216 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24217 ($(mo-installed)): Use $(objpfx)%.mo.
24218 (realclean): Remove rule.
24219
24220 * po/Makefile (linguas): Remove rule and dependencies.
24221 (linguas.mo): Likewise.
24222 (.PHONY): Do not depend on linguas and linguas.mo.
24223 (podir): Remove variable.
24224 (pofiles): Likewise.
24225 [$(pofiles)] (%.po): Remove rule.
24226
24227 * sysdeps/sparc/sparc32/Makefile
24228 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24229 start-of-line whitespace in argument of echo.
24230 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24231 with whitespace. Generate __wrap_.udiv alias.
24232 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24233 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24234 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24235 * sysdeps/sparc/sparc32/urem.S: Likewise.
24236
24237 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24238
24239 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24240 for aligned inputs.
24241
24242 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24243
24244 * benchtests/bench-strcmp.c: Print output in JSON format.
24245
24246 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24247
24248 2017-12-14 Florian Weimer <fweimer@redhat.com>
24249
24250 [BZ #22607]
24251 CVE-2017-1000409
24252 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24253 the expanded path string.
24254
24255 2017-12-14 Florian Weimer <fweimer@redhat.com>
24256
24257 [BZ #22606]
24258 CVE-2017-1000408
24259 * elf/dl-load.c (system_dirs): Update comment.
24260 (nsystem_dirs_len): Use array_length.
24261 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24262
24263 2017-12-14 Florian Weimer <fweimer@redhat.com>
24264
24265 Simplify compiling most of support/ outside of glibc.
24266 * support/check_addrinfo.c: Include <string.h>.
24267 * support/check_dns_packet.c: Likewise.
24268 * support/check_hostent.c: Likewise.
24269 * support/support_can_chroot.c: Include <support/xunistd.h>.
24270 * support/support_format_addrinfo.c: Include <stdlib.h>
24271 * support/support_format_dns_packet.c: Include <stdbool.h>.
24272 * support/support_format_hostent.c: Include <stdlib.h>.
24273 * support/support_format_netent.c: Likewise.
24274 * support/support_write_string.c: Include <support/xunistd.h>.
24275 * support/xdlfcn.c: Include <stddef.h>.
24276
24277 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24278
24279 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24280
24281 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24282 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24283
24284 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24285 (sysdeps_routines): Add memset-niagara7.
24286 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24287 Likewise.
24288 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24289 file.
24290 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24291 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24292 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24293 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24294 Add niagara7 option.
24295 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24296 memset.
24297
24298 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24299 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24300 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24301 Likewise.
24302 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24303 New file.
24304 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24305 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24306 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24307 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24308 and __memmove_niagara7.
24309 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24310 Add niagara7 option.
24311 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24312 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24313 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24314 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24315 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24316
24317 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24318
24319 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24320 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24321 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24322 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24323
24324 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24325 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24326 _dl_sparc_cap_flags array.
24327 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24328
24329 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24330
24331 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24332 time whenever possible.
24333
24334 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24335
24336 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24337 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24338
24339 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24340
24341 * soft-fp/fmadf4.c: Move to ....
24342 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24343 * soft-fp/fmasf4.c: Move to ....
24344 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24345 * soft-fp/fmatf4.c: Move to ....
24346 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24347 * sysdeps/ieee754/soft-fp/Makefile: New file.
24348 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24349 * sysdeps/arm/preconfigure: Regenerated.
24350 * sysdeps/arm/nofpu/Implies: New file.
24351 * sysdeps/arm/s_fma.c: Remove file.
24352 * sysdeps/arm/s_fmaf.c: Likewise.
24353 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24354 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24355 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24356 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24357 * sysdeps/microblaze/s_fma.c: Remove file.
24358 * sysdeps/microblaze/s_fmaf.c: Likewise.
24359 * sysdeps/mips/mips32/nofpu/Implies: New file.
24360 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24361 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24362 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24363 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24364 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24365 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24366 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24367 implementation.
24368 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24369 * sysdeps/nios2/s_fma.c: Remove file.
24370 * sysdeps/nios2/s_fmaf.c: Likewise.
24371 * sysdeps/sh/nofpu/Implies: New file.
24372 * sysdeps/sh/s_fma.c: Remove file.
24373 * sysdeps/sh/s_fmaf.c: Likewise.
24374 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24375 * sysdeps/tile/s_fma.c: Remove file.
24376 * sysdeps/tile/s_fmaf.c: Likewise.
24377
24378 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24379
24380 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24381 Add s_cosf-sse2 and s_cosf-fma.
24382 (CFLAGS-s_cosf-fma.c): New.
24383 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24384 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24385 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24386
24387 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24388
24389 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24390
24391 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24392
24393 * libio/Makefile (tests): Add tst-bz22415.
24394 (tst-bz22415-ENV): New rule.
24395 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24396 (tests-special): Add tst-bz22415-mem.out.
24397 ($(objpfx)tst-bz22415-mem.out): New rule.
24398 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24399 in case of a successful seek operation.
24400 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24401 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24402 buffer is required.
24403 * libio/tst-bz22415.c: New test.
24404
24405 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24406
24407 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24408
24409 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24410 __IPC_64 to 0 to avoid IPC_64 being set.
24411
24412 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24413
24414 [BZ #22593]
24415 * math/bits/mathcalls.h (nextafter): Remove const.
24416 (nexttoward): Likewise.
24417
24418 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24419
24420 * configure.ac (--with-fp): Remove configure option.
24421 (with_fp_cond): New variable.
24422 (libc_cv_with_fp): New configure test. Use this variable instead
24423 of with_fp.
24424 * configure: Regenerated.
24425 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24426 * manual/install.texi (Configuring and compiling): Remove
24427 --without-fp.
24428 * INSTALL: Regenerated.
24429 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24430 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24431 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24432 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24433 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24434 use --without-fp to configure glibc.
24435
24436 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24437
24438 * manual/locale.texi (nl_langinfo): Fix a typo.
24439
24440 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24441
24442 [BZ #22588]
24443 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24444
24445 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24446
24447 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24448 (CFLAGS-argp-parse.c): Likewise.
24449 (CFLAGS-argp-fmtstream.c): Likewise.
24450 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24451 (CPPFLAGS-sha512-crypt.c): Likewise.
24452 (CPPFLAGS-md5-crypt.c): Likewise.
24453 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24454 (CFLAGS-stack_chk_fail_local.c): Likewise.
24455 (CFLAGS-backtrace.c): Likewise.
24456 (CFLAGS-sprintf_chk.c): Likewise.
24457 (CFLAGS-snprintf_chk.c): Likewise.
24458 (CFLAGS-vsprintf_chk.c): Likewise.
24459 (CFLAGS-vsnprintf_chk.c): Likewise.
24460 (CFLAGS-asprintf_chk.c): Likewise.
24461 (CFLAGS-vasprintf_chk.c): Likewise.
24462 (CFLAGS-obprintf_chk.c): Likewise.
24463 (CFLAGS-dprintf_chk.c): Likewise.
24464 (CFLAGS-vdprintf_chk.c): Likewise.
24465 (CFLAGS-printf_chk.c): Likewise.
24466 (CFLAGS-fprintf_chk.c): Likewise.
24467 (CFLAGS-vprintf_chk.c): Likewise.
24468 (CFLAGS-vfprintf_chk.c): Likewise.
24469 (CFLAGS-gets_chk.c): Likewise.
24470 (CFLAGS-fgets_chk.c): Likewise.
24471 (CFLAGS-fgets_u_chk.c): Likewise.
24472 (CFLAGS-fread_chk.c): Likewise.
24473 (CFLAGS-fread_u_chk.c): Likewise.
24474 (CFLAGS-swprintf_chk.c): Likewise.
24475 (CFLAGS-vswprintf_chk.c): Likewise.
24476 (CFLAGS-wprintf_chk.c): Likewise.
24477 (CFLAGS-fwprintf_chk.c): Likewise.
24478 (CFLAGS-vwprintf_chk.c): Likewise.
24479 (CFLAGS-vfwprintf_chk.c): Likewise.
24480 (CFLAGS-fgetws_chk.c): Likewise.
24481 (CFLAGS-fgetws_u_chk.c): Likewise.
24482 (CFLAGS-read_chk.c): Likewise.
24483 (CFLAGS-pread_chk.c): Likewise.
24484 (CFLAGS-pread64_chk.c): Likewise.
24485 (CFLAGS-recv_chk.c): Likewise.
24486 (CFLAGS-recvfrom_chk.c): Likewise.
24487 (CFLAGS-tst-longjmp_chk.c): Likewise.
24488 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24489 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24490 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24491 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24492 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24493 (CFLAGS-tst-chk1.c): Likewise.
24494 (CFLAGS-tst-chk2.c): Likewise.
24495 (CFLAGS-tst-chk3.c): Likewise.
24496 (CFLAGS-tst-chk4.cc): Likewise.
24497 (CFLAGS-tst-chk5.cc): Likewise.
24498 (CFLAGS-tst-chk6.cc): Likewise.
24499 (CFLAGS-tst-lfschk1.c): Likewise.
24500 (CFLAGS-tst-lfschk2.c): Likewise.
24501 (CFLAGS-tst-lfschk3.c): Likewise.
24502 (CFLAGS-tst-lfschk4.cc): Likewise.
24503 (CFLAGS-tst-lfschk5.cc): Likewise.
24504 (CFLAGS-tst-lfschk6.cc): Likewise.
24505 (CFLAGS-tst-ssp-1.c): Likewise.
24506 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24507 (CFLAGS-scandir64.c): Likewise.
24508 (CFLAGS-scandir-tail.c): Likewise.
24509 (CFLAGS-scandir64-tail.c): Likewise.
24510 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24511 (CFLAGS-dl-tunables.c): Likewise.
24512 (CFLAGS-dl-runtime.c): Likewise.
24513 (CFLAGS-dl-lookup.c): Likewise.
24514 (CFLAGS-dl-iterate-phdr.c): Likewise.
24515 (CFLAGS-vismain.c): Likewise.
24516 (CFLAGS-tst-linkall-static.c): Likewise.
24517 (CFLAGS-tst-linkall-static.c): Likewise.
24518 (CPPFLAGS-dl-load.c): Likewise.
24519 (CFLAGS-ldconfig.c): Likewise.
24520 (CFLAGS-dl-cache.c): Likewise.
24521 (CFLAGS-cache.c): Likewise.
24522 (CFLAGS-rtld.c): Likewise.
24523 (CFLAGS-multiload.c): Likewise.
24524 (CFLAGS-filtmod1.c): Likewise.
24525 (CFLAGS-tst-align.c): Likewise.
24526 (CFLAGS-tst-align2.c): Likewise.
24527 (CFLAGS-tst-alignmod.c): Likewise.
24528 (CFLAGS-tst-alignmod2.c): Likewise.
24529 (CPPFLAGS-tst-execstack.c): Likewise.
24530 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24531 (CFLAGS-tst-latepthreadmod.c): Likewise.
24532 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24533 (CFLAGS-getgrnam_r.c): Likewise.
24534 (CFLAGS-getgrent_r.c): Likewise.
24535 (CFLAGS-getgrent.c): Likewise.
24536 (CFLAGS-fgetgrent.c): Likewise.
24537 (CFLAGS-fgetgrent_r.c): Likewise.
24538 (CFLAGS-putgrent.c): Likewise.
24539 (CFLAGS-initgroups.c): Likewise.
24540 (CFLAGS-getgrgid.c): Likewise.
24541 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24542 (CFLAGS-getsgent.c): Likewise.
24543 (CFLAGS-fgetsgent.c): Likewise.
24544 (CFLAGS-fgetsgent_r.c): Likewise.
24545 (CFLAGS-putsgent.c): Likewise.
24546 (CFLAGS-getsgnam.c): Likewise.
24547 (CFLAGS-getsgnam_r.c): Likewise.
24548 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24549 (CFLAGS-iconv_charmap.c): Likewise.
24550 (CFLAGS-dummy-repertoire.c): Likewise.
24551 (CFLAGS-charmap.c): Likewise.
24552 (CFLAGS-linereader.c): Likewise.
24553 (CFLAGS-simple-hash.c): Likewise.
24554 (CFLAGS-gconv_conf.c): Likewise.
24555 (CFLAGS-iconvconfig.c): Likewise.
24556 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24557 (CFLAGS-gethstbyad.c): Likewise.
24558 (CFLAGS-gethstbynm_r.c): Likewise.
24559 (CFLAGS-gethstbynm.c): Likewise.
24560 (CFLAGS-gethstbynm2_r.c): Likewise.
24561 (CFLAGS-gethstbynm2.c): Likewise.
24562 (CFLAGS-gethstent_r.c): Likewise.
24563 (CFLAGS-gethstent.c): Likewise.
24564 (CFLAGS-rcmd.c): Likewise.
24565 (CFLAGS-getnetbynm_r.c): Likewise.
24566 (CFLAGS-getnetbynm.c): Likewise.
24567 (CFLAGS-getnetbyad_r.c): Likewise.
24568 (CFLAGS-getnetbyad.c): Likewise.
24569 (CFLAGS-getnetent_r.c): Likewise.
24570 (CFLAGS-getnetent.c): Likewise.
24571 (CFLAGS-getaliasent_r.c): Likewise.
24572 (CFLAGS-getaliasent.c): Likewise.
24573 (CFLAGS-getrpcent_r.c): Likewise.
24574 (CFLAGS-getrpcent.c): Likewise.
24575 (CFLAGS-getservent_r.c): Likewise.
24576 (CFLAGS-getservent.c): Likewise.
24577 (CFLAGS-getprtent_r.c): Likewise.
24578 (CFLAGS-getprtent.c): Likewise.
24579 (CFLAGS-either_ntoh.c): Likewise.
24580 (CFLAGS-either_hton.c): Likewise.
24581 (CFLAGS-getnetgrent.c): Likewise.
24582 (CFLAGS-getnetgrent_r.c): Likewise.
24583 (CFLAGS-tst-checks-posix.c): Likewise.
24584 (CFLAGS-tst-sockaddr.c): Likewise.
24585 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24586 (CFLAGS-tst-translit.c): Likewise.
24587 (CFLAGS-tst-gettext2.c): Likewise.
24588 (CFLAGS-tst-codeset.c): Likewise.
24589 (CFLAGS-tst-gettext3.c): Likewise.
24590 (CFLAGS-tst-gettext4.c): Likewise.
24591 (CFLAGS-tst-gettext5.c): Likewise.
24592 (CFLAGS-tst-gettext6.c): Likewise.
24593 * io/Makefile (CFLAGS-open.c): Likewise.
24594 (CFLAGS-open64.c): Likewise.
24595 (CFLAGS-creat.c): Likewise.
24596 (CFLAGS-creat64.c): Likewise.
24597 (CFLAGS-fcntl.c): Likewise.
24598 (CFLAGS-poll.c): Likewise.
24599 (CFLAGS-ppoll.c): Likewise.
24600 (CFLAGS-lockf.c): Likewise.
24601 (CFLAGS-statfs.c): Likewise.
24602 (CFLAGS-fstatfs.c): Likewise.
24603 (CFLAGS-statvfs.c): Likewise.
24604 (CFLAGS-fstatvfs.c): Likewise.
24605 (CFLAGS-fts.c): Likewise.
24606 (CFLAGS-fts64.c): Likewise.
24607 (CFLAGS-ftw.c): Likewise.
24608 (CFLAGS-ftw64.c): Likewise.
24609 (CFLAGS-lockf.c): Likewise.
24610 (CFLAGS-posix_fallocate.c): Likewise.
24611 (CFLAGS-posix_fallocate64.c): Likewise.
24612 (CFLAGS-fallocate.c): Likewise.
24613 (CFLAGS-fallocate64.c): Likewise.
24614 (CFLAGS-read.c): Likewise.
24615 (CFLAGS-write.c): Likewise.
24616 (CFLAGS-test-stat.c): Likewise.
24617 (CFLAGS-test-lfs.c): Likewise.
24618 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24619 (CFLAGS-fputc.c): Likewise.
24620 (CFLAGS-fputwc.c): Likewise.
24621 (CFLAGS-freopen64.c): Likewise.
24622 (CFLAGS-freopen.c): Likewise.
24623 (CFLAGS-fseek.c): Likewise.
24624 (CFLAGS-fseeko64.c): Likewise.
24625 (CFLAGS-fseeko.c): Likewise.
24626 (CFLAGS-ftello64.c): Likewise.
24627 (CFLAGS-ftello.c): Likewise.
24628 (CFLAGS-fwide.c): Likewise.
24629 (CFLAGS-genops.c): Likewise.
24630 (CFLAGS-getc.c): Likewise.
24631 (CFLAGS-getchar.c): Likewise.
24632 (CFLAGS-getwc.c): Likewise.
24633 (CFLAGS-getwchar.c): Likewise.
24634 (CFLAGS-iofclose.c): Likewise.
24635 (CFLAGS-iofflush.c): Likewise.
24636 (CFLAGS-iofgetpos64.c): Likewise.
24637 (CFLAGS-iofgetpos.c): Likewise.
24638 (CFLAGS-iofgets.c): Likewise.
24639 (CFLAGS-iofgetws.c): Likewise.
24640 (CFLAGS-iofputs.c): Likewise.
24641 (CFLAGS-iofputws.c): Likewise.
24642 (CFLAGS-iofread.c): Likewise.
24643 (CFLAGS-iofsetpos64.c): Likewise.
24644 (CFLAGS-iofsetpos.c): Likewise.
24645 (CFLAGS-ioftell.c): Likewise.
24646 (CFLAGS-iofwrite.c): Likewise.
24647 (CFLAGS-iogetdelim.c): Likewise.
24648 (CFLAGS-iogetline.c): Likewise.
24649 (CFLAGS-iogets.c): Likewise.
24650 (CFLAGS-iogetwline.c): Likewise.
24651 (CFLAGS-ioputs.c): Likewise.
24652 (CFLAGS-ioseekoff.c): Likewise.
24653 (CFLAGS-ioseekpos.c): Likewise.
24654 (CFLAGS-iosetbuffer.c): Likewise.
24655 (CFLAGS-iosetvbuf.c): Likewise.
24656 (CFLAGS-ioungetc.c): Likewise.
24657 (CFLAGS-ioungetwc.c): Likewise.
24658 (CFLAGS-oldfileops.c): Likewise.
24659 (CFLAGS-oldiofclose.c): Likewise.
24660 (CFLAGS-oldiofgetpos64.c): Likewise.
24661 (CFLAGS-oldiofgetpos.c): Likewise.
24662 (CFLAGS-oldiofsetpos64.c): Likewise.
24663 (CFLAGS-oldiofsetpos.c): Likewise.
24664 (CFLAGS-peekc.c): Likewise.
24665 (CFLAGS-putc.c): Likewise.
24666 (CFLAGS-putchar.c): Likewise.
24667 (CFLAGS-putwc.c): Likewise.
24668 (CFLAGS-putwchar.c): Likewise.
24669 (CFLAGS-rewind.c): Likewise.
24670 (CFLAGS-wfileops.c): Likewise.
24671 (CFLAGS-wgenops.c): Likewise.
24672 (CFLAGS-oldiofopen.c): Likewise.
24673 (CFLAGS-iofopen.c): Likewise.
24674 (CFLAGS-iofopen64.c): Likewise.
24675 (CFLAGS-oldtmpfile.c): Likewise.
24676 (CFLAGS-tst_putwc.c): Likewise.
24677 * locale/Makefile (CFLAGS-md5.c): Likewise.
24678 (CFLAGS-charmap.c): Likewise.
24679 (CFLAGS-locfile.c): Likewise.
24680 (CFLAGS-charmap-dir.c): Likewise.
24681 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24682 (CFLAGS-getpt.c): Likewise.
24683 (CFLAGS-pt_chown.c): Likewise.
24684 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24685 (CFLAGS-obstack.c): Likewise.
24686 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24687 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24688 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24689 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24690 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24691 (CFLAGS-test-tgmath.c): Likewise.
24692 (CFLAGS-test-tgmath2.c): Likewise.
24693 (CFLAGS-test-tgmath-ret.c): Likewise.
24694 (CFLAGS-test-powl.c): Likewise.
24695 (CFLAGS-test-snan.c): Likewise.
24696 (CFLAGS-test-signgam-finite.c): Likewise.
24697 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24698 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24699 (CFLAGS-test-signgam-uchar.c): Likewise.
24700 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24701 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24702 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24703 (CFLAGS-test-signgam-uint.c): Likewise.
24704 (CFLAGS-test-signgam-uint-init.c): Likewise.
24705 (CFLAGS-test-signgam-uint-static.c): Likewise.
24706 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24707 (CFLAGS-test-signgam-ullong.c): Likewise.
24708 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24709 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24710 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24711 (CFLAGS-test-math-cxx11.cc): Likewise.
24712 (CFLAGS-test-math-isinff.cc): Likewise.
24713 (CFLAGS-test-math-iszero.cc): Likewise.
24714 (CFLAGS-test-math-issignaling.cc): Likewise.
24715 (CFLAGS-test-math-iscanonical.cc): Likewise.
24716 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24717 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24718 (CFLAGS-test-flt-eval-method.c): Likewise.
24719 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24720 (CFLAGS-test-finite-macros.c): Likewise.
24721 * misc/Makefile (CFLAGS-select.c): Likewise.
24722 (CFLAGS-tsearch.c): Likewise.
24723 (CFLAGS-lsearch.c): Likewise.
24724 (CFLAGS-pselect.c): Likewise.
24725 (CFLAGS-readv.c): Likewise.
24726 (CFLAGS-writev.c): Likewise.
24727 (CFLAGS-preadv.c): Likewise.
24728 (CFLAGS-preadv64.c): Likewise.
24729 (CFLAGS-pwritev.c): Likewise.
24730 (CFLAGS-pwritev64.c): Likewise.
24731 (CFLAGS-preadv2.c): Likewise.
24732 (CFLAGS-preadv64v2.c): Likewise.
24733 (CFLAGS-pwritev2.c): Likewise.
24734 (CFLAGS-pwritev64v2.c): Likewise.
24735 (CFLAGS-usleep.c): Likewise.
24736 (CFLAGS-syslog.c): Likewise.
24737 (CFLAGS-error.c): Likewise.
24738 (CFLAGS-getpass.c): Likewise.
24739 (CFLAGS-mkstemp.c): Likewise.
24740 (CFLAGS-mkstemp64.c): Likewise.
24741 (CFLAGS-getsysstats.c): Likewise.
24742 (CFLAGS-getusershell.c): Likewise.
24743 (CFLAGS-err.c): Likewise.
24744 (CFLAGS-tst-tsearch.c): Likewise.
24745 (CFLAGS-msync.c): Likewise.
24746 (CFLAGS-fdatasync.c): Likewise.
24747 (CFLAGS-fsync.c): Likewise.
24748 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24749 (CFLAGS-unwind.c): Likewise.
24750 (CFLAGS-unwind-forcedunwind.c): Likewise.
24751 (CFLAGS-pthread_cancel.c): Likewise.
24752 (CFLAGS-pthread_setcancelstate.c): Likewise.
24753 (CFLAGS-pthread_setcanceltype.c): Likewise.
24754 (CFLAGS-cancellation.c): Likewise.
24755 (CFLAGS-libc-cancellation.c): Likewise.
24756 (CFLAGS-pthread_exit.c): Likewise.
24757 (CFLAGS-forward.c): Likewise.
24758 (CFLAGS-pthread_testcancel.c): Likewise.
24759 (CFLAGS-pthread_join.c): Likewise.
24760 (CFLAGS-pthread_timedjoin.c): Likewise.
24761 (CFLAGS-pthread_once.c): Likewise.
24762 (CFLAGS-pthread_cond_wait.c): Likewise.
24763 (CFLAGS-sem_wait.c): Likewise.
24764 (CFLAGS-sem_timedwait.c): Likewise.
24765 (CFLAGS-fcntl.c): Likewise.
24766 (CFLAGS-lockf.c): Likewise.
24767 (CFLAGS-pread.c): Likewise.
24768 (CFLAGS-pread64.c): Likewise.
24769 (CFLAGS-pwrite.c): Likewise.
24770 (CFLAGS-pwrite64.c): Likewise.
24771 (CFLAGS-wait.c): Likewise.
24772 (CFLAGS-waitpid.c): Likewise.
24773 (CFLAGS-sigwait.c): Likewise.
24774 (CFLAGS-msgrcv.c): Likewise.
24775 (CFLAGS-msgsnd.c): Likewise.
24776 (CFLAGS-tcdrain.c): Likewise.
24777 (CFLAGS-open.c): Likewise.
24778 (CFLAGS-open64.c): Likewise.
24779 (CFLAGS-pause.c): Likewise.
24780 (CFLAGS-recv.c): Likewise.
24781 (CFLAGS-send.c): Likewise.
24782 (CFLAGS-accept.c): Likewise.
24783 (CFLAGS-sendto.c): Likewise.
24784 (CFLAGS-connect.c): Likewise.
24785 (CFLAGS-recvfrom.c): Likewise.
24786 (CFLAGS-recvmsg.c): Likewise.
24787 (CFLAGS-sendmsg.c): Likewise.
24788 (CFLAGS-close.c): Likewise.
24789 (CFLAGS-read.c): Likewise.
24790 (CFLAGS-write.c): Likewise.
24791 (CFLAGS-nanosleep.c): Likewise.
24792 (CFLAGS-sigsuspend.c): Likewise.
24793 (CFLAGS-msync.c): Likewise.
24794 (CFLAGS-fdatasync.c): Likewise.
24795 (CFLAGS-fsync.c): Likewise.
24796 (CFLAGS-pt-system.c): Likewise.
24797 (CFLAGS-tst-cleanup2.c): Likewise.
24798 (CFLAGS-tst-cleanupx2.c): Likewise.
24799 (CFLAGS-flockfile.c): Likewise.
24800 (CFLAGS-ftrylockfile.c): Likewise.
24801 (CFLAGS-funlockfile.c): Likewise.
24802 (CFLAGS-tst-initializers1.c): Likewise.
24803 (CFLAGS-tst-initializers1-c89.c): Likewise.
24804 (CFLAGS-tst-initializers1-c99.c): Likewise.
24805 (CFLAGS-tst-initializers1-c11.c): Likewise.
24806 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24807 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24808 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24809 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24810 (CFLAGS-nscd_getgr_r.c): Likewise.
24811 (CFLAGS-nscd_gethst_r.c): Likewise.
24812 (CFLAGS-nscd_getai.c): Likewise.
24813 (CFLAGS-nscd_initgroups.c): Likewise.
24814 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24815 (CFLAGS-pause.c): Likewise.
24816 (CFLAGS-pread.c): Likewise.
24817 (CFLAGS-pread64.c): Likewise.
24818 (CFLAGS-pwrite.c): Likewise.
24819 (CFLAGS-pwrite64.c): Likewise.
24820 (CFLAGS-sleep.c): Likewise.
24821 (CFLAGS-wait.c): Likewise.
24822 (CFLAGS-waitid.c): Likewise.
24823 (CFLAGS-waitpid.c): Likewise.
24824 (CFLAGS-getopt.c): Likewise.
24825 (CFLAGS-wordexp.c): Likewise.
24826 (CFLAGS-sysconf.c): Likewise.
24827 (CFLAGS-pathconf.c): Likewise.
24828 (CFLAGS-fpathconf.c): Likewise.
24829 (CFLAGS-spawn.c): Likewise.
24830 (CFLAGS-spawnp.c): Likewise.
24831 (CFLAGS-spawni.c): Likewise.
24832 (CFLAGS-glob.c): Likewise.
24833 (CFLAGS-glob64.c): Likewise.
24834 (CFLAGS-getconf.c): Likewise.
24835 (CFLAGS-nanosleep.c): Likewise.
24836 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24837 (CFLAGS-getpwent.c): Likewise.
24838 (CFLAGS-getpw.c): Likewise.
24839 (CFLAGS-fgetpwent_r.c): Likewise.
24840 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24841 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24842 (CFLAGS-mq_timedreceive.c): Likewise.
24843 (CFLAGS-mq_timedsend.c): Likewise.
24844 (CFLAGS-clock_nanosleep.c): Likewise.
24845 (CFLAGS-librt-cancellation.c): Likewise.
24846 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24847 (CFLAGS-getspent.c): Likewise.
24848 (CFLAGS-fgetspent.c): Likewise.
24849 (CFLAGS-fgetspent_r.c): Likewise.
24850 (CFLAGS-putspent.c): Likewise.
24851 (CFLAGS-getspnam.c): Likewise.
24852 (CFLAGS-getspnam_r.c): Likewise.
24853 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24854 (CFLAGS-sigsuspend.c): Likewise.
24855 (CFLAGS-sigtimedwait.c): Likewise.
24856 (CFLAGS-sigwait.c): Likewise.
24857 (CFLAGS-sigwaitinfo.c): Likewise.
24858 (CFLAGS-sigreturn.c): Likewise.
24859 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24860 (CFLAGS-vfwprintf.c): Likewise.
24861 (CFLAGS-tmpfile.c): Likewise.
24862 (CFLAGS-tmpfile64.c): Likewise.
24863 (CFLAGS-tempname.c): Likewise.
24864 (CFLAGS-psignal.c): Likewise.
24865 (CFLAGS-vprintf.c): Likewise.
24866 (CFLAGS-cuserid.c): Likewise.
24867 (CFLAGS-errlist.c): Likewise.
24868 (CFLAGS-siglist.c): Likewise.
24869 (CFLAGS-scanf15.c): Likewise.
24870 (CFLAGS-scanf17.c): Likewise.
24871 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24872 (CFLAGS-msort.c): Likewise.
24873 (CFLAGS-qsort.c): Likewise.
24874 (CFLAGS-system.c): Likewise.
24875 (CFLAGS-fmtmsg.c): Likewise.
24876 (CFLAGS-strfmon.c): Likewise.
24877 (CFLAGS-strfmon_l.c): Likewise.
24878 (CFLAGS-strfromd.c): Likewise.
24879 (CFLAGS-strfromf.c): Likewise.
24880 (CFLAGS-strfroml.c): Likewise.
24881 (CFLAGS-tst-bsearch.c): Likewise.
24882 (CFLAGS-tst-qsort.c): Likewise.
24883 (CFLAGS-tst-makecontext2.c): Likewise.
24884 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24885 (CFLAGS-xnlm_prot.c): Likewise.
24886 (CFLAGS-xrstat.c): Likewise.
24887 (CFLAGS-xyppasswd.c): Likewise.
24888 (CFLAGS-xklm_prot.c): Likewise.
24889 (CFLAGS-xrex.c): Likewise.
24890 (CFLAGS-xsm_inter.c): Likewise.
24891 (CFLAGS-xmount.c): Likewise.
24892 (CFLAGS-xrusers.c): Likewise.
24893 (CFLAGS-xspray.c): Likewise.
24894 (CFLAGS-xnfs_prot.c): Likewise.
24895 (CFLAGS-xrquota.c): Likewise.
24896 (CFLAGS-xkey_prot.c): Likewise.
24897 (CFLAGS-auth_unix.c): Likewise.
24898 (CFLAGS-key_call.c): Likewise.
24899 (CFLAGS-pmap_rmt.c): Likewise.
24900 (CFLAGS-clnt_perr.c): Likewise.
24901 (CFLAGS-openchild.c): Likewise.
24902 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24903 (CFLAGS-msgsnd.c): Likewise.
24904 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24905 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24906 (CFLAGS-tzset.c): Likewise.
24907 (CFLAGS-getdate.c): Likewise.
24908 (CFLAGS-test_time.c): Likewise.
24909 (CPPFLAGS-tst-tzname.c): Likewise.
24910 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24911 (CFLAGS-zic.c): Likewise.
24912 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24913 (CFLAGS-wcswidth.c): Likewise.
24914 (CFLAGS-wcstol.c): Likewise.
24915 (CFLAGS-wcstoul.c): Likewise.
24916 (CFLAGS-wcstoll.c): Likewise.
24917 (CFLAGS-wcstoull.c): Likewise.
24918 (CFLAGS-wcstod.c): Likewise.
24919 (CFLAGS-wcstold.c): Likewise.
24920 (CFLAGS-wcstof128.c): Likewise.
24921 (CFLAGS-wcstof.c): Likewise.
24922 (CFLAGS-wcstol_l.c): Likewise.
24923 (CFLAGS-wcstoul_l.c): Likewise.
24924 (CFLAGS-wcstoll_l.c): Likewise.
24925 (CFLAGS-wcstoull_l.c): Likewise.
24926 (CFLAGS-wcstod_l.c): Likewise.
24927 (CFLAGS-wcstold_l.c): Likewise.
24928 (CFLAGS-wcstof128_l.c): Likewise.
24929 (CFLAGS-wcstof_l.c): Likewise.
24930 (CPPFLAGS-tst-wchar-h.c): Likewise.
24931 (CPPFLAGS-wcstold_l.c): Likewise.
24932
24933 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24934
24935 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24936
24937 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24938 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24939
24940 * manual/tunables.texi (Hardware Capability Tunables): Document
24941 glibc.tune.cached_memopt.
24942 * sysdeps/powerpc/cpu-features.c: New file.
24943 * sysdeps/powerpc/cpu-features.h: New file.
24944 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24945 _dl_powerpc_cpu_features.
24946 * sysdeps/powerpc/dl-tunables.list: New file.
24947 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24948 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24949 (INIT_ARCH): Initialize use_aligned_memopt.
24950 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24951 IS_IN(rtld))]: Restrict dl_platform_init availability and
24952 initialize CPU features used by tunables.
24953 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24954 Add memcpy-power8-cached.
24955 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24956 __memcpy_power8_cached.
24957 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24958 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24959 New file.
24960
24961 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24962
24963 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24964 (CFLAGS-noinl-tester.c): Likewise.
24965 (CFLAGS-tst-strlen.c): Likewise.
24966 (CFLAGS-stratcliff.c): Likewise.
24967 (CFLAGS-test-ffs.c): Likewise.
24968 (CFLAGS-tst-inlcall.c): Likewise.
24969 (CFLAGS-tst-xbzero-opt.c): Likewise.
24970 (CFLAGS-memcpy.c): Likewise.
24971 (CFLAGS-wordcopy.c): Likewise.
24972
24973 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24974
24975 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24976 Store r15 on stack and add cfi rule.
24977 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24978 Likewise.
24979
24980 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24981
24982 [BZ #22577]
24983 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24984 call.
24985
24986 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24987
24988 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24989 Add s_sinf-sse2 and s_sinf-fma.
24990 (CFLAGS-s_sinf-fma.c): New.
24991 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24992 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24993 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24994
24995 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24996
24997 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24998
24999 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25000
25001 [BZ #22568]
25002 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
25003 part of result to imaginary part of argument if it is zero and the
25004 real part of the argument is not finite.
25005 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
25006 of result to real part of argument if it is zero and the imaginary
25007 part of the argument is not finite.
25008
25009 2017-12-07 Mike FABIAN <mfabian@redhat.com>
25010
25011 [BZ #22524]
25012 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
25013 and to the list of locales to be built for testing.
25014 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25015 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
25016 and build the collation rules upon that.
25017
25018 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25019
25020 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25021 * manual/math.texi (Mathematics): Document support for _Float32.
25022 * math/Makefile (test-types): Add float32.
25023 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25024 * stdlib/Versions (GLIBC_2.27): Likewise.
25025 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25026 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25027 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25028 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25029 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25030 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25031 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25032 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25033 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25034 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25035 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25036 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25037 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25038 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25039 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25040 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25041 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25042 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25043 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25044 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25045 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25046 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25047 Likewise.
25048 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25049 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25050 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25051 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25052 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25053 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25054 Likewise.
25055 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25056 Likewise.
25057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25058 Likewise.
25059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25060 Likewise.
25061
25062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25063 Likewise.
25064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25065 Likewise.
25066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25067 Likewise.
25068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25069 Likewise.
25070 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25071 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25072 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25073 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25074 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25075 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25076 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25077 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25078 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25079 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25080 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25081 Likewise.
25082 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25083 Likewise.
25084 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25085 Likewise.
25086 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25087 Likewise.
25088 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25089 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25090 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25091 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25092 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25093 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25094 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25095 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25096
25097 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25098
25099 * stdlib/strtof.c: Include <bits/floatn.h>
25100 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25101 and later undefine as macro. Define as weak alias if
25102 [!USE_WIDE_CHAR].
25103 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25104 and later undefine as macro. Define as weak alias if
25105 [USE_WIDE_CHAR].
25106 * stdlib/strtof_l.c: Include <bits/floatn.h>
25107 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25108 and later undefine as macro. Define as weak alias if
25109 [!USE_WIDE_CHAR].
25110 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25111 and later undefine as macro. Define as weak alias if
25112 [USE_WIDE_CHAR].
25113
25114 * stdlib/strfromf.c: Include <bits/floatn.h>.
25115 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25116 and later undefine as macro and define as weak alias.
25117
25118 * math/test-float32.h: New file.
25119
25120 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25121 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25122 (libm_alias_float_other_r): Create f32 alias.
25123 (libm_alias_float_r): Use semicolon before call to
25124 libm_alias_float_other_r.
25125
25126 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25127 second argument to libm_alias_float_other.
25128 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25129 second argument to libm_alias_float_other.
25130 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25131 argument to libm_alias_float_other.
25132
25133 [BZ #22561]
25134 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25135 real part of result for argument 0 + i * NaN.
25136 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25137 results for tests of 0 + i * NaN.
25138
25139 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25140
25141 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25142
25143 2017-12-06 David S. Miller <davem@davemloft.net>
25144
25145 * sysdeps/sparc/fpu/libm-test-ulps: Update
25146 exp_{downward,towardzero,upward} ulps.
25147
25148 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25149
25150 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25151 variables static.
25152
25153 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25154 (Y0_2D): Likewise.
25155 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25156 (Y0_2D): Likewise.
25157 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25158 (Y0_2D): Likewise.
25159 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25160 (Y0_2D): Likewise.
25161
25162 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25163
25164 [BZ #22515]
25165 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25166 and to the list of locales to be built for testing.
25167 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25168 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25169 and build the collation rules upon that.
25170
25171 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25172
25173 * NEWS: Add sinf to list of optimized functions.
25174
25175 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25176
25177 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25178 (__HAVE_FLOAT32X): Likewise.
25179 * manual/math.texi (Mathematics): Document support for _Float64
25180 and _Float32x.
25181 * math/Makefile (test-types): Add float64 and float32x.
25182 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25183 functions.
25184 * stdlib/Versions (GLIBC_2.27): Likewise.
25185 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25186 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25187 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25188 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25189 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25190 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25191 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25192 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25193 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25194 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25195 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25196 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25197 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25198 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25199 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25200 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25201 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25202 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25203 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25204 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25205 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25206 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25207 Likewise.
25208 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25209 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25210 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25211 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25212 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25214 Likewise.
25215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25216 Likewise.
25217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25218 Likewise.
25219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25220 Likewise.
25221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25222 Likewise.
25223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25224 Likewise.
25225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25226 Likewise.
25227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25228 Likewise.
25229 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25230 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25231 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25232 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25233 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25234 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25235 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25236 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25237 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25238 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25239 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25240 Likewise.
25241 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25242 Likewise.
25243 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25244 Likewise.
25245 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25246 Likewise.
25247 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25248 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25249 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25250 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25251 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25252 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25253 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25254 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25255
25256 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25257
25258 * bits/floatn-common.h: Include <bits/long-double.h>.
25259 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25260 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25261 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25262 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25263 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25264 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25265 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25266 (__builtin_huge_valf64): Use __builtin_huge_vall.
25267 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25268 (__builtin_inff64): Use __builtin_infl.
25269 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25270 (__builtin_nanf64): Use __builtin_nanl.
25271 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25272 (__builtin_nansf64): Use __builtin_nansl.
25273
25274 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25275 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25276 Carlos O'Donell <carlos@redhat.com>
25277
25278 * elf/dl-tunables.list: Add elision parameters.
25279 * manual/tunables.texi: Add entries about elision tunable.
25280 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25281 Add callback functions to dynamically enable/disable elision.
25282 Add multiple callbacks functions to set elision parameters.
25283 Deleted __libc_enable_secure check.
25284 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25285 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25286 * configure: Regenerated.
25287 * configure.ac: Option enable_lock_elision was deleted.
25288 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25289 * config.make.in: Remove references to enable_lock_elision.
25290 * manual/install.texi: Elision configure option was removed.
25291 * INSTALL: Regenerated to remove enable_lock_elision.
25292 * nptl/Makefile:
25293 Disable elision so it can verify error case for destroying a mutex.
25294 * sysdeps/powerpc/nptl/elide.h:
25295 Cleanup ENABLE_LOCK_ELISION check.
25296 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25297 * sysdeps/s390/configure: Regenerated.
25298 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25299 * nptl/tst-mutex8.c:
25300 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25301 * sysdeps/powerpc/powerpc32/sysdep.h:
25302 Deleted all ENABLE_LOCK_ELISION checks.
25303 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25304 * sysdeps/powerpc/sysdep.h: Likewise.
25305 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25306 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25307 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25308 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25309 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25310 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25311 enable-lock-elision.
25312
25313 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25314
25315 * stdlib/strtod.c: Include <bits/floatn.h>.
25316 (BUILD_DOUBLE): New macro.
25317 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25318 (strtof64): Define and later undefine as macro. Define as weak
25319 alias if [!USE_WIDE_CHAR].
25320 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25321 (wcstof64): Define and later undefine as macro. Define as weak
25322 alias if [USE_WIDE_CHAR].
25323 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25324 (strtof32x): Define and later undefine as macro. Define as weak
25325 alias if [!USE_WIDE_CHAR].
25326 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25327 (wcstof32x): Define and later undefine as macro. Define as weak
25328 alias if [USE_WIDE_CHAR].
25329 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25330 (BUILD_DOUBLE): New macro.
25331 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25332 (strtof64_l): Define and later undefine as macro. Define as weak
25333 alias if [!USE_WIDE_CHAR].
25334 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25335 (wcstof64_l): Define and later undefine as macro. Define as weak
25336 alias if [USE_WIDE_CHAR].
25337 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25338 (strtof32x_l): Define and later undefine as macro. Define as weak
25339 alias if [!USE_WIDE_CHAR].
25340 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25341 (wcstof32x_l): Define and later undefine as macro. Define as weak
25342 alias if [USE_WIDE_CHAR].
25343
25344 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25345
25346 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25347 (reduced): Use ones as double instead of integer.
25348
25349 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25350
25351 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25352
25353 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25354
25355 * stdlib/strfromd.c: Include <bits/floatn.h>.
25356 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25357 and later undefine as macro and define as weak alias.
25358 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25359 Likewise.
25360
25361 * math/test-float32x.h: New file.
25362 * math/test-float64.h: Likewise.
25363
25364 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25365 (libm_alias_double_other_r_f64): New macro.
25366 (libm_alias_double_other_r_f32x): Likewise.
25367 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25368 libm_alias_double_other_r_f32x.
25369 (libm_alias_double_r): Use semicolon before call to
25370 libm_alias_double_other_r.
25371 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25372 <bits/floatn.h>.
25373 (libm_alias_double_other_r_f64): New macro.
25374 (libm_alias_double_other_r_f32x): Likewise.
25375 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25376 libm_alias_double_other_r_f32x.
25377
25378 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25379
25380 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25381 int.
25382 (SINF_FUNC): Likewise. Replace floor with simple casts.
25383
25384 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25385
25386 [BZ #22517]
25387 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25388 and to the list of locales to be built for testing.
25389 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25390 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25391 and build the collation rules upon that.
25392
25393 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25394
25395 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25396 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25397 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25398 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25399 instead of __insn__xxx.
25400 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25401 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25402 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25403 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25404 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25405 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25406
25407 2017-12-05 Florian Weimer <fweimer@redhat.com>
25408
25409 Linux: Implement interfaces for memory protection keys
25410 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25411 xsignal, xsysconf.
25412 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25413 * support/xunistd.h (xsysconf): Declare.
25414 * support/xraise.c: New file.
25415 * support/xsigaction.c: Likewise.
25416 * support/xsignal.c: Likewise.
25417 * support/xsysconf.c: Likewise.
25418 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25419 pkey_set, pkey_get, pkey_mprotect.
25420 [misc] (tests): Add tst-pkey.
25421 (tst-pkey): Link with -lpthread.
25422 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25423 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25424 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25425 (PKEY_DISABLE_WRITE): Define.
25426 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25427 Declare.
25428 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25429 (SEGV_PKUERR): Add.
25430 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25431 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25432 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25433 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25434 Add.
25435 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25436 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25437 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25438 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25439 * sysdeps/unix/sysv/linux/**.abilist: Update.
25440
25441 2017-12-05 Florian Weimer <fweimer@redhat.com>
25442
25443 * support/tst-test_compare.c (subprocess): Use long long instead
25444 of long argument for consistent type width across 32-bit and
25445 64-bit architectures.
25446 (do_test): Adjust expected output.
25447
25448 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25449
25450 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25451 (cosf): Define using libm_alias_float.
25452 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25453 (fabsf): Define using libm_alias_float.
25454 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25455 (fmaf): Define using libm_alias_float.
25456 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25457 (rintf): Define using libm_alias_float.
25458 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25459 (sinf): Define using libm_alias_float.
25460 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25461 <libm-alias-float.h>.
25462 (modff): Define using libm_alias_float.
25463 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25464 <libm-alias-float.h>.
25465 (logbf): Define using libm_alias_float.
25466 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25467 <libm-alias-float.h>.
25468 (ceilf): Define using libm_alias_float.
25469 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25470 <libm-alias-float.h>.
25471 (copysignf): Define using libm_alias_float.
25472 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25473 <libm-alias-float.h>.
25474 (floorf): Define using libm_alias_float.
25475 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25476 <libm-alias-float.h>.
25477 (llrintf): Define using libm_alias_float.
25478 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25479 <libm-alias-float.h>.
25480 (llroundf): Define using libm_alias_float.
25481 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25482 <libm-alias-float.h>.
25483 (lrintf): Define using libm_alias_float.
25484 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25485 <libm-alias-float.h>.
25486 (lroundf): Define using libm_alias_float.
25487 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25488 <libm-alias-float.h>.
25489 (nearbyintf): Define using libm_alias_float.
25490 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25491 <libm-alias-float.h>.
25492 (rintf): Define using libm_alias_float.
25493 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25494 <libm-alias-float.h>.
25495 (roundf): Define using libm_alias_float.
25496 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25497 <libm-alias-float.h>.
25498 (truncf): Define using libm_alias_float.
25499 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25500 Include <libm-alias-float.h>.
25501 (ceilf): Define using libm_alias_float.
25502 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25503 Include <libm-alias-float.h>.
25504 (copysignf): Define using libm_alias_float.
25505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25506 Include <libm-alias-float.h>.
25507 (floorf): Define using libm_alias_float.
25508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25509 Include <libm-alias-float.h>.
25510 (llrintf): Define using libm_alias_float.
25511 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25512 Include <libm-alias-float.h>.
25513 (llroundf): Define using libm_alias_float.
25514 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25515 Include <libm-alias-float.h>.
25516 (logbf): Define using libm_alias_float.
25517 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25518 Include <libm-alias-float.h>.
25519 (lrintf): Define using libm_alias_float.
25520 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25521 Include <libm-alias-float.h>.
25522 (lroundf): Define using libm_alias_float.
25523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25524 Include <libm-alias-float.h>.
25525 (modff): Define using libm_alias_float.
25526 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25527 Include <libm-alias-float.h>.
25528 (roundf): Define using libm_alias_float.
25529 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25530 Include <libm-alias-float.h>.
25531 (truncf): Define using libm_alias_float.
25532 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25533 <libm-alias-float.h>.
25534 (llrintf): Define using libm_alias_float.
25535 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25536 <libm-alias-float.h>.
25537 (llroundf): Define using libm_alias_float.
25538 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25539 <libm-alias-float.h>.
25540 (ceilf): Define using libm_alias_float.
25541 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25542 <libm-alias-float.h>.
25543 (floorf): Define using libm_alias_float.
25544 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25545 <libm-alias-float.h>.
25546 (llroundf): Define using libm_alias_float.
25547 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25548 <libm-alias-float.h>.
25549 (lroundf): Define using libm_alias_float.
25550 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25551 <libm-alias-float.h>.
25552 (roundf): Define using libm_alias_float.
25553 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25554 <libm-alias-float.h>.
25555 (truncf): Define using libm_alias_float.
25556 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25557 <libm-alias-float.h>.
25558 (copysignf): Define using libm_alias_float.
25559 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25560 <libm-alias-float.h>.
25561 (llrintf): Define using libm_alias_float.
25562 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25563 <libm-alias-float.h>.
25564 (llroundf): Define using libm_alias_float.
25565 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25566 <libm-alias-float.h>.
25567 (lrintf): Define using libm_alias_float.
25568 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25569 <libm-alias-float.h>.
25570 (lroundf): Define using libm_alias_float.
25571 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25572 <libm-alias-float.h>.
25573 (ceilf): Define using libm_alias_float.
25574 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25575 <libm-alias-float.h>.
25576 (copysignf): Define using libm_alias_float.
25577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25578 <libm-alias-float.h>.
25579 (cosf): Define using libm_alias_float.
25580 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25581 <libm-alias-float.h>.
25582 (floorf): Define using libm_alias_float.
25583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25584 <libm-alias-float.h>.
25585 (llrintf): Define using libm_alias_float.
25586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25587 <libm-alias-float.h>.
25588 (llroundf): Define using libm_alias_float.
25589 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25590 <libm-alias-float.h>.
25591 (logbf): Define using libm_alias_float.
25592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25593 <libm-alias-float.h>.
25594 (modff): Define using libm_alias_float.
25595 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25596 <libm-alias-float.h>.
25597 (roundf): Define using libm_alias_float.
25598 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25599 <libm-alias-float.h>.
25600 (sinf): Define using libm_alias_float.
25601 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25602 <libm-alias-float.h>.
25603 (truncf): Define using libm_alias_float.
25604 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25605 <libm-alias-float.h>.
25606 (ceilf): Define using libm_alias_float.
25607 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25608 <libm-alias-float.h>.
25609 (copysignf): Define using libm_alias_float.
25610 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25611 <libm-alias-float.h>.
25612 (floorf): Define using libm_alias_float.
25613 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25614 <libm-alias-float.h>.
25615 (llrintf): Define using libm_alias_float.
25616 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25617 <libm-alias-float.h>.
25618 (llroundf): Define using libm_alias_float.
25619 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25620 <libm-alias-float.h>.
25621 (nearbyintf): Define using libm_alias_float.
25622 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25623 <libm-alias-float.h>.
25624 (rintf): Define using libm_alias_float.
25625 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25626 <libm-alias-float.h>.
25627 (roundf): Define using libm_alias_float.
25628 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25629 <libm-alias-float.h>.
25630 (truncf): Define using libm_alias_float.
25631 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25632 <libm-alias-float.h>.
25633 (ceilf): Define using libm_alias_float.
25634 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25635 <libm-alias-float.h>.
25636 (floorf): Define using libm_alias_float.
25637 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25638 <libm-alias-float.h>.
25639 (llroundf): Define using libm_alias_float.
25640 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25641 <libm-alias-float.h>.
25642 (roundf): Define using libm_alias_float.
25643 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25644 <libm-alias-float.h>.
25645 (truncf): Define using libm_alias_float.
25646 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25647 <libm-alias-float.h>.
25648 (copysignf): Define using libm_alias_float.
25649 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25650 <libm-alias-float.h>.
25651 (llrintf): Define using libm_alias_float.
25652 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25653 <libm-alias-float.h>.
25654 (llroundf): Define using libm_alias_float.
25655 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25656 <libm-alias-float.h>.
25657 (cosf): Define using libm_alias_float.
25658 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25659 <libm-alias-float.h>.
25660 (llrintf): Define using libm_alias_float.
25661 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25662 <libm-alias-float.h>.
25663 (llroundf): Define using libm_alias_float.
25664 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25665 <libm-alias-float.h>.
25666 (sinf): Define using libm_alias_float.
25667
25668 2017-12-04 Florian Weimer <fweimer@redhat.com>
25669
25670 * support/check.h (TEST_COMPARE): Define.
25671 (support_test_compare_failure): Declare.
25672 * support/Makefile (libsupport-routines): Add
25673 support_test_compare_failure.
25674 (tests): Add tst-test_compare.
25675 * support /support_test_compare_failure.c: New file.
25676 * support/tst-test_compare.c: Likewise.
25677
25678 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25679
25680 [BZ #22527]
25681 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25682 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25683 available, this rewrite of the collation rules does reproduce
25684 the test file in the same order.
25685
25686 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25687
25688 [BZ #10580]
25689 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25690 digraphs in the month and day names. Using single code points for
25691 digraphs is deprecated. While there are dedicated Unicode
25692 codepoints, for the digraphs, these are included for backwards
25693 compatibility and modern texts use a sequence of Basic Latin
25694 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25695 This makes the month and day names agree exactly with CLDR now,
25696 CLDR does not use the single code points for the digraphs either.
25697
25698 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25699
25700 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25701
25702 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25703
25704 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25705 of floor.
25706
25707 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25708
25709 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25710 Define only for libc.so.
25711
25712 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25713
25714 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25715 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25716 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25717 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25718 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25719
25720 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25721
25722 [BZ #5997]
25723 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25724
25725 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25726
25727 [BZ libc/19170]
25728 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25729 PREINIT_FUNCTION_WEAK is nonzero.
25730 (gmon_initializer): New function. Put procedure label for it in
25731 .init_array section.
25732 (_init): Don't call PREINIT_FUNCTION.
25733 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25734 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25735 value when map argument is null.
25736
25737 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25738 depi instruction from PIC pc-relative sequence.
25739 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25740 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25741 (elf_machine_load_address): Likewise.
25742 (elf_machine_runtime_setup): Likewise.
25743
25744 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25745
25746 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25747 <libm-alias-double.h>.
25748 (logb): Define using libm_alias_double.
25749 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25750 <libm-alias-double.h>.
25751 (copysign): Define using libm_alias_double.
25752 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25753 <libm-alias-double.h>.
25754 (llrint): Define using libm_alias_double.
25755 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25756 <libm-alias-double.h>.
25757 (llround): Define using libm_alias_double.
25758 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25759 <libm-alias-double.h>.
25760 (lrint): Define using libm_alias_double.
25761 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25762 <libm-alias-double.h>.
25763 (lround): Define using libm_alias_double.
25764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25765 Include <libm-alias-double.h>.
25766 (copysign): Define using libm_alias_double.
25767 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25768 Include <libm-alias-double.h>.
25769 (llrint): Define using libm_alias_double.
25770 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25771 Include <libm-alias-double.h>.
25772 (llround): Define using libm_alias_double.
25773 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25774 <libm-alias-double.h>.
25775 (logb): Define using libm_alias_double.
25776 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25777 Include <libm-alias-double.h>.
25778 (lrint): Define using libm_alias_double.
25779 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25780 Include <libm-alias-double.h>.
25781 (lround): Define using libm_alias_double.
25782 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25783 <libm-alias-double.h>.
25784 (llrint): Define using libm_alias_double.
25785 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25786 <libm-alias-double.h>.
25787 (llround): Define using libm_alias_double.
25788 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25789 <libm-alias-double.h>.
25790 (llround): Define using libm_alias_double.
25791 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25792 <libm-alias-double.h>.
25793 (lround): Define using libm_alias_double.
25794 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25795 <libm-alias-double.h>.
25796 (copysign): Define using libm_alias_double.
25797 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25798 <libm-alias-double.h>.
25799 (llrint): Define using libm_alias_double.
25800 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25801 <libm-alias-double.h>.
25802 (llround): Define using libm_alias_double.
25803 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25804 <libm-alias-double.h>.
25805 (lrint): Define using libm_alias_double.
25806 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25807 <libm-alias-double.h>.
25808 (lround): Define using libm_alias_double.
25809 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25810 <libm-alias-double.h>.
25811 (copysign): Define using libm_alias_double.
25812 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25813 <libm-alias-double.h>.
25814 (llrint): Define using libm_alias_double.
25815 (lrint): Likewise.
25816 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25817 <libm-alias-double.h>.
25818 (llround): Define using libm_alias_double.
25819 (lround): Likewise.
25820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25821 <libm-alias-double.h>.
25822 (logb): Define using libm_alias_double.
25823 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25824 <libm-alias-double.h>.
25825 (copysign): Define using libm_alias_double.
25826 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25827 <libm-alias-double.h>.
25828 (llrint): Define using libm_alias_double.
25829 (lrint): Likewise.
25830 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25831 <libm-alias-double.h>.
25832 (llround): Define using libm_alias_double.
25833 (lround): Likewise.
25834 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25835 <libm-alias-double.h>.
25836 (llround): Define using libm_alias_double.
25837 (lround): Likewise.
25838 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25839 <libm-alias-double.h>.
25840 (copysign): Define using libm_alias_double.
25841 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25842 <libm-alias-double.h>.
25843 (llrint): Define using libm_alias_double.
25844 (lrint): Likewise.
25845 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25846 <libm-alias-double.h>.
25847 (llround): Define using libm_alias_double.
25848 (lround): Likewise.
25849 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25850 <libm-alias-double.h>.
25851 (llrint): Define using libm_alias_double.
25852 (lrint): Likewise.
25853 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25854 <libm-alias-double.h>.
25855 (llround): Define using libm_alias_double.
25856 (lround): Likewise.
25857
25858 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25859
25860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25861 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25862 compat symbol based on llround.
25863
25864 * sysdeps/powerpc/power7/fpu/s_logb.c
25865 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25866 symbol based on __logb, not on logb.
25867 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25868 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25870 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25871
25872 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25873 (rint): Define using libm_alias_double.
25874 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25875 <libm-alias-double.h>.
25876 (modf): Define using libm_alias_double.
25877 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25878 <libm-alias-double.h>.
25879 (ceil): Define using libm_alias_double.
25880 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25881 <libm-alias-double.h>.
25882 (floor): Define using libm_alias_double.
25883 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25884 <libm-alias-double.h>.
25885 (nearbyint): Define using libm_alias_double.
25886 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25887 <libm-alias-double.h>.
25888 (rint): Define using libm_alias_double.
25889 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25890 <libm-alias-double.h>.
25891 (round): Define using libm_alias_double.
25892 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25893 <libm-alias-double.h>.
25894 (trunc): Define using libm_alias_double.
25895 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25896 <libm-alias-double.h>.
25897 (ceil): Define using libm_alias_double.
25898 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25899 Include <libm-alias-double.h>.
25900 (floor): Define using libm_alias_double.
25901 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25902 <libm-alias-double.h>.
25903 (modf): Define using libm_alias_double.
25904 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25905 Include <libm-alias-double.h>.
25906 (round): Define using libm_alias_double.
25907 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25908 Include <libm-alias-double.h>.
25909 (trunc): Define using libm_alias_double.
25910 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25911 <libm-alias-double.h>.
25912 (ceil): Define using libm_alias_double.
25913 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25914 <libm-alias-double.h>.
25915 (floor): Define using libm_alias_double.
25916 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25917 <libm-alias-double.h>.
25918 (round): Define using libm_alias_double.
25919 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25920 <libm-alias-double.h>.
25921 (trunc): Define using libm_alias_double.
25922 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25923 <libm-alias-double.h>.
25924 (ceil): Define using libm_alias_double.
25925 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25926 <libm-alias-double.h>.
25927 (floor): Define using libm_alias_double.
25928 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25929 <libm-alias-double.h>.
25930 (modf): Define using libm_alias_double.
25931 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25932 <libm-alias-double.h>.
25933 (round): Define using libm_alias_double.
25934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25935 <libm-alias-double.h>.
25936 (trunc): Define using libm_alias_double.
25937 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25938 <libm-alias-double.h>.
25939 (ceil): Define using libm_alias_double.
25940 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25941 <libm-alias-double.h>.
25942 (floor): Define using libm_alias_double.
25943 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25944 <libm-alias-double.h>.
25945 (nearbyint): Define using libm_alias_double.
25946 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25947 <libm-alias-double.h>.
25948 (rint): Define using libm_alias_double.
25949 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25950 <libm-alias-double.h>.
25951 (round): Define using libm_alias_double.
25952 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25953 <libm-alias-double.h>.
25954 (trunc): Define using libm_alias_double.
25955 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25956 <libm-alias-double.h>.
25957 (ceil): Define using libm_alias_double.
25958 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25959 <libm-alias-double.h>.
25960 (floor): Define using libm_alias_double.
25961 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25962 <libm-alias-double.h>.
25963 (round): Define using libm_alias_double.
25964 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25965 <libm-alias-double.h>.
25966 (trunc): Define using libm_alias_double.
25967
25968 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25969 (fabs): Define using libm_alias_double.
25970 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25971 (fma): Define using libm_alias_double.
25972 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25973 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25974 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25975 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25976
25977 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25978
25979 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25980
25981 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25982 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25983 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25984
25985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25986 due redirect macro.
25987
25988 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25989
25990 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25991
25992 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25993
25994 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25995 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25996 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25997 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25998
25999 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26000 (libm-sysdep_routines): Add s_nearbyintf-generic and
26001 s_nearbyint-generic.
26002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
26003 New file.
26004 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
26005 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
26006 Likewise.
26007 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
26008 Likewise.
26009 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
26010 file.
26011 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26012 Likewise.
26013
26014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26015 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26017 file.
26018 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26020 Likewise.
26021 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26022 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26024
26025 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26026 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26027 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26028 file.
26029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26030 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26031 Likewise.
26032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26033 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26034 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26035
26036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26037 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26038 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26039 file.
26040 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26041 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26042 Likewise.
26043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26044 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26045 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26046
26047 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26048 (sysdep_calls): New rule.
26049 (sysdep_routines): Use sysdep_calls as base.
26050 (libm-sysdep_routines): Add generic rule for symbols shared with
26051 libc. Add s_copysign-generic and s_copysign-generic objects.
26052 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26053 New file.
26054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26056 Likewise.
26057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26058 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26059 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26060
26061 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26062
26063 [BZ #22519]
26064 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26065 the list of locales to be built for testing.
26066 * localedata/is_IS.UTF-8.in: New file.
26067 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26068 on iso14651_t1.
26069
26070 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26071
26072 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26073 <libm-alias-float.h>.
26074 (fabsf): Define using libm_alias_float.
26075
26076 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26077
26078 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26079
26080 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26081
26082 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26083 <libm-alias-float.h>.
26084 (fabsf): Define using libm_alias_float.
26085 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26086 <libm-alias-float.h>.
26087 (lrintf): Define using libm_alias_float.
26088 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26089 <libm-alias-float.h>.
26090 (rintf): Define using libm_alias_float.
26091
26092 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26093 <libm-alias-double.h>.
26094 (fabs): Define using libm_alias_double.
26095 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26096 <libm-alias-double.h>.
26097 (lrint): Define using libm_alias_double.
26098 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26099 <libm-alias-double.h>.
26100 (rint): Define using libm_alias_double.
26101
26102 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26103 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26104 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26105 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26106 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26107 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26108 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26109 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26110 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26111 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26112 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26113 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26114 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26115 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26116 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26117 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26118 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26119 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26120 s_atan_template.c.
26121 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26122 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26123 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26124 s_ceil_template.c.
26125 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26126 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26127 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26128 s_cos_template.c.
26129 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26130 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26131 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26132 s_expm1_template.c.
26133 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26134 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26135 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26136 s_fabs_template.c.
26137 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26138 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26139 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26140 s_floor_template.c.
26141 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26142 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26143 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26144 s_frexp_template.c.
26145 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26146 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26147 s_lrint_template.c.
26148 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26149 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26150 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26151 s_modf_template.c.
26152 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26153 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26154 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26155 s_nearbyint_template.c.
26156 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26157 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26158 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26159 s_remquo_template.c.
26160 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26161 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26162 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26163 s_rint_template.c.
26164 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26165 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26166 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26167 s_sin_template.c.
26168 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26169 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26170 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26171 s_sincos_template.c.
26172 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26173 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26174 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26175 s_tan_template.c.
26176 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26177 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26178 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26179 s_tanh_template.c.
26180 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26181 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26182 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26183 s_trunc_template.c.
26184 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26185 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26186 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26187 s_atan.c instead of including s_atan.c.
26188 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26189 s_atanf.c instead of including s_atanf.c.
26190 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26191 s_atanl.c instead of including s_atanl.c.
26192 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26193 instead of s_atan.c.
26194 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26195 instead of s_atanf.c.
26196 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26197 instead of s_atanl.c.
26198
26199 * scripts/update-copyrights: Do not handle intl/plural.c
26200 specially.
26201
26202 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26203
26204 [BZ #22432]
26205 * configure.ac (BISON): Require to be present.
26206 * configure: Regenerated.
26207 * intl/Makefile (generated): Add plural.c.
26208 [$(BISON) != no]: Make code unconditional.
26209 (plural.c): Change rule to $(objpfx)plural.c.
26210 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26211 * intl/plural.c: Remove.
26212 * manual/install.texi (Tools for Compilation): Document bison as
26213 required.
26214 * INSTALL: Regenerated.
26215
26216 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26217
26218 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26219 <libm-alias-double.h>.
26220 (llrint): Define using libm_alias_double.
26221 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26222 <libm-alias-float.h>.
26223 (llrintf): Define using libm_alias_float.
26224 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26225 <libm-alias-ldouble.h>.
26226 (llrintl): Define using libm_alias_ldouble.
26227
26228 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26229 declare_mgen_alias instead of weak_alias.
26230 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26231 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26232 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26233
26234 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26235
26236 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26237 Add add_n-generic.
26238 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26239 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26240 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26241
26242 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26243 Add submul_1-generic.
26244 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26245 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26246 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26247
26248 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26249 Add addmul_1-generic.
26250 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26251 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26252 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26253
26254 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26255 Add sub_n-generic.
26256 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26257 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26258 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26259
26260 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26261 Add mul_1-generic.
26262 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26263 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26264 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26265
26266 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26267
26268 According to CLDR, collation rules for Serbian and Bosnian
26269 should be the same as for Croatian.
26270
26271 [BZ #22534]
26272 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26273 and to the list of locales to be built for testing.
26274 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26275 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26276 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26277 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26278
26279 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26280
26281 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26282 to make test case pass.
26283 * localedata/hr_HR.UTF-8.in: Add more test strings.
26284
26285 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26286
26287 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26288
26289 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26290
26291 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26292 the list of locales to built for testing.
26293 * localedata/hr_HR.UTF-8.in: New file.
26294
26295 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26296
26297 [BZ #10580]
26298 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26299 iso14651_t1.
26300 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26301 CLDR (except use ligatures for the digraphs, CLDR does not use
26302 the ligatures), add first_workday, some fixes in the date and time
26303 formats.
26304 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26305 for Đ and đ.
26306 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26307 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26308 Add int_p_cs_precedes and int_n_cs_precedes.
26309 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26310 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26311 LC_MONETARY now).
26312 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26313 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26314 name_miss.
26315 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26316 and lang_lib. Change postal_fmt.
26317
26318 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26319
26320 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26321 <setjmp.h>.
26322 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26323 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26324 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26325 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26326 * sysdeps/generic/setjmpP.h: New file.
26327 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26328 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26329 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26330 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26331 Add jmp_buf-ssp.sym.
26332 (tests): Add tst-saved_mask-1.
26333
26334 2017-11-30 Arjun Shankar <arjun@redhat.com>
26335
26336 [BZ #22375]
26337 CVE-2017-17426
26338 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26339 instead of request2size.
26340
26341 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26342
26343 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26344 (__lllrint): Remove alias.
26345 (lllrint): Likewise.
26346 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26347 (__lllrintf): Likewise.
26348 (lllrintf): Likewise.
26349
26350 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26351 <libm-alias-float.h>.
26352 (copysignf): Define using libm_alias_float.
26353 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26354 <libm-alias-float.h>.
26355 (fabsf): Define using libm_alias_float.
26356 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26357 Include <libm-alias-float.h>.
26358 (copysignf): Define using libm_alias_float.
26359 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26360 <libm-alias-float.h>.
26361 (fabsf): Define using libm_alias_float.
26362 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26363 <libm-alias-float.h>.
26364 (fdimf): Define using libm_alias_float.
26365 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26366 <libm-alias-float.h>.
26367 (fmaf): Define using libm_alias_float.
26368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26369 <libm-alias-float.h>.
26370 (llrintf): Define using libm_alias_float.
26371 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26372 Include <libm-alias-float.h>.
26373 (nearbyintf): Define using libm_alias_float.
26374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26375 <libm-alias-float.h>.
26376 (rintf): Define using libm_alias_float.
26377 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26378 <libm-alias-float.h>.
26379 (llrintf): Define using libm_alias_float.
26380 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26381 <libm-alias-float.h>.
26382 (lrintf): Define using libm_alias_float.
26383 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26384 <libm-alias-float.h>.
26385 (nearbyintf): Define using libm_alias_float.
26386 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26387 <libm-alias-float.h>.
26388 (rintf): Define using libm_alias_float.
26389 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26390 <libm-alias-float.h>.
26391 (ceilf): Define using libm_alias_float.
26392 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26393 <libm-alias-float.h>.
26394 (floorf): Define using libm_alias_float.
26395 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26396 <libm-alias-float.h>.
26397 (fmaf): Define using libm_alias_float.
26398 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26399 <libm-alias-float.h>.
26400 (lrintf): Define using libm_alias_float.
26401 (llrintf): Likewise.
26402 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26403 <libm-alias-float.h>.
26404 (nearbyintf): Define using libm_alias_float.
26405 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26406 <libm-alias-float.h>.
26407 (rintf): Define using libm_alias_float.
26408 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26409 <libm-alias-float.h>.
26410 (truncf): Define using libm_alias_float.
26411 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26412 <libm-alias-float.h>.
26413 (copysignf): Define using libm_alias_float.
26414 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26415 <libm-alias-float.h>.
26416 (fabsf): Define using libm_alias_float.
26417 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26418 <libm-alias-float.h>.
26419 (lrintf): Define using libm_alias_float.
26420 (llrintf): Likewise.
26421 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26422 <libm-alias-float.h>.
26423 (nearbyintf): Define using libm_alias_float.
26424 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26425 <libm-alias-float.h>.
26426 (rintf): Define using libm_alias_float.
26427
26428 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26429
26430 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26431 <libm-alias-double.h>.
26432 (copysign): Define using libm_alias_double.
26433 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26434 <libm-alias-double.h>.
26435 (fabs): Define using libm_alias_double.
26436 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26437 Include <libm-alias-double.h>.
26438 (copysign): Define using libm_alias_double.
26439 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26440 <libm-alias-double.h>.
26441 (fabs): Define using libm_alias_double.
26442 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26443 <libm-alias-double.h>.
26444 (fdim): Define using libm_alias_double.
26445 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26446 <libm-alias-double.h>.
26447 (fma): Define using libm_alias_double.
26448 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26449 <libm-alias-double.h>.
26450 (llrint): Define using libm_alias_double.
26451 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26452 Include <libm-alias-double.h>.
26453 (nearbyint): Define using libm_alias_double.
26454 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26455 <libm-alias-double.h>.
26456 (rint): Define using libm_alias_double.
26457 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26458 <libm-alias-double.h>.
26459 (fabs): Define using libm_alias_double.
26460 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26461 <libm-alias-double.h>.
26462 (llrint): Define using libm_alias_double.
26463 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26464 <libm-alias-double.h>.
26465 (nearbyint): Define using libm_alias_double.
26466 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26467 <libm-alias-double.h>.
26468 (rint): Define using libm_alias_double.
26469 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26470 <libm-alias-double.h>.
26471 (ceil): Define using libm_alias_double.
26472 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26473 <libm-alias-double.h>.
26474 (floor): Define using libm_alias_double.
26475 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26476 <libm-alias-double.h>.
26477 (fma): Define using libm_alias_double.
26478 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26479 <libm-alias-double.h>.
26480 (lrint): Define using libm_alias_double.
26481 (llrint): Likewise.
26482 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26483 <libm-alias-double.h>.
26484 (nearbyint): Define using libm_alias_double.
26485 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26486 <libm-alias-double.h>.
26487 (rint): Define using libm_alias_double.
26488 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26489 <libm-alias-double.h>.
26490 (trunc): Define using libm_alias_double.
26491 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26492 <libm-alias-double.h>.
26493 (copysign): Define using libm_alias_double.
26494 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26495 <libm-alias-double.h>.
26496 (fabs): Define using libm_alias_double.
26497 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26498 <libm-alias-double.h>.
26499 (lrint): Define using libm_alias_double.
26500 (llrint): Likewise.
26501 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26502 <libm-alias-double.h>.
26503 (nearbyint): Define using libm_alias_double.
26504 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26505 <libm-alias-double.h>.
26506 (rint): Define using libm_alias_double.
26507
26508 [BZ #22229]
26509 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26510 <math_ldbl_opt.h>.
26511 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26512
26513 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26514 SPARC --disable-multi-arch glibc variants.
26515
26516 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26517 <libm-alias-float.h>.
26518 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26519 if [SHARED].
26520 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26521 <libm-alias-float.h>.
26522 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26523 if [SHARED].
26524 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26525 <libm-alias-float.h>.
26526 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26527 if [SHARED].
26528 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26529 <libm-alias-float.h>.
26530 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26531 if [SHARED].
26532 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26533 <libm-alias-float.h>.
26534 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26535 if [SHARED].
26536 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26537 <libm-alias-float.h>.
26538 (ceilf): Define using libm_alias_float.
26539 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26540 <libm-alias-float.h>.
26541 (floorf): Define using libm_alias_float.
26542 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26543 <libm-alias-float.h>.
26544 (fmaf): Define using libm_alias_float.
26545 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26546 <libm-alias-float.h>.
26547 (nearbyintf): Define using libm_alias_float.
26548 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26549 <libm-alias-float.h>.
26550 (rintf): Define using libm_alias_float.
26551 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26552 <libm-alias-float.h>.
26553 (truncf): Define using libm_alias_float.
26554 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26555 (copysignf): Define using libm_alias_float.
26556 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26557 (cosf): Define using libm_alias_float.
26558 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26559 (fabsf): Define using libm_alias_float.
26560 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26561 (fmaxf): Define using libm_alias_float.
26562 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26563 (fminf): Define using libm_alias_float.
26564 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26565 (llrintf): Define using libm_alias_float.
26566 [!__ILP32__] (lrintf): Likewise.
26567 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26568 (sincosf): Define using libm_alias_float.
26569 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26570 (sinf): Define using libm_alias_float.
26571 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26572 (lrintf): Define using libm_alias_float.
26573
26574 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26575 <libm-alias-double.h>.
26576 (atan): Define using libm_alias_double.
26577 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26578 <libm-alias-double.h>.
26579 (ceil): Define using libm_alias_double.
26580 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26581 <libm-alias-double.h>.
26582 (floor): Define using libm_alias_double.
26583 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26584 <libm-alias-double.h>.
26585 (fma): Define using libm_alias_double.
26586 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26587 <libm-alias-double.h>.
26588 (nearbyint): Define using libm_alias_double.
26589 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26590 <libm-alias-double.h>.
26591 (rint): Define using libm_alias_double.
26592 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26593 <libm-alias-double.h>.
26594 (sin): Define using libm_alias_double.
26595 (cos): Likewise.
26596 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26597 <libm-alias-double.h>.
26598 (tan): Define using libm_alias_double.
26599 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26600 <libm-alias-double.h>.
26601 (trunc): Define using libm_alias_double.
26602 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26603 (copysign): Define using libm_alias_double.
26604 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26605 (fabs): Define using libm_alias_double.
26606 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26607 (fmax): Define using libm_alias_double.
26608 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26609 (fmin): Define using libm_alias_double.
26610 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26611 (llrint): Define using libm_alias_double.
26612 [!__ILP32__] (lrint): Likewise.
26613 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26614 (lrint): Define using libm_alias_double.
26615
26616 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26617
26618 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26619 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26620 objects.
26621 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26622 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26623 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26624 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26625 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26626 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26627
26628 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26629 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26630 objects.
26631 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26632 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26633 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26634 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26635 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26636 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26637
26638 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26639 (libm-sysdep_routines): Add s_nearbyint-generic and
26640 s_nearbyintf-generic objects.
26641 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26642 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26643 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26644 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26645 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26646 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26647
26648 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26649 Add s_finitef-generic and s_finite-generic objects.
26650 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26651 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26652 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26653 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26654 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26655 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26656
26657 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26658 Add s_isinff-generic and s_isinf-generic objects.
26659 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26660 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26661 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26662 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26663 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26664 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26665
26666 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26667 Add s_isnanf-generic and s_isnan-generic objects.
26668 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26669 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26670 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26671 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26672 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26673 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26674
26675 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26676 macro.
26677 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26678 rule.
26679 (sysdep_routines): Use sysdep_calls as base.
26680 (libm-sysdep_routines): Add generic rule for symbols shared with
26681 libc. Add s_signbit-generic and s_signbitf-generic objects.
26682 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26683 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26684 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26685 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26686 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26687 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26688
26689 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26690
26691 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26692 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26693 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26694 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26695 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26696 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26697 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26698 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26699 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26700 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26701 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26702 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26703 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26704 libm_alias_float_r.
26705 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26706 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26707 (logf): Likewise.
26708 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26709 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26710 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26711 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26712 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26713 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26714 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26715 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26716 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26717 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26718 libm_alias_float.
26719 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26720 (cosf): Likewise.
26721 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26722 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26723 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26724 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26725 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26726 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26727 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26728 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26729 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26730 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26731 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26732 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26733 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26734 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26735 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26736 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26737 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26738 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26739 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26740 libm_alias_float.
26741 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26742 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26743 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26744 * sysdeps/ia64/fpu/w_lgammaf_main.c
26745 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26746 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26747
26748 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26749 Alexandre Oliva <aoliva@redhat.com>
26750
26751 [BZ #17750]
26752 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26753 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26754 accents sorting.
26755 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26756 sorting.
26757 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26758 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26759 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26760 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26761 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26762 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26763 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26764 instead of “ifdef DIACRIT_BACKWARD”.
26765
26766 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26767
26768 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26769 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26770 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26771 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26772 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26773 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26774 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26775 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26776 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26777 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26778 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26779 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26780 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26781 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26782 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26783 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26784 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26785 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26787 ($(have-as-vis3) == yes): Remove conditional.
26788 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26789 Likewise.
26790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26791 file.
26792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26793 file.
26794 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26795 file.
26796 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26797 file.
26798 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26799 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26800 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26801 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26802 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26803 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26804 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26805 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26806
26807 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26808
26809 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26810 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26811 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26812 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26813 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26814 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26815 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26816 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26817 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26818 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26819 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26820 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26821 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26822 libm_alias_double_r.
26823 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26824 (log): Likewise.
26825 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26826 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26827 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26828 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26829 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26830 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26831 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26832 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26833 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26834 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26835 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26836 libm_alias_double.
26837 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26838 (cos): Likewise.
26839 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26840 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26841 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26842 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26843 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26844 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26845 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26846 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26847 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26848 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26849 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26850 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26851 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26852 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26853 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26854 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26855 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26856 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26857 libm_alias_double.
26858 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26859 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26860 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26861 * sysdeps/ia64/fpu/w_lgamma_main.c
26862 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26863 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26864
26865 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26866
26867 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26868 address of $global$ into %dp register earlier. Use pc-relative
26869 instruction sequence for PIC case.
26870
26871 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26872
26873 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26874 (asinhf): Define using libm_alias_float.
26875 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26876 (atanf): Define using libm_alias_float.
26877 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26878 (cbrtf): Define using libm_alias_float.
26879 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26880 (ceilf): Define using libm_alias_float.
26881 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26882 (copysignf): Define using libm_alias_float.
26883 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26884 (expm1f): Define using libm_alias_float.
26885 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26886 (fabsf): Define using libm_alias_float.
26887 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26888 (floorf): Define using libm_alias_float.
26889 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26890 (fmaxf): Define using libm_alias_float.
26891 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26892 (fminf): Define using libm_alias_float.
26893 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26894 (frexpf): Define using libm_alias_float.
26895 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26896 (llrintf): Define using libm_alias_float.
26897 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26898 (logbf): Define using libm_alias_float.
26899 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26900 (lrintf): Define using libm_alias_float.
26901 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26902 (nearbyintf): Define using libm_alias_float.
26903 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26904 (remquof): Define using libm_alias_float.
26905 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26906 (rintf): Define using libm_alias_float.
26907 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26908 (truncf): Define using libm_alias_float.
26909 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26910 <libm-alias-float.h>.
26911 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26912 if [SHARED].
26913 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26914 <libm-alias-float.h>.
26915 (expf): Define using libm_alias_float, or libm_alias_float_other
26916 if [SHARED].
26917 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26918 <libm-alias-float.h>.
26919 (log2f): Define using libm_alias_float, or libm_alias_float_other
26920 if [SHARED].
26921 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26922 <libm-alias-float.h>.
26923 (logf): Define using libm_alias_float, or libm_alias_float_other
26924 if [SHARED].
26925 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26926 <libm-alias-float.h>.
26927 (powf): Define using libm_alias_float, or libm_alias_float_other
26928 if [SHARED].
26929 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26930 <libm-alias-float.h>.
26931 (cosf): Define using libm_alias_float.
26932 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26933 <libm-alias-float.h>.
26934 (sincosf): Define using libm_alias_float.
26935 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26936 <libm-alias-float.h>.
26937 (sinf): Define using libm_alias_float.
26938 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26939 (fmaxf): Define using libm_alias_float.
26940 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26941 (fminf): Define using libm_alias_float.
26942 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26943 <libm-alias-float.h>.
26944 (fmaf): Define using libm_alias_float.
26945
26946 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26947 (asinh): Define using libm_alias_double.
26948 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26949 (atan): Define using libm_alias_double.
26950 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26951 (cbrt): Define using libm_alias_double.
26952 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26953 (ceil): Define using libm_alias_double.
26954 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26955 (copysign): Define using libm_alias_double.
26956 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26957 (expm1): Define using libm_alias_double.
26958 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26959 (fabs): Define using libm_alias_double.
26960 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26961 (fdim): Define using libm_alias_double.
26962 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26963 (floor): Define using libm_alias_double.
26964 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26965 (fmax): Define using libm_alias_double.
26966 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26967 (fmin): Define using libm_alias_double.
26968 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26969 (frexp): Define using libm_alias_double.
26970 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26971 (llrint): Define using libm_alias_double.
26972 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26973 (logb): Define using libm_alias_double.
26974 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26975 (lrint): Define using libm_alias_double.
26976 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26977 (nearbyint): Define using libm_alias_double.
26978 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26979 (remquo): Define using libm_alias_double.
26980 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26981 (rint): Define using libm_alias_double.
26982 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26983 (trunc): Define using libm_alias_double.
26984 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26985 (fmax): Define using libm_alias_double.
26986 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26987 (fmin): Define using libm_alias_double.
26988 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26989 (fma): Define using libm_alias_double.
26990
26991 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26992
26993 [BZ #22370]
26994 * elf/dl-hwcaps.c (ROUND): Removed.
26995 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26996 and ELF_NOTE_NEXT_OFFSET.
26997 * elf/dl-load.c (ROUND): Removed.
26998 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26999 * elf/readelflib.c (ROUND): Removed.
27000 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27001 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
27002 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
27003 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
27004
27005 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27006
27007 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27008 [!__fmaf] (fmaf): Define using libm_alias_float.
27009
27010 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
27011 [!__fma] (fma): Define using libm_alias_double.
27012 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
27013
27014 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27015
27016 [BZ #22336]
27017 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
27018 and implement the collation rules for cs from CLDR on top of that.
27019 * Makefile: Add cs_CZ.UTF-8 to test-input.
27020 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27021
27022 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27023
27024 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27025
27026 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27027 Icarus Sparry <icarus.w.sparry@intel.com>
27028
27029 * benchtests/Makefile:Add BENCHSET to allow subsets of
27030 benchmarks to be run.
27031 * benchtests/README: Add documentation for: Running subsets of
27032 benchmarks.
27033
27034 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27035
27036 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27037 range of tests names.
27038
27039 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27040 result from property and remove "max", min" and "mean" from
27041 required properties based on benchtests/bench-skeleton.c.
27042
27043 2017-11-28 Florian Weimer <fweimer@redhat.com>
27044
27045 [BZ #20826]
27046 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27047 due to Internet requirement.
27048 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27049 tst-getaddrinfo5.
27050 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27051
27052 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27053
27054 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27055 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27056 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27057 (sysdep_routines): Add memset-ultra1.
27058 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27059 file.
27060 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27061 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27062 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27063 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27064 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27065 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27066 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27067 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27068
27069 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27070 file.
27071 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27072 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27073 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27074 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27075 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27076 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27077 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27078 macro.
27079 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27080 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27081 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27082 (sysdep_routines): Add memcpy-ultra1.
27083 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27084 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27085
27086 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27087
27088 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27089 (cfloat_versions): Take function argument without trailing 'f'.
27090 Call libm_alias_float_other.
27091 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27092 * sysdeps/alpha/fpu/cargf.c: Likewise.
27093 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27094 * sysdeps/alpha/fpu/conjf.c: Likewise.
27095 * sysdeps/alpha/fpu/crealf.c: Likewise.
27096 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27097 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27098 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27099 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27100 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27101 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27102 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27103 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27104 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27105 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27106 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27107 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27108 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27109 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27110 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27111 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27112 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27113 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27114 (clog10f): Use libm_alias_float_other.
27115 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27116 (ceilf): Define using libm_alias_float.
27117 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27118 (copysignf): Define using libm_alias_float.
27119 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27120 (fabsf): Define using libm_alias_float.
27121 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27122 (floorf): Define using libm_alias_float.
27123 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27124 (fmaxf): Define using libm_alias_float.
27125 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27126 (fminf): Define using libm_alias_float.
27127 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27128 (lrintf): Define using libm_alias_float.
27129 (llrintf): Likewise.
27130 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27131 (lroundf): Define using libm_alias_float.
27132 (llroundf): Likewise.
27133 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27134 (rintf): Define using libm_alias_float.
27135 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27136 (truncf): Define using libm_alias_float.
27137
27138 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27139 (ceilf): Define using libm_alias_float.
27140 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27141 (floorf): Define using libm_alias_float.
27142 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27143 (fmaf): Define using libm_alias_float.
27144 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27145 (fmaxf): Define using libm_alias_float.
27146 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27147 (fminf): Define using libm_alias_float.
27148 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27149 (llrintf): Define using libm_alias_float.
27150 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27151 (llroundf): Define using libm_alias_float.
27152 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27153 (lrintf): Define using libm_alias_float.
27154 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27155 (lroundf): Define using libm_alias_float.
27156 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27157 <libm-alias-float.h>.
27158 (nearbyintf): Define using libm_alias_float.
27159 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27160 (rintf): Define using libm_alias_float.
27161 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27162 (roundf): Define using libm_alias_float.
27163 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27164 (truncf): Define using libm_alias_float.
27165
27166 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27167 (ceil): Define using libm_alias_double.
27168 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27169 (copysign): Define using libm_alias_double.
27170 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27171 (fabs): Define using libm_alias_double.
27172 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27173 (floor): Define using libm_alias_double.
27174 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27175 (fmax): Define using libm_alias_double.
27176 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27177 (fmin): Define using libm_alias_double.
27178 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27179 (lrint): Define using libm_alias_double.
27180 (llrint): Likewise.
27181 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27182 (lround): Define using libm_alias_double.
27183 (llround): Likewise.
27184 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27185 (rint): Define using libm_alias_double.
27186 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27187 (trunc): Define using libm_alias_double.
27188
27189 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27190 (libm_alias_double_r): Add semicolon after weak_alias call.
27191
27192 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27193
27194 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27195 (ceil): Define using libm_alias_double.
27196 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27197 (floor): Define using libm_alias_double.
27198 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27199 (fma): Define using libm_alias_double.
27200 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27201 (fmax): Define using libm_alias_double.
27202 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27203 (fmin): Define using libm_alias_double.
27204 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27205 (llrint): Define using libm_alias_double.
27206 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27207 (llround): Define using libm_alias_double.
27208 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27209 (lrint): Define using libm_alias_double.
27210 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27211 (lround): Define using libm_alias_double.
27212 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27213 (nearbyint): Define using libm_alias_double.
27214 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27215 (rint): Define using libm_alias_double.
27216 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27217 (round): Define using libm_alias_double.
27218 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27219 (trunc): Define using libm_alias_double.
27220
27221 2017-11-27 Florian Weimer <fweimer@redhat.com>
27222
27223 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27224 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27225 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27226 (tests): Add tst-mlock2.
27227 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27228 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27229 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27230 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27231 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27232 for mlock. Document mlock2.
27233
27234 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27235
27236 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27237 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27238 Likewise.
27239 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27240 Likewise.
27241 * sysdeps/x86/Makeconfig: New file.
27242 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27243 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27244 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27245 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27246 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27247 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27248 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27249 Likewise.
27250 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27251 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27252 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27253 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27254 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27255 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27256 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27257 * manual/math.texi (Mathematics): Document support for _Float64x.
27258 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27259 * stdlib/Versions (GLIBC_2.27): Likewise.
27260 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27261 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27262 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27263 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27264 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27265 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27266 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27267 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27268 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27269 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27270 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27271 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27273 Likewise.
27274 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27275 Likewise.
27276 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27277 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27278 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27279 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27280 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27281 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27282 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27283 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27284 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27285 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27286 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27287 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27288 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27289 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27290
27291 2017-11-27 Andreas Schwab <schwab@suse.de>
27292
27293 * elf/Makefile (dl-routines): Add dl-sort-maps.
27294 * elf/dl-sort-maps.c: New file.
27295 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27296 (_dl_sort_maps): Declare.
27297 * elf/dl-fini.c (_dl_sort_fini): Remove.
27298 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27299 * elf/dl-close.c (_dl_close_worker): Likewise.
27300 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27301 open-coding it.
27302 * elf/dl-open.c (dl_open_worker): Likewise.
27303
27304 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27305
27306 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27307 using libm_alias_float128.
27308 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27309 Likewise.
27310 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27311 Likewise.
27312 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27313 (setpayloadsigf128): Likewise.
27314 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27315 Likewise.
27316 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27317 Likewise.
27318
27319 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27320 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27321 -mfloat128 to CFLAGS.
27322 ($(foreach
27323 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27324 Likewise.
27325 (CFLAGS-libm-test-support-float64x.c): New variable.
27326 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27327 $(f128-loader-link) to gnulib-tests.
27328
27329 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27330 (libm_alias_float128_other_r): If
27331 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27332 alias.
27333 (libm_alias_float128_r): Add semicolon after weak_alias call.
27334 * sysdeps/generic/libm-alias-ldouble.h
27335 (libm_alias_ldouble_other_r_f128): New macro.
27336 (libm_alias_ldouble_other_r_f64x): Likewise.
27337 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27338 and libm_alias_ldouble_other_r_f64x.
27339 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27340 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27341 (libm_alias_ldouble_other_r_f128): New macro.
27342 (libm_alias_ldouble_other_r_f64x): Likewise.
27343 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27344 and libm_alias_ldouble_other_r_f64x.
27345
27346 * stdlib/strfroml.c: Always include <stdlib.h>.
27347 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27348 undefine as macro and define as weak alias.
27349 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27350 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27351 <stdlib.h>.
27352 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27353 Define and later undefine as macro and define as weak alias.
27354
27355 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27356 Define and later undefine as macro. Define as weak alias if
27357 [!USE_WIDE_CHAR].
27358 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27359 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27360 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27361 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27362 Define and later undefine as macro. Define as weak alias if
27363 [!USE_WIDE_CHAR].
27364 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27365 Define and later undefine as macro. Define as weak alias if
27366 [USE_WIDE_CHAR].
27367 * sysdeps/ieee754/float128/strtof128_l.c
27368 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27369 Define and later undefine as macro. Define as weak alias if
27370 [!USE_WIDE_CHAR].
27371 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27372 Define and later undefine as macro. Define as weak alias if
27373 [USE_WIDE_CHAR].
27374 * sysdeps/ieee754/ldbl-128/strtold_l.c
27375 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27376 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27377 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27378 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27379 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27380 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27381 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27382 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27383 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27384 * sysdeps/ieee754/ldbl-96/strtold_l.c
27385 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27386 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27387 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27388 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27389
27390 * math/test-float64x.h: New file.
27391 * math/Makefile (type-float64x-yes): New variable.
27392 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27393
27394 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27395 function-like macro.
27396 (min_of_type_): Likewise.
27397 (min_of_type_l): Likewise.
27398 (min_of_type_f128): Likewise.
27399 (min_of_type): Pass () as last argument of __MATH_TG.
27400
27401 * stdlib/tst-strtod-round-skeleton.c
27402 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27403 headers.
27404
27405 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27406 for combinations of long double with _Float64 and _Float64x.
27407
27408 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27409 (__DECL_SIMD_cosf32): Likewise.
27410 (__DECL_SIMD_cosf64): Likewise.
27411 (__DECL_SIMD_cosf32x): Likewise.
27412 (__DECL_SIMD_cosf64x): Likewise.
27413 (__DECL_SIMD_cosf128x): Likewise.
27414 (__DECL_SIMD_sinf16): Likewise.
27415 (__DECL_SIMD_sinf32): Likewise.
27416 (__DECL_SIMD_sinf64): Likewise.
27417 (__DECL_SIMD_sinf32x): Likewise.
27418 (__DECL_SIMD_sinf64x): Likewise.
27419 (__DECL_SIMD_sinf128x): Likewise.
27420 (__DECL_SIMD_sincosf16): Likewise.
27421 (__DECL_SIMD_sincosf32): Likewise.
27422 (__DECL_SIMD_sincosf64): Likewise.
27423 (__DECL_SIMD_sincosf32x): Likewise.
27424 (__DECL_SIMD_sincosf64x): Likewise.
27425 (__DECL_SIMD_sincosf128x): Likewise.
27426 (__DECL_SIMD_logf16): Likewise.
27427 (__DECL_SIMD_logf32): Likewise.
27428 (__DECL_SIMD_logf64): Likewise.
27429 (__DECL_SIMD_logf32x): Likewise.
27430 (__DECL_SIMD_logf64x): Likewise.
27431 (__DECL_SIMD_logf128x): Likewise.
27432 (__DECL_SIMD_expf16): Likewise.
27433 (__DECL_SIMD_expf32): Likewise.
27434 (__DECL_SIMD_expf64): Likewise.
27435 (__DECL_SIMD_expf32x): Likewise.
27436 (__DECL_SIMD_expf64x): Likewise.
27437 (__DECL_SIMD_expf128x): Likewise.
27438 (__DECL_SIMD_powf16): Likewise.
27439 (__DECL_SIMD_powf32): Likewise.
27440 (__DECL_SIMD_powf64): Likewise.
27441 (__DECL_SIMD_powf32x): Likewise.
27442 (__DECL_SIMD_powf64x): Likewise.
27443 (__DECL_SIMD_powf128x): Likewise.
27444
27445 * stdlib/Versions (libc): Move entries for wcstof128 and
27446 wcstof128_l to ....
27447 * wcsmbs/Versions (libc): ... here.
27448 Include <float128-abi.h>.
27449
27450 2017-11-24 Florian Weimer <fweimer@redhat.com>
27451
27452 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27453 bits/mman-shared.h.
27454 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27455 <bits/mman-shared.h>.
27456 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27457 to ...
27458 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27459 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27460 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27461 <bits/mman-shared.h>.
27462
27463 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27464
27465 [BZ #22457]
27466 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27467 posix_memalign/free.
27468 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27469
27470 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27471
27472 [BZ #22469]
27473 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27474 and implement the collation rules for pl from CLDR on top of that.
27475 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27476 of locales to be built for testing.
27477 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27478
27479 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27480
27481 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27482 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27483 libm_alias_ldouble_other.
27484 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27485 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27486 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27487 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27488 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27489 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27490 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27491 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27492 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27493 libm_alias_ldouble_r.
27494 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27495 libm_alias_ldouble_other.
27496 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27497 (log10l): Likewise.
27498 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27499 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27500 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27501 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27502 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27503 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27504 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27505 (atan2l): Likewise.
27506 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27507 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27508 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27509 libm_alias_ldouble.
27510 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27511 (cosl): Likewise.
27512 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27513 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27514 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27515 (expl): Likewise.
27516 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27517 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27518 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27519 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27520 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27521 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27522 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27523 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27524 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27525 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27526 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27527 libm_alias_ldouble.
27528 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27529 libm_alias_ldouble_other.
27530 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27531 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27532 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27533 libm_alias_ldouble.
27534 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27535 libm_alias_ldouble_other.
27536 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27537 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27538 * sysdeps/ia64/fpu/w_lgammal_main.c
27539 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27540 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27541
27542 2017-11-23 Florian Weimer <fweimer@redhat.com>
27543
27544 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27545 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27546 alike. Remove freeres marker.
27547 * malloc/arena.c (arena_thread_freeres): Call
27548 tcache_thread_shutdown.
27549
27550 2017-11-23 Florian Weimer <fweimer@redhat.com>
27551
27552 [BZ #22459]
27553 Export nscd hash function as __nss_hash.
27554 * include/nss.h (__nss_hash): Declare.
27555 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27556 symbol.
27557 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27558 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27559 of __nscd_hash.
27560 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27561 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27562 * nss/Makefiles (routines): Add nss_hash.
27563 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27564 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27565 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27566 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27567
27568 2017-11-23 Florian Weimer <fweimer@redhat.com>
27569
27570 [BZ #22478]
27571 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27572 Return error code, not -1.
27573 * signal/tst-sigwait-eintr.c: New file.
27574 * signal/Makefile (tests): Add tst-sigwait-eintr.
27575
27576 2017-11-23 Florian Weimer <fweimer@redhat.com>
27577
27578 Linux: Add memfd_create system call wrapper
27579 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27580 tst-memfd_create.
27581 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27582 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27583 [__USE_GNU] (memfd_create): Declare.
27584 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27585 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27586 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27587 * sysdeps/unix/sysv/linux/**.abilist: Update.
27588 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27589
27590 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27591
27592 * localedata/gen-locale.sh: Fix typo in variable name.
27593
27594 * resolv/res_debug.c (p_secstodate): Condition definition on
27595 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27596 directly as __p_secstodate, and as a compat symbol. Do not use
27597 libresolv_hidden_def.
27598 * resolv/resolv.h (p_secstodate): Remove macro and function
27599 declaration.
27600 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27601 using p_secstodate.
27602 * include/resolv.h (__p_secstodate): Do not use
27603 libresolv_hidden_proto.
27604 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27605 (tests-internal): ... here.
27606 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27607 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27608 and declare and use __p_secstodate and use compat_symbol_reference
27609 in that case.
27610 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27611 implementation returning 77.
27612
27613 [BZ #22463]
27614 * resolv/res_debug.c: Include <libc-diag.h>.
27615 (p_secstodate): Assert time_t at least as wide as u_long. On
27616 overflow, use integer seconds since the epoch as output, or use
27617 "<overflow>" as output and set errno to EOVERFLOW if integer
27618 seconds since the epoch would be 14 or more characters.
27619 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27620 for sprintf call.
27621 * resolv/tst-p_secstodate.c: New file.
27622 * resolv/Makefile (tests): Add tst-p_secstodate.
27623 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27624
27625 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27626 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27627 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27628
27629 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27630
27631 * posix/regcomp.c (init_word_char): Add comments.
27632
27633 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27634
27635 [BZ #22447]
27636 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27637 strlen to compute length of ut_user and set trailing NUL byte of
27638 result explicitly.
27639
27640 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27641
27642 [BZ #15537]
27643 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27644 using “copy "iso14651_t1"” and then implementing the
27645 collation rules for lv from CLDR on top of that.
27646 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27647 of locales to be built for testing.
27648 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27649 sorting.
27650
27651 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27652
27653 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27654 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27655 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27656 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27657 [__USE_MISC] (MADV_HWPOISON): New macro.
27658 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27659
27660 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27661
27662 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27663 -Wmissing-braces on GCC 4.9.
27664
27665 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27666
27667 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27668 * sysdeps/s390/s390-32/start.S (_start): Likewise
27669 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27670 (thread_start): Likewise.
27671 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27672 (thread_start): Likewise.
27673 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27674 (__makecontext_ret): Likewise.
27675 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27676 (__makecontext_ret): Likewise.
27677
27678 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27679
27680 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27681 __wcschrnul): Remove attribute_hidden.
27682
27683 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27684
27685 regex: don't assume uint64_t or uint32_t
27686 This avoids -Werror=overflow errors for 32-bit systems in
27687 the 64-bit case. Problem reported by Joseph Myers in:
27688 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27689 Also, when this code is used in Gnulib it ports to platforms
27690 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27691 them, and on some 32-bit compilers there is no uint64_t.
27692 Problem reported by Gianluigi Tiesi in:
27693 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27694 * posix/regcomp.c (init_word_char): Don't assume that the types
27695 uint64_t and uint32_t exist. Adapted from Gnulib patch
27696 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27697 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27698
27699 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27700
27701 * sysdeps/aarch64/memset-reg.h: New file.
27702 * sysdeps/aarch64/memset.S: Use it.
27703 (__memset): Rename to MEMSET macro.
27704 [ZVA_MACRO]: Use zva_macro.
27705 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27706 Add memset_generic and memset_falkor.
27707 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27708 (__libc_ifunc_impl_list): Add memset ifuncs.
27709 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27710 local variable zva_size.
27711 * sysdeps/aarch64/multiarch/memset.c: New file.
27712 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27713 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27714 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27715 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27716 (DCZID_DZP_MASK): New macro.
27717 (DCZID_BS_MASK): Likewise.
27718 (init_cpu_features): Read and set zva_size.
27719 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27720 (struct cpu_features): New member zva_size.
27721
27722 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27723 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27724 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27725
27726 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27727 backwards. Fix timing computation.
27728 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27729 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27730 on memset by N at a time. Fix timing computation.
27731
27732 2017-11-20 Florian Weimer <fweimer@redhat.com>
27733
27734 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27735 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27736
27737 2017-11-19 Florian Weimer <fweimer@redhat.com>
27738
27739 manual: Document mprotect
27740 * manual/memory.texi (Memory Protection): New section.
27741 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27742 documentation of PROT_* flags and reference the Memory Protection
27743 section instead.
27744
27745 2017-11-19 Florian Weimer <fweimer@redhat.com>
27746
27747 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27748 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27749 (Scatter-Gather): ... to here. Remove misleading comment.
27750
27751 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27752
27753 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27754 style.
27755
27756 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27757 when /proc/<pid>/setgroups does not exist.
27758
27759 2017-11-18 Florian Weimer <fweimer@redhat.com>
27760
27761 * sysdeps/unix/sysv/linux/tst-ttyname.c
27762 (become_root_in_mount_ns): Remove.
27763 (do_in_chroot_1): Call support_enter_mount_namespace.
27764 (do_in_chroot_2): Likewise.
27765 (do_test): Call support_become_root early.
27766
27767 2017-11-18 Florian Weimer <fweimer@redhat.com>
27768
27769 * support/namespace.h (support_enter_mount_namespace): Declare.
27770 * support/support_enter_mount_namespace.c: New file.
27771 * support/Makefile (libsupport-routines): Add
27772 support_enter_mount_namespace.
27773
27774 2017-11-18 Florian Weimer <fweimer@redhat.com>
27775
27776 * support/temp_file.c (support_create_temp_directory): Use
27777 test_dir and do not rely on the presence of the XXXXXX suffix.
27778 * support/temp_file.h (support_create_temp_directory): Update
27779 comment.
27780 * support/tst-xreadlink.c (do_test): Adjust.
27781 * support/support_chroot.c (support_chroot_create): Likewise.
27782
27783 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27784
27785 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27786 macro.
27787 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27788 htm-no-suspend.
27789
27790 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27791
27792 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27793 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27794 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27795 (ceill): Define using libm_alias_ldouble.
27796 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27797 <libm-alias-ldouble.h>.
27798 (copysignl): Define using libm_alias_ldouble.
27799 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27800 (fabsl): Define using libm_alias_ldouble.
27801 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27802 (floorl): Define using libm_alias_ldouble.
27803 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27804 (fmaxl): Define using libm_alias_ldouble.
27805 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27806 (fminl): Define using libm_alias_ldouble.
27807 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27808 (llrintl): Define using libm_alias_ldouble.
27809 (lrintl): Likewise.
27810 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27811 <libm-alias-ldouble.h>.
27812 (nearbyintl): Define using libm_alias_ldouble.
27813 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27814 (truncl): Define using libm_alias_ldouble.
27815 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27816 <libm-alias-ldouble.h>.
27817 (lrintl): Define using libm_alias_ldouble.
27818
27819 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27820 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27821 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27822 (asinhl): Define using libm_alias_ldouble.
27823 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27824 (atanl): Define using libm_alias_ldouble.
27825 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27826 (cbrtl): Define using libm_alias_ldouble.
27827 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27828 (ceill): Define using libm_alias_ldouble.
27829 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27830 (copysignl): Define using libm_alias_ldouble.
27831 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27832 (fabsl): Define using libm_alias_ldouble.
27833 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27834 (floorl): Define using libm_alias_ldouble.
27835 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27836 (fmaxl): Define using libm_alias_ldouble.
27837 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27838 (fminl): Define using libm_alias_ldouble.
27839 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27840 (frexpl): Define using libm_alias_ldouble.
27841 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27842 (llrintl): Define using libm_alias_ldouble.
27843 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27844 (logbl): Define using libm_alias_ldouble.
27845 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27846 (lrintl): Define using libm_alias_ldouble.
27847 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27848 (nearbyintl): Define using libm_alias_ldouble.
27849 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27850 (nextafterl): Define using libm_alias_ldouble.
27851 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27852 (remquol): Define using libm_alias_ldouble.
27853 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27854 (rintl): Define using libm_alias_ldouble.
27855 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27856 (truncl): Define using libm_alias_ldouble.
27857 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27858 (fmaxl): Define using libm_alias_ldouble.
27859 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27860 (fminl): Define using libm_alias_ldouble.
27861
27862 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27863 to C syntax instead of availability and properties of types.
27864 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27865 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27866 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27867 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27868 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27869 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27870
27871 2017-11-17 Florian Weimer <fweimer@redhat.com>
27872
27873 support_become_root: Enable file creation in namespaces.
27874 * support/support_become_root.c (setup_mapping): New function.
27875 (support_become_root): Call it.
27876
27877 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27878
27879 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27880 macro.
27881
27882 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27883
27884 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27885 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27886
27887 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27888
27889 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27890
27891 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27892 version to 4.14.
27893
27894 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27895
27896 * INSTALL: Fix botched up regeneration.
27897
27898 * NEWS: Update sourceare link to https.
27899 * configure.ac: Likewise.
27900 * crypt/md5test-giant.c: Likewise.
27901 * dlfcn/bug-atexit1.c: Likewise.
27902 * dlfcn/bug-atexit2.c: Likewise.
27903 * localedata/README: Likewise.
27904 * malloc/tst-mallocfork.c: Likewise.
27905 * manual/install.texi: Likewise.
27906 * nptl/tst-pthread-getattr.c: Likewise.
27907 * stdio-common/tst-fgets.c: Likewise.
27908 * stdio-common/tst-fwrite.c: Likewise.
27909 * sunrpc/Makefile: Likewise.
27910 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27911 * wcsmbs/tst-mbrtowc2.c: Likewise.
27912 * configure: Regenerate.
27913 * INSTALL: Regenerate.
27914
27915 2017-11-15 Martin Sebor <msebor@redhat.com>
27916
27917 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27918 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27919 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27920
27921 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27922
27923 [BZ #22145]
27924 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27925 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27926
27927 [BZ #22145]
27928 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27929 Defer is_pty check until end of the function.
27930 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27931
27932 [BZ #22145]
27933 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27934 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27935 (ttyname): Likewise.
27936 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27937 (__ttyname_r): Likewise.
27938
27939 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27940 int to bool.
27941
27942 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27943
27944 * manual/terminal.texi (Is It a Terminal):
27945 Mention ENODEV for ttyname and ttyname_r.
27946
27947 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27948
27949 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27950 constant and macro.
27951
27952 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27953 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27954 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27955 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27956 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27957 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27958
27959 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27960
27961 * signal/sigrelse.c (sigrelse): Optimize implementation.
27962
27963 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27964 (__sigpause): Rely on __sigsuspend to implement single thread
27965 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27966
27967 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27968
27969 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27970 kernel version to 4.14.
27971
27972 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27973
27974 [BZ #22442]
27975 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27976 Check if ifname is too long.
27977
27978 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27979
27980 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27981
27982 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27983
27984 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27985 was accidentally lost.
27986
27987 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27988
27989 * localedata/locales/az_IR: Add standard copyright header.
27990
27991 2017-11-15 Florian Weimer <fweimer@redhat.com>
27992
27993 [BZ #22439]
27994 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27995 not just the top one. Output a new "subheaps" statistic.
27996
27997 2017-11-15 Florian Weimer <fweimer@redhat.com>
27998
27999 [BZ #22408]
28000 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
28001 under the per-arena lock.
28002 * malloc/Makefile (tests): Add tst-malloc_info.
28003 (tst-malloc_info): Link with libpthread.
28004 * malloc/tst-malloc_info.c: New file.
28005
28006 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28007
28008 [BZ #21660]
28009 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
28010 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
28011 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
28012 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
28013 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28014 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28015 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28016 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28017 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28018 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28019 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28020 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28021 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28022 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28023 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28024 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28025 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28026 (__floating_type): Likewise.
28027 (__real_integer_type): Likewise.
28028 (__complex_integer_type): Likewise.
28029 (__expr_is_real): Likewise.
28030 (__tgmath_real_type_sub): Likewise.
28031 (__tgmath_real_type): Likewise.
28032 (__tgmath_complex_type_sub): Likewise.
28033 (__tgmath_complex_type): Likewise.
28034 (__TGMATH_F128): Likewise.
28035 (__TGMATH_CF128): Likewise.
28036 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28037 new macros.
28038 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28039 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28040 Likewise.
28041 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28042 Likewise.
28043 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28044 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28045 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28046 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28047 Likewise.
28048 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28049 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28050 Likewise.
28051 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28052 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28053 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28054 Likewise.
28055 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28056 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28057 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28058 (cimag): Likewise.
28059 (creal): Likewise.
28060
28061 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28062
28063 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28064 for stpncpy calls for GCC 8.
28065 (test_strncat): Disable -Wstringop-truncation warning for strncat
28066 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28067 strncat call for GCC 7.
28068 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28069 calls for GCC 8.
28070 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28071 trailing NUL.
28072
28073 * string/bug-strncat1.c: Include <libc-diag.h>.
28074 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28075
28076 2017-11-13 Claude Paroz <claude@2xlibre.net>
28077
28078 [BZ #22387]
28079 * localedata/locales/aa_DJ: Improved readibility by replacing
28080 <Uxxxx> sequences in the ASCII printable range by their ASCII
28081 character equivalents.
28082 * localedata/locales/aa_ER: Likewise.
28083 * localedata/locales/aa_ER@saaho: Likewise.
28084 * localedata/locales/aa_ET: Likewise.
28085 * localedata/locales/af_ZA: Likewise.
28086 * localedata/locales/agr_PE: Likewise.
28087 * localedata/locales/ak_GH: Likewise.
28088 * localedata/locales/am_ET: Likewise.
28089 * localedata/locales/anp_IN: Likewise.
28090 * localedata/locales/ar_AE: Likewise.
28091 * localedata/locales/ar_BH: Likewise.
28092 * localedata/locales/ar_DZ: Likewise.
28093 * localedata/locales/ar_EG: Likewise.
28094 * localedata/locales/ar_IN: Likewise.
28095 * localedata/locales/ar_IQ: Likewise.
28096 * localedata/locales/ar_JO: Likewise.
28097 * localedata/locales/ar_KW: Likewise.
28098 * localedata/locales/ar_LB: Likewise.
28099 * localedata/locales/ar_LY: Likewise.
28100 * localedata/locales/ar_MA: Likewise.
28101 * localedata/locales/ar_OM: Likewise.
28102 * localedata/locales/ar_QA: Likewise.
28103 * localedata/locales/ar_SA: Likewise.
28104 * localedata/locales/ar_SD: Likewise.
28105 * localedata/locales/ar_SS: Likewise.
28106 * localedata/locales/ar_SY: Likewise.
28107 * localedata/locales/ar_TN: Likewise.
28108 * localedata/locales/ar_YE: Likewise.
28109 * localedata/locales/as_IN: Likewise.
28110 * localedata/locales/ast_ES: Likewise.
28111 * localedata/locales/ayc_PE: Likewise.
28112 * localedata/locales/az_AZ: Likewise.
28113 * localedata/locales/az_IR: Likewise.
28114 * localedata/locales/be_BY: Likewise.
28115 * localedata/locales/be_BY@latin: Likewise.
28116 * localedata/locales/bem_ZM: Likewise.
28117 * localedata/locales/ber_DZ: Likewise.
28118 * localedata/locales/ber_MA: Likewise.
28119 * localedata/locales/bg_BG: Likewise.
28120 * localedata/locales/bhb_IN: Likewise.
28121 * localedata/locales/bho_IN: Likewise.
28122 * localedata/locales/bi_VU: Likewise.
28123 * localedata/locales/bn_BD: Likewise.
28124 * localedata/locales/bn_IN: Likewise.
28125 * localedata/locales/bo_CN: Likewise.
28126 * localedata/locales/bo_IN: Likewise.
28127 * localedata/locales/br_FR: Likewise.
28128 * localedata/locales/brx_IN: Likewise.
28129 * localedata/locales/bs_BA: Likewise.
28130 * localedata/locales/byn_ER: Likewise.
28131 * localedata/locales/ca_AD: Likewise.
28132 * localedata/locales/ca_ES: Likewise.
28133 * localedata/locales/ca_FR: Likewise.
28134 * localedata/locales/ca_IT: Likewise.
28135 * localedata/locales/ce_RU: Likewise.
28136 * localedata/locales/chr_US: Likewise.
28137 * localedata/locales/cmn_TW: Likewise.
28138 * localedata/locales/crh_UA: Likewise.
28139 * localedata/locales/cs_CZ: Likewise.
28140 * localedata/locales/csb_PL: Likewise.
28141 * localedata/locales/cv_RU: Likewise.
28142 * localedata/locales/cy_GB: Likewise.
28143 * localedata/locales/da_DK: Likewise.
28144 * localedata/locales/de_AT: Likewise.
28145 * localedata/locales/de_BE: Likewise.
28146 * localedata/locales/de_CH: Likewise.
28147 * localedata/locales/de_DE: Likewise.
28148 * localedata/locales/de_IT: Likewise.
28149 * localedata/locales/de_LI: Likewise.
28150 * localedata/locales/de_LU: Likewise.
28151 * localedata/locales/doi_IN: Likewise.
28152 * localedata/locales/dv_MV: Likewise.
28153 * localedata/locales/dz_BT: Likewise.
28154 * localedata/locales/el_CY: Likewise.
28155 * localedata/locales/el_GR: Likewise.
28156 * localedata/locales/en_AG: Likewise.
28157 * localedata/locales/en_AU: Likewise.
28158 * localedata/locales/en_BW: Likewise.
28159 * localedata/locales/en_CA: Likewise.
28160 * localedata/locales/en_DK: Likewise.
28161 * localedata/locales/en_GB: Likewise.
28162 * localedata/locales/en_HK: Likewise.
28163 * localedata/locales/en_IE: Likewise.
28164 * localedata/locales/en_IL: Likewise.
28165 * localedata/locales/en_IN: Likewise.
28166 * localedata/locales/en_NG: Likewise.
28167 * localedata/locales/en_NZ: Likewise.
28168 * localedata/locales/en_PH: Likewise.
28169 * localedata/locales/en_SG: Likewise.
28170 * localedata/locales/en_US: Likewise.
28171 * localedata/locales/en_ZA: Likewise.
28172 * localedata/locales/en_ZM: Likewise.
28173 * localedata/locales/en_ZW: Likewise.
28174 * localedata/locales/eo: Likewise.
28175 * localedata/locales/es_AR: Likewise.
28176 * localedata/locales/es_BO: Likewise.
28177 * localedata/locales/es_CL: Likewise.
28178 * localedata/locales/es_CO: Likewise.
28179 * localedata/locales/es_CR: Likewise.
28180 * localedata/locales/es_CU: Likewise.
28181 * localedata/locales/es_DO: Likewise.
28182 * localedata/locales/es_EC: Likewise.
28183 * localedata/locales/es_ES: Likewise.
28184 * localedata/locales/es_GT: Likewise.
28185 * localedata/locales/es_HN: Likewise.
28186 * localedata/locales/es_MX: Likewise.
28187 * localedata/locales/es_NI: Likewise.
28188 * localedata/locales/es_PA: Likewise.
28189 * localedata/locales/es_PE: Likewise.
28190 * localedata/locales/es_PR: Likewise.
28191 * localedata/locales/es_PY: Likewise.
28192 * localedata/locales/es_SV: Likewise.
28193 * localedata/locales/es_US: Likewise.
28194 * localedata/locales/es_UY: Likewise.
28195 * localedata/locales/es_VE: Likewise.
28196 * localedata/locales/et_EE: Likewise.
28197 * localedata/locales/eu_ES: Likewise.
28198 * localedata/locales/eu_ES@euro: Likewise.
28199 * localedata/locales/fa_IR: Likewise.
28200 * localedata/locales/ff_SN: Likewise.
28201 * localedata/locales/fi_FI: Likewise.
28202 * localedata/locales/fil_PH: Likewise.
28203 * localedata/locales/fo_FO: Likewise.
28204 * localedata/locales/fr_BE: Likewise.
28205 * localedata/locales/fr_CA: Likewise.
28206 * localedata/locales/fr_CH: Likewise.
28207 * localedata/locales/fr_FR: Likewise.
28208 * localedata/locales/fr_LU: Likewise.
28209 * localedata/locales/fur_IT: Likewise.
28210 * localedata/locales/fy_DE: Likewise.
28211 * localedata/locales/fy_NL: Likewise.
28212 * localedata/locales/ga_IE: Likewise.
28213 * localedata/locales/gd_GB: Likewise.
28214 * localedata/locales/gez_ER: Likewise.
28215 * localedata/locales/gez_ET: Likewise.
28216 * localedata/locales/gl_ES: Likewise.
28217 * localedata/locales/gu_IN: Likewise.
28218 * localedata/locales/gv_GB: Likewise.
28219 * localedata/locales/ha_NG: Likewise.
28220 * localedata/locales/hak_TW: Likewise.
28221 * localedata/locales/he_IL: Likewise.
28222 * localedata/locales/hi_IN: Likewise.
28223 * localedata/locales/hif_FJ: Likewise.
28224 * localedata/locales/hne_IN: Likewise.
28225 * localedata/locales/hr_HR: Likewise.
28226 * localedata/locales/hsb_DE: Likewise.
28227 * localedata/locales/ht_HT: Likewise.
28228 * localedata/locales/hu_HU: Likewise.
28229 * localedata/locales/hy_AM: Likewise.
28230 * localedata/locales/i18n: Likewise.
28231 * localedata/locales/ia_FR: Likewise.
28232 * localedata/locales/id_ID: Likewise.
28233 * localedata/locales/ig_NG: Likewise.
28234 * localedata/locales/ik_CA: Likewise.
28235 * localedata/locales/is_IS: Likewise.
28236 * localedata/locales/it_CH: Likewise.
28237 * localedata/locales/it_IT: Likewise.
28238 * localedata/locales/iu_CA: Likewise.
28239 * localedata/locales/ja_JP: Likewise.
28240 * localedata/locales/ka_GE: Likewise.
28241 * localedata/locales/kk_KZ: Likewise.
28242 * localedata/locales/kl_GL: Likewise.
28243 * localedata/locales/kn_IN: Likewise.
28244 * localedata/locales/ko_KR: Likewise.
28245 * localedata/locales/kok_IN: Likewise.
28246 * localedata/locales/ks_IN: Likewise.
28247 * localedata/locales/ks_IN@devanagari: Likewise.
28248 * localedata/locales/ku_TR: Likewise.
28249 * localedata/locales/kw_GB: Likewise.
28250 * localedata/locales/ky_KG: Likewise.
28251 * localedata/locales/lb_LU: Likewise.
28252 * localedata/locales/lg_UG: Likewise.
28253 * localedata/locales/li_BE: Likewise.
28254 * localedata/locales/li_NL: Likewise.
28255 * localedata/locales/lij_IT: Likewise.
28256 * localedata/locales/ln_CD: Likewise.
28257 * localedata/locales/lo_LA: Likewise.
28258 * localedata/locales/lt_LT: Likewise.
28259 * localedata/locales/lv_LV: Likewise.
28260 * localedata/locales/lzh_TW: Likewise.
28261 * localedata/locales/mag_IN: Likewise.
28262 * localedata/locales/mai_IN: Likewise.
28263 * localedata/locales/mg_MG: Likewise.
28264 * localedata/locales/mhr_RU: Likewise.
28265 * localedata/locales/mi_NZ: Likewise.
28266 * localedata/locales/mk_MK: Likewise.
28267 * localedata/locales/ml_IN: Likewise.
28268 * localedata/locales/mn_MN: Likewise.
28269 * localedata/locales/mni_IN: Likewise.
28270 * localedata/locales/mr_IN: Likewise.
28271 * localedata/locales/ms_MY: Likewise.
28272 * localedata/locales/mt_MT: Likewise.
28273 * localedata/locales/my_MM: Likewise.
28274 * localedata/locales/nan_TW: Likewise.
28275 * localedata/locales/nan_TW@latin: Likewise.
28276 * localedata/locales/nb_NO: Likewise.
28277 * localedata/locales/nds_DE: Likewise.
28278 * localedata/locales/nds_NL: Likewise.
28279 * localedata/locales/ne_NP: Likewise.
28280 * localedata/locales/nhn_MX: Likewise.
28281 * localedata/locales/niu_NU: Likewise.
28282 * localedata/locales/niu_NZ: Likewise.
28283 * localedata/locales/nl_AW: Likewise.
28284 * localedata/locales/nl_BE: Likewise.
28285 * localedata/locales/nl_NL: Likewise.
28286 * localedata/locales/nn_NO: Likewise.
28287 * localedata/locales/nr_ZA: Likewise.
28288 * localedata/locales/nso_ZA: Likewise.
28289 * localedata/locales/oc_FR: Likewise.
28290 * localedata/locales/om_ET: Likewise.
28291 * localedata/locales/om_KE: Likewise.
28292 * localedata/locales/or_IN: Likewise.
28293 * localedata/locales/os_RU: Likewise.
28294 * localedata/locales/pa_IN: Likewise.
28295 * localedata/locales/pa_PK: Likewise.
28296 * localedata/locales/pap_AW: Likewise.
28297 * localedata/locales/pap_CW: Likewise.
28298 * localedata/locales/pl_PL: Likewise.
28299 * localedata/locales/ps_AF: Likewise.
28300 * localedata/locales/pt_BR: Likewise.
28301 * localedata/locales/pt_PT: Likewise.
28302 * localedata/locales/quz_PE: Likewise.
28303 * localedata/locales/raj_IN: Likewise.
28304 * localedata/locales/ro_RO: Likewise.
28305 * localedata/locales/ru_RU: Likewise.
28306 * localedata/locales/ru_UA: Likewise.
28307 * localedata/locales/rw_RW: Likewise.
28308 * localedata/locales/sa_IN: Likewise.
28309 * localedata/locales/sat_IN: Likewise.
28310 * localedata/locales/sc_IT: Likewise.
28311 * localedata/locales/sd_IN: Likewise.
28312 * localedata/locales/sd_IN@devanagari: Likewise.
28313 * localedata/locales/se_NO: Likewise.
28314 * localedata/locales/sgs_LT: Likewise.
28315 * localedata/locales/shs_CA: Likewise.
28316 * localedata/locales/si_LK: Likewise.
28317 * localedata/locales/sid_ET: Likewise.
28318 * localedata/locales/sk_SK: Likewise.
28319 * localedata/locales/sl_SI: Likewise.
28320 * localedata/locales/sm_WS: Likewise.
28321 * localedata/locales/so_DJ: Likewise.
28322 * localedata/locales/so_ET: Likewise.
28323 * localedata/locales/so_KE: Likewise.
28324 * localedata/locales/so_SO: Likewise.
28325 * localedata/locales/sq_AL: Likewise.
28326 * localedata/locales/sq_MK: Likewise.
28327 * localedata/locales/sr_ME: Likewise.
28328 * localedata/locales/sr_RS: Likewise.
28329 * localedata/locales/sr_RS@latin: Likewise.
28330 * localedata/locales/ss_ZA: Likewise.
28331 * localedata/locales/st_ZA: Likewise.
28332 * localedata/locales/sv_FI: Likewise.
28333 * localedata/locales/sv_SE: Likewise.
28334 * localedata/locales/sw_KE: Likewise.
28335 * localedata/locales/sw_TZ: Likewise.
28336 * localedata/locales/szl_PL: Likewise.
28337 * localedata/locales/ta_IN: Likewise.
28338 * localedata/locales/ta_LK: Likewise.
28339 * localedata/locales/tcy_IN: Likewise.
28340 * localedata/locales/te_IN: Likewise.
28341 * localedata/locales/tg_TJ: Likewise.
28342 * localedata/locales/th_TH: Likewise.
28343 * localedata/locales/the_NP: Likewise.
28344 * localedata/locales/ti_ER: Likewise.
28345 * localedata/locales/ti_ET: Likewise.
28346 * localedata/locales/tig_ER: Likewise.
28347 * localedata/locales/tk_TM: Likewise.
28348 * localedata/locales/tl_PH: Likewise.
28349 * localedata/locales/tn_ZA: Likewise.
28350 * localedata/locales/to_TO: Likewise.
28351 * localedata/locales/tpi_PG: Likewise.
28352 * localedata/locales/tr_CY: Likewise.
28353 * localedata/locales/tr_TR: Likewise.
28354 * localedata/locales/ts_ZA: Likewise.
28355 * localedata/locales/tt_RU: Likewise.
28356 * localedata/locales/tt_RU@iqtelif: Likewise.
28357 * localedata/locales/ug_CN: Likewise.
28358 * localedata/locales/uk_UA: Likewise.
28359 * localedata/locales/unm_US: Likewise.
28360 * localedata/locales/ur_IN: Likewise.
28361 * localedata/locales/ur_PK: Likewise.
28362 * localedata/locales/uz_UZ: Likewise.
28363 * localedata/locales/uz_UZ@cyrillic: Likewise.
28364 * localedata/locales/ve_ZA: Likewise.
28365 * localedata/locales/vi_VN: Likewise.
28366 * localedata/locales/wa_BE: Likewise.
28367 * localedata/locales/wae_CH: Likewise.
28368 * localedata/locales/wal_ET: Likewise.
28369 * localedata/locales/wo_SN: Likewise.
28370 * localedata/locales/xh_ZA: Likewise.
28371 * localedata/locales/yi_US: Likewise.
28372 * localedata/locales/yo_NG: Likewise.
28373 * localedata/locales/yue_HK: Likewise.
28374 * localedata/locales/yuw_PG: Likewise.
28375 * localedata/locales/zh_CN: Likewise.
28376 * localedata/locales/zh_HK: Likewise.
28377 * localedata/locales/zh_SG: Likewise.
28378 * localedata/locales/zh_TW: Likewise.
28379 * localedata/locales/zu_ZA: Likewise.
28380
28381 2017-11-13 Florian Weimer <fweimer@redhat.com>
28382
28383 * support/next_to_fault.h, support/next_to_fault.c: New files.
28384 * support/Makefile (libsupport-routines): Add next_to_fault.
28385 * resolv/tst-inet_pton.c (struct next_to_fault)
28386 (next_to_fault_allocate, next_to_fault_free): Remove.
28387 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28388
28389 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28390
28391 * elf/dl-support.c: Include <dl-procruntime.c>.
28392 * include/link.h: Include <link_map.h>.
28393 * sysdeps/generic/dl-procruntime.c: New file.
28394 * sysdeps/generic/link_map.h: Likewise.
28395 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28396 the writable ld.so namespace.
28397
28398 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28399
28400 timezone: pacify GCC -Wstringop-truncation
28401 Problem reported by Martin Sebor in:
28402 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28403 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28404
28405 2017-11-12 Florian Weimer <fweimer@redhat.com>
28406
28407 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28408 tst-xreadlink.
28409 (tests): Add tst-xreadlink.
28410 * support/support.h (xstrndup): Declare.
28411 * support/xunistd.h (xunlink, xreadlink): Declare.
28412 * support/temp_file.h (support_create_temp_directory): Declare.
28413 * support/temp_file.c (support_create_temp_directory): New function.
28414 * support/support_chroot.c (support_chroot_create): Use it.
28415 * support/xreadlink.c: New file.
28416 * support/xstrndup.c: Likewise.
28417 * support/xunlink.c: Likewise.
28418 * support/tst-xreadlink.c: Likewise.
28419
28420 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28421
28422 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28423
28424 2017-11-11 Florian Weimer <fweimer@redhat.com>
28425
28426 [BZ #22409]
28427 [BZ #22412]
28428 * resolv/res_comp.c (printable_string, binary_hnok)
28429 (binary_leading_dash): New functions.
28430 (res_hnok): Reimplement using these functions and ns_name_pton.
28431 (res_ownok): Likewise.
28432 (res_mailok): Reimplement using printable_string, ns_name_pton and
28433 binary_hnok.
28434 (res_dnok): Reimplement using printable_string and ns_name_pton.
28435 * resolv/tst-res_hnok.c (tests): Add additional tests.
28436 (LETTERDIGITS, PRINTABLE): Define.
28437 (do_test): Adjust one_char results.
28438
28439 2017-11-11 Florian Weimer <fweimer@redhat.com>
28440
28441 [BZ #22413]
28442 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28443 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28444
28445 2017-11-11 Florian Weimer <fweimer@redhat.com>
28446
28447 * resolv/tst-ns_name_pton.c: New file.
28448 * resolv/Makefile (tests): Add tst-ns_name_pton.
28449 (tst-ns_name_pton): Link against libresolv.
28450
28451 2017-11-11 Florian Weimer <fweimer@redhat.com>
28452
28453 * resolv/tst-res_hnok.c: New file.
28454 * resolv/Makefile (tests): Add tst-res_hnok.
28455 (tst-res_hnok): Link against libresolv.
28456
28457 2017-11-11 Florian Weimer <fweimer@redhat.com>
28458
28459 * resolv/tst-resolv-network.c: Use test framework instead explicit
28460 main function.
28461
28462 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28463
28464 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28465 <jmp_buf-macros.h>.
28466 [!_ISOMAC] (STR_HELPER): New.
28467 [!_ISOMAC] (STR): Likewise.
28468 [!_ISOMAC] (TEST_SIZE): Likewise.
28469 [!_ISOMAC] (TEST_ALIGN): Likewise.
28470 [!_ISOMAC] (TEST_OFFSET): Likewise.
28471 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28472 field offsets of jmp_buf as well as sigjmp_buf.
28473 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28474 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28475 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28476 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28477 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28478 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28479 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28480 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28481 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28482 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28483 Likewise.
28484 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28485 Likewise.
28486 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28488 Likewise.
28489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28490 Likewise.
28491 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28492 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28493 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28494 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28495 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28496 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28497 Likewise.
28498 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28499 Likewise.
28500 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28501 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28502 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28503
28504 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28505
28506 * include/float.h
28507 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28508 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28509 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28510 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28511 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28512 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28513 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28514 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28515 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28516 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28517 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28518 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28519 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28520 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28521 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28522 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28523 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28524 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28525 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28526 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28527 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28528 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28529 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28530 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28531 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28532 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28533 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28534 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28535 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28536 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28537 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28538 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28539 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28540 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28541 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28542 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28543 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28544 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28545 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28546 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28547 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28548 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28549 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28550 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28551 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28552 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28553 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28554 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28555 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28556 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28557 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28558 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28559 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28560 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28561 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28562 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28563 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28564 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28565 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28566 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28567 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28568 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28569 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28570 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28571 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28572 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28573 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28574 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28575 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28576 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28577 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28578 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28579 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28580 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28581 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28582 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28583 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28584 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28585 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28586 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28587 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28588 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28589 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28590 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28591 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28592 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28593 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28594 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28595
28596 * stdlib/tst-strtod.h (F16): New macro.
28597 (F32): Likewise.
28598 (F64): Likewise.
28599 (F32X): Likewise.
28600 (F64X): Likewise.
28601 (F128X): Likewise.
28602 (IF_FLOAT16): Likewise.
28603 (IF_FLOAT32): Likewise.
28604 (IF_FLOAT64): Likewise.
28605 (IF_FLOAT32X): Likewise.
28606 (IF_FLOAT64X): Likewise.
28607 (IF_FLOAT128X): Likewise.
28608 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28609 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28610 (STRTOD_TEST_FOREACH): Likewise.
28611 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28612 (CHOOSE_f64): Likewise.
28613 (CHOOSE_f32x): Likewise.
28614 (CHOOSE_f64x): Likewise.
28615
28616 2017-11-07 Andreas Schwab <schwab@suse.de>
28617
28618 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28619
28620 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28621
28622 [BZ #22403]
28623 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28624 to be escaped.
28625 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28626 to be escaped.
28627
28628 2017-11-07 Claude Paroz <claude@2xlibre.net>
28629
28630 [BZ #22403]
28631 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28632 to be escaped.
28633 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28634 to be escaped.
28635 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28636 to be escaped.
28637
28638 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28639
28640 [BZ #22298]
28641 * nptl/allocatestack.c (allocate_stack): Check if
28642 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28643 __PTHREAD_MUTEX_HAVE_PREV is defined.
28644 * nptl/descr.h (pthread): Likewise.
28645 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28646 Likewise.
28647 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28648 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28649 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28650 * sysdeps/nptl/bits/thread-shared-types.h
28651 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28652 defines.
28653 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28654 of __WORDSIZE for internal layout.
28655 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28656 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28657 instead of __WORDSIZE whether to use an union for __spins and __list
28658 fields.
28659 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28660 case.
28661 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28662 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28663 defines.
28664 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28665 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28666 Likewise.
28667 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28668 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28669 Likewise.
28670 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28671 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28672 Likewise.
28673 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28674 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28675 Likewise.
28676 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28677 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28678 Likewise.
28679 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28680 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28681 Likewise.
28682 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28683 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28684 Likewise.
28685 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28686 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28687 Likewise.
28688 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28689 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28690 Likewise.
28691 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28692 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28693 Likewise.
28694 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28695 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28696 Likewise.
28697 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28698 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28699 Likewise.
28700 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28701 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28702 Likewise.
28703 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28704 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28705 Likewise.
28706
28707 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28708 New macros.
28709 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28710 checks for expected input type size.
28711 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28712 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28713 Likewise.
28714 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28715 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28716 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28717 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28718 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28719 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28720 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28721 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28722 superflous runtime assert check.
28723 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28724 Likewise.
28725 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28726 Likewise.
28727 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28728 Likewise.
28729 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28730 Likewise.
28731 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28732 Likewise.
28733 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28734 Likewise.
28735 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28736 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28737 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28738 Likewise.
28739 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28740 Likewise.
28741 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28742 Likewise.
28743 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28744 Likewise.
28745 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28746 Likewise.
28747 * nptl/pthread_attr_setinheritsched.c
28748 (__pthread_attr_setinheritsched): Likewise.
28749 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28750 Likewise.
28751 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28752 Likewise.
28753 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28754 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28755 __old_pthread_attr_setstack): Likewise.
28756 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28757 Likewise.
28758 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28759 Likewise.
28760 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28761 Likewise.
28762 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28763 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28764 Likewise.
28765 * nptl/tst-typesizes.c: Remove file.
28766
28767 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28768 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28769 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28770 checks for internal pthread_mutex_t offsets.
28771 * sysdeps/aarch64/nptl/pthread-offsets.h
28772 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28773 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28774 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28775 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28776 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28777 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28778 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28779 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28780 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28781 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28782 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28783 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28784 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28785 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28786 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28787 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28788 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28789 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28790
28791 2017-11-07 Florian Weimer <fweimer@redhat.com>
28792
28793 * bits/mman-linux.h: Move ...
28794 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28795 comment.
28796 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28797 outdated comment.
28798
28799 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28800
28801 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28802 Redefine STRNLEN as __strnlen_power8.
28803
28804 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28805
28806 * signal/sighold.c (sighold): Optimize implementation.
28807
28808 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28809 __NR_rt_sigqueueinfo.
28810
28811 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28812 __sigtimedwait.
28813 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28814 assume __NR_rt_sigtimedwait.
28815 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28816 and add LIBC_CANCEL_HANDLED for cancellation marking.
28817 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28818
28819 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28820 (sysdeps_routines): Add memchr_noneon.
28821 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28822 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28823 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28824 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28825 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28826 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28827 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28828
28829 * sysdeps/arm/arm-ifunc.h: New file.
28830 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28831 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28832 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28833 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28834 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28835 (__memcpy_neon): Avoid create hidden alias.
28836 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28837 (__memcpy_vfp): Likewise.
28838 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28839 (sysdep_routines): Add memcpy_arm.
28840 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28841
28842 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28843
28844 [BZ #22362]
28845 * Makerules (make-link-multidir): New.
28846 * config.make.in (multidir): New.
28847 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28848 * configure: Regenerated.
28849 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28850 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28851 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28852 New target.
28853
28854 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28855
28856 [BZ #22402]
28857 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28858 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28859
28860 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28861
28862 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28863 to be escaped.
28864
28865 2017-11-04 Florian Weimer <fweimer@redhat.com>
28866
28867 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28868
28869 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28870
28871 * math/math.h [__HAVE_DISTINCT_FLOAT16
28872 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28873 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28874 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28875 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28876 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28877 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28878 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28879 (__MATH_TG_F32): New macro.
28880 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28881 (__MATH_TG_F64X): Likewise.
28882 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28883 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28884
28885 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28886
28887 * po/de.po: Update translations.
28888 * po/ru.po: Likewise.
28889
28890 2017-11-03 Florian Weimer <fweimer@redhat.com>
28891
28892 * manual/filesys.texi (Hard Links): Document linkat.
28893
28894 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28895
28896 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28897 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28898 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28899 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28900 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28901 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28902 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28903 the same as _Float128.
28904 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28905 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28906 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28907
28908 * stdlib/stdlib.h
28909 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28910 Declare.
28911 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28912 Likewise.
28913 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28914 Likewise.
28915 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28916 (strtof32x): Likewise.
28917 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28918 (strtof64x): Likewise.
28919 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28920 (strtof128x): Likewise.
28921 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28922 (strfromf16): Likewise.
28923 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28924 (strfromf32): Likewise.
28925 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28926 (strfromf64): Likewise.
28927 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28928 (strfromf32x): Likewise.
28929 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28930 (strfromf64x): Likewise.
28931 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28932 (strfromf128x): Likewise.
28933 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28934 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28935 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28936 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28937 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28938 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28939
28940 2017-11-03 Richard Henderson <rth@twiddle.net>
28941
28942 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28943
28944 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28945
28946 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28947
28948 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28949
28950 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28951 DT_TLSDESC_GOT initialization.
28952 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28953 (_dl_tlsdesc_resolve_hold): Likewise.
28954 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28955 (_dl_tlsdesc_resolve_hold): Likewise.
28956 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28957 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28958
28959 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28960
28961 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28962
28963 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28964
28965 [BZ #18572]
28966 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28967 non-lazily for R_ARM_TLS_DESC.
28968
28969 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28970
28971 [BZ #17078]
28972 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28973 R_ARM_TLS_DESC case.
28974 (elf_machine_lazy_rel): Remove the prelink check.
28975
28976 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28977
28978 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28979 DT_TLSDESC_GOT initialization.
28980 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28981 (_dl_tlsdesc_resolve_rela): Likewise.
28982 (_dl_tlsdesc_resolve_hold): Likewise.
28983 (_dl_tlsdesc_undefweak): Remove ldar.
28984 (_dl_tlsdesc_dynamic): Likewise.
28985 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28986 (_dl_tlsdesc_resolve_rela): Likewise.
28987 (_dl_tlsdesc_resolve_hold): Likewise.
28988 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28989 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28990 (_dl_tlsdesc_resolve_rela): Likewise.
28991 (_dl_tlsdesc_resolve_hold): Likewise.
28992
28993 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28994
28995 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28996 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28997
28998 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28999
29000 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
29001 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29002
29003 2017-11-02 Joseph Myers <joseph@codesourcery.com>
29004
29005 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
29006 Declare.
29007 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
29008 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
29009 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
29010 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
29011 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
29012 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
29013 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29014 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29015 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29016 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29017 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29018
29019 2017-11-02 Mike FABIAN <mfabian@redhat.com>
29020
29021 [BZ #22382]
29022 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29023 * localedata/locales/tpi_PG: Add standard header.
29024
29025 2017-11-02 Florian Weimer <fweimer@redhat.com>
29026
29027 test-errno-linux: quotactl can fail with EPERM in containers.
29028 * sysdeps/unix/sysv/linux/test-errno-linux.c
29029 (LIST, LIST_FORWARD): New macros.
29030 (check_error_in_list): New function.
29031 (test_wrp_rv): Accept list of permitted error codes.
29032 (test_wrp_rv2): Remove.
29033 (test_wrp): Call test_wrp_rv with list of error codes.
29034 (test_wrp2): Accept list of error codes.
29035 (do_test): Adjust. Allow EPERM for quotactl.
29036
29037 2017-11-02 Florian Weimer <fweimer@redhat.com>
29038
29039 * stdio-common/bug16.c (do_test): Use array_length.
29040 * stdio-common/errlist.c (_sys_nerr): Likewise.
29041 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29042 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29043 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29044 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29045 (do_test): Use array_length.
29046 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29047 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29048 * stdio-common/tst-printf-round.c (do_test): Likewise.
29049 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29050 (CHECK): Use array_length.
29051 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29052 * stdio-common/tstscanf.c (main): Likewise.
29053 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29054
29055 2017-11-02 Florian Weimer <fweimer@redhat.com>
29056
29057 Add array_length and array_end macros.
29058 * include/array_length.h: New file.
29059
29060 2017-11-02 Florian Weimer <fweimer@redhat.com>
29061
29062 [BZ #22332]
29063 * posix/tst-glob-tilde.c (do_noescape): New variable.
29064 (one_test): Process it.
29065 (do_test): Set do_noescape. Add unescaping test case.
29066
29067 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29068
29069 * math/complex.h
29070 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29071 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29072 with appropriate macros defined and undefined.
29073 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29074 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29075 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29076 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29077 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29078 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29079 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29080 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29081 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29082 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29083
29084 * math/complex.h
29085 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29086 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29087 that for long double. Do not condition define and undefine of
29088 _Mdouble_complex_ on [__CFLOAT128].
29089
29090 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29091
29092 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29093 of <sysdeps/generic/sysdep.h>.
29094 (ALIGNARG): Removed.
29095 (ASM_SIZE_DIRECTIVE): Likewise.
29096 (ENTRY): Likewise.
29097 (END): Likewise.
29098 (ENTRY_CHK): Likewise.
29099 (END_CHK): Likewise.
29100 (syscall_error): Likewise.
29101 (mcount): Likewise.
29102 (PSEUDO_END): Likewise.
29103 (L): Likewise.
29104 (atom_text_section): Likewise.
29105 * sysdeps/x86/sysdep.h: New file.
29106 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29107 of <sysdeps/generic/sysdep.h>.
29108 (ALIGNARG): Removed.
29109 (ASM_SIZE_DIRECTIVE): Likewise.
29110 (ENTRY): Likewise.
29111 (END): Likewise.
29112 (ENTRY_CHK): Likewise.
29113 (END_CHK): Likewise.
29114 (syscall_error): Likewise.
29115 (mcount): Likewise.
29116 (PSEUDO_END): Likewise.
29117 (L): Likewise.
29118 (atom_text_section): Likewise.
29119
29120 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
29121
29122 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29123 category of LC_CTYPE set to "i18n:2012".
29124 * localedata/locales/i18n_ctype: Regenerate.
29125
29126 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29127
29128 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29129 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29130 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29131 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29132
29133 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29134 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29135 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29136 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29137
29138 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29139
29140 * math/complex.h
29141 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29142 New macro.
29143 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29144 Likewise.
29145 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29146 Likewise.
29147 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29148 (CMPLXF32X): Likewise.
29149 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29150 (CMPLXF64X): Likewise.
29151 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29152 (CMPLXF128X): Likewise.
29153
29154 * math/math.h
29155 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29156 (__MATH_EVAL_FMT2): Define to add 0.0f.
29157
29158 2017-10-31 Alan Modra <amodra@gmail.com>
29159
29160 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29161 include sysdep.h.
29162 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29163 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29166 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29168 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29176 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29177 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29178 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29179 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29180 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29181 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29182 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29183 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29184 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29185 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29186 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29187 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29188 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29189 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29190 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29191 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29192 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29193 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29194 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29195 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29196 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29197 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29198 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29199 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29200 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29201 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29202 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29203 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29204 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29205 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29206 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29207 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29208 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29209 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29210 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29211 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29212 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29213 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29214 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29215 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29216 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29217 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29218 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29219 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29220 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29221 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29222 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29223 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29224 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29225 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29226 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29227 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29228 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29229 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29230 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29231
29232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29233 include sysdep.h and math_ldbl_opt.h.
29234
29235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29236 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29239 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29240 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29244 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29245 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29248 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29261
29262 2017-10-31 Alan Modra <amodra@gmail.com>
29263
29264 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29265 string/strncase_l.c, not string/strncase.c.
29266 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29267 (libc_hidden_def): Redefine.
29268
29269 2017-10-31 Alan Modra <amodra@gmail.com>
29270
29271 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29272 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29273 (__strcasecmp): Don't define.
29274
29275 2017-10-31 Alan Modra <amodra@gmail.com>
29276
29277 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29278 IS_IN (libc).
29279 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29280 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29281 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29282
29283 2017-10-31 Alan Modra <amodra@gmail.com>
29284
29285 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29286 USE_AS_STPNCPY.
29287
29288 2017-10-31 Alan Modra <amodra@gmail.com>
29289
29290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29291 Redefine only when SHARED.
29292
29293 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29294
29295 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29296 Include <bits/math-finite.h> with appropriate macros defined and
29297 undefined.
29298 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29299 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29300 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29301 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29302 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29303
29304 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29305 [!_Mlong_double_] (_Mlong_double_): Likewise.
29306 [!_Mfloat16_] (_Mfloat16_): Likewise.
29307 [!_Mfloat32_] (_Mfloat32_): Likewise.
29308 [!_Mfloat64_] (_Mfloat64_): Likewise.
29309 [!_Mfloat128_] (_Mfloat128_): Likewise.
29310 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29311 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29312 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29313 (_Mdouble_): Define without indirection through those macros.
29314 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29315 [!_Mfloat128_] (_Mfloat128_): Likewise.
29316 [_Mlong_double_] (_Mlong_double_): Likewise.
29317 (_Mdouble_): Define without indirection through those macros.
29318 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29319 not add -D_Mlong_double_=double.
29320 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29321 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29322
29323 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29324
29325 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29326
29327 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29328
29329 * sysdeps/x86/libc-start.c: Reformat.
29330
29331 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29332
29333 [BZ #22353]
29334 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29335 (1): Renamed to ...
29336 (L(Src0)): This.
29337 (L(Src1)): New.
29338 (L(Src2)): Likewise.
29339 (L(1)): Renamed to ...
29340 (L(Src3)): This.
29341
29342 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29343
29344 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29345 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29346 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29347 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29348 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29349 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29350 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29351 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29352 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29353 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29354 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29355 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29356 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29357 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29358 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29359 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29360 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29361 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29362 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29363 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29364 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29365 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29366 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29367 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29368 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29369 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29370 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29371 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29372 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29373 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29374 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29375 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29376 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29377 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29378 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29379 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29380 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29381 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29382 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29383 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29384 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29385 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29386 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29387 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29388 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29389 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29390 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29391 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29392 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29393 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29394 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29395 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29396 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29397 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29398 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29399 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29400 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29401 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29402 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29403 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29404 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29405 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29406 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29407 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29408 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29409 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29410
29411 2017-10-30 Florian Weimer <fweimer@redhat.com>
29412
29413 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29414 always defined.
29415 * io/tst-mkdirat.c (do_test): Likewise.
29416 * io/tst-mkfifoat.c (do_test): Likewise.
29417 * io/tst-mknodat.c (do_test): Likewise.
29418 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29419 * locale/programs/locale.c (select_dirs): Likewise.
29420 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29421 * posix/bug-glob2.c (my_readdir): Likewise.
29422 * posix/tst-dir.c (main): Likewise.
29423 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29424 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29425
29426 2017-10-30 Florian Weimer <fweimer@redhat.com>
29427
29428 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29429 just __USE_GNU.
29430
29431 2017-10-30 Florian Weimer <fweimer@redhat.com>
29432
29433 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29434 Convert to support/test-driver.c.
29435 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29436 New macro parameters.
29437 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29438 * posix/tst-gnuglob.c: New file.
29439 * posix/tst-gnuglob64.c: Likewise.
29440 * posix/Makefile (tests): Add tst-gnuglob64.
29441
29442 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29443
29444 [BZ #19485]
29445 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29446 and use a better translation for March in “mon”.
29447 * localedata/locales/csb_PL: Use more ASCII to improve the
29448 readability of the source.
29449
29450 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29451
29452 [BZ #13953]
29453 * localedata/locales/km_KH: Use ASCII as much
29454 as possible for better readability of the source and
29455 remove useless comments.
29456 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29457 was commented out and apparently wrong anyway because it was
29458 using Lao characters. If Buddhist era should be used
29459 for km_KH, a native speaker should write the correct formaat
29460 for Khmer.
29461 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29462 (According to CLDR, the first weekday for Cambodia is Sunday).
29463 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29464 (These were using Lao characters which must be wrong. If we get
29465 the correct data from a native speaker, we could add it back, until
29466 then it is better not to have name_mr and name_mrs at all than
29467 having it wrong).
29468
29469 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29470
29471 * locale/loadlocale.c: Correct size of
29472 _nl_value_type_LC_<category> arrays.
29473
29474 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29475
29476 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29477 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29478 with appropriate macros defined and undefined.
29479 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29480 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29481 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29482 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29483 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29484
29485 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29486
29487 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29488 "-O2 -march=i586".
29489
29490 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29491
29492 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29493 with lowercase letters to make it agree with CLDR.
29494
29495 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29496
29497 [BZ #15260]
29498 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29499 first letters of yesstr and nostr in yesexpr and noexpr,
29500 not for the full words.
29501 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29502 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29503 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29504 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29505 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29506 first letters of yesstr and nostr in yesexpr and noexpr,
29507 until now only English was matched in yesexpr and noexpr.
29508 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29509 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29510 fil but not for tl. As tl and fil are very similar, using fil
29511 is probably better than using English.
29512
29513 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29514
29515 [BZ #21706]
29516 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29517 in yesstr and nostr.
29518
29519 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29520
29521 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29522 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29523 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29524 Likewise.
29525 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29526 Likewise.
29527 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29528 Likewise.
29529 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29530 Likewise.
29531 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29532 (SNANF128X): Likewise.
29533
29534 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29535 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29536 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29537 (HUGE_VAL_F32): Likewise.
29538 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29539 (HUGE_VAL_F64): Likewise.
29540 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29541 (HUGE_VAL_F32X): Likewise.
29542 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29543 (HUGE_VAL_F64X): Likewise.
29544 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29545 (HUGE_VAL_F128X): Likewise.
29546
29547 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29548
29549 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29550 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29551 for the br_FR locale.
29552
29553 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29554
29555 [BZ #21706]
29556 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29557
29558 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29559
29560 * locale/programs/record-status.h: Define globals, and function
29561 prototypes. Move function bodies...
29562 * locale/programs/record-status.c: ... to here. New file.
29563 * iconv/Makefile (iconv_prog-modules): Add record-status.
29564 * locale/Makefile (lib-modules): Likewise.
29565 * iconv/iconv_prog.c: Remove verbose.
29566 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29567 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29568 record a warning about ASCII compatibility.
29569 * locale/programs/ld-monetary.c (monetary_finish): If
29570 warn_int_curr_symbol is true then record a warning about the symbol
29571 not being in our ISO 4217 list.
29572 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29573 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29574 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29575 (OPT_NO_WARN): Define.
29576 (OPT_WARN): Define.
29577 (options): Add entry for --no-warnings, and --warnings.
29578 (set_warnings): New function to enable/disable warnings.
29579 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29580 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29581 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29582 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29583 Pass flags to generate_locale.
29584 (generate_locale): Accept new flag argument and pass it to localedef
29585 invocation.
29586 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29587 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29588
29589 * localedata/Makefile (test-input-data): Use full file name.
29590 * localedata/da_DK.in: Rename to...
29591 * localedata/da_DK.ISO-8859-1.in: ...this.
29592 * localedata/de_DE.in: Rename to...
29593 * localedata/de_DE.ISO-8859-1.in: ...this.
29594 * localedata/en_US.in: Rename to...
29595 * localedata/en_US.ISO-8859-1.in: ...this.
29596 * localedata/fr_FR.in: Rename to...
29597 * localedata/fr_FR.UTF-8.in: ... this.
29598 * localedata/hr_HR.in: Rename to...
29599 * localedata/hr_HR.ISO-8859-2.in: ...this.
29600 * localedata/hu_HU.in: Rename to...
29601 * localedata/hu_HU.UTF-8.in: ...this.
29602 * localedata/si_LK.in: Rename to...
29603 * localedata/si_LK.UTF-8.in: ...this.
29604 * localedata/sv_SE.in: Rename to...
29605 * localedata/sv_SE.ISO-8859-1.in: ...this.
29606 * localedata/tr_TR.in: Rename to...
29607 * localedata/tr_TR.UTF-8.in: ...this.
29608 * localedata/uk_UA.in: Rename to...
29609 * localedata/uk_UA.UTF-8.in: ...this.
29610 * localedata/sort-test.sh: Test file is locale name with the
29611 suffix.
29612
29613 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29614 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29615 file.
29616 * localedata/locales/i18n_ctype: Regenerate.
29617 * localedata/locales/tr_TR: Likewise.
29618 * localedata/locales/translit_circle: Likewise.
29619 * localedata/locales/translit_cjk_compat: Likewise.
29620 * localedata/locales/translit_combining: Likewise.
29621 * localedata/locales/translit_compat: Likewise.
29622 * localedata/locales/translit_font: Likewise.
29623 * localedata/locales/translit_fraction: Likewise.
29624
29625 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29626
29627 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29628 lxvd2x/stxvd2x with lvx/stvx.
29629 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29630
29631 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29632
29633 * include/alloc_buffer.h: Replace "if if " with "if " in
29634 comments.
29635 * sysdeps/mips/memcpy.S: Likkewise.
29636 * sysdeps/mips/memset.S: Likewise.
29637 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29638 Likewise.
29639 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29640 Likewise.
29641 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29642 Likewise.
29643
29644 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29645
29646 [BZ #15261]
29647 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29648 yesexpr and noexpr.
29649 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29650 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29651 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29652 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29653 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29654 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29655 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29656
29657 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29658
29659 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29660 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29661 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29662 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29663 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29664 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29665 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29666 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29667 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29668 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29669 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29670 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29671
29672 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29673
29674 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29675 as possible for better readability of the source.
29676 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29677 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29678 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29679 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29680 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29681 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29682 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29683 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29684 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29685 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29686 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29687 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29688 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29689 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29690 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29691 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29692 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29693 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29694 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29695 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29696 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29697 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29698 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29699 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29700 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29701 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29702 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29703 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29704 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29705 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29706 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29707 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29708 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29709 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29710 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29711 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29712 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29713 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29714 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29715 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29716 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29717 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29718 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29719 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29720 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29721 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29722 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29723 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29724 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29725 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29726 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29727 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29728 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29729 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29730 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29731 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29732 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29733 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29734 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29735 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29736 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29737 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29738 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29739 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29740 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29741 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29742 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29743 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29744 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29745 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29746 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29747 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29748 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29749 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29750 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29751 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29752 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29753 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29754 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29755 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29756 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29757 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29758 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29759 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29760 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29761 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29762 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29763 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29764 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29765 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29766 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29767 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29768 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29769 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29770 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29771 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29772 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29773 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29774 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29775 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29776 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29777 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29778 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29779 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29780 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29781 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29782 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29783 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29784 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29785 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29786 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29787 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29788 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29789 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29790 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29791 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29792 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29793 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29794 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29795 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29796 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29797 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29798 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29799 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29800 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29801 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29802 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29803 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29804 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29805 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29806 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29807 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29808 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29809 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29810 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29811 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29812 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29813 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29814 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29815 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29816 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29817 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29818 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29819 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29820 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29821 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29822 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29823 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29824 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29825 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29826 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29827 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29828 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29829 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29830 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29831 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29832 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29833 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29834 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29835 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29836 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29837 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29838 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29839 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29840 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29841 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29842 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29843 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29844 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29845 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29846 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29847 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29848 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29849 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29850
29851 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29852
29853 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29854 (Use first letters of yesstr and nostr correctly instead of using
29855 full words).
29856
29857 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29858
29859 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29860 (Use first letters of yesstr and nostr correctly).
29861
29862 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29863
29864 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29865 also check for the first characters of yesstr and nostr.
29866 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29867 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29868
29869 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29870
29871 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29872 also check for Chinese characters.
29873
29874 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29875
29876 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29877 match also for the contents of yesstr and nostr. As the first letter
29878 of yesstr and nostr is equal, checking only for the first letter
29879 is not enough.
29880
29881 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29882
29883 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29884 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29885
29886 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29887
29888 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29889 of main contributor.
29890
29891 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29892
29893 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29894 instead of using English.
29895
29896 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29897
29898 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29899 by including the first letters of nostr and yesexpr in the regexp.
29900 Also make it more readable by using ASCII where possible.
29901
29902 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29903
29904 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29905 the first letter of nostr in the regexp. It agrees with CLDR now.
29906 Also make it more readable by using ASCII where possible.
29907
29908 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29909
29910 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29911 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29912 these strings contain a U+17D6 (which somewhat looks like a colon)
29913 instead of a real colon to separate the full words for “yes”
29914 and “no” from the single letter responses.
29915
29916 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29917
29918 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29919 it agree with CLDR (include the first letter of yesstr).
29920 Also make it more readable by using ASCII where possible.
29921
29922 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29923
29924 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29925 and improve yesexpr and noexpr. The yesstr and nostr apparently
29926 came from CLDR. And CLDR has a bug there: these strings contain
29927 a U+0903 (which looks like a colon) instead of a real colon
29928 to separate the full words for “yes” and “no” from the single
29929 letter responses.
29930
29931 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29932
29933 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29934 letters of the full yesstr and nostr in yesexpr and noexpr.
29935
29936 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29937
29938 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29939 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29940 * localedata/locales/an_ES: Make source more readable by using ASCII
29941 where possible.
29942
29943 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29944
29945 [BZ #20952]
29946 * localedata/locales/yuw_PG: New file.
29947 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29948 * locale/iso-639.def: Add Yau (Uruwa).
29949
29950 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29951
29952 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29953
29954 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29955
29956 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29957 (__libc_realloc): Likewise.
29958 (_mid_memalign): Likewise.
29959 (__libc_calloc): Likewise.
29960
29961 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29962
29963 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29964 by adding the generic +1 and -0 as in all other locales.
29965 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29966 day names and make it more readable by using ASCII where possible.
29967
29968 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29969
29970 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29971 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29972
29973 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29974
29975 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29976 WNOHANG in waitpid call.
29977
29978 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29979
29980 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29981 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29982
29983 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29984 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29985 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29986 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29987 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29988 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29989 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29990 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29991 variables.
29992
29993 2017-10-23 Michael Collison <michael.collison@arm.com>
29994
29995 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29996 with __builtin_sqrt.
29997 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29998 with __builtin_sqrtf.
29999 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
30000 with __builtin_ceil.
30001 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
30002 with __builtin_ceilf.
30003 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
30004 with __builtin_floor.
30005 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
30006 with __builtin_floorf.
30007 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
30008 with __builtin_fma.
30009 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
30010 with __builtin_fmaf.
30011 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
30012 with __builtin_fmax.
30013 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30014 with __builtin_fmaxf.
30015 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30016 with __builtin_fmin.
30017 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30018 with __builtin_fminf.
30019 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30020 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30021 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30022 with builtin_rint and conversion to int.
30023 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30024 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30025 with builtin_llround.
30026 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30027 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30028 with builtin_rint and conversion to long int.
30029 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30030 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30031 with builtin_lround.
30032 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30033 with builtin_lroundf.
30034 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30035 statements with __builtin_nearbyint.
30036 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30037 statements with __builtin_nearbyintf.
30038 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30039 with __builtin_rint.
30040 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30041 with __builtin_rintf.
30042 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30043 with __builtin_round.
30044 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30045 with __builtin_roundf.
30046 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30047 with __builtin_trunc.
30048 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30049 with __builtin_truncf.
30050 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30051 and s_l[l]round[f].c too.
30052
30053 2017-10-23 Alan Modra <amodra@gmail.com>
30054
30055 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30056 Adjust stack after restoring regs. Add missing LR cfi_restore.
30057
30058 2017-10-23 Alan Modra <amodra@gmail.com>
30059
30060 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30061 Move LR save and frame setup/teardown and LR restore to
30062 immediately around memset call. Provide cfi.
30063
30064 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30065
30066 * sysdeps/i386/fpu/e_powf.S: Removed.
30067 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30068 * sysdeps/i386/fpu/w_powf.c: Likewise.
30069 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30070 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30071 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30072 Add e_powf-sse2.
30073 (CFLAGS-e_powf-sse2.c): New.
30074 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30075 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30076
30077 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30078
30079 * sysdeps/i386/fpu/e_log2f.S: Removed.
30080 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30081 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30082 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30083 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30084 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30085 Add e_log2f-sse2.
30086 (CFLAGS-e_log2f-sse2.c): New.
30087 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30088 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30089
30090 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30091
30092 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30093 Add e_powf-fma.
30094 (CFLAGS-e_powf-fma.c): New.
30095 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30096 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30097
30098 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30099
30100 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30101 Add e_log2f-fma.
30102 (CFLAGS-e_log2f-fma.c): New.
30103 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30104 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30105
30106 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30107
30108 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30109 Add e_logf-fma.
30110 (CFLAGS-e_logf-fma.c): New.
30111 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30112 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30113
30114 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30115
30116 * sysdeps/i386/fpu/e_logf.S: Removed.
30117 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30118 * sysdeps/i386/fpu/w_logf.c: Likewise.
30119 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30120 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30121 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30122 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30123 Add e_logf-sse2.
30124 (CFLAGS-e_logf-sse2.c): New.
30125 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30126 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30127
30128 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30129
30130 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30131 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30132 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30133 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30134 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30135 Add e_exp2f-sse2.
30136 (CFLAGS-e_exp2f-sse2.c): New.
30137 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30138 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30139
30140 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30141
30142 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30143 Add e_exp2f-fma.
30144 (CFLAGS-e_exp2f-fma.c): New.
30145 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30146 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30147
30148 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30149
30150 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30151 * sysdeps/i386/fpu/e_expf.S: Likewise.
30152 * sysdeps/i386/fpu/math_errf.c: Likewise.
30153 * sysdeps/i386/fpu/w_expf.c: Likewise.
30154 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30155 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30156 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30157 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30158 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30159 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30160 Remove e_expf-ia32.
30161 (CFLAGS-e_expf-sse2.c): New.
30162 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30163 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30164
30165 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30166
30167 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30168 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30169 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30170 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30171 e_expf.c.
30172 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30173 New.
30174 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30175 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30176 Renamed to ...
30177 (__redirect_expf): This.
30178 (SYMBOL_NAME): Changed to expf.
30179 (__ieee754_expf): Renamed to ...
30180 (__expf): This.
30181 (__GI___expf): This.
30182 (__ieee754_expf): Add strong_alias.
30183 (__expf_finite): Likewise.
30184 (__expf): New.
30185 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30186
30187 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30188
30189 [BZ #22332]
30190 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30191 unescaping.
30192
30193 2017-10-21 Florian Weimer <fweimer@redhat.com>
30194
30195 * posix/Makefile (tests): Add tst-glob-tilde.
30196 (tests-special): Add tst-glob-tilde-mem.out
30197 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30198 (tst-glob-tilde-mem.out): Add mtrace check.
30199 * posix/tst-glob-tilde.c: New file.
30200
30201 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30202
30203 * bits/floatn-common.h: New file.
30204 * math/Makefile (headers): Add bits/floatn-common.h.
30205 * bits/floatn.h: Include <bits/floatn-common.h>.
30206 * sysdeps/ia64/bits/floatn.h: Likewise.
30207 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30208 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30209 * sysdeps/powerpc/bits/floatn.h: Likewise.
30210 * sysdeps/x86/bits/floatn.h: Likewise.
30211
30212 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30213
30214 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30215 indicates whether compiler emits an warning for alias for
30216 functions with incompatible types.
30217
30218 [BZ #22273]
30219 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30220 the auxiliary process is terminated by a signal before calling _exit
30221 or execve.
30222
30223 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30224
30225 [BZ #21265]
30226 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30227 New.
30228 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30229 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30230 and bit_arch_XSAVEC_Usable if needed.
30231 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30232 and bit_arch_Use_dl_runtime_resolve_opt.
30233 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30234 Removed.
30235 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30236 (bit_arch_Prefer_No_AVX512): Updated.
30237 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30238 (bit_arch_XSAVEC_Usable): New.
30239 (STATE_SAVE_OFFSET): Likewise.
30240 (STATE_SAVE_MASK): Likewise.
30241 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30242 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30243 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30244 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30245 (index_arch_XSAVEC_Usable): New.
30246 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30247 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30248 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30249 is enabled.
30250 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30251 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30252 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30253 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30254 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30255 _dl_runtime_resolve_xsavec.
30256 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30257 Removed.
30258 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30259 instead of VEC_SIZE.
30260 (REGISTER_SAVE_BND0): Removed.
30261 (REGISTER_SAVE_BND1): Likewise.
30262 (REGISTER_SAVE_BND3): Likewise.
30263 (REGISTER_SAVE_RAX): Always defined to 0.
30264 (VMOV): Removed.
30265 (_dl_runtime_resolve_avx): Likewise.
30266 (_dl_runtime_resolve_avx_slow): Likewise.
30267 (_dl_runtime_resolve_avx_opt): Likewise.
30268 (_dl_runtime_resolve_avx512): Likewise.
30269 (_dl_runtime_resolve_avx512_opt): Likewise.
30270 (_dl_runtime_resolve_sse): Likewise.
30271 (_dl_runtime_resolve_sse_vex): Likewise.
30272 (USE_FXSAVE): New.
30273 (_dl_runtime_resolve_fxsave): Likewise.
30274 (USE_XSAVE): Likewise.
30275 (_dl_runtime_resolve_xsave): Likewise.
30276 (USE_XSAVEC): Likewise.
30277 (_dl_runtime_resolve_xsavec): Likewise.
30278 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30279 Removed.
30280 (_dl_runtime_resolve_avx512_opt): Likewise.
30281 (_dl_runtime_resolve_avx): Likewise.
30282 (_dl_runtime_resolve_avx_opt): Likewise.
30283 (_dl_runtime_resolve_sse): Likewise.
30284 (_dl_runtime_resolve_sse_vex): Likewise.
30285 (_dl_runtime_resolve_fxsave): New.
30286 (_dl_runtime_resolve_xsave): Likewise.
30287 (_dl_runtime_resolve_xsavec): Likewise.
30288
30289 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30290
30291 [BZ #22320]
30292 CVE-2017-15670
30293 * posix/glob.c (__glob): Fix one-byte overflow.
30294
30295 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30296
30297 * malloc/malloc.c (sysdep-cancel.h): Add include.
30298
30299 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30300
30301 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30302
30303 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30304
30305 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30306 (tests): Remove $(objpfx)ga_test depdendency.
30307 * resolv/ga_test.c: Remove file.
30308
30309 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30310
30311 [BZ #18812]
30312 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30313 * localedata/locales/kab_DZ: New file.
30314
30315 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30316
30317 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30318 _dl_relocate_static_pie instead of _dl_start to compute load
30319 address in static PIE.
30320
30321 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30322
30323 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30324
30325 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30326
30327 [BZ #13605]
30328 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30329 * localedata/locales/shn_MM: New file.
30330
30331 2017-10-20 Florian Weimer <fweimer@redhat.com>
30332
30333 [BZ #22321]
30334 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30335 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30336 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30337 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30338 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30339 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30340
30341 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30342
30343 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30344
30345 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30346
30347 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30348
30349 [BZ #22322]
30350 * sysdeps/mips/bits/long-double.h: Move to ....
30351 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30352
30353 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30354
30355 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30356
30357 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30358 H.J. Lu <hongjiu.lu@intel.com>
30359
30360 [BZ #22299]
30361 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30362 GLRO(dl_platform) to NULL.
30363 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30364 (modules-names): Add tst-platformmod-1 and
30365 x86_64/tst-platformmod-2.
30366 (CFLAGS-tst-platform-1.c): New.
30367 (CFLAGS-tst-platformmod-1.c): Likewise.
30368 (CFLAGS-tst-platformmod-2.c): Likewise.
30369 (LDFLAGS-tst-platformmod-2.so): Likewise.
30370 ($(objpfx)tst-platform-1): Likewise.
30371 ($(objpfx)tst-platform-1.out): Likewise.
30372 (tst-platform-1-ENV): Likewise.
30373 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30374 * sysdeps/x86_64/tst-platform-1.c: New file.
30375 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30376 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30377
30378 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30379
30380 [BZ #13994]
30381 * locale/iso-639.def: Add Karbi.
30382 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30383 * localedata/locales/mjw_IN: New file.
30384
30385 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30386
30387 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30388 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30389 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30390 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30391 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30392 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30393 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30394 <bits/floatn.h>.
30395 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30396 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30397 * manual/math.texi (Mathematics): Document additional architecture
30398 support for _Float128.
30399 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30400 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30401 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30402 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30403 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30404 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30405 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30406 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30407 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30408 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30409 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30410 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30411 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30412 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30413 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30414
30415 2017-10-18 Renlin Li <renlin.li@arm.com>
30416
30417 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30418 _DYNAMIC symbol to calculate load address.
30419
30420 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30421
30422 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30423 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30424 summary bits.
30425 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30426 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30427
30428 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30429
30430 [BZ #16777]
30431 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30432 and improve readability by using more ASCII.
30433 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30434 and improve readability by using more ASCII.
30435
30436 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30437
30438 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30439 not all targets support atomics on bool.
30440
30441 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30442
30443 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30444 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30445 __f128.
30446 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30447 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30448 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30449 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30450 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30451 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30452
30453 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30454
30455 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30456 defines.
30457
30458 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30459
30460 [BZ #22159]
30461 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30462 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30463 (do_check_remalloced_chunk): Fix build bug.
30464 (do_check_malloc_state): Add assert that checks arena->top.
30465 (malloc_consolidate): Remove initialization.
30466 (int_mallinfo): Remove call to malloc_consolidate.
30467 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30468
30469 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30470
30471 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30472 (have_fastchunks): Remove.
30473 (clear_fastchunks): Remove.
30474 (set_fastchunks): Remove.
30475 (malloc_state): Add have_fastchunks.
30476 (malloc_init_state): Use have_fastchunks.
30477 (do_check_malloc_state): Remove incorrect invariant checks.
30478 (_int_malloc): Use have_fastchunks.
30479 (_int_free): Likewise.
30480 (malloc_consolidate): Likewise.
30481
30482 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30483
30484 * malloc/malloc.c (tcache_put): Inline.
30485 (tcache_get): Inline.
30486
30487 2017-10-17 Jordi Mallach <jordi@gnu.org>
30488
30489 Aurelien Jarno <aurelien@aurel32.net>
30490 [BZ #2522]
30491 * localedata/locales/ca_ES@valencia: New file.
30492 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30493
30494 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30495
30496 [BZ #22296]
30497 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30498 < 6.x
30499
30500 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30501
30502 * scripts/build-many-glibcs.py (Context.add_all_configs):
30503 Add arm-linux-gnueabihf multiarch extra_glibcs.
30504
30505 * sysdeps/generic/ifunc-init.h: New file.
30506 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30507
30508 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30509
30510 [BZ #22019]
30511 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30512 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30513 * stdlib/tst-strfmon_l.c: adapt test case.
30514
30515 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30516
30517 * sysdeps/generic/float128-abi.h: New file.
30518 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30519 non-__prefixed symbols to ....
30520 * math/Versions: ... here. Include <float128-abi.h>.
30521 * stdlib/Versions ... and here. Include <float128-abi.h>
30522
30523 2017-10-16 Florian Weimer <fweimer@redhat.com>
30524
30525 * version.h (VERSION): Switch to ".9000" as the development
30526 version suffix.
30527
30528 2017-10-16 Florian Weimer <fweimer@redhat.com>
30529
30530 [BZ #22050]
30531 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30532 compat_symbol_reference to access non-default version.
30533
30534 2017-10-16 Florian Weimer <fweimer@redhat.com>
30535
30536 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30537
30538 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30539
30540 * include/shlib-compat.h (compat_symbol_reference): Update
30541 comment.
30542
30543 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30544
30545 * math/Makefile (test-types): Add
30546 $(type-float128-$(float128-alias-fcts)).
30547 * math/test-float128.h (TYPE_STR): Define conditional on
30548 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30549 (ULP_IDX): Likewise.
30550 (ULP_I_IDX): Likewise.
30551
30552 * stdlib/strtold.c: Include <bits/floatn.h>
30553 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30554 and later undefine as macro. Define as weak alias if
30555 [!USE_WIDE_CHAR].
30556 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30557 and later undefine as macro. Define as weak alias if
30558 [USE_WIDE_CHAR].
30559 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30560 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30561 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30562 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30563 Define and later undefine as macro. Define as weak alias if
30564 [USE_WIDE_CHAR].
30565 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30566 <bits/floatn.h>.
30567 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30568 Define and later undefine as macro. Define as weak alias if
30569 [!USE_WIDE_CHAR].
30570 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30571 Define and later undefine as macro. Define as weak alias if
30572 [USE_WIDE_CHAR].
30573
30574 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30575
30576 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30577 record_verbose messages.
30578
30579 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30580
30581 [BZ #22052]
30582 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30583 to silence -O3 -Wall warning with GCC 7.
30584
30585 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30586
30587 * Makeconfig (+link-static-before-libc): Use the first of
30588 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30589 * gmon/Makefile (tests): Add tst-gmon-static.
30590 (tests-static): Likewise.
30591 (CFLAGS-tst-gmon-static.c): New.
30592 (CRT-tst-gmon-static): Likewise.
30593 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30594 (tst-gmon-static-ENV): Likewise.
30595 (tests-special): Likewise.
30596 ($(objpfx)tst-gmon-static.out): Likewise.
30597 (clean-tst-gmon-static-data): Likewise.
30598 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30599 * gmon/tst-gmon-static-gprof.sh: New file.
30600 * gmon/tst-gmon-static.c: Likewise.
30601
30602 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30603
30604 [BZ #22295]
30605 * locale/programs/linereader.c (get_string): Don't warn on
30606 non-symbolic character.
30607
30608 [BZ #22294]
30609 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30610 int_curr_symbol.
30611
30612 [BZ #22292]
30613 * locale/programs/record-status.h: New file
30614 * locale/programs/locale.c: Add comment.
30615 * locale/programs/charmap-dir.c: Don't include error.h.
30616 (charmap_opendir): Use record_error.
30617 * locale/programs/charmap.c: Don't include error.h.
30618 (charmap_read): Use record_error, and record_warning.
30619 (parse_charmap): Likewise.
30620 * locale/programs/ld-address.c: Don't include error.h.
30621 (address_finish): Use record_error, and record_warning.
30622 * locale/programs/ld-collate.c: Don't include error.h.
30623 (collate_finish): Use record_error, and record_error_at_line.
30624 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30625 (ctype_class_new): Likewise.
30626 (ctype_map_new): Likewise.
30627 (set_one_default): Likewise.
30628 (set_class_defaults): Likewise.
30629 (translit_flatten): Likewise.
30630 (allocate_arrays): Use record_error, and record_verbose.
30631 * locale/programs/ld-identification.c: Don't include error.h.
30632 (indentation_finish): Use record_error and record_warning.
30633 * locale/programs/ld-measurement.c: Don't include error.h.
30634 (measurement_finish): Use record_error.
30635 * locale/programs/ld-messages.c
30636 (message_finish): Likewise.
30637 * locale/programs/ld-monetary.c
30638 (monetary_finish): Likewise.
30639 * locale/programs/ld-name.c (name_finish): Use record_error
30640 and record_warning.
30641 * locale/programs/ld-numeric.c
30642 (numeric_finish): Use record_error.
30643 * locale/programs/ld-paper.c: Don't include error.h.
30644 (paper_finish): Use record_error.
30645 * locale/programs/ld-telephone.c: Don't include error.h.
30646 (telephone_finish): Use record_error.
30647 * locale/programs/ld-time.c (time_finish): Likewise.
30648 * locale/programs/linereader.h (lr_error): Make inline func.
30649 * locale/programs/localedef.c: Define recorded_warning_count,
30650 and recorded_error_count.
30651 (main): Use record_error. Use recorded_error_count and
30652 recorded_warning_count to issue correct error returns.
30653 (add_to_readlist): Use record_error.
30654 (find_locale): Likewise.
30655 (load_locale): Likewise.
30656 * locale/programs/localedef.h: Remove be_quiet
30657 and WITH_CUR_LOCALE.
30658 * locale/programs/locarchive.c (compare_from_file): Use
30659 record_error.
30660 * locale/programs/locfile.c (write_locale_data): Use
30661 record_error.
30662 * locale/programs/repertoire.c: Dont include error.h.
30663 (repertoire_complain): Use record_error.
30664 * localedata/tst-fmon.sh: Expect failures from localedef.
30665 * localedata/tst-locale.sh: Likewise.
30666 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30667
30668 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30669 (REPORTS): Likewise.
30670 (check): Likewise.
30671 (i18n): Rename to...
30672 (i18n_ctype): ...this.
30673 (i18n-report): Rename to...
30674 (i18n_ctype-report): ...this.
30675 * localedata/locales/i18n_ctype: Regenerate.
30676 * localedata/locales/i18n: copy i18n_ctype.
30677
30678 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30679
30680 * stdlib/strfroml.c: Include <bits/floatn.h>.
30681 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30682 Define before include of <stdlib.h> and undefine afterwards, then
30683 define as weak alias.
30684
30685 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30686 Undefine and restore default definition. Use
30687 libm_alias_ldouble_other.
30688
30689 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30690
30691 [BZ #22153]
30692 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30693 in coredumps.
30694
30695 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30696
30697 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30698 Assign sym_map to be map for local symbols, as TLS relocations
30699 use sym_map to determine whether the symbol is defined and to
30700 extract the TLS information.
30701 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30702 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30703
30704 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30705
30706 [BZ #22189]
30707 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30708 (math_force_eval): Add powerpc version.
30709
30710 [BZ #22142]
30711 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30712 -DBL_MAX.
30713 (do_test): Likewise.
30714 * stdio-common/tst-printf.sh: Likewise.
30715 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30716 ifdef clause in order to set the carry bit right. Replace r0 by
30717 0 without changing the behavior.
30718
30719 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30720
30721 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30722 <libm-alias-ldouble.h>.
30723 (fabsl): Define using libm_alias_ldouble.
30724 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30725 <libm-alias-ldouble.h>.
30726 (fabsl): Define using libm_alias_ldouble.
30727
30728 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30729 Remove conditional code.
30730
30731 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30732 Rename to __clog10_internal_l.
30733 (__clog10_internal_l): Define aliases using
30734 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30735 with __clog10.
30736
30737 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30738
30739 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30740 * benchtests/sincosf-inputs: New file.
30741 * benchtests/cosf-inputs: New file.
30742 * benchtests/sinf-inputs: New file.
30743
30744 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30745
30746 * posix/tst-spawn.c (do_test): Wait for both children.
30747
30748 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30749
30750 [BZ #22284]
30751 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30752 tests-pie): Add tst-gmon-pie.
30753 (CFLAGS-tst-gmon-pie.c): New.
30754 (CRT-tst-gmon-pie): Likewise.
30755 (tst-gmon-pie-ENV): Likewise.
30756 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30757 ($(objpfx)tst-gmon-pie.out): Likewise.
30758 (clean-tst-gmon-pie-data): Likewise.
30759 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30760 * gmon/gmon.c [PIC]: Include <link.h>.
30761 [PIC] (callback): New function.
30762 (write_hist): Add an argument for load address. Subtract load
30763 address from PCs.
30764 (write_call_graph): Likewise.
30765 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30766 it to write_hist and write_call_graph.
30767 * gmon/tst-gmon-pie.c: New file.
30768
30769 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30770
30771 * math/Makefile (test-types-basic): New variable.
30772 (test-types): Likewise.
30773 (libm-test-support): Use $(test-types) instead of $(types).
30774 (libm-tests-base-normal): Likewise.
30775 (libm-tests-base-finite): Likewise.
30776 (libm-tests-base-inline): Likewise.
30777 (generated): Likewise.
30778 ($(objpfx)libm-test-support-$(t).c): Likewise.
30779 (libm-tests-for-type iterator): Likewise.
30780 (libm-test-support iterator): Likewise.
30781 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30782 (ulp_idx): Use ULP_IDX.
30783 * math/test-ldouble.h: Include <float.h>.
30784 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30785 (ULP_IDX): New macro.
30786 (ULP_I_IDX): Likewise.
30787 * math/test-double.h (ULP_IDX): Likewise.
30788 (ULP_I_IDX): Likewise.
30789 * math/test-float.h (ULP_IDX): Likewise.
30790 (ULP_I_IDX): Likewise.
30791 * math/test-float128.h (ULP_IDX): Likewise.
30792 (ULP_I_IDX): Likewise.
30793
30794 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30795
30796 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30797 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30798 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30799 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30800 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30801 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30802 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30803 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30804 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30805 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30806 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30807 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30808 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30809 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30810 (SINGLE_THREAD_BY_GLOBAL): Define.
30811 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30812 Likewise.
30813 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30814 Likewise.
30815 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30816 Likewise.
30817 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30818 Likewise.
30819 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30820 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30821 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30822 Likewise.
30823
30824 2017-10-11 Andreas Schwab <schwab@suse.de>
30825
30826 * nis/Makefile (aux): Remove.
30827 * nscd/Makefile (aux): Add nscd_hash.
30828 (nscd-modules): Likewise.
30829 ($(objpfx)nscd): Don't depend on libnsl.
30830 * nscd/nscd_hash.c: New file.
30831 * nscd/nscd_hash.h: Likewise.
30832 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30833 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30834 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30835 instead of <nis/rpcsvc/nis.h>.
30836 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30837
30838 2017-10-11 Florian Weimer <fweimer@redhat.com>
30839
30840 [BZ #22078]
30841 Avoid large NSS buffers with many addresses, aliases.
30842 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30843 using dynarrays and struct alloc_buffer.
30844 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30845 (tst-nss-files-hosts-multi): Link with -ldl.
30846 * nss/tst-nss-files-hosts-multi.c: New file.
30847
30848 2017-10-11 Florian Weimer <fweimer@redhat.com>
30849
30850 [BZ #18023]
30851 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30852 scratch_buffer. Eliminate gotos.
30853
30854 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30855
30856 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30857 libm_alias_ldouble_other.
30858 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30859 undefine and redefine.
30860 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30861 (exp10l): Do not define here.
30862 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30863 (weak_alias): Undefine and redefine.
30864 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30865 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30866 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30867 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30868
30869 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30870 [!__fma] (fma): Define using libm_alias_double.
30871 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30872 [!__fmaf] (fmaf): Define using libm_alias_float.
30873 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30874 (fmal): Define using libm_alias_ldouble.
30875
30876 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30877
30878 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30879 New macro.
30880 (libm_alias_double_other): Likewise.
30881 (libm_alias_double_r): Use libm_alias_double_other_r.
30882 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30883 New macro.
30884 (libm_alias_float_other): Likewise.
30885 (libm_alias_float_r): Use libm_alias_float_other_r.
30886 * sysdeps/generic/libm-alias-float128.h
30887 (libm_alias_float128_other_r): New macro.
30888 (libm_alias_float128_other): Likewise.
30889 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30890 * sysdeps/generic/libm-alias-ldouble.h
30891 (libm_alias_ldouble_other_r): New macro.
30892 (libm_alias_ldouble_other): Likewise.
30893 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30894 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30895 (libm_alias_double_other_r): New macro.
30896 (libm_alias_double_other): Likewise.
30897 (libm_alias_double_r): Use libm_alias_double_other_r.
30898 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30899 (libm_alias_ldouble_other_r): New macro.
30900 (libm_alias_ldouble_other): Likewise.
30901 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30902 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30903 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30904 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30905 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30906 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30907 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30908 * math/w_exp2f.c: Use libm_alias_float_other.
30909 * math/w_expf.c: Likewise.
30910 * math/w_log2f.c: Likewise.
30911 * math/w_logf.c: Likewise.
30912 * math/w_powf.c: Likewise.
30913 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30914 [!__exp2f]: Use libm_alias_float_other.
30915 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30916 [!__expf]: Use libm_alias_float_other.
30917 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30918 [!__log2f]: Use libm_alias_float_other.
30919 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30920 [!__logf]: Use libm_alias_float_other.
30921 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30922 [!__powf]: Use libm_alias_float_other.
30923
30924 2017-10-10 Florian Weimer <fweimer@redhat.com>
30925
30926 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30927 function.
30928 (_nss_files_gethostbyname3_r): Call it.
30929
30930 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30931
30932 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30933 error. Remove default definition of declare_mgen_alias.
30934 [!declare_mgen_alias_r]: Likewise.
30935 * sysdeps/generic/math-type-macros-double.h
30936 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30937 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30938 (declare_mgen_alias_r): Likewise.
30939 * sysdeps/generic/math-type-macros-float128.h
30940 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30941 * sysdeps/generic/math-type-macros-ldouble.h
30942 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30943 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30944 macro.
30945 (declare_mgen_alias_r_s): Likewise.
30946 (declare_mgen_alias_r): Likewise.
30947 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30948 (lgamma_r): Define using libm_alias_double_r.
30949 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30950 (lgammaf_r): Define using libm_alias_float_r.
30951 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30952 (lgammal_r): Define using libm_alias_ldouble_r.
30953 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30954 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30955
30956 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30957
30958 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30959 extern declaration.
30960
30961 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30962
30963 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30964
30965 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30966
30967 [BZ #21326]
30968 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30969 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30970 * math/Makefile (test-math-cxx11): New test.
30971 * math/test-math-cxx11.cc: New file.
30972
30973 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30974
30975 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30976
30977 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30978 call to allocate the slave pty file descriptor.
30979
30980 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30981
30982 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30983 [!__fma] (fma): Define using libm_alias_double.
30984 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30985 [!__fma] (fma): Define using libm_alias_double.
30986
30987 * sysdeps/ieee754/float128/float128_private.h: Include
30988 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30989 (libm_alias_ldouble_r): Undefine and redefine.
30990 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30991 <libm-alias-ldouble.h>.
30992 (asinhl): Define using libm_alias_ldouble.
30993 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30994 <libm-alias-ldouble.h>.
30995 (atanl): Define using libm_alias_ldouble.
30996 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30997 <libm-alias-ldouble.h>.
30998 (cbrtl): Define using libm_alias_ldouble.
30999 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
31000 <libm-alias-ldouble.h>.
31001 (ceill): Define using libm_alias_ldouble.
31002 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
31003 <libm-alias-ldouble.h>.
31004 (copysignl): Define using libm_alias_ldouble.
31005 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
31006 <libm-alias-ldouble.h>.
31007 (cosl): Define using libm_alias_ldouble.
31008 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
31009 <libm-alias-ldouble.h>.
31010 (erfl): Define using libm_alias_ldouble.
31011 (erfcl): Likewise.
31012 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
31013 <libm-alias-ldouble.h>.
31014 (expm1l): Define using libm_alias_ldouble.
31015 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31016 <libm-alias-ldouble.h>.
31017 (fabsl): Define using libm_alias_ldouble.
31018 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31019 <libm-alias-ldouble.h>.
31020 (floorl): Define using libm_alias_ldouble.
31021 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31022 <libm-alias-ldouble.h>.
31023 (fmal): Define using libm_alias_ldouble.
31024 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31025 <libm-alias-ldouble.h>.
31026 (frexpl): Define using libm_alias_ldouble.
31027 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31028 libm_alias_ldouble.
31029 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31030 <libm-alias-ldouble.h>.
31031 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31032 libm_alias_ldouble.
31033 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31034 <libm-alias-ldouble.h>.
31035 (getpayloadl): Define using libm_alias_ldouble.
31036 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31037 <libm-alias-ldouble.h>.
31038 (llrintl): Define using libm_alias_ldouble.
31039 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31040 <libm-alias-ldouble.h>.
31041 (llroundl): Define using libm_alias_ldouble.
31042 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31043 <libm-alias-ldouble.h>.
31044 (logbl): Define using libm_alias_ldouble.
31045 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31046 <libm-alias-ldouble.h>.
31047 (lrintl): Define using libm_alias_ldouble.
31048 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31049 <libm-alias-ldouble.h>.
31050 (lroundl): Define using libm_alias_ldouble.
31051 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31052 <libm-alias-ldouble.h>.
31053 (modfl): Define using libm_alias_ldouble.
31054 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31055 <libm-alias-ldouble.h>.
31056 (nearbyintl): Define using libm_alias_ldouble.
31057 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31058 <libm-alias-ldouble.h>.
31059 (nextafterl): Define using libm_alias_ldouble.
31060 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31061 <libm-alias-ldouble.h>.
31062 (nextupl): Define using libm_alias_ldouble.
31063 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31064 <libm-alias-ldouble.h>.
31065 (remquol): Define using libm_alias_ldouble.
31066 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31067 <libm-alias-ldouble.h>.
31068 (rintl): Define using libm_alias_ldouble.
31069 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31070 <libm-alias-ldouble.h>.
31071 (roundevenl): Define using libm_alias_ldouble.
31072 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31073 <libm-alias-ldouble.h>.
31074 (roundl): Define using libm_alias_ldouble.
31075 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31076 using libm_alias_ldouble.
31077 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31078 <libm-alias-ldouble.h>.
31079 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31080 Define using libm_alias_ldouble.
31081 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31082 <libm-alias-ldouble.h>.
31083 (sincosl): Define using libm_alias_ldouble.
31084 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31085 <libm-alias-ldouble.h>.
31086 (sinl): Define using libm_alias_ldouble.
31087 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31088 <libm-alias-ldouble.h>.
31089 (tanhl): Define using libm_alias_ldouble.
31090 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31091 <libm-alias-ldouble.h>.
31092 (tanl): Define using libm_alias_ldouble.
31093 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31094 <libm-alias-ldouble.h>.
31095 (totalorderl): Define using libm_alias_ldouble.
31096 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31097 <libm-alias-ldouble.h>.
31098 (totalordermagl): Define using libm_alias_ldouble.
31099 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31100 <libm-alias-ldouble.h>.
31101 (truncl): Define using libm_alias_ldouble.
31102 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31103 libm_alias_ldouble.
31104 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31105 libm_alias_ldouble.
31106 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31107 <libm-alias-ldouble.h>.
31108 (weak_alias): Do not undefine and redefine.
31109 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31110 (copysignl): Define with long_double_symbol only if [IS_IN
31111 (libc)].
31112 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31113 <libm-alias-ldouble.h>.
31114 (weak_alias): Do not undefine and redefine.
31115 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31116 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31117 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31118 <libm-alias-ldouble.h>.
31119 (weak_alias): Do not undefine and redefine.
31120 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31121 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31122 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31123 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31124 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31125 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31126 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31127 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31128 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31129 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31130 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31131 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31132 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31133 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31134 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31135 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31136 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31137 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31138 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31139 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31140 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31141 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31142 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31143 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31144 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31145 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31146
31147 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31148
31149 [BZ #22111]
31150 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31151 (tcache_thread_freeres): Set tcache_shutting_down before
31152 freeing the tcache.
31153 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31154 * malloc/tst-malloc-tcache-leak.c: New file.
31155
31156 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31157
31158 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31159 back to powerpc32 file.
31160 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31161 (memrchr): Add __memrchr_power8 to ifunc list.
31162 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31163 extra bytes for unaligned inputs.
31164
31165 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31166
31167 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31168 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31169 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31170 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31171 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31172
31173 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31174
31175 * sysdeps/arm/libm-test-ulps: Update.
31176
31177 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31178 <libm-alias-ldouble.h>.
31179 (asinhl): Define using libm_alias_ldouble.
31180 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31181 <libm-alias-ldouble.h>.
31182 (cbrtl): Define using libm_alias_ldouble.
31183 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31184 <libm-alias-ldouble.h>.
31185 (copysignl): Define using libm_alias_ldouble.
31186 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31187 <libm-alias-ldouble.h>.
31188 (cosl): Define using libm_alias_ldouble.
31189 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31190 <libm-alias-ldouble.h>.
31191 (erfl): Define using libm_alias_ldouble.
31192 (erfcl): Likewise.
31193 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31194 <libm-alias-ldouble.h>.
31195 (fmal): Define using libm_alias_ldouble.
31196 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31197 <libm-alias-ldouble.h>.
31198 (frexpl): Define using libm_alias_ldouble.
31199 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31200 libm_alias_ldouble.
31201 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31202 <libm-alias-ldouble.h>.
31203 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31204 libm_alias_ldouble.
31205 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31206 <libm-alias-ldouble.h>.
31207 (getpayloadl): Define using libm_alias_ldouble.
31208 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31209 <libm-alias-ldouble.h>.
31210 (llrintl): Define using libm_alias_ldouble.
31211 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31212 <libm-alias-ldouble.h>.
31213 (llroundl): Define using libm_alias_ldouble.
31214 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31215 <libm-alias-ldouble.h>.
31216 (lrintl): Define using libm_alias_ldouble.
31217 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31218 <libm-alias-ldouble.h>.
31219 (lroundl): Define using libm_alias_ldouble.
31220 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31221 <libm-alias-ldouble.h>.
31222 (modfl): Define using libm_alias_ldouble.
31223 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31224 <libm-alias-ldouble.h>.
31225 (nextupl): Define using libm_alias_ldouble.
31226 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31227 <libm-alias-ldouble.h>.
31228 (remquol): Define using libm_alias_ldouble.
31229 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31230 <libm-alias-ldouble.h>.
31231 (roundevenl): Define using libm_alias_ldouble.
31232 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31233 <libm-alias-ldouble.h>.
31234 (roundl): Define using libm_alias_ldouble.
31235 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31236 using libm_alias_ldouble.
31237 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31238 <libm-alias-ldouble.h>.
31239 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31240 <libm-alias-ldouble.h>.
31241 (setpayloadsigl): Define using libm_alias_ldouble.
31242 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31243 <libm-alias-ldouble.h>.
31244 (sincosl): Define using libm_alias_ldouble.
31245 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31246 <libm-alias-ldouble.h>.
31247 (sinl): Define using libm_alias_ldouble.
31248 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31249 <libm-alias-ldouble.h>.
31250 (tanhl): Define using libm_alias_ldouble.
31251 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31252 <libm-alias-ldouble.h>.
31253 (tanl): Define using libm_alias_ldouble.
31254 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31255 <libm-alias-ldouble.h>.
31256 (totalorderl): Define using libm_alias_ldouble.
31257 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31258 <libm-alias-ldouble.h>.
31259 (totalordermagl): Define using libm_alias_ldouble.
31260 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31261 libm_alias_ldouble.
31262 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31263 libm_alias_ldouble.
31264
31265 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31266
31267 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31268 memmove_falkor.
31269 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31270 (__libc_ifunc_impl_list): Likewise.
31271 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31272 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31273
31274 * benchtests/bench-memmove-walk.c: New file.
31275 * benchtests/Makefile (string-benchset): Add it.
31276
31277 * benchtests/bench-memset-walk.c: New file.
31278 * benchtests/Makefile (string-benchset): Add it.
31279
31280 * benchtests/bench-memcpy-walk.c: New file.
31281 * benchtests/Makefile (string-benchset): Add it.
31282
31283 2017-10-05 Florian Weimer <fweimer@redhat.com>
31284
31285 nscd: Eliminate compilation time dependency in the build output.
31286 * nscd/nscd_stat.c (STATDATA_VERSION)
31287 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31288 (STATDATA_VERSION_FULL): New macro definitions.
31289 (compilation): Remove.
31290 (struct statdata): Adjust version member.
31291 (send_stats): Set version from STATDATA_VERSION_FULL.
31292 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31293
31294 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31295
31296 * configure.ac (--enable-add-ons): Remove option.
31297 (machine): Do not mention add-ons in comment.
31298 (LIBC_PRECONFIGURE): Likewise.
31299 (add_ons): Remove variable and sanity checks and logic to locate
31300 add-ons.
31301 (add_ons_automatic): Remove variable.
31302 (configured_add_ons): Likewise.
31303 (add_ons_sfx): Likewise.
31304 (add_ons_pfx): Likewise.
31305 (add_on_subdirs): Likewise.
31306 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31307 consideration of add-ons in Implies handling.
31308 (sysdeps_add_ons): Likewise.
31309 * configure: Regenerated.
31310 * libidn/configure.ac: Remove.
31311 * libidn/configure: Likewise.
31312 * sysdeps/unix/inet/configure.ac: New file.
31313 * sysdeps/unix/inet/configure: New generated file.
31314 * sysdeps/unix/inet/Subdirs: Add libidn.
31315 * Makeconfig (sysdeps-srcdirs): Remove variable.
31316 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31317 ($(common-objpfx)config.status): Do not depend on add-on files.
31318 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31319 comment.
31320 (all-subdirs): Do not include $(add-on-subdirs).
31321 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31322 * config.make.in (add-ons): Remove variable.
31323 (add-on-subdirs): Likewise.
31324 (sysdeps-add-ons): Likewise.
31325 * manual/Makefile (add-chapters): Remove.
31326 ($(objpfx)texis): Do not depend on $(add-chapters).
31327 (nonexamples): Do not handle $(add-chapters).
31328 (examples): Do not handle $(add-ons).
31329 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31330 libc-texinfo.sh.
31331 * manual/install.texi (Installation): Do not mention add-ons.
31332 (--enable-add-ons): Do not document configure option.
31333 * INSTALL: Regenerated.
31334 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31335 * manual/maint.texi (Hierarchy Conventions): Do not mention
31336 add-ons.
31337 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31338 --enable-add-ons.
31339 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31340 add-ons.
31341 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31342 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31343
31344 2017-10-05 Andreas Schwab <schwab@suse.de>
31345
31346 [BZ #15142]
31347 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31348 (_IO_flush_all_lockp): Always lock list_all_lock.
31349 (_IO_flush_all_linebuffered): Likewise.
31350 (_IO_unbuffer_all): Likewise.
31351
31352 2017-10-05 Florian Weimer <fweimer@redhat.com>
31353
31354 [BZ #15436]
31355 Do not flush stdio streams on abort.
31356 * stdlib/abort.c (fflush): Remove macro definition.
31357 (abort): Remove stages related to stdio flushing.
31358
31359 2017-10-05 Florian Weimer <fweimer@redhat.com>
31360
31361 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31362
31363 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31364
31365 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31366
31367 2017-10-05 Florian Weimer <fweimer@redhat.com>
31368
31369 * support/support_format_hostent.c (support_format_hostent): Add
31370 more error information for NETDB_INTERNAL.
31371
31372 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31373
31374 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31375 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31376 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31377 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31378 AC_DEFINE if multi-arch is enabled.
31379 * sysdeps/i386/configure: Regenerated.
31380
31381 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31382
31383 * Makeconfig (+link-static-before-libc): Use
31384 $(DEFAULT-LDFLAGS-$(@F)).
31385 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31386 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31387 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31388
31389 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31390
31391 * elf/Makefile (tests): Add tst-main1.
31392 (modules-names): Add tst-main1mod.
31393 ($(objpfx)tst-main1): New.
31394 (CRT-tst-main1): Likewise.
31395 (LDFLAGS-tst-main1): Likewise.
31396 (LDLIBS-tst-main1): Likewise.
31397 (tst-main1mod.so-no-z-defs): Likewise.
31398 * elf/tst-main1.c: New file.
31399 * elf/tst-main1mod.c: Likewise.
31400
31401 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31402
31403 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31404
31405 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31406
31407 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31408 (fma): Define using libm_alias_double.
31409 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31410 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31411 <math_ldbl_opt.h>.
31412 (fmal): Do not define as compat symbol here.
31413 * sysdeps/alpha/fpu/s_fma.c: New file.
31414
31415 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31416
31417 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31418
31419 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31420
31421 [BZ #22229]
31422 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31423 <math_ldbl_opt.h>
31424 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31425 and libc.
31426 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31427 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31428 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31429 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31430 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31431 Include <math_ldbl_opt.h>
31432 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31433 and libc.
31434 (compat_symbol): Undefine and redefine.
31435 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31436 <math_ldbl_opt.h>
31437 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31438 (compat_symbol): Undefine and redefine.
31439 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31440 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31441 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31442 GLIBC_2_1 for libm.
31443 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31444 GLIBC_2.0 copysignl symbol.
31445 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31446 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31447
31448 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31449
31450 2017-10-04 Florian Weimer <fweimer@redhat.com>
31451
31452 * scripts/check-local-headers.sh: Ignore nspr4 header file
31453 directory in addition to nspr.
31454
31455 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31456
31457 [BZ #17956]
31458 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31459 * configure: Regenerate.
31460 * crypt/Makefile (nss-cpp-flags): New variable.
31461 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31462 (CPPFLAGS-md5-crypt.c): Use it.
31463 * scripts/check-local-headers.sh: Ignore nspr header file
31464 directory.
31465
31466 2017-10-04 Andreas Schwab <schwab@suse.de>
31467
31468 * nis/Makefile (services): Remove compat.
31469 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31470 ($(objpfx)libnss_compat.so): Remove rule.
31471 * nis/Versions (libnss_compat): Remove.
31472 * nss/Makefile (services): Add compat.
31473 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31474 * nss/Versions (libnss_compat): Define.
31475 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31476 Don't include <rpc/types.h>. Replace bool_t by bool.
31477 * nss/nss_compat/compat-initgroups.c: Likewise.
31478 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31479 instead of <rpcsrv/ypclnt.h>.
31480 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31481 yp_get_default_domain.
31482 * nss/nss_compat/compat-pwd.c: Likewise.
31483 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31484 yp_get_default_domain.
31485 * nss/nss_compat/nisdomain.c: New file.
31486 * nss/nss_compat/nisdomain.h: Likewise.
31487
31488 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31489
31490 [BZ #22244]
31491 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31492 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31493
31494 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31495
31496 [BZ #22243]
31497 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31498 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31499
31500 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31501
31502 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31503 "movl main@GOTOFF(%ebx), %eax".
31504
31505 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31506
31507 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31508 allow undefined _DYNAMIC in PIE libc.a.
31509 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31510 Likewse.
31511
31512 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31513
31514 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31515 check _DYNAMIC.
31516
31517 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31518
31519 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31520 check _DYNAMIC.
31521
31522 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31523
31524 * math/test-math-iscanonical.cc (error): Replace bool with int.
31525
31526 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31527
31528 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31529 (modf): Define using libm_alias_double, only if [!__modf].
31530 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31531 <libm-alias-double.h>.
31532 (modf): Define using libm_alias_double, only if [!__modf].
31533 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31534 compat symbol here.
31535 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31536 (weak_alias): Do not undefine and redefine.
31537 (strong_alias): Likewise.
31538 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31539 (weak_alias): Likewise.
31540 (strong_alias): Likewise.
31541
31542 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31543 (logb): Define using libm_alias_double, only if [!__logb].
31544 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31545 <libm-alias-double.h>.
31546 (logb): Define using libm_alias_double, only if [!__logb].
31547 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31548 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31549 (weak_alias): Do not undefine and redefine.
31550 (strong_alias): Likewise.
31551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31552 (weak_alias): Likewise.
31553 (strong_alias): Likewise.
31554
31555 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31556
31557 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31558 Check SHARED instead PIC.
31559
31560 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31561
31562 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31563 [!__fmaf] (fmaf): Define using libm_alias_float.
31564
31565 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31566 (frexp): Define using libm_alias_double.
31567 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31568 <libm-alias-double.h>.
31569 (frexp): Define using libm_alias_double.
31570 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31571 compat symbol here.
31572
31573 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31574
31575 [BZ #22235]
31576 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31577 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31578 (CFLAGS-test-math-iscanonical.cc): New variable.
31579 * math/test-math-iscanonical.cc: New file.
31580 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31581 Provide a C++ implementation based on function overloading,
31582 rather than using __MATH_TG, which uses C-only builtins.
31583 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31584 Likewise.
31585 * sysdeps/powerpc/powerpc64le/Makefile
31586 (CFLAGS-test-math-iscanonical.cc): New variable.
31587
31588 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31589
31590 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31591 (ceil): Define using libm_alias_double.
31592 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31593 (floor): Define using libm_alias_double.
31594 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31595 <libm-alias-double.h>.
31596 (llround): Define using libm_alias_double.
31597 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31598 <libm-alias-double.h>.
31599 (lround): Define using libm_alias_double.
31600 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31601 <libm-alias-double.h>.
31602 (nearbyint): Define using libm_alias_double.
31603 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31604 <libm-alias-double.h>.
31605 (remquo): Define using libm_alias_double.
31606 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31607 (rint): Define using libm_alias_double.
31608 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31609 (round): Define using libm_alias_double.
31610 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31611 (trunc): Define using libm_alias_double.
31612 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31613 <libm-alias-double.h>.
31614 (ceil): Define using libm_alias_double.
31615 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31616 <libm-alias-double.h>.
31617 (floor): Define using libm_alias_double.
31618 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31619 <libm-alias-double.h>.
31620 (llround): Define using libm_alias_double.
31621 [_LP64] (lround): Likewise.
31622 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31623 <libm-alias-double.h>.
31624 [!_LP64] (lround): Define using libm_alias_double.
31625 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31626 <libm-alias-double.h>.
31627 (nearbyint): Define using libm_alias_double.
31628 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31629 <libm-alias-double.h>.
31630 (remquo): Define using libm_alias_double.
31631 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31632 <libm-alias-double.h>.
31633 (rint): Define using libm_alias_double.
31634 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31635 <libm-alias-double.h>.
31636 (round): Define using libm_alias_double.
31637 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31638 <libm-alias-double.h>.
31639 (trunc): Define using libm_alias_double.
31640 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31641 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31642 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31643 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31644 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31645 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31646 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31647 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31648 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31649
31650 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31651
31652 * math/w_remainder.c: New file.
31653 * math/w_remainderf.c: New file.
31654 * math/w_remainderl.c: New file.
31655
31656 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31657
31658 * elf/rtld.c (BOOTSTRAP_MAP): New.
31659 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31660 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31661 Likewise.
31662 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31663 Likewise.
31664 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31665 Likewise.
31666
31667 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31668
31669 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31670 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31671 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31672 rtld_hidden_data_ver): Define to empty.
31673 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31674 __assert_perror_fail): Likewise.
31675 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31676 (__rewinddir): Likewise.
31677 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31678 (__profile_frequency): Likewise.
31679 * include/setjmp.h (__sigsetjmp): Likewise.
31680 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31681 __libc_sigaction): Likewise.
31682 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31683 not set hidden attribute.
31684 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31685 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31686 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31687 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31688 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31689 __fxstatat64): Likewise.
31690 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31691 (__uname): Likewise.
31692 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31693 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31694 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31695 (NO_RTLD_HIDDEN): Set.
31696 * sysdeps/mach/hurd/configure: Refresh.
31697 * config.h.in: Refresh.
31698
31699 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31700
31701 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31702 (atan): Define using libm_alias_double.
31703 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31704 (tan): Define using libm_alias_double.
31705 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31706 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31707
31708 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31709 define as weak alias of __atan. Do not define any aliases if
31710 [__atan].
31711 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31712 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31713 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31714 as weak alias of __tan. Do not define any aliases if [__tan].
31715 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31716 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31717 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31718 __atan.
31719 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31720 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31721 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31722 and define as weak alias of __atan.
31723 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31724 __atan.
31725 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31726 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31727 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31728 define as weak alias of __tan.
31729
31730 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31731
31732 * math/w_lgamma.c: New file.
31733 * math/w_lgammaf.c: New file.
31734 * math/w_lgammal.c: New file.
31735
31736 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31737
31738 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31739 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31740 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31741 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31742 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31743 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31744 * sysdeps/i386/fpu/w_log2f.c: New file.
31745 * sysdeps/i386/fpu/w_logf.c: New file.
31746 * sysdeps/i386/fpu/w_powf.c: New file.
31747 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31748 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31749 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31750
31751 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31752 H.J. Lu <hongjiu.lu@intel.com>
31753
31754 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31755 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31756 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31757 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31758 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31759 the new expf code.
31760 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31761 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31762 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31763 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31764 * sysdeps/i386/fpu/w_exp2f.c: New file.
31765 * sysdeps/i386/fpu/w_expf.c: New file.
31766 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31767 * sysdeps/x86_64/fpu/w_expf.c: New file.
31768
31769 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31770
31771 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31772 (log2f): Likewise.
31773 (powf): Likewise.
31774 * math/w_log2f.c: New file.
31775 * math/w_logf.c: New file.
31776 * math/w_powf.c: New file.
31777 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31778 * math/w_logf_compat.c (__logf_compat): Likewise.
31779 * math/w_powf_compat.c (__powf_compat): Likewise.
31780 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31781 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31782 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31783 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31784 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31785 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31786 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31787 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31788 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31789 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31790 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31791 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31792 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31793 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31794 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31796 Likewise.
31797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31798 Likewise.
31799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31800 Likewise.
31801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31802 Likewise.
31803 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31804 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31805 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31806 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31807 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31808 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31809 Likewise.
31810 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31811 Likewise.
31812 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31813 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31814 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31815
31816 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31817
31818 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31819 (sysdep_routines): Add memrchr_power8.
31820 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31821 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31822 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31823 New file.
31824 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31825 (memrchr): Add __memrchr_power8 to ifunc list.
31826 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31827
31828 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31829
31830 [BZ #18822]
31831 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31832 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31833 libc_hidden_def.
31834 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31835 (__posix_fallocate64_l64): Likewise.
31836
31837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31838
31839 [BZ #18822]
31840 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31841 (__sched_setaffinity_new): Add libc_hidden_proto and
31842 libc_hidden_def.
31843
31844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31845
31846 [BZ #18822]
31847 * include/glob.h (__glob64): Add libc_hidden_proto.
31848 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31849 libc_hidden_def.
31850
31851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31852
31853 [BZ #18822]
31854 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31855 attribute_hidden.
31856
31857 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31858
31859 [BZ #18822]
31860 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31861
31862 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31863
31864 [BZ #18822]
31865 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31866 libc_hidden_def.
31867
31868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31869
31870 [BZ #18822]
31871 * csu/version.c (__libc_print_version): Add attribute_hidden.
31872
31873 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31874
31875 [BZ #18822]
31876 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31877
31878 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31879
31880 [BZ #18822]
31881 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31882
31883 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31884
31885 [BZ #18822]
31886 * nscd/nscd_helper.c (__nis_hash): New prototype.
31887
31888 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31889
31890 [BZ #18822]
31891 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31892 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31893 libc_hidden_def.
31894 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31895 * termios/tcgetattr.c (__tcgetattr): Likewise.
31896
31897 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31898
31899 [BZ #18822]
31900 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31901 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31902 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31903 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31904 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31905
31906 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31907
31908 [BZ #18822]
31909 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31910
31911 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31912
31913 [BZ #18822]
31914 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31915 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31916
31917 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31918
31919 [BZ #18822]
31920 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31921
31922 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31923
31924 [BZ #18822]
31925 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31926 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31927
31928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31929
31930 [BZ #18822]
31931 * include/ifreq.h: New file.
31932 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31933 (__ifreq): Likewise.
31934 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31935 (__ifreq): Likewise.
31936
31937 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31938
31939 [BZ #18822]
31940 * include/idna.h: New file.
31941 * inet/getnameinfo.c: Include <idna.h> instead of
31942 <libidn/idna.h>.
31943 (__idna_to_unicode_lzlz): Removed.
31944 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31945 <libidn/idna.h>.
31946 (__idna_to_ascii_lz): Removed.
31947 (__idna_to_unicode_lzlz): Likewise.
31948
31949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 [BZ #18822]
31952 * include/plural-exp.h: New file.
31953 * intl/plural-exp.c: Include <plural-exp.h> instead of
31954 "plural-exp.h".
31955
31956 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31957
31958 [BZ #18822]
31959 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31960 "getsourcefilter.h".
31961 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31962 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31963 "getsourcefilter.h".
31964 (__get_sol): Removed.
31965
31966 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31967
31968 [BZ #18822]
31969 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31970 to ...
31971 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31972
31973 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31974
31975 [BZ #18822]
31976 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31977 attribute_hidden.
31978
31979 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31980
31981 [BZ #18822]
31982 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31983
31984 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31985
31986 [BZ #18822]
31987 * include/search.h (__tdestroy): Add libc_hidden_proto.
31988 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31989
31990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31991
31992 [BZ #18822]
31993 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31994
31995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31996
31997 [BZ #18822]
31998 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31999 attribute_hidden.
32000
32001 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32002
32003 [BZ #18822]
32004 * include/signal.h (__kill): Add libc_hidden_proto.
32005 (__sigblock): Likewise.
32006 (__sigprocmask): Likewise.
32007 (__sigaltstack): Likewise.
32008 * signal/kill.c (__kill): Add libc_hidden_def.
32009 * signal/sigblock.c (__sigblock): Likewise.
32010 * signal/sigprocmask.c (__sigprocmask): Likewise.
32011 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
32012 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
32013 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32014 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32015 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32016 Likewise.
32017 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32018 Likewise.
32019 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32020 (__sigprocmask): Likewise.
32021 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32022 Likewise.
32023 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32024 (__sigprocmask): Likewise.
32025 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32026 Likewise.
32027
32028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32029
32030 [BZ #18822]
32031 * include/string.h (__strsep): Add libc_hidden_proto.
32032 * string/strsep.c (__strsep): Add libc_hidden_def.
32033
32034 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32035
32036 [BZ #18822]
32037 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32038 attribute_hidden.
32039 (__spawni): Likewise.
32040
32041 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32042
32043 [BZ #18822]
32044 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32045 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32046 libc_hidden_def.
32047
32048 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32049
32050 [BZ #18822]
32051 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32052
32053 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32054
32055 [BZ #18822]
32056 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32057 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32058 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32059 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32060 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32061 Likewise.
32062 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32063 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32064
32065 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32066
32067 [BZ #18822]
32068 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32069 (__dcigettext): Likewise.
32070
32071 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32072
32073 [BZ #18822]
32074 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32075 libc_hidden_proto.
32076 (__get_nprocs): Likewise.
32077 (__get_phys_pages): Likewise.
32078 (__get_avphys_pages): Likewise.
32079 (__get_child_max): Add attribute_hidden.
32080 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32081 (__get_nprocs): Likewise.
32082 (__get_phys_pages): Likewise.
32083 (__get_avphys_pages): Likewise.
32084 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32085 libc_hidden_def.
32086 (__get_nprocs): Likewise.
32087 (__get_phys_pages): Likewise.
32088 (__get_avphys_pages): Likewise.
32089 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32090 libc_hidden_def.
32091 (__get_nprocs_conf): Likewise.
32092 (__get_phys_pages): Likewise.
32093 (__get_avphys_pages): Likewise.
32094
32095 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32096
32097 [BZ #18822]
32098 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32099 attribute_hidden.
32100 (__netlink_close): Likewise.
32101 (__netlink_free_handle): Likewise.
32102 (__netlink_request): Likewise.
32103
32104 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32105
32106 [BZ #18822]
32107 * include/rpc/rpc.h (__rpc_thread_variables): Add
32108 attribute_hidden.
32109 (__rpc_thread_svc_cleanup): Likewise.
32110 (__rpc_thread_clnt_cleanup): Likewise.
32111 (__rpc_thread_key_cleanup): Likewise.
32112
32113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32114
32115 [BZ #18822]
32116 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32117 (__writev): Likewise.
32118 * misc/readv.c (__readv): Add libc_hidden_def.
32119 * misc/writev.c (__writev): Likewise.
32120 * sysdeps/posix/readv.c (__readv): Likewise.
32121 * sysdeps/posix/writev.c (__writev): Likewise.
32122 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32123 (__readv): Likewise.
32124 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32125 (__writev): Likewise.
32126
32127 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32128
32129 [BZ #18822]
32130 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32131 (__regcomp): Add libc_hidden_proto.
32132 (__regexec): Likewise.
32133 (__regfree): Likewise.
32134 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32135 (__regfree): Likewise.
32136 * posix/regexec.c (__regexec): Likewise.
32137
32138 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32139
32140 [BZ #18822]
32141 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32142 (__getutent): Likewise.
32143 (__getutid): Likewise.
32144 (__getutline): Likewise.
32145 (__pututline): Likewise.
32146 (__getutent_r): Likewise.
32147 (__getutid_r): Likewise.
32148 (__getutline_r): Likewise.
32149 (__utmpname): Add attribute_hidden.
32150 (__setutent): Likewise.
32151 (__endutent): Likewise.
32152 * login/getutent.c (__getutent): Add libc_hidden_def.
32153 * login/getutent_r.c (__getutent_r): Likewise.
32154 (__pututline): Likewise.
32155 * login/getutid.c (__getutid): Likewise.
32156 * login/getutid_r.c (__getutid_r): Likewise.
32157 * login/getutline.c (__getutline): Likewise.
32158 * login/getutline_r.c (__getutline_r): Likewise.
32159 * login/updwtmp.c (__updwtmp): Likewise.
32160
32161 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32162
32163 [BZ #18822]
32164 * include/dirent.h (__opendir): Always add attribute_hidden.
32165 (__fdopendir): Likewise.
32166 (__closedir): Likewise.
32167 (__readdir): Likewise.
32168 (__readdir64): Add libc_hidden_proto.
32169 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32170 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32171 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32172 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32173 New alias.
32174
32175 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32176
32177 [BZ #18822]
32178 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32179 * include/netdb.h (__gethostbyaddr_r): Likewise.
32180 (__gethostbyname_r): Likewise.
32181 (__gethostbyname2_r): Likewise.
32182 (__getnetbyaddr_r): Likewise.
32183 (__getnetbyname_r): Likewise.
32184 (__getservbyname_r): Likewise.
32185 (__getservbyport_r): Likewise.
32186 (__getprotobyname_r): Likewise.
32187 (__getprotobynumber_r): Likewise.
32188 (__getnetgrent_r): Likewise.
32189 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32190 (__getrpcbynumber_r): Likewise.
32191 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32192
32193 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32194
32195 [BZ #18822]
32196 * include/stdio.h (__fcloseall): Add attribute_hidden.
32197 (__getline): Likewise.
32198 (__path_search): Likewise.
32199 (__gen_tempname): Likewise.
32200 (__libc_message): Likewise.
32201 (__flockfile): Likewise.
32202 (__funlockfile): Likewise.
32203 (__fxprintf): Likewise.
32204 (__fxprintf_nocancel): Likewise.
32205
32206 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32207
32208 [BZ #18822]
32209 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32210 (__sgetsgent_r): Likewise.
32211
32212 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32213
32214 [BZ #18822]
32215 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32216 (__statfs64): Likewise.
32217 (__fstatfs64): Likewise.
32218 * include/sys/statvfs.h (__statvfs64): Likewise.
32219 (__fstatvfs64): Likewise.
32220 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32221 (__statfs_filesize_max): Likewise.
32222 (__statfs_symlinks): Likewise.
32223 (__statfs_chown_restricted): Likewise.
32224
32225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32226
32227 [BZ #18822]
32228 * include/time.h (__tzstring): Add attribute_hidden.
32229 (__tzfile_read): Likewise.
32230 (__tzfile_compute): Likewise.
32231 (__tzfile_default): Likewise.
32232 (__tzset_parse_tz): Likewise.
32233 (__offtime): Likewise.
32234 (__asctime_r): Likewise.
32235 (__tzset): Likewise.
32236 (__tz_convert): Likewise.
32237 (__getdate_r): Likewise.
32238 (__getclktck): Likewise.
32239
32240 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32241
32242 [BZ #18822]
32243 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32244 (__nscd_unmap): Likewise.
32245 (__nscd_cache_search): Likewise.
32246 (__nscd_get_nl_timestamp): Likewise.
32247 (__nscd_getpwnam_r): Likewise.
32248 (__nscd_getpwuid_r): Likewise.
32249 (__nscd_getgrnam_r): Likewise.
32250 (__nscd_getgrgid_r): Likewise.
32251 (__nscd_gethostbyname_r): Likewise.
32252 (__nscd_gethostbyname2_r): Likewise.
32253 (__nscd_gethostbyaddr_r): Likewise.
32254 (__nscd_getai): Likewise.
32255 (__nscd_getgrouplist): Likewise.
32256 (__nscd_getservbyname_r): Likewise.
32257 (__nscd_getservbyport_r): Likewise.
32258 (__nscd_innetgr): Likewise.
32259 (__nscd_setnetgrent): Likewise.
32260
32261 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32262
32263 [BZ #18822]
32264 * include/gmp.h: Declare internal functions only if _ISOMAC is
32265 undefined.
32266 (__mpn_extract_double): Add attribute_hidden.
32267 (__mpn_extract_long_double): Likewise.
32268 (__mpn_extract_float128): Likewise.
32269 (__mpn_construct_float): Likewise.
32270 (__mpn_construct_double): Likewise.
32271 (__mpn_construct_long_double): Likewise.
32272 (__mpn_construct_float128): Likewise.
32273 (mpn_add_1): Likewise.
32274 (mpn_addmul_1): Likewise.
32275 (mpn_add_n): Likewise.
32276 (mpn_cmp): Likewise.
32277 (mpn_divrem): Likewise.
32278 (mpn_lshift): Likewise.
32279 (mpn_mul): Likewise.
32280 (mpn_mul_1): Likewise.
32281 (mpn_rshift): Likewise.
32282 (mpn_sub_1): Likewise.
32283 (mpn_submul_1): Likewise.
32284 (mpn_sub_n): Likewise.
32285
32286 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32287
32288 [BZ #18822]
32289 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32290 (__wcscat): Likewise.
32291 (__btowc): Likewise.
32292 (__wcrtomb): Likewise.
32293 (__mbsrtowcs): Likewise.
32294 (__wcsrtombs): Likewise.
32295 (__mbsnrtowcs): Likewise.
32296 (__wcsnrtombs): Likewise.
32297 (__wcsncpy): Likewise.
32298 (__wcpncpy): Likewise.
32299 (__wmemcpy): Likewise.
32300 (__wmempcpy): Likewise.
32301 (__wmemmove): Likewise.
32302 (__wcschrnul): Likewise.
32303 (__vfwscanf): Likewise.
32304 (__vswprintf): Likewise.
32305 (__fwprintf): Likewise.
32306 (__vfwprintf): Likewise.
32307
32308 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32309
32310 [BZ #18822]
32311 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32312 (__getgrgid_r): Likewise.
32313 (__getgrnam_r): Likewise.
32314 * include/pwd.h (__getpwuid_r): Likewise.
32315 (__getpwnam_r): Likewise.
32316 (__fgetpwent_r): Likewise.
32317 * include/shadow.h (__getspnam_r): Likewise.
32318 (__sgetspent_r): Likewise.
32319 (__fgetspent_r): Likewise.
32320
32321 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32322
32323 [BZ #18822]
32324 * include/unistd.h (__access): Add attribute_hidden.
32325 (__lseek64): Likewise.
32326 (__libc_pread64): Likewise.
32327 (__pipe2): Likewise.
32328 (__sleep): Likewise.
32329 (__chdir): Likewise.
32330 (__fchdir): Likewise.
32331 (__getcwd): Likewise.
32332 (__rmdir): Likewise.
32333 (__execvpe): Likewise.
32334 (__execve): Likewise.
32335 (__setsid): Likewise.
32336 (__getuid): Likewise.
32337 (__geteuid): Likewise.
32338 (__getgid): Likewise.
32339 (__getegid): Likewise.
32340 (__getgroups): Likewise.
32341 (__group_member): Likewise.
32342 (__ttyname_r): Likewise.
32343 (__isatty): Likewise.
32344 (__readlink): Likewise.
32345 (__unlink): Likewise.
32346 (__gethostname): Likewise.
32347 (__profil): Likewise.
32348 (__getdtablesize): Likewise.
32349 (__brk): Likewise.
32350 (__ftruncate): Likewise.
32351 (__ftruncate64): Likewise.
32352
32353 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32354
32355 [BZ #18822]
32356 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32357 * argp/argp-fs-xinl.c: Likewise.
32358 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32359 * argp/argp-parse.c: Include <argp.h>.
32360 * argp/argp-xinl.c: Likewise.
32361 * include/argp-fmtstream.h: New file.
32362 * include/argp.h (__argp_error): Add attribute_hidden.
32363 (__argp_failure): Likewise.
32364 (__argp_input): Likewise.
32365 (__argp_state_help): Likewise.
32366
32367 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32368
32369 [BZ #18822]
32370 * include/wchar.h (____wcstof_l_internal): New prototype.
32371 (____wcstod_l_internal): Likewise.
32372 (____wcstold_l_internal): Likewise.
32373 (____wcstol_l_internal): Likewise.
32374 (____wcstoul_l_internal): Likewise.
32375 (____wcstoll_l_internal): Likewise.
32376 (____wcstoull_l_internal): Likewise.
32377 (____wcstof128_l_internal): Likewise.
32378 * sysdeps/ieee754/float128/wcstof128.c
32379 (____wcstof128_l_internal): Removed.
32380 * sysdeps/ieee754/float128/wcstof128_l.c
32381 (____wcstof128_l_internal): Likewise.
32382 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32383 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32384 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32385 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32386 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32387 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32388 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32389 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32390 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32391 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32392
32393 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32394
32395 [BZ #18822]
32396 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32397 instead of <sys/statvfs.h>.
32398 (__internal_statvfs): Removed.
32399 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32400 instead of <sys/statvfs.h>.
32401 (__internal_statvfs64): Removed.
32402 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32403 "internal_statvfs.h" instead of <sys/statvfs.h>.
32404 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32405 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32406 instead of <sys/statvfs.h>.
32407 (__internal_statvfs): Removed.
32408 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32409 instead of <sys/statvfs.h>.
32410 (__internal_statvfs64): Removed.
32411
32412 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32413
32414 [BZ #18822]
32415 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32416 (__gconv_close): Likewise.
32417 (__gconv): Likewise.
32418 (__gconv_find_transform): Likewise.
32419 (__gconv_lookup_cache): Likewise.
32420 (__gconv_compare_alias_cache): Likewise.
32421 (__gconv_load_cache): Likewise.
32422 (__gconv_get_path): Likewise.
32423 (__gconv_close_transform): Likewise.
32424 (__gconv_release_cache): Likewise.
32425 (__gconv_find_shlib): Likewise.
32426 (__gconv_release_shlib): Likewise.
32427 (__gconv_get_builtin_trans): Likewise.
32428 (__gconv_compare_alias): Likewise.
32429 * include/dlfcn.h (_dlerror_run): Likewise.
32430 * include/stdio.h (__fortify_fail_abort): Likewise.
32431 * include/time.h (__tz_compute): Likewise.
32432 (__strptime_internal): Likewise.
32433 * intl/gettextP.h (_nl_find_domain): Likewise.
32434 (_nl_load_domain): Likewise.
32435 (_nl_find_msg): Likewise.
32436 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32437 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32438 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32439 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32440 (__gai_find_request): Likewise.
32441 (__gai_remove_request): Likewise.
32442 (__gai_notify): Likewise.
32443 (__gai_notify_only): Likewise.
32444 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32445 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32446 (_dl_non_dynamic_init): Likewise.
32447 (_dl_aux_init): Likewise.
32448 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32449 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32450 Likewise.
32451 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32452 (__wcsmbs_clone_conv): Likewise.
32453 (__wcsmbs_named_conv): Likewise.
32454
32455 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32456
32457 [BZ #18822]
32458 * include/stdlib.h (__random): Add attribute_hidden.
32459 (__random_r): Likewise.
32460 (__srandom_r): Likewise.
32461 (__initstate_r): Likewise.
32462 (__setstate_r): Likewise.
32463 (__erand48_r): Likewise.
32464 (__nrand48_r): Likewise.
32465 (__jrand48_r): Likewise.
32466 (__srand48_r): Likewise.
32467 (__seed48_r): Likewise.
32468 (__lcong48_r): Likewise.
32469 (__drand48_iterate): Likewise.
32470 (__setenv): Likewise.
32471 (__unsetenv): Likewise.
32472 (__clearenv): Likewise.
32473 (__ptsname_r): Likewise.
32474 (__posix_openpt): Likewise.
32475 (__add_to_environ): Likewise.
32476 (__realpath): Add libc_hidden_proto.
32477 (__ecvt_r): Likewise.
32478 (__fcvt_r): Likewise.
32479 (__qecvt_r): Likewise.
32480 (__qfcvt_r): Likewise.
32481 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32482 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32483
32484 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32485
32486 [BZ #18822]
32487 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32488 * include/time.h (__mktime_internal): Likewise.
32489 * libio/iolibio.h (__fopen_internal): Likewise.
32490
32491 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32492
32493 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32494 pointer in frame.
32495 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32496 Correct offset used to restore PIC register.
32497
32498 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32499
32500 [BZ libc/22165]
32501 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32502 code to load address of __getcontext_ret when generating PIC code.
32503
32504 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32505
32506 * elf/Makefile (tests-static-internal): Add
32507 tst-tls1-static-non-pie.
32508 (LDFLAGS-tst-tls1-static-non-pie): New.
32509 * elf/tst-tls1-static-non-pie.c: New file.
32510
32511 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32512
32513 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32514 (asinh): Define using libm_alias_double.
32515 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32516 (cbrt): Define using libm_alias_double.
32517 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32518 <libm-alias-double.h>.
32519 (copysign): Define using libm_alias_double.
32520 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32521 (erf): Define using libm_alias_double.
32522 (erfc): Likewise.
32523 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32524 (expm1): Define using libm_alias_double.
32525 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32526 (fabs): Define using libm_alias_double.
32527 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32528 libm_alias_double.
32529 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32530 <libm-alias-double.h>.
32531 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32532 libm_alias_double.
32533 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32534 <libm-alias-double.h>.
32535 (getpayload): Define using libm_alias_double.
32536 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32537 <libm-alias-double.h>.
32538 (llrint): Define using libm_alias_double.
32539 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32540 (lrint): Define using libm_alias_double.
32541 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32542 <libm-alias-double.h>.
32543 (nextup): Define using libm_alias_double.
32544 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32545 <libm-alias-double.h>.
32546 (roundeven): Define using libm_alias_double.
32547 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32548 libm_alias_double.
32549 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32550 <libm-alias-double.h>.
32551 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32552 using libm_alias_double.
32553 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32554 (cos): Define using libm_alias_double.
32555 (sin): Likewise.
32556 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32557 <libm-alias-double.h>.
32558 (sincos): Define using libm_alias_double.
32559 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32560 (tanh): Define using libm_alias_double.
32561 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32562 <libm-alias-double.h>.
32563 (totalorder): Define using libm_alias_double.
32564 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32565 <libm-alias-double.h>.
32566 (totalordermag): Define using libm_alias_double.
32567 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32568 libm_alias_double.
32569 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32570 libm_alias_double.
32571 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32572 <libm-alias-double.h>.
32573 (getpayload): Define using libm_alias_double.
32574 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32575 <libm-alias-double.h>.
32576 (roundeven): Define using libm_alias_double.
32577 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32578 <libm-alias-double.h>.
32579 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32580 <libm-alias-double.h>.
32581 (totalorder): Define using libm_alias_double.
32582 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32583 <libm-alias-double.h>.
32584 (totalordermag): Define using libm_alias_double.
32585 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32586 libc compat symbol here.
32587 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32588 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32589 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32590 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32591 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32592 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32593 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32594 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32595 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32596 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32597
32598 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32599
32600 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32601 _dl_relocate_static_pie instead of _dl_start to compute load
32602 address in static PIE. Return 0 if _DYNAMIC is undefined for
32603 static executable.
32604
32605 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32606
32607 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32608 _DYNAMIC is undefined for static executable.
32609
32610 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32611
32612 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32613
32614 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32615
32616 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32617
32618 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32619
32620 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32621 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32622 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32623 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32624 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32625 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32626 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32627 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32628 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32629 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32630 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32631 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32632 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32633 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32634 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32635 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32636 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32637
32638 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32639
32640 * math/bits/cmathcalls.h (cimag): Remove inline.
32641 (creal): Remove inline.
32642 (conj): Remove inline.
32643
32644 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32645
32646 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32647 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32648 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32649 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32650 (issignalingf_inline): Likewise.
32651 (POWF_LOG2_TABLE_BITS): Likewise.
32652 (POWF_LOG2_POLY_ORDER): Likewise.
32653 (POWF_SCALE_BITS): Likewise.
32654 (POWF_SCALE): Likewise.
32655 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32656 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32657 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32658
32659 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32660
32661 * math/Makefile (type-float-routines): Add e_log2f_data.
32662 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32663 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32664 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32665 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32666 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32667 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32668 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32669
32670 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32671
32672 * math/Makefile (type-float-routines): Add e_logf_data.
32673 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32674 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32675 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32676 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32677 * sysdeps/i386/fpu/e_logf_data.c: New file.
32678 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32679 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32680
32681 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32682
32683 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32684 undefined _DYNAMIC in PIE libc.a.
32685 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32686 Likewse.
32687
32688 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32689
32690 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32691 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32692 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32693 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32694 (__signbit): Remove.
32695 (__signbitl): Remove.
32696 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32697 (__signbit): Remove.
32698 (__signbitl): Remove.
32699 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32700 (__signbit): Remove.
32701 (__signbitl): Remove.
32702 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32703 (__signbit): Remove.
32704 (__signbitl): Remove.
32705 * sysdeps/tile/bits/mathinline.h: Delete file.
32706 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32707 (__signbit): Remove.
32708 (__signbitl): Remove.
32709
32710 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32711
32712 * math/math.h: Improve handling of C99 isgreater macros.
32713 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32714 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32715 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32716 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32717 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32718
32719 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32720
32721 * sysdeps/aarch64/libm-test-ulps: Update.
32722
32723 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32724
32725 [BZ #22225]
32726 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32727 math_opt_barrier on argument when doing arithmetic on it.
32728 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32729 Likewise. Use math_force_eval not math_opt_barrier after
32730 arithmetic.
32731 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32732 math_opt_barrier on argument when doing arithmetic on it.
32733 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32734 Likewise.
32735
32736 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32737
32738 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32739 libc_hidden_def.
32740 (__freeifaddrs): Likewise.
32741
32742 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32743
32744 * include/dirent.h (__dirfd): New declaration.
32745 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32746 alias.
32747 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32748 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32749 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32750 * include/unistd.h (__revoke): New declaration.
32751 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32752 alias.
32753 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32754 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32755 revoke.
32756 * include/dirent.h (__seekdir): New declaration.
32757 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32758 redefine as weak alias.
32759 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32760 of seekdir.
32761 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32762 and use libc_hidden_def on them.
32763 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32764 them.
32765 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32766 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32767 instead of getifaddrs and freeifaddrs.
32768
32769 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32770
32771 [BZ #18822]
32772 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32773 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32774 (__dso_handle): Remove declaration.
32775 * dlfcn/tstatexit.c (__dso_handle): Removed.
32776 (main): Don't check __dso_handle.
32777 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32778 (main): Don't check __dso_handle.
32779 * include/dso_handle.h: New file.
32780 * malloc/mtrace.c: Include <dso_handle.h>.
32781 (mtrace): Pass __dso_handle directly.
32782 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32783 (__dso_handle): Remove declaration.
32784 (__pthread_atfork): Pass __dso_handle directly.
32785 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32786 (__dso_handle): Removed.
32787 * posix/wordexp-test.c: Include <dso_handle.h>.
32788 (__dso_handle): Remove declaration.
32789 (__app_register_atfork): Pass __dso_handle directly.
32790 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32791 (__dso_handle): Remove declaration.
32792 (at_quick_exit): Pass __dso_handle directly.
32793 * stdlib/atexit.c: Include <dso_handle.h>.
32794 (__dso_handle): Remove declaration.
32795 (atexit): Pass __dso_handle directly.
32796 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32797 (__dso_handle): Removed.
32798
32799 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32800
32801 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32802 using VDSO.
32803
32804 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32805
32806 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32807 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32808 values to correct default value for given type.
32809
32810 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32811
32812 [BZ #22101]
32813 * elf/Makefile (tests): Add tst-debug1.
32814 ($(objpfx)tst-debug1): New.
32815 ($(objpfx)tst-debug1.out): Likewise.
32816 ($(objpfx)tst-debug1mod1.so): Likewise.
32817 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32818 with p_filesz == 0.
32819 * elf/tst-debug1.c: New file.
32820
32821 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32822
32823 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32824 Define using __ifunc.
32825
32826 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32827
32828 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32829 exp2f() values.
32830
32831 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32832
32833 [BZ #22156]
32834 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32835
32836 2017-09-26 Florian Weimer <fweimer@redhat.com>
32837
32838 * resolv/Makefile (tests-internal): Fix typo in comment.
32839
32840 2017-09-26 Florian Weimer <fweimer@redhat.com>
32841
32842 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32843
32844 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32845
32846 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32847 Use an union instead of a max_align_t array for __space,
32848 so that __space is the same size on all platforms.
32849 * malloc/scratch_buffer_grow_preserve.c
32850 (__libc_scratch_buffer_grow_preserve): Likewise.
32851
32852 [BZ #22183]
32853 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32854 version to 2.
32855 * posix/Makefile (routines): Add glob-lstat-compat and
32856 glob64-lstat-compat.
32857 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32858 * posix/glob-lstat-compat.c: New file.
32859 * posix/glob64-lstat-compat.c: Likewise.
32860 * posix/tst-glob_lstat_compat.c: Likewise.
32861 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32862 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32863 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32864 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32865 Likewise.
32866 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32867 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32868 * posix/glob.c (glob_lstat): New function.
32869 (glob): Rename to __glob and add versioned symbol to 2.27.
32870 (glob_in_dir): Use glob_lstat.
32871 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32872 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32873 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32874 2.27.
32875 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32876 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32877 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32878 gl_lstat on glob call.
32879 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32880 and glob64 symbols.
32881 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32882 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32883 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32884 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32885 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32886 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32887 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32888 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32889 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32890 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32891 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32892 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32894 Likewise.
32895 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32897 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32898 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32899 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32900 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32901 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32902 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32903 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32904 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32905 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32906 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32907
32908 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32909
32910 * configure.ac (AS): Require binutils 2.25 or later.
32911 * configure: Regenerated.
32912
32913 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32914
32915 [BZ #22207]
32916 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32917 VM size.
32918
32919 2017-09-25 DJ Delorie <dj@redhat.com>
32920
32921 [BZ #22161]
32922 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32923 resetting timeout.
32924
32925 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32926
32927 * sysdeps/ieee754/dbl-64/sincos32.h
32928 [SINCCOS32_H]: Remove define.
32929 [SINCOS32_H]: Define.
32930
32931 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32932
32933 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32934 (exp2f): Likewise.
32935 * math/w_exp2f.c: New file.
32936 * math/w_expf.c: New file.
32937 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32938 * math/w_expf_compat.c (__expf_compat): Likewise.
32939 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32940 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32941 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32942 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32943 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32944 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32945 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32946 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32947 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32948 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32949 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32950 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32951 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32952 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32954 Likewise.
32955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32956 Likewise.
32957 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32958 Likewise.
32959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32960 Likewise.
32961 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32962 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32963 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32964 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32965 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32966 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32967 Likewise.
32968 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32969 Likewise.
32970 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32971 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32972 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32973
32974 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32975
32976 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32977 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32978 (roundtoint, converttoint): Likewise.
32979 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32980 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32981 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32982 * sysdeps/ieee754/flt-32/math_config.h: New file.
32983 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32984 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32985 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32986 * sysdeps/i386/fpu/math_errf.c: New file.
32987 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32988 * sysdeps/ia64/fpu/math_errf.c: New file.
32989 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32990 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32991
32992 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32993
32994 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32995 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32996 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32997 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32998 to make sure that these symbols are defined.
32999 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
33000 of <limits.h>
33001 (__need_NULL): Do not define.
33002 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
33003 alignment.
33004 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
33005 CMGROUP_MAX, cmsgcred): Do not define.
33006 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
33007 NULL.
33008 * bits/socket.h: Likewise.
33009 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
33010 __gettimeofday instead of gettimeofday.
33011 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
33012 instead of settimeofday.
33013
33014 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33015
33016 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33017 (asinhf): Define using libm_alias_float.
33018 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33019 (atanf): Define using libm_alias_float.
33020 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33021 (cbrtf): Define using libm_alias_float.
33022 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33023 (ceilf): Define using libm_alias_float.
33024 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33025 <libm-alias-float.h>.
33026 (copysignf): Define using libm_alias_float.
33027 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33028 (cosf): Define using libm_alias_float.
33029 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33030 (erff): Define using libm_alias_float.
33031 (erfcf): Likewise.
33032 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33033 (expm1f): Define using libm_alias_float.
33034 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33035 (fabsf): Define using libm_alias_float.
33036 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33037 (floorf): Define using libm_alias_float.
33038 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33039 (frexpf): Define using libm_alias_float.
33040 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33041 libm_alias_float.
33042 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33043 <libm-alias-float.h>.
33044 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33045 libm_alias_float.
33046 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33047 <libm-alias-float.h>.
33048 (getpayloadf): Define using libm_alias_float.
33049 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33050 <libm-alias-float.h>.
33051 (llrintf): Define using libm_alias_float.
33052 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33053 <libm-alias-float.h>.
33054 (llroundf): Define using libm_alias_float.
33055 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33056 (logbf): Define using libm_alias_float.
33057 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33058 (lrintf): Define using libm_alias_float.
33059 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33060 (lroundf): Define using libm_alias_float.
33061 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33062 (modff): Define using libm_alias_float.
33063 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33064 <libm-alias-float.h>.
33065 (nearbyintf): Define using libm_alias_float.
33066 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33067 <libm-alias-float.h>.
33068 (nextafterf): Define using libm_alias_float.
33069 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33070 <libm-alias-float.h>.
33071 (nextupf): Define using libm_alias_float.
33072 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33073 <libm-alias-float.h>.
33074 (remquof): Define using libm_alias_float.
33075 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33076 (rintf): Define using libm_alias_float.
33077 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33078 <libm-alias-float.h>.
33079 (roundevenf): Define using libm_alias_float.
33080 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33081 (roundf): Define using libm_alias_float.
33082 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33083 using libm_alias_float.
33084 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33085 <libm-alias-float.h>.
33086 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33087 Define using libm_alias_float.
33088 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33089 <libm-alias-float.h>.
33090 (sincosf): Define using libm_alias_float.
33091 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33092 (sinf): Define using libm_alias_float.
33093 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33094 (tanf): Define using libm_alias_float.
33095 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33096 (tanhf): Define using libm_alias_float.
33097 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33098 <libm-alias-float.h>.
33099 (totalorderf): Define using libm_alias_float.
33100 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33101 <libm-alias-float.h>.
33102 (totalordermagf): Define using libm_alias_float.
33103 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33104 (truncf): Define using libm_alias_float.
33105 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33106 libm_alias_float.
33107 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33108 libm_alias_float.
33109
33110 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33111
33112 [BZ #22146]
33113 math/math.h: Let fpclassify use the builtin in C++ mode, even
33114 when optimazing for size.
33115
33116 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33117
33118 * csu/Makefile (generated): Do not add version-info.h.
33119 (before-compile): Likewise.
33120 (all-Banner-files): Remove variable.
33121 ($(objpfx)version-info.h): Remove rule.
33122 * csu/version.c (banner): Do not include "version-info.h".
33123 * libidn/Banner: Remove.
33124 * manual/contrib.texi (Simon Josefsson): New entry.
33125
33126 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33127
33128 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33129 Remove conditionals on LDBL_MANT_DIG.
33130 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33131 (__ieee754_lgammal_r): Likewise.
33132
33133 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33134
33135 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33136 _Float128 and L().
33137 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33138 _Float128 and L(). Replace _Float128 with long double and L(x)
33139 with xL, throughout the file.
33140 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33141 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33142 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33143 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33144
33145 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33146
33147 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33148 sysdeps/ieee754/ldbl-128ibm.
33149 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33150 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33151 of including it. Keep _Float128 and L() intact. These will be
33152 reviewed by a separate patch.
33153 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33154 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33155 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33156 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33157
33158 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33159
33160 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33161 (__finitef128): Define to __redirect___finitef128.
33162 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33163 (__isinff128): Define to __redirect___isinff128.
33164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33165 (__isnanf128): Define to __redirect___isnanf128.
33166
33167 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33168
33169 * sysdeps/powerpc/powerpc64le/Makefile
33170 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33171 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33172
33173 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33174 Carlos O'Donell <carlos@redhat.com>
33175
33176 [BZ #22180]
33177 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33178 * stdlib/test-dlclose-exit-race.c: New file.
33179 * stdlib/test-dlclose-exit-race-helper.c: New file.
33180 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33181
33182 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33183
33184 * crypt/Banner: Remove file.
33185 * nptl/Banner: Likewise.
33186 * resolv/Banner: Likewise.
33187 * soft-fp/Banner: Likewise.
33188 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33189 ($(objpfx)version.d): Remove dependency on banner.h.
33190 ($(objpfx)version.os): Likewise.
33191 * nptl/version.c (banner): Do not include banner.h.
33192 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33193 Jelinek and BIND code.
33194
33195 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33196 Carlos O'Donell <carlos@redhat.com>
33197
33198 * support/xdlfcn.h: New file.
33199 * support/xdlfcn.c: New file.
33200 * support/Makefile (libsupport-routines): Add xdlfcn.
33201 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33202
33203 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33204
33205 [BZ #20142]
33206 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33207 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33208 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33209 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33210 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33211 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33212 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33213 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33214
33215 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33216 Ricky Zhou <rickyz@google.com>
33217 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33218
33219 [BZ #14333]
33220 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33221 Remove atomics.
33222 (__new_exitfn): Fail registration when we finished at_exit processing.
33223 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33224 * stdlib/on_exit.c (__on_exit): Likewise.
33225 * stdlib/exit.c (__exit_funcs_done): New variable.
33226 (__run_exit_handlers): Use __exit_funcs_lock.
33227 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33228 declarations.
33229 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33230 (test-cxa_atexit-race, test-on_exit-race): New tests.
33231 * stdlib/test-atexit-race-common.c: New file.
33232 * stdlib/test-atexit-race.c: New file.
33233 * stdlib/test-at_quick_exit-race.c: New file.
33234 * stdlib/test-cxa_atexit-race.c: New file.
33235 * stdlib/test-on_exit-race.c: New file.
33236
33237 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33238
33239 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33240 * benchtests/exp2f-inputs: Copy of expf-inputs.
33241 * benchtests/log2f-inputs: Copy of logf-inputs.
33242
33243 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33244
33245 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33246 Explicitly take address of first element of array arguments in
33247 call to INLINE_SYSCALL.
33248
33249 2017-09-19 Andreas Schwab <schwab@suse.de>
33250
33251 [BZ #22134]
33252 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33253 execveat first.
33254 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33255 unimplemented.
33256 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33257 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33258 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33259 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33260 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33261 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33262 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33263 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33264 * posix/Makefile (tests): Add tst-fexecve.
33265 * posix/tst-fexecve.c: New file.
33266
33267 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33268
33269 * benchtests/Makefile: Add logf benchmark.
33270 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33271
33272 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33273
33274 * benchtests/Makefile: Add expf benchmark.
33275 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33276
33277 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33278
33279 * csu/Makefile: Add -funwind-tables to libc-start.c.
33280 * debug/Makefile: Add -funwind-tables to backtrace.c.
33281 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33282 * sysdeps/arm/Makefile: Likewise.
33283 * sysdeps/i386/Makefile: Likewise.
33284 * sysdeps/m68k/Makefile: Likewise.
33285 * sysdeps/mips/Makefile: Likewise.
33286 * sysdeps/nios2/Makefile: Likewise.
33287 * sysdeps/sh/Makefile: Likewise.
33288 * sysdeps/sparc/Makefile: Likewise.
33289
33290 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33291
33292 * benchtests/Makefile (bench-math): Add trunc and truncf.
33293 (CFLAGS-bench-trunc.c): New variable.
33294 (CFLAGS-bench-truncf.c): Likewise.
33295 * benchtests/trunc-inputs: New file.
33296 * benchtests/truncf-inputs: Likewise.
33297
33298 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33299
33300 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33301
33302 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33303
33304 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33305 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33306 redefine.
33307 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33308 (exp10l): Define as weak alias.
33309 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33310 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33311 and redefine.
33312 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33313 (remainderl): Define as weak alias.
33314
33315 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33316 (fmal): Define using libm_alias_ldouble.
33317 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33318 (acoshl): Define using libm_alias_ldouble.
33319 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33320 (acosl): Define using libm_alias_ldouble.
33321 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33322 (asinl): Define using libm_alias_ldouble.
33323 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33324 (atan2l): Define using libm_alias_ldouble.
33325 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33326 (atanhl): Define using libm_alias_ldouble.
33327 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33328 (coshl): Define using libm_alias_ldouble.
33329 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33330 (exp10l): Define using libm_alias_ldouble.
33331 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33332 (exp2l): Define using libm_alias_ldouble.
33333 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33334 (expl): Define using libm_alias_ldouble.
33335 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33336 (fmodl): Define using libm_alias_ldouble.
33337 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33338 (hypotl): Define using libm_alias_ldouble.
33339 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33340 (j0l): Define using libm_alias_ldouble.
33341 (y0l): Likewise.
33342 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33343 (j1l): Define using libm_alias_ldouble.
33344 (y1l): Likewise.
33345 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33346 (jnl): Define using libm_alias_ldouble.
33347 (ynl): Likewise.
33348 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33349 (log10l): Define using libm_alias_ldouble.
33350 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33351 (log2l): Define using libm_alias_ldouble.
33352 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33353 (logl): Define using libm_alias_ldouble.
33354 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33355 (powl): Define using libm_alias_ldouble.
33356 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33357 (remainderl): Define using libm_alias_ldouble.
33358 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33359 (sinhl): Define using libm_alias_ldouble.
33360 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33361 (sqrtl): Define using libm_alias_ldouble.
33362 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33363 (tgammal): Define using libm_alias_ldouble.
33364 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33365 (exp10l): Do not use long_double_symbol here.
33366 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33367 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33368 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33369 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33370 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33371 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33372 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33373 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33374 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33375 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33376 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33377 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33378 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33379 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33380 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33381 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33382 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33383 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33384 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33385 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33386 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33387 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33388
33389 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33390
33391 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33392 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33393
33394 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33395
33396 * io/read.c (read): Add libc_hidden_weak.
33397 * sysdeps/mach/hurd/read.c (read): Likewise.
33398 * io/write.c (write): Likewise.
33399 * sysdeps/mach/hurd/write.c (write): Likewise.
33400 * io/pread64.c (__pread64): Likewise.
33401 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33402 * posix/pread64.c (__pread64): Add libc_hidden_def.
33403
33404 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33405
33406 * benchtests/scripts/compare_strings.py: New option -g.
33407 (draw_graph): Print a message that a graph is being generated.
33408 (process_results): Generate graph only if -g is passed.
33409 (main): Process option -g.
33410
33411 * benchtests/scripts/compare_strings.py (process_results):
33412 Better spacing for output.
33413
33414 * benchtests/scripts/compare_strings.py: Use argparse.
33415 * benchtests/README: Document existence of compare_strings.py.
33416
33417 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33418
33419 * math/s_fma.c: Include <libm-alias-double.h>.
33420 (fma): Define using libm_alias_double.
33421 * math/s_nextafter.c: Include <libm-alias-double.h>.
33422 (nextafter): Define using libm_alias_double.
33423 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33424 (acos): Define using libm_alias_double.
33425 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33426 (aocsh): Define using libm_alias_double.
33427 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33428 (asin): Define using libm_alias_double.
33429 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33430 (atan2): Define using libm_alias_double.
33431 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33432 (atanh): Define using libm_alias_double.
33433 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33434 (cosh): Define using libm_alias_double.
33435 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33436 (exp10): Define using libm_alias_double.
33437 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33438 (exp2): Define using libm_alias_double.
33439 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33440 (exp): Define using libm_alias_double.
33441 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33442 (fmod): Define using libm_alias_double.
33443 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33444 (hypot): Define using libm_alias_double.
33445 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33446 (j0): Define using libm_alias_double.
33447 (y0): Likewise.
33448 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33449 (j1): Define using libm_alias_double.
33450 (y1): Likewise.
33451 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33452 (jn): Define using libm_alias_double.
33453 (yn): Likewise.
33454 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33455 (log10): Define using libm_alias_double.
33456 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33457 (log2): Define using libm_alias_double.
33458 * math/w_log_compat.c: Include <libm-alias-double.h>.
33459 (log): Define using libm_alias_double.
33460 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33461 (pow): Define using libm_alias_double.
33462 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33463 (remainder): Define using libm_alias_double.
33464 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33465 (sinh): Define using libm_alias_double.
33466 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33467 (sqrt): Define using libm_alias_double.
33468 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33469 (tgamma): Define using libm_alias_double.
33470 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33471 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33472 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33473 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33474 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33475 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33476 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33477 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33478 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33479 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33480 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33481 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33482 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33483 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33484 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33485 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33486 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33487 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33488 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33489 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33490 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33491 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33492 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33493 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33494 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33495
33496 * math/e_acoshl.c: Remove.
33497 * math/e_acosl.c: Likewise.
33498 * math/e_asinl.c: Likewise.
33499 * math/e_atan2l.c: Likewise.
33500 * math/e_atanhl.c: Likewise.
33501 * math/e_coshl.c: Likewise.
33502 * math/e_expl.c: Likewise.
33503 * math/e_fmodl.c: Likewise.
33504 * math/e_gammal_r.c: Likewise.
33505 * math/e_hypotl.c: Likewise.
33506 * math/e_j0l.c: Likewise.
33507 * math/e_j1l.c: Likewise.
33508 * math/e_jnl.c: Likewise.
33509 * math/e_lgammal_r.c: Likewise.
33510 * math/e_log10l.c: Likewise.
33511 * math/e_log2l.c: Likewise.
33512 * math/e_logl.c: Likewise.
33513 * math/e_powl.c: Likewise.
33514 * math/e_rem_pio2l.c: Likewise.
33515 * math/e_sinhl.c: Likewise.
33516 * math/e_sqrtf128.c: Likewise.
33517 * math/e_sqrtl.c: Likewise.
33518 * math/k_cosl.c: Likewise.
33519 * math/k_sinl.c: Likewise.
33520 * math/k_tanl.c: Likewise.
33521 * math/s_asinhl.c: Likewise.
33522 * math/s_atanl.c: Likewise.
33523 * math/s_cbrtl.c: Likewise.
33524 * math/s_erfl.c: Likewise.
33525 * math/s_expm1l.c: Likewise.
33526 * math/s_log1pl.c: Likewise.
33527 * math/s_tanhl.c: Likewise.
33528
33529 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33530
33531 [BZ #21745]
33532 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33533 [$(subdir) = math] (sysdep_calls): New variable. Has the
33534 previous contents of sysdep_routines, but re-sorted..
33535 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33536 sysdep_calls.
33537 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33538 defined in sysdep_calls and replace by the respective m_* names.
33539 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33540 (compat_symbol): Undefine to avoid duplicated compat symbols in
33541 libc.
33542
33543 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33544
33545 * math/s_fmaf.c: Include <libm-alias-float.h>.
33546 (fmaf): Define using libm_alias_float.
33547 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33548 (acosf): Define using libm_alias_float.
33549 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33550 (acoshf): Define using libm_alias_float.
33551 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33552 (asinf): Define using libm_alias_float.
33553 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33554 (atan2f): Define using libm_alias_float.
33555 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33556 (atanhf): Define using libm_alias_float.
33557 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33558 (coshf): Define using libm_alias_float.
33559 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33560 (exp10f): Define using libm_alias_float.
33561 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33562 (fmodf): Define using libm_alias_float.
33563 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33564 (hypotf): Define using libm_alias_float.
33565 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33566 (j0f): Define using libm_alias_float.
33567 (y0f): Likewise.
33568 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33569 (j1f): Define using libm_alias_float.
33570 (y1f): Likewise.
33571 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33572 (jnf): Define using libm_alias_float.
33573 (ynf): Likewise.
33574 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33575 (log10f): Define using libm_alias_float.
33576 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33577 (log2f): Define using libm_alias_float.
33578 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33579 (logf): Define using libm_alias_float.
33580 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33581 (powf): Define using libm_alias_float.
33582 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33583 (remainderf): Define using libm_alias_float.
33584 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33585 (sinhf): Define using libm_alias_float.
33586 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33587 (sqrtf): Define using libm_alias_float.
33588 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33589 (tgammaf): Define using libm_alias_float.
33590
33591 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33592
33593 * include/math.h (roundeven): Change hidden_proto call to
33594 __roundeven.
33595 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33596 alias.
33597 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33598 (y0): Rename to __y0 and define as weak alias.
33599 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33600 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33601 alias.
33602 (y0f): Rename to __y0f and define as weak alias.
33603 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33604 alias.
33605 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33606 (y1): Rename to __y1 and define as weak alias.
33607 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33608 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33609 alias.
33610 (y1f): Rename to __y1f and define as weak alias.
33611 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33612 alias.
33613 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33614 (yn): Rename to __yn and define as weak alias.
33615 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33616 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33617 alias.
33618 (ynf): Rename to __ynf and define as weak alias.
33619 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33620 (fromfp): Define as weak alias.
33621 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33622 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33623 (fromfpx): Define as weak alias.
33624 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33625 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33626 __getpayload and define as weak alias.
33627 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33628 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33629 __roundeven and define as weak alias.
33630 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33631 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33632 __setpayload.
33633 (setpayload): Define as weak alias.
33634 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33635 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33636 __setpayloadsig.
33637 (setpayloadsig): Define as weak alias.
33638 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33639 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33640 __totalorder and define as weak alias.
33641 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33642 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33643 to __totalordermag and define as weak alias.
33644 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33645 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33646 (ufromfp): Define as weak alias.
33647 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33648 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33649 __ufromfpx.
33650 (ufromfpx): Define as weak alias.
33651 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33652 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33653 Rename to __getpayload and define as weak alias.
33654 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33655 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33656 Rename to __roundeven and define as weak alias.
33657 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33658 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33659 Rename to __totalorder and define as weak alias.
33660 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33661 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33662 (totalordermag): Rename to __totalordermag and define as weak
33663 alias.
33664 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33665 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33666 macro.
33667 (__roundevenl): Likewise.
33668 (__totalorderl): Likewise.
33669 (__totalordermagl): Likewise
33670 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33671 __fromfpf128.
33672 (fromfpf128): Define as weak alias.
33673 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33674 __fromfpxf128.
33675 (fromfpxf128): Define as weak alias.
33676 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33677 __setpayloadf128.
33678 (setpayloadf128): Define as weak alias.
33679 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33680 __setpayloadsigf128.
33681 (setpayloadsigf128): Define as weak alias.
33682 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33683 __ufromfpf128.
33684 (ufromfpf128): Define as weak alias.
33685 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33686 __ufromfpxf128.
33687 (ufromfpxf128): Define as weak alias.
33688 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33689 (fromfpf): Define as weak alias.
33690 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33691 __fromfpxf.
33692 (fromfpxf): Define as weak alias.
33693 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33694 __getpayloadf and define as weak alias.
33695 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33696 __roundevenf and define as weak alias.
33697 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33698 __setpayloadf.
33699 (setpayloadf): Define as weak alias.
33700 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33701 __setpayloadsigf.
33702 (setpayloadsigf): Define as weak alias.
33703 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33704 __totalorderf and define as weak alias.
33705 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33706 Rename to __totalordermagf and define as weak alias.
33707 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33708 __ufromfpf.
33709 (ufromfpf): Define as weak alias.
33710 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33711 __ufromfpxf.
33712 (ufromfpxf): Define as weak alias.
33713 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33714 __fromfpl.
33715 (fromfpl): Define as weak alias.
33716 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33717 __fromfpxl.
33718 (fromfpxl): Define as weak alias.
33719 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33720 to __getpayloadl and define as weak alias.
33721 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33722 __roundevenl and define as weak alias.
33723 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33724 __setpayloadl.
33725 (setpayloadl): Define as weak alias.
33726 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33727 __setpayloadsigl.
33728 (setpayloadsigl): Define as weak alias.
33729 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33730 to __totalorderl and define as weak alias.
33731 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33732 Rename to __totalordermagl and define as weak alias.
33733 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33734 __ufromfpl.
33735 (ufromfpl): Define as weak alias.
33736 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33737 __ufromfpxl.
33738 (ufromfpxl): Define as weak alias.
33739 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33740 __fromfpl.
33741 (fromfpl): Define as weak alias.
33742 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33743 __fromfpxl.
33744 (fromfpxl): Define as weak alias.
33745 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33746 Rename to __getpayloadl and define as weak alias.
33747 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33748 to __roundevenl and define as weak alias. Call __roundeven
33749 instead of roundeven.
33750 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33751 __setpayloadl.
33752 (setpayloadl): Define as weak alias.
33753 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33754 __setpayloadsigl.
33755 (setpayloadsigl): Define as weak alias.
33756 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33757 Rename to __totalorderl and define as weak alias.
33758 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33759 Rename to __totalordermagl and define as weak alias.
33760 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33761 __ufromfpl.
33762 (ufromfpl): Define as weak alias.
33763 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33764 __ufromfpxl.
33765 (ufromfpxl): Define as weak alias.
33766 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33767 __fromfpl.
33768 (fromfpl): Define as weak alias.
33769 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33770 __fromfpxl.
33771 (fromfpxl): Define as weak alias.
33772 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33773 __getpayloadl and define as weak alias.
33774 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33775 __roundevenl and define as weak alias.
33776 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33777 __setpayloadl.
33778 (setpayloadl): Define as weak alias.
33779 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33780 __setpayloadsigl.
33781 (setpayloadsigl): Define as weak alias.
33782 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33783 __totalorderl and define as weak alias.
33784 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33785 Rename to __totalordermagl and define as weak alias.
33786 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33787 __ufromfpl.
33788 (ufromfpl): Define as weak alias.
33789 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33790 __ufromfpxl.
33791 (ufromfpxl): Define as weak alias.
33792
33793 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33794
33795 * benchtests/bench-string.h (realloc_bufs): New function.
33796 (test_init): Call it.
33797 * benchtests/bench-memset-large.c (do_test): Likewise.
33798 * benchtests/bench-memset.c (do_test): Likewise.
33799
33800 * benchtests/bench-memset-large.c: Print output in JSON
33801 format.
33802 * benchtests/bench-memset.c: Likewise.
33803
33804 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33805
33806 [BZ #21084]
33807 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33808 * iconvdata/Makefile: Add IBM858.
33809 * iconvdata/gconv-modules: Likewise.
33810 * iconvdata/tst-tables.sh: Likewise.
33811 * iconvdata/ibm858.c: New file.
33812 * localedata/charmaps/IBM858: Likewise.
33813
33814 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33815
33816 [BZ #22023]
33817 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33818 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33819
33820 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33821
33822 [BZ #22112]
33823 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33824 and add tel_int_fmt.
33825
33826 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33827
33828 * sysdeps/generic/libm-alias-float128.h: New file.
33829 * sysdeps/generic/math-type-macros-float128.h: Include
33830 <libm-alias-float128.h>.
33831 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33832
33833 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33834
33835 * sysdeps/generic/libm-alias-ldouble.h: New file.
33836 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33837 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33838 * sysdeps/generic/math-type-macros-ldouble.h: Include
33839 <libm-alias-ldouble.h>.
33840 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33841 libm_alias_ldouble.
33842
33843 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33844
33845 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33846 * math/w_exp_compat.c: ... here.
33847 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33848 * math/w_expf_compat.c: ... here.
33849 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33850 * math/w_expl_compat.c: ... here.
33851 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33852 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33853 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33854 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33855
33856 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33857
33858 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33859 redefine.
33860 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33861 macro.
33862 (ldexpl): Only define as compat symbol for libc, not libm.
33863 (scalbnl): Define as compat symbol for libc here.
33864 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33865 define for [IS_IN (libc)].
33866 (__ldexpl_2): Remove alias.
33867 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33868 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33869 name in long_double_symbol call.
33870 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33871 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33872 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33873 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33874 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33875 Remove macro.
33876 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33877 Define as compat symbol.
33878
33879 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33880
33881 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33882 * sysdeps/unix/sysv/linux/alpha/Makefile
33883 [$(subdir) = csu] (sysdep_routines): Remove rule.
33884
33885 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33886
33887 * sysdeps/generic/libm-alias-double.h: New file.
33888 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33889 * sysdeps/generic/math-type-macros-double.h: Include
33890 <libm-alias-double.h>.
33891 [declare_mgen_alias] (declare_mgen_alias): Define to use
33892 libm_alias_double.
33893 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33894 (M_LIBM_NEED_COMPAT): Remove macro.
33895 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33896 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33897 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33898 code.
33899 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33900 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33901 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33902 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33903 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33904 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33905 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33906 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33907 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33908 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33909 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33910 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33911 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33912 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33913 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33914 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33915 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33916 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33917 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33918 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33919 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33920 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33921 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33922 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33923 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33924 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33925 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33926 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33927 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33928 macro.
33929 (declare_mgen_alias): New macro.
33930 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33931 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33932 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33933 (M_LIBM_NEED_COMPAT): Remove macro.
33934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33935 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33936 <first-versions.h>.
33937 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33938 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33939
33940 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33941
33942 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33943 (declare_mgen_alias_2): Remove.
33944 * sysdeps/generic/math-type-macros-double.h
33945 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33946 Likewise.
33947 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33948 alias.
33949 (ldexp): Define with declare_mgen_alias.
33950 (scalbn): Likewise.
33951
33952 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33953
33954 * grp/initgroups.c: Include config.h.
33955 (DEFAULT_CONFIG): New macro.
33956 (internal_getgrouplist): Use DEFAULT_CONFIG.
33957 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33958 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33959 (DEFAULT_DEFCONFIG): New macro.
33960 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33961 * nss/grp-lookup.c: Include config.h
33962 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33963 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33964 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33965 * manual/nss.texi: Update default values section.
33966
33967 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33968
33969 [BZ #21967]
33970 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33971 New.
33972 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33973 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33974 Handle MathVec_Prefer_No_AVX512.
33975 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33976 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33977 is set.
33978
33979 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33980
33981 * posix/sched_primax.c (__sched_get_priority_max): Add
33982 libc_hidden_def.
33983 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33984 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33985 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33986 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33987 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33988 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33989 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33990 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33991 Add aliases.
33992
33993 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33994
33995 * sysdeps/generic/libm-alias-float.h: New file.
33996 * sysdeps/generic/math-type-macros-float.h: Include
33997 <libm-alias-float.h>.
33998 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33999
34000 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
34001
34002 [BZ #22093]
34003 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
34004 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
34005 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
34006 (HWCAP_IMPORTANT): Likewise.
34007 (HWCAP_X86_64): New enum.
34008 (HWCAP_X86_AVX512_1): Updated.
34009 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
34010 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
34011 (modules-names): Add x86_64/tst-x86_64mod-1.
34012 (LDFLAGS-tst-x86_64mod-1.so): New.
34013 ($(objpfx)tst-x86_64-1): Likewise.
34014 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34015 (tst-x86_64-1-clean): Likewise.
34016 * sysdeps/x86_64/tst-x86_64-1.c: New file.
34017 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34018
34019 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34020
34021 * po/sv.po: Update translations.
34022 * po/fr.po: Likewise.
34023
34024 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34025
34026 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34027 seconds.
34028 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34029 seconds.
34030 * elf/rtld-Rules: Fix $(error) use.
34031
34032 2017-09-09 Mike FABIAN <mfabian@redhat.com>
34033
34034 [BZ #14925]
34035 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34036 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34037 * localedata/locales/bn_BD: “Bengali” was still used in some
34038 comments. Change it to “Bangla”.
34039
34040 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34041
34042 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34043
34044 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34045
34046 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34047 thunderx2t99p1 to list of cpu names.
34048 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34049 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34050
34051 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34052
34053 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34054 Use strcmp instead of tunable_is_name.
34055
34056 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34057
34058 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34059 (F_GET_RW_HINT): New macro.
34060 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34061 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34062 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34063 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34064 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34065 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34066 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34067 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34068 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34069
34070 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34071 (F_ADD_SEALS): New macro.
34072 [__USE_GNU] (F_GET_SEALS): Likewise.
34073 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34074 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34075 [__USE_GNU] (F_SEAL_GROW): Likewise.
34076 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34077
34078 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34079
34080 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34081 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34082 * posix/glob_internal.h (__glob_pattern_type):
34083 * posix/glob.c (glob):
34084 * posix/glob_pattern_p.c (__glob_pattern_p):
34085 Use them.
34086
34087 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34088 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34089 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34090 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34091 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34093 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34094 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34095 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34096 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34097 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34098 * sysdeps/wordsize-64/glob.c: Likewise.
34099 * sysdeps/wordsize-64/glob64.c: Likewise.
34100 * sysdeps/wordsize-64/globfree.c: Likewise.
34101 * sysdeps/wordsize-64/globfree64.c: Likewise.
34102 * sysdeps/unix/sysv/linux/glob.c: New file.
34103 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34104 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34105 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34106 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34107 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34108 adds !GLOB_NO_OLD_VERSION as an extra condition.
34109 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34110 using relative path instead of absolute one.
34111 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34112 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34113 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34114 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34115 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34116 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34117
34118 [BZ #1062]
34119 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34120 (glob): Use the same scratch buffer for both getlogin_r and
34121 getpwnam_r. Don’t require preallocation of the login name. This
34122 simplifies storage allocation, and corrects the handling of
34123 long login names.
34124
34125 [BZ #1062]
34126 * posix/glob.c (glob): Port recent patches to platforms
34127 lacking getpwnam_r.
34128 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34129 returns an error number rather than setting errno.
34130
34131 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34132 instead of GCC extension.
34133 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34134 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34135 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34136
34137 [BZ #866]
34138 [BZ #1062]
34139 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34140 * posix/bug-glob1.c: Remove file.
34141 * posix/tst-glob_symlinks.c: New file.
34142 * posix/glob.c (__lstat64): New macro.
34143 (is_dir): New function.
34144 (glob, glob_in_dir): Match symlinks even if they are dangling.
34145 (link_stat, link_exists_p): Remove. All uses removed.
34146
34147 [BZ #1062]
34148 [BZ #19971]
34149 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34150 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34151 All uses removed.
34152
34153 [BZ #1062]
34154 CVE-2017-15671
34155 * posix/Makefile (routines): Add globfree, globfree64, and
34156 glob_pattern_p.
34157 * posix/flexmember.h: New file.
34158 * posix/glob_internal.h: Likewise.
34159 * posix/glob_pattern_p.c: Likewise.
34160 * posix/globfree.c: Likewise.
34161 * posix/globfree64.c: Likewise.
34162 * sysdeps/gnu/globfree64.c: Likewise.
34163 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34164 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34165 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34166 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34167 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34168 * sysdeps/wordsize-64/globfree.c: Likewise.
34169 * sysdeps/wordsize-64/globfree64.c: Likewise.
34170 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34171 [NDEBUG): Remove comments.
34172 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34173 (dirent_type): New type. Use uint_fast8_t not
34174 uint8_t, as C99 does not require uint8_t.
34175 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34176 (struct readdir_result): Use dirent_type. Do not define skip_entry
34177 unless it is needed; this saves a byte on platforms lacking d_ino.
34178 (readdir_result_type, readdir_result_skip_entry):
34179 New functions, replacing ...
34180 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34181 these functions, which were removed. This makes the callers
34182 easier to read. All callers changed.
34183 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34184 (size_add_wrapv, glob_use_alloca): New static functions.
34185 (glob, glob_in_dir): Check for size_t overflow in several places,
34186 and fix some size_t checks that were not quite right.
34187 Remove old code using SHELL since Bash no longer
34188 uses this.
34189 (glob, prefix_array): Separate MS code better.
34190 (glob_in_dir): Remove old Amiga and VMS code.
34191 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34192 separate files.
34193 (glob_in_dir): Do not rely on undefined behavior in accessing
34194 struct members beyond their bounds. Use a flexible array member
34195 instead
34196 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34197 0/1. Caller changed.
34198 (glob): Fix memory leaks.
34199 * posix/glob64 (globfree64): Move to separate file.
34200 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34201 (globfree64): Remove hidden alias.
34202 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34203 oldglob.
34204 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34205 separate file.
34206 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34207 define.
34208 Move compat code to separate file.
34209 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34210 separate file.
34211
34212 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34213
34214 * resolv/tst-resolv-qtypes.c (domain): Changed to
34215 "const char domain[] =".
34216
34217 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34218
34219 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34220 version to 3.1.6.
34221
34222 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34223 (TCP_MD5SIG_EXT): Likewise.
34224 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34225 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34226 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34227
34228 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34229
34230 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34231
34232 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34233
34234 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34235
34236 [BZ #22100]
34237 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34238
34239 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34240
34241 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34242 before assuming that the file is empty. Avoid testing buffer content
34243 when nread == 0.
34244
34245 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34246
34247 [BZ #18858]
34248 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34249 Remove define.
34250 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34251 Likewise.
34252 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34253 Likewise.
34254 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34255 Likewise.
34256 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34257 Likewise.
34258 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34259 Likewise.
34260 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34261 Likewise.
34262
34263 2017-09-06 Florian Weimer <fweimer@redhat.com>
34264
34265 * malloc/dynarray_emplace_enlarge.c
34266 (__libc_dynarray_emplace_enlarge): Add missing else.
34267
34268 2017-09-06 Florian Weimer <fweimer@redhat.com>
34269
34270 [BZ #22096]
34271 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34272 case of failure to obtain the global conf object.
34273
34274 2017-09-06 Florian Weimer <fweimer@redhat.com>
34275
34276 [BZ #22095]
34277 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34278 dynarray allocation failure.
34279
34280 2017-09-06 Florian Weimer <fweimer@redhat.com>
34281
34282 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34283 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34284 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34285 New functions.
34286 (response): Call them. Add 'p', '6' flag processing.
34287 (test_reverse): New function.
34288 (test_get2_any): Call it.
34289 (test_no_inet6): Add 'p' test.
34290 (test_inet6): Likewise.
34291
34292 2017-09-06 Florian Weimer <fweimer@redhat.com>
34293
34294 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34295 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34296 the QNAME.
34297 (test_gai): Adjust query names. Add additional tests.
34298 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34299 test_get2. Adjust query names. Add additional tests.
34300 (test_no_inet6): New function, extracted from threadfunc.
34301 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34302 Add additional tests.
34303
34304 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34305
34306 [BZ #22070]
34307 * localedata/unicode-gen/utf8_gen.py: Set the width for
34308 characters with Prepended_Concatenation_Mark property to 1
34309 * localedata/charmaps/UTF-8: Updated using the improved script.
34310
34311 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34312
34313 [BZ #21750]
34314 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34315 use the range notation for all ranges of neighbouring characters
34316 with the same width.
34317
34318 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34319
34320 * sysdeps/generic/math-type-macros-double.h: Include
34321 <math-svid-compat.h>.
34322 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34323 * sysdeps/generic/math-type-macros-float.h: Include
34324 <math-svid-compat.h>.
34325 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34326 * sysdeps/generic/math-type-macros-ldouble.h: Include
34327 <math-svid-compat.h>.
34328 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34329 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34330 condition.
34331 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34332 * math/w_acosf_compat.c: Likewise.
34333 * math/w_acosh_compat.c: Likewise.
34334 * math/w_acoshf_compat.c: Likewise.
34335 * math/w_acoshl_compat.c: Likewise.
34336 * math/w_acosl_compat.c: Likewise.
34337 * math/w_asin_compat.c: Likewise.
34338 * math/w_asinf_compat.c: Likewise.
34339 * math/w_asinl_compat.c: Likewise.
34340 * math/w_atan2_compat.c: Likewise.
34341 * math/w_atan2f_compat.c: Likewise.
34342 * math/w_atan2l_compat.c: Likewise.
34343 * math/w_atanh_compat.c: Likewise.
34344 * math/w_atanhf_compat.c: Likewise.
34345 * math/w_atanhl_compat.c: Likewise.
34346 * math/w_cosh_compat.c: Likewise.
34347 * math/w_coshf_compat.c: Likewise.
34348 * math/w_coshl_compat.c: Likewise.
34349 * math/w_exp10_compat.c: Likewise.
34350 * math/w_exp10f_compat.c: Likewise.
34351 * math/w_exp10l_compat.c: Likewise.
34352 * math/w_exp2_compat.c: Likewise.
34353 * math/w_exp2f_compat.c: Likewise.
34354 * math/w_exp2l_compat.c: Likewise.
34355 * math/w_fmod_compat.c: Likewise.
34356 * math/w_fmodf_compat.c: Likewise.
34357 * math/w_fmodl_compat.c: Likewise.
34358 * math/w_hypot_compat.c: Likewise.
34359 * math/w_hypotf_compat.c: Likewise.
34360 * math/w_hypotl_compat.c: Likewise.
34361 * math/w_j0_compat.c: Likewise.
34362 * math/w_j0f_compat.c: Likewise.
34363 * math/w_j0l_compat.c: Likewise.
34364 * math/w_j1_compat.c: Likewise.
34365 * math/w_j1f_compat.c: Likewise.
34366 * math/w_j1l_compat.c: Likewise.
34367 * math/w_jn_compat.c: Likewise.
34368 * math/w_jnf_compat.c: Likewise.
34369 * math/w_jnl_compat.c: Likewise.
34370 * math/w_lgamma_r_compat.c: Likewise.
34371 * math/w_lgammaf_r_compat.c: Likewise.
34372 * math/w_lgammal_r_compat.c: Likewise.
34373 * math/w_log10_compat.c: Likewise.
34374 * math/w_log10f_compat.c: Likewise.
34375 * math/w_log10l_compat.c: Likewise.
34376 * math/w_log2_compat.c: Likewise.
34377 * math/w_log2f_compat.c: Likewise.
34378 * math/w_log2l_compat.c: Likewise.
34379 * math/w_log_compat.c: Likewise.
34380 * math/w_logf_compat.c: Likewise.
34381 * math/w_logl_compat.c: Likewise.
34382 * math/w_pow_compat.c: Likewise.
34383 * math/w_powf_compat.c: Likewise.
34384 * math/w_powl_compat.c: Likewise.
34385 * math/w_remainder_compat.c: Likewise.
34386 * math/w_remainderf_compat.c: Likewise.
34387 * math/w_remainderl_compat.c: Likewise.
34388 * math/w_sinh_compat.c: Likewise.
34389 * math/w_sinhf_compat.c: Likewise.
34390 * math/w_sinhl_compat.c: Likewise.
34391 * math/w_sqrt_compat.c: Likewise.
34392 * math/w_sqrtf_compat.c: Likewise.
34393 * math/w_sqrtl_compat.c: Likewise.
34394 * math/w_tgamma_compat.c: Likewise.
34395 * math/w_tgammaf_compat.c: Likewise.
34396 * math/w_tgammal_compat.c: Likewise.
34397 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34398 [LIBM_SVID_COMPAT].
34399 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34400 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34401 [LIBM_SVID_COMPAT].
34402 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34403 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34404 [LIBM_SVID_COMPAT].
34405 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34406 * sysdeps/i386/fpu/w_sqrt.c: New file.
34407 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34408 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34409 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34410 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34411 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34412 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34413 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34414 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34415 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34416 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34417 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34418 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34419 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34420 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34421 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34422 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34423 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34424 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34425 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34426 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34427 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34428 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34429 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34430 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34431 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34432 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34433 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34434 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34435 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34436 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34437 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34438 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34439 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34440 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34441 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34442 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34443 * sysdeps/ia64/fpu/w_log.c: Likewise.
34444 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34445 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34446 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34447 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34448 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34449 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34450 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34451 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34452 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34453 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34454 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34455 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34456 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34457 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34458 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34459 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34460 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34461 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34462 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34463 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34464 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34465 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34466 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34467 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34468 [LIBM_SVID_COMPAT].
34469 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34470 * sysdeps/ieee754/k_standard.c: Likewise.
34471 * sysdeps/ieee754/k_standardf.c: Likewise.
34472 * sysdeps/ieee754/k_standardl.c: Likewise.
34473 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34474 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34475 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34476 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34477 long_double_symbol call on [LIBM_SVID_COMPAT].
34478 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34479 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34480 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34481 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34482 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34483 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34484 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34485 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34486 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34487 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34488 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34489 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34490 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34491 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34492 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34493 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34494 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34495 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34496 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34497 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34498 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34499 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34500
34501 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34502
34503 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34504 * malloc/tst-mallocstate.c: Convert from test-skeleton
34505 to test-driver. Ifdef code using TEST_COMPAT macro.
34506 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34507 * math/test-matherr.c: Likewise.
34508
34509 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34510
34511 [BZ #22086]
34512 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34513 comparing word with byte-swapped constant.
34514
34515 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34516
34517 [BZ #20498]
34518 * locale/iso-639.def: add Miskito.
34519 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34520 * localedata/locales/miq_NI: New file.
34521
34522 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34523
34524 [BZ #18822]
34525 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34526 (__mkdir): Likewise.
34527 * io/chmod.c (__chmod): Add libc_hidden_def.
34528 * io/mkdir.c (__mkdir): Likewise.
34529 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34530 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34531 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34532 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34533
34534 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34535
34536 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34537 version to 4.13.
34538
34539 [BZ #22082]
34540 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34541 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34542
34543 2017-09-04 Florian Weimer <fweimer@redhat.com>
34544
34545 * math/math.h: Issue warning if log is defined.
34546
34547 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34548
34549 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34550 kernel version to 4.13.
34551
34552 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34553
34554 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34555 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34556 parameter.
34557 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34558 just <bits/types.h>.
34559 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34560 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34561 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34562 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34563 * misc/preadv2.c: Include <errno.h>.
34564 * misc/preadv64v2.c: Include <errno.h>.
34565 * misc/pwritev2.c: Include <errno.h>.
34566 * misc/pwritev64v2.c: Include <errno.h>.
34567 * sysdeps/posix/preadv2.c: Include <errno.h>.
34568 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34569 Fix <unistd.h> inclusion.
34570 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34571 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34572 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34573 __strtoul_internal): New functions.
34574 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34575 * sysdeps/posix/system.c: Include <sigsetops.h>.
34576 * sysdeps/mach/hurd/i386/Makefile
34577 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34578 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34579 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34580 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34581 __feraiseexcept_renamed to feraiseexcept instead of
34582 __GI_feraiseexcept.
34583 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34584 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34585 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34586 RWF_NOWAIT): Define to 0 if undefined already.
34587 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34588 boils down to 0.
34589 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34590 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34591
34592 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34593
34594 * manual/math.texi (pow10): Do not document.
34595 (pow10f): Likewise.
34596 (pow10l): Likewise.
34597 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34598 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34599 * math/libm-test-exp10.inc (pow10_test): Remove.
34600 (do_test): Do not call pow10.
34601 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34602 [NO_LONG_DOUBLE] (pow10l): Likewise.
34603 * math/w_exp10f_compat.c (pow10f): Likewise.
34604 * math/w_exp10l_compat.c (pow10l): Likewise.
34605 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34606 (pow10): Make into compat symbol.
34607 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34608 (pow10f): Make into compat symbol.
34609 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34610 (pow10l): Make into compat symbol.
34611 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34612 pow10.
34613 (CFLAGS-nldbl-pow10.c): Remove variable..
34614 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34615 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34616 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34617 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34618 Undefine and redefine.
34619 (pow10l): Make into compat symbol.
34620 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34621 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34622 * sysdeps/arm/libm-test-ulps: Likewise.
34623 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34624 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34625 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34626 * sysdeps/microblaze/libm-test-ulps: Likewise.
34627 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34628 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34629 * sysdeps/nios2/libm-test-ulps: Likewise.
34630 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34631 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34632 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34633 * sysdeps/sh/libm-test-ulps: Likewise.
34634 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34635 * sysdeps/tile/libm-test-ulps: Likewise.
34636 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34637
34638 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34639
34640 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34641
34642 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34643
34644 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34645 "../ChangeLog.old/ChangeLog.8".
34646 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34647 "../ChangeLog.old/ChangeLog.14".
34648
34649 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34650
34651 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34652 Threads Library.
34653
34654 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34655
34656 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34657
34658 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34659
34660 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34661 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34662
34663 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34664
34665 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34666 32 atexit handlers.
34667
34668 2017-09-01 Zack Weinberg <zackw@panix.com>
34669
34670 * math/math.h (HUGE_VAL): Improve commentary.
34671
34672 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34673 Andreas Schwab <schwab@suse.de>
34674
34675 [BZ #21530]
34676 * include/stdio.h (__gen_tempfd): New function.
34677 * stdio-common/Makefile (routines): Add gentempfd.
34678 * stdio-common/gentempfd.c: New file.
34679 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34680 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34681 unnamed file first.
34682
34683 2017-09-01 Florian Weimer <fweimer@redhat.com>
34684
34685 [BZ #21915]
34686 [BZ #21922]
34687 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34688 result to determine success or failure, not the errno value.
34689 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34690 (tst-nss-files-hosts-erange): Link with -ldl.
34691 * nss/tst-nss-files-hosts-erange.c: New file.
34692 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34693 (do_test): Add NO_DATA tests.
34694 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34695 (do_test): Call it.
34696
34697 2017-09-01 Florian Weimer <fweimer@redhat.com>
34698
34699 [BZ #21922]
34700 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34701 coming from gethostbyname2_r.
34702
34703 2017-09-01 Florian Weimer <fweimer@redhat.com>
34704
34705 * support/namespace.h (struct support_chroot_configuration): Add
34706 hosts, host_conf.
34707 (struct support_chroot): Add path_hosts, path_host_conf.
34708 * support/support_chroot.c (write_file): New function.
34709 (support_chroot_create): Call it to process /etc/resolv.conf,
34710 /etc/hosts, /etc/host.conf.
34711 (support_chroot_free): Update.
34712
34713 2017-09-01 Florian Weimer <fweimer@redhat.com>
34714
34715 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34716 status indicates it is set.
34717
34718 2017-09-01 Florian Weimer <fweimer@redhat.com>
34719
34720 [BZ #20532]
34721 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34722 function lookup failures more reliable.
34723
34724 2017-09-01 Florian Weimer <fweimer@redhat.com>
34725
34726 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34727 (getcanonname): Likewise.
34728 (gaih_inet): Likewise.
34729
34730 2017-09-01 Florian Weimer <fweimer@redhat.com>
34731
34732 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34733 (getcanonname): Likewise.
34734 (gaih_inet): Likewise.
34735
34736 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34737 Richard Henderson <rth@twiddle.net>
34738
34739 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34740 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34741 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34742 (IREG_SIZE, OREG_SIZE): New macros.
34743 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34744 (IREG_SIZE, OREG_SIZE): New macros.
34745 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34746 (IREG_SIZE): New macro.
34747 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34748 (IREG_SIZE): New macro.
34749 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34750 New includes.
34751 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34752 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34753 (__CONCATX): Handle exceptions correctly on large values that may
34754 set FE_INVALID.
34755 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34756 Initialize if not already set.
34757 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34758
34759 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34760
34761 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34762 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34763 Likewise.
34764 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34765 Likewise.
34766 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34767 Likewise.
34768 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34769 Likewise.
34770 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34771 Likewise.
34772 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34773 Likewise.
34774 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34775 Likewise.
34776 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34777 (NO_CANCELLATION): Likewise.
34778 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34779 Likewise.
34780 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34781 Likewise.
34782 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34783 Likewise.
34784 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34785 (NO_CANCELLATION): Likewise.
34786 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34787 (NO_CANCELLATION): Likewise.
34788 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34789 Likewise
34790 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34791 Likewise.
34792 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34793 Likewise.
34794 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34795 Likewise.
34796 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34797 hidden prototype.
34798 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34799 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34800
34801 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34802
34803 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34804 in resolver call.
34805
34806 2017-08-31 Florian Weimer <fweimer@redhat.com>
34807
34808 * include/libc-symbols.h (internal_function): Remove.
34809
34810 2017-08-31 Florian Weimer <fweimer@redhat.com>
34811
34812 * stdlib/fmtmsg.c (internal_addseverity): Remove
34813 internal_function.
34814
34815 2017-08-31 Florian Weimer <fweimer@redhat.com>
34816
34817 * stdio-common/printf_fp.c (group_number): Remove
34818 internal_function.
34819 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34820
34821 2017-08-31 Florian Weimer <fweimer@redhat.com>
34822
34823 * posix/fnmatch.c (internal_function): Remove definition.
34824 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34825 * posix/regcomp.c (peek_token, init_word_char)
34826 (duplicate_node_closure, fetch_token, peek_token)
34827 (peek_token_bracket, build_range_exp, build_collating_symbol):
34828 Likewise.
34829 * posix/regex_internal.c (re_string_construct_common)
34830 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34831 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34832 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34833 (re_string_translate_buffer, re_string_reconstruct)
34834 (re_string_peek_byte_case, re_string_fetch_byte_case)
34835 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34836 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34837 (re_node_set_add_intersect, re_node_set_init_union)
34838 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34839 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34840 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34841 (re_acquire_state_context): Likewise.
34842 * posix/regex_internal.h (internal_function): Remove definition.
34843 (re_string_realloc_buffers, build_wcs_buffer)
34844 (build_wcs_upper_buffer, build_upper_buffer)
34845 (re_string_translate_buffer, re_string_context_at)
34846 (re_string_char_size_at, re_string_wchar_at)
34847 (re_string_elem_size_at): Likewise.
34848 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34849 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34850 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34851 (re_search_internal, re_search_2_stub, re_search_stub)
34852 (re_copy_regs, prune_impossible_nodes, check_matching)
34853 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34854 (free_fail_stack_return, sift_states_iter_mb)
34855 (sift_states_backward, build_sifted_states)
34856 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34857 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34858 (check_subexp_limits, sift_states_bkref, merge_state_array)
34859 (find_recover_state, transit_state, merge_state_with_log)
34860 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34861 (transit_state_mb, transit_state_bkref, get_subexp)
34862 (get_subexp_sub, find_subexp_node, check_arrival)
34863 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34864 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34865 (check_node_accept_bytes, find_collation_sequence_value)
34866 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34867 (acquire_init_state_context, check_halt_node_context)
34868 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34869 (sub_epsilon_src_nodes): Likewise.
34870 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34871 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34872 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34873 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34874 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34875 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34876 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34877 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34878 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34879 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34880 (PREADV): Likewise.
34881 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34882 (PREADV): Likewise.
34883 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34884 (PWRITEV): Likewise.
34885 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34886 (PWRITEV): Likewise.
34887 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34888 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34889
34890 2017-08-31 Florian Weimer <fweimer@redhat.com>
34891
34892 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34893 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34894 Remove internal_function.
34895 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34896 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34897 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34898 (__deallocate_stack, __libc_pthread_init)
34899 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34900 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34901 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34902 Likewise.
34903 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34904 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34905 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34906 Likewise.
34907 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34908 (__pthread_mutex_unlock_usercnt): Likewise.
34909
34910 2017-08-31 Florian Weimer <fweimer@redhat.com>
34911
34912 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34913 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34914 (fts_safe_changedir): Remove internal_function.
34915 * io/ftw.c (internal_function): Remove definition.
34916 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34917
34918 2017-08-31 Florian Weimer <fweimer@redhat.com>
34919
34920 * inet/deadline.c (__deadline_current_time)
34921 (__deadline_from_timeval, __deadline_to_ms): Remove
34922 internal_function.
34923 * inet/getnameinfo.c (nrl_domainname): Likewise.
34924 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34925 * inet/inet6_option.c (add_pad): Likewise.
34926 * inet/net-internal.h (__deadline_current_time)
34927 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34928 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34929 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34930 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34931
34932 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34933
34934 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34935 include <bits/nan.h>.
34936 * math/Makefile (headers): Remove bits/nan.h.
34937 * bits/nan.h: Remove.
34938 * sysdeps/ieee754/bits/nan.h: Likewise.
34939 * sysdeps/mips/bits/nan.h: Likewise.
34940
34941 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34942 not include <bits/inf.h>.
34943 * math/Makefile (headers): Remove bits/inf.h.
34944 * bits/inf.h: Remove.
34945 * sysdeps/ieee754/bits/inf.h: Likewise.
34946
34947 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34948 bits/huge_vall.h or bits/huge_val_flt128.h.
34949 (HUGE_VAL): Define directly here.
34950 [__USE_ISOC99] (HUGE_VALF): Likewise.
34951 [__USE_ISOC99] (HUGE_VALL): Likewise.
34952 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34953 (HUGE_VAL_F128): Likewise.
34954 * math/Makefile (headers): Remove bits/huge_val.h,
34955 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34956 * bits/huge_val.h: Remove.
34957 * bits/huge_val_flt128.h: Likewise.
34958 * bits/huge_valf.h: Likewise.
34959 * bits/huge_vall.h: Likewise.
34960 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34961 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34962 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34963 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34964 * sysdeps/sh/bits/huge_val.h: Likewise.
34965 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34966 * sysdeps/x86/bits/huge_vall.h: Likewise.
34967
34968 2017-08-31 Florian Weimer <fweimer@redhat.com>
34969
34970 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34971 internal_function.
34972 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34973 Likewise.
34974 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34975 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34976 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34977 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34978 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34979 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34980 * elf/dl-libc.c (dlerror_run): Likewise.
34981 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34982 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34983 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34984 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34985 Likewise.
34986 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34987 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34988 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34989 * elf/dl-profile.c (_dl_start_profile): Likewise.
34990 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34991 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34992 Likewise.
34993 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34994 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34995 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34996 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34997 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34998 (_dl_allocate_tls_storage): Likewise.
34999 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
35000 (_dl_check_all_versions): Likewise.
35001 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
35002 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
35003 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
35004 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35005 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
35006 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
35007 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
35008 internal_function from __dl_start.
35009 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
35010 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
35011 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
35012 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
35013 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35014 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35015 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35016 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35017 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35018 (_dl_next_ld_env_entry, _dl_important_hwcaps)
35019 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35020 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35021 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35022 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35023 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35024 Likewise.
35025 (struct rtld_global_ro): Remove internal_function from the
35026 _dl_lookup_symbol_x member.
35027 (_dl_symbol_value): Remove. No longer defined anywhere.
35028 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35029 internal_function.
35030 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35031 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35032 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35033 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35034 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35035 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35036 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35037 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35038 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35039 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35040 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35041 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35042
35043 2017-08-31 Florian Weimer <fweimer@redhat.com>
35044
35045 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35046 Remove internal_function.
35047 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35048 Likewise.
35049 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35050 Likewise.
35051
35052 2017-08-31 Florian Weimer <fweimer@redhat.com>
35053
35054 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35055 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35056 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35057
35058 2017-08-31 Florian Weimer <fweimer@redhat.com>
35059
35060 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35061 (__gai_enqueue_request): Remove internal_function.
35062 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35063 (__gai_remove_request, __gai_notify, __gai_notify_only)
35064 (__gai_sigqueue): Likewise.
35065 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35066 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35067 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35068 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35069 Likewise.
35070
35071 2017-08-31 Florian Weimer <fweimer@redhat.com>
35072
35073 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35074 * include/dirent.h (__opendirat, __getdents, __getdents64)
35075 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35076 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35077 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35078 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35079 Likewise.
35080 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35081
35082 2017-08-31 Florian Weimer <fweimer@redhat.com>
35083
35084 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35085 internal_function.
35086 (GETCWD_RETURN_TYPE): Likewise.
35087
35088 2017-08-31 Florian Weimer <fweimer@redhat.com>
35089
35090 * include/time.h (__tz_compute, __strptime_internal): Remove
35091 internal_function.
35092 * time/strptime_l.c (__strptime_internal): Likewise.
35093 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35094
35095 2017-08-31 Florian Weimer <fweimer@redhat.com>
35096
35097 * iconv/gconv.c (__gconv): Remove internal_function.
35098 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35099 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35100 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35101 (__gconv_release_cache): Likewise.
35102 * iconv/gconv_close.c (__gconv_close): Likewise.
35103 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35104 (read_conf_file, __gconv_get_path): Likewise.
35105 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35106 (__gconv_release_step, gen_steps, increment_counter)
35107 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35108 (__gconv_close_transform, free_modules_db): Likewise.
35109 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35110 Likewise.
35111 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35112 (__gconv_find_transform, __gconv_lookup_cache)
35113 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35114 (__gconv_close_transform, __gconv_release_cache)
35115 (__gconv_loaded_object, __gconv_release_shlib)
35116 (__gconv_compare_alias): Likewise.
35117 * iconv/gconv_open.c (__gconv_open): Likewise.
35118 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35119 * iconv/iconvconfig.c (add_module): Likewise.
35120 * intl/dcigettext.c (plural_lookup, guess_category_value)
35121 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35122 * intl/eval-plural.h (plural_eval): Likewise.
35123 * intl/finddomain.c (_nl_find_domain): Likewise.
35124 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35125 (_nl_load_domain, _nl_find_msg): Likewise.
35126 (internal_function): Remove definition.
35127 * intl/loadinfo.h (internal_function): Likewise.
35128 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35129 internal_function.
35130 * intl/localealias.c (internal_function): Remove definition.
35131 (read_alias_file): Remove internal_function.
35132 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35133 * intl/plural-exp.h (internal_function): Remove definition.
35134 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35135 internal_function.
35136 * intl/plural.c: Regenerate.
35137 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35138 * locale/coll-lookup.c (__collidx_table_lookup)
35139 (__collseq_table_lookup): Likewise.
35140 * locale/coll-lookup.h (__collidx_table_lookup)
35141 (__collseq_table_lookup): Likewise.
35142 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35143 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35144 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35145 (_nl_unload_locale): Likewise.
35146 * locale/localeinfo.h (struct __locale_data): Remove
35147 internal_function from cleanup member.
35148 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35149 (_nl_remove_locale, _nl_load_locale_from_archive)
35150 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35151 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35152 (_nl_cleanup_time): Remove internal_function.
35153 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35154 (_nl_parse_alt_digit): Likewise.
35155 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35156 (_nl_select_era_entry): Likewise.
35157 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35158 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35159 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35160 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35161 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35162
35163 2017-08-31 Florian Weimer <fweimer@redhat.com>
35164
35165 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35166 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35167 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35168 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35169 Likewise.
35170 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35171 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35172 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35173 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35174 Likewise.
35175 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35176
35177 2017-08-31 Florian Weimer <fweimer@redhat.com>
35178
35179 * misc/getttyent.c (skip, value): Remove internal_function.
35180 * misc/syslog.c (openlog_internal): Likewise.
35181 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35182
35183 2017-08-31 Florian Weimer <fweimer@redhat.com>
35184
35185 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35186 (__nss_rewrite_field): Remove internal_function.
35187 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35188 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35189 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35190 * nss/nsswitch.c (nss_parse_file, nss_getline)
35191 (nss_parse_service_list, nss_new_service): Likewise.
35192 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35193 * nss/valid_field.c (__nss_valid_field): Likewise.
35194 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35195
35196 2017-08-31 Florian Weimer <fweimer@redhat.com>
35197
35198 * malloc/arena.c (__malloc_fork_lock_parent)
35199 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35200 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35201 internal_function from defintions.
35202 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35203 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35204 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35205 internal_function from declarations.
35206 * malloc/malloc.c (internal_function): Do not define.
35207 (mem2mem_check): Remove internal_function from declaration.
35208 (munmap_chunk, mremap_chunk): Remove internal_function.
35209 * malloc/mtrace.c (tr_where): Likewise.
35210
35211 2017-08-31 Florian Weimer <fweimer@redhat.com>
35212
35213 * include/rpc/pmap_clnt.h (__get_socket): Remove
35214 internal_function.
35215 * sunrpc/auth_des.c (synchronize): Likewise.
35216 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35217 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35218 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35219 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35220 (key_call): Likewise.
35221 * sunrpc/pm_getport.c (__get_socket): Likewise.
35222 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35223 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35224 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35225 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35226 (invalidate): Likewise.
35227 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35228 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35229 (set_input_fragment, get_input_bytes): Likewise.
35230
35231 2017-08-31 Florian Weimer <fweimer@redhat.com>
35232
35233 * malloc/malloc.c (_int_free): Remove locked variable and related
35234 asserts.
35235
35236 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35237
35238 [BZ #22051]
35239 * Makerules (build-module-helper-objlist): Filter out
35240 $(elf-objpfx)sofini.os.
35241 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35242 needed.
35243
35244 2017-08-31 Florian Weimer <fweimer@redhat.com>
35245
35246 * libio/fcloseall.c: Assume weak_alias is defined.
35247 * libio/feof.c: Likewise.
35248 * libio/fileno.c: Likewise.
35249 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35250 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35251 definitions.
35252 (_IO_file_open): Call __open directly.
35253 (_IO_new_file_sync): Assume ESPIPE is defined.
35254 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35255 (_IO_new_file_write): Call __write directly.
35256 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35257 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35258 * libio/genops.c: Assume _LIBC is defined.
35259 (save_for_backup): Remove internal_function.
35260 * libio/getc.c: Assume weak_alias is defined.
35261 * libio/getwc.c: Likewise.
35262 * libio/iofclose.c: Assume _LIBC is defined.
35263 * libio/iofdopen.c: Likewise.
35264 (_IO_fcntl): Remove macro definition.
35265 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35266 Call __fcntl directly.
35267 * libio/iofflush.c: Assume weak_alias is defined.
35268 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35269 defined.
35270 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35271 * libio/iofgets.c: Likewise.
35272 * libio/iofopen.c: Assume _LIBC is defined.
35273 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35274 * libio/iofputs.c: Assume weak_alias is defined.
35275 * libio/iofread.c: Likewise.
35276 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35277 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35278 * libio/ioftell.c: Assume weak_alias is defined.
35279 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35280 * libio/iofwide.c: Assume _LIBC is defined.
35281 (_IO_fwide): Drop SHARED conditional because it is implied by
35282 SHLIB_COMPAT.
35283 * libio/iofwrite.c: Assume weak_alias is defined.
35284 * libio/iogetdelim.c: Likewise.
35285 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35286 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35287 (_IO_getwline): Call __wmemcpy directly.
35288 * libio/iopopen.c: Assume _LIBC is defined.
35289 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35290 (_IO_close): Remove macro definitions.
35291 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35292 _exit directly.
35293 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35294 directly.
35295 * libio/ioputs.c: Assume weak_alias is defined.
35296 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35297 * libio/iosetbuffer.c: Assume weak_alias is defined.
35298 * libio/iosetvbuf.c: Likewise.
35299 * libio/ioungetc.c: Likewise.
35300 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35301 libc_hidden_def, libc_hidden_weak, NULL are defined.
35302 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35303 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35304 defined.
35305 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35306 definitions.
35307 (_IO_old_file_init_internal): Drop SHARED conditional because it
35308 is implied by SHLIB_COMPAT.
35309 (_IO_old_file_fopen): Call __open directly.
35310 (_IO_old_file_sync): Assume ESPIPE is defined.
35311 (_IO_old_file_write): Call __write directly.
35312 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35313 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35314 Call __fcntl directly.
35315 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35316 (_IO_old_fgetpos): Assume EIO is defined.
35317 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35318 (_IO_old_fgetpos64): Assume EIO is defined.
35319 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35320 (_IO_old_fsetpos): Assume EIO is defined.
35321 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35322 (_IO_old_fsetpos64): Assume EIO is defined.
35323 * libio/oldiopopen.c: Assume _LIBC is defined.
35324 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35325 (_IO_close): Remove macro definitions.
35326 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35327 directly.
35328 (_IO_old_proc_close): Call __close, __waitpid directly.
35329 * libio/put.c: Assume weak_alias is defined.
35330 * libio/stdfiles.c: Assume _LIBC is defined.
35331 * libio/stdio.c: Likewise.
35332 * libio/wfileops.c: Likewise.
35333 (_IO_wfile_sync): Assume ESPIPE is defined.
35334 * libio/wgenops.c: Assume _LIBC is defined.
35335 (save_for_wbackup): Remove internal_function.
35336
35337 2017-08-31 Florian Weimer <fweimer@redhat.com>
35338
35339 * malloc/malloc.c (top_check): Change return type to void. Remove
35340 internal_function.
35341 * malloc/hooks.c (top_check): Likewise.
35342 (malloc_check, realloc_check, memalign_check): Adjust.
35343
35344 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35345
35346 [BZ #21457]
35347 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35348 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35349 sigcontext and namespace requirements.
35350 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35351 * sysdeps/m68k/sys/ucontext.h: Likewise.
35352 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35353 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35354 <bits/sigcontext.h>.
35355 (__ctx): Define earlier.
35356 (mcontext_t): Define structure contents rather than using struct
35357 sigcontext.
35358 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35359 __glibc_reserved1 instead of __reserved.
35360 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35361 <bits/sigcontext.h>.
35362 (__ctx): Define earlier.
35363 (mcontext_t): Define structure contents rather than using struct
35364 sigcontext.
35365 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35366 mcontext_t instead of struct sigcontext.
35367 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35368 <bits/sigcontext.h>.
35369 (__ctx): Define earlier.
35370 (mcontext_t): Define structure contents rather than using struct
35371 sigcontext.
35372 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35373 <bits/sigcontext.h>.
35374 (__ctx): Define earlier.
35375 (mcontext_t): Define structure contents rather than using struct
35376 sigcontext.
35377 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35378 mcontext_t instead of struct sigcontext.
35379 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35380 mcontext_t instead of struct sigcontext.
35381 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35382 <bits/sigcontext.h>.
35383 (__ctx): New macro.
35384 (struct __ia64_fpreg_mcontext): New type.
35385 (mcontext_t): Define structure contents rather than using struct
35386 sigcontext.
35387 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35388 (uc_sigmask): Define using __ctx.
35389 (uc_stack): Likewise.
35390 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35391 <bits/sigcontext.h>.
35392 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35393 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35394 <bits/sigcontext.h>.
35395 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35396 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35397 <bits/sigcontext.h>.
35398 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35399 <bits/sigcontext.h>.
35400 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35401 <bits/sigcontext.h>.
35402 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35403 <bits/sigcontext.h>.
35404 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35405 <bits/sigcontext.h>.
35406 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35407 <bits/sigcontext.h>.
35408 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35409 <bits/sigcontext.h>.
35410 (__ctx): Define earlier.
35411 (mcontext_t): Define structure contents rather than using struct
35412 sigcontext.
35413 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35414 <bits/sigcontext.h>. Include <bits/types.h>.
35415 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35416 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35417 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35418 (test-xfail-UNIX98/signal.h/conform): Likewise.
35419 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35420 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35421 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35422 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35423 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35424 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35425 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35426 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35427 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35428
35429 2017-08-30 Florian Weimer <fweimer@redhat.com>
35430
35431 * malloc/dynarray_emplace_enlarge.c
35432 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35433 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35434 * malloc/tst-dynarray.c (test_long_overflow): New function.
35435 (do_test): Call it.
35436
35437 2017-08-30 Florian Weimer <fweimer@redhat.com>
35438
35439 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35440 (set_arena_corrupt): Remove definitions.
35441 (mtrim): Do not check for corrupt arena.
35442 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35443 Likewise.
35444
35445 2017-08-30 Florian Weimer <fweimer@redhat.com>
35446
35447 [BZ #21754]
35448 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35449 check_action.
35450 (ptmalloc_init): Do not set or use check_action.
35451 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35452 call to malloc_printerr. Remove return statement.
35453 (free_check): Likewise. Remove arena unlock.
35454 (top_check): Update comment. Adjust call to malloc_printerr.
35455 Remove heap repair code.
35456 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35457 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35458 (sysmalloc): Adjust call to malloc_printerr.
35459 (munmap_chunk, __libc_realloc): Likewise. Remove return
35460 statement.
35461 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35462 Remove errout label and corresponding gotos.
35463 (_int_free): Likewise. Remove arena unlock.
35464 (do_set_mallopt_check): Do not set check_action.
35465 (malloc_printerr): Adjust parameter list. Do not mark arena as
35466 corrupt.
35467 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35468 comment.
35469 * manual/probes.texi (Memory Allocation Probes): Remove
35470 memory_mallopt_check_action.
35471
35472 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35473
35474 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35475 Use pointer to uint64_t instead of long int for sp.
35476
35477 2017-08-30 Florian Weimer <fweimer@redhat.com>
35478
35479 [BZ #21754]
35480 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35481 without printing a backtrace. Do not leak any information in the
35482 error message.
35483 * manual/memory.texi (Heap Consistency Checking): Update.
35484 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35485
35486 2017-08-30 Florian Weimer <fweimer@redhat.com>
35487
35488 Do not scale NPTL tests with available number of CPUs.
35489 * nptl/tst-cond16.c (count): Set to constant value of 8.
35490 * nptl/tst-cond18.c (count): Likewise.
35491
35492 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35493
35494 [BZ #22035]
35495 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35496 Define to take a second argument that is a macro that
35497 concatentates a suffix, not the suffix itself.
35498 (__CONCAT_d): New macro.
35499 (__CONCAT_f): Likewise.
35500 (__CONCAT_l): Likewise.
35501
35502 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35503
35504 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35505 by child.
35506
35507 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35508 Aurelien Jarno <aurelien@aurel32.net>
35509 Maciej W. Rozycki <macro@imgtec.com>
35510
35511 [BZ #21956]
35512 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35513 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35514 `mips16-syscall6' and `mips16-syscall7'.
35515 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35516 (CFLAGS-mips16-syscall7.c): Remove.
35517 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35518 Remove `__mips16_syscall5', `__mips16_syscall6' and
35519 `__mips16_syscall7'.
35520 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35521 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35522 `__mips_syscall_return'.
35523 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35524 (__mips16_syscall1): Likewise.
35525 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35526 (__mips16_syscall2): Likewise.
35527 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35528 (__mips16_syscall3): Likewise.
35529 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35530 (__mips16_syscall4): Likewise.
35531 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35532 Remove.
35533 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35534 Remove.
35535 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35536 Remove.
35537 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35538 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35539 `__mips16_syscall5'. Remove prototype.
35540 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35541 `__mips16_syscall6'. Remove prototype.
35542 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35543 `__mips16_syscall7'. Remove prototype.
35544 (__nomips16, __mips16_syscall_return): Move to...
35545 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35546 (__nomips16, __mips_syscall_return): ... here.
35547 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35548 `__mips16_syscall_return' to `__mips_syscall_return'.
35549 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35550 `internal_syscall##nr'.
35551 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35552 `internal_syscall##nr'.
35553 (FORCE_FRAME_POINTER): Remove.
35554 (__mips_syscall5): New prototype.
35555 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35556 (__mips_syscall6): New prototype.
35557 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35558 (__mips_syscall7): New prototype.
35559 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35560 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35561 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35562 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35563 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35564 (sysdep_routines): Add libc-do-syscall.
35565 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35566 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35567
35568 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35569
35570 [BZ #21672]
35571 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35572 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35573 (advise_stack_range): New function.
35574 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35575 stack non required to advise_stack_range at allocatestack.c
35576
35577 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35578
35579 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35580
35581 2017-08-29 Florian Weimer <fweimer@redhat.com>
35582
35583 [BZ #22026]
35584 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35585 __end_fct. Mangle __end_fct after setting it to NULL.
35586 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35587 (modules-names, modules-names-tests): Add
35588 tst-gconv-init-failure-mod.
35589 (gconv-modules): New target.
35590 (tst-gconv-init-failure-mod.so): Link against libsupport.
35591 (tst-gconv-init-failure): Depend on gconv-modules,
35592 tst-gconv-init-failure-mod.so.
35593 * iconv/tst-gconv-init-failure-mod.c: New file.
35594 * iconv/tst-gconv-init-failure.c: Likewise.
35595 * iconv/test-gconv-modules: Likewise.
35596
35597 2017-08-29 Florian Weimer <fweimer@redhat.com>
35598
35599 [BZ #22025]
35600 * iconv/gconv_db.c (free_derivation): Remove redundant
35601 parentheses.
35602 (gen_steps): Unconditionally mangle __btowc_fct after
35603 initialization.
35604 (increment_counter): Likewise. Do not call init_fct for internal
35605 modules.
35606
35607 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35608
35609 [BZ #22028]
35610 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35611 (_MSUF_): Remove macro.
35612 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35613 Likewise.
35614 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35615 (__REDIRFROM_X): New macro.
35616 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35617 Likewise.
35618 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35619 (__REDIRTO_X): Likewise.
35620 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35621 arguments.
35622 (__MATH_REDIRCALL_2): Likewise.
35623 (__MATH_REDIRCALL_INTERNAL): Likewise.
35624 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35625 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35626 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35627 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35628 * math/test-finite-macros.c: New file.
35629 * math/Makefile (tests): Add test-finite-macros.
35630 (CFLAGS-test-finite-macros.c): New variable.
35631
35632 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35633 Jeff Law <law@redhat.com>
35634
35635 [BZ #22025]
35636 Mangle NULL pointers in iconv/gconv.
35637 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35638 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35639 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35640 is non-NULL before demangling the end_fct. Check for NULL
35641 end_fct after demangling.
35642 (__gconv_release_step): Demangle the end_fct before checking
35643 it for NULL. Remove assert on __shlibc_handle != NULL.
35644 (gen_steps): Don't check btowc_fct for NULL before mangling.
35645 Demangle init_fct before checking for NULL.
35646 (increment_counter): Likewise.
35647 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35648 end_fct for NULL before mangling.
35649 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35650 for NULL.
35651
35652 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35653
35654 [BZ #21971]
35655 * locale/iso-639.def: add Morisyen.
35656
35657 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35658
35659 [BZ #21930]
35660 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35661 (iszero): New C++ implementation that does not use
35662 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35663 signaling nans are enabled, since __builtin_types_compatible_p
35664 is a C-only feature.
35665 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35666 defined, include ieee754_float128.h for access to the union and
35667 member ieee854_float128.ieee.
35668 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35669 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35670 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35671 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35672 options of test-math-zero on powerpc64le.
35673
35674 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35675
35676 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35677 Change double to float.
35678
35679 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35680
35681 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35682 unconditional.
35683 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35684 conditional code; define contents only for [LIBM_SVID_COMPAT].
35685
35686 2017-08-28 Florian Weimer <fweimer@redhat.com>
35687
35688 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35689 (abi-lp64_be-options): Remove.
35690 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35691 (abi-hard-options): Likewise.
35692 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35693 (abi-o32_hard-options, abi-o32_soft_2008-options)
35694 (abi-o32_hard_2008-options, abi-n32_soft-options)
35695 (abi-n32_hard-options, abi-n32_soft_2008-options)
35696 (abi-n32_hard_2008-options, abi-n64_soft-options)
35697 (abi-n64_hard-options, abi-n64_soft_2008-options)
35698 (abi-n64_hard_2008-options): Likewise.
35699 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35700 (abi-64-v1-options, abi-64-v2-options): Likewise.
35701 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35702 (abi-64-options): Likewise.
35703 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35704 (abi-64-options): Likewise.
35705 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35706 (abi-64-options): Likewise.
35707 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35708 (abi-64-options, abi-x32-options): Likewise.
35709
35710 2017-08-28 Florian Weimer <fweimer@redhat.com>
35711
35712 Store supported list of SYS_* system calls in the source tree.
35713 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35714 (bits/syscall.h): Generate from list file.
35715 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35716 [$(subdir) = misc] (tests): Add tst-syscall-list.
35717 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35718 [$(subdir) = misc] (tst-syscall-list-macros.list)
35719 [$(subdir) = misc] (tst-syscall-list-nr.list)
35720 (tst-syscall-list-sys.list): Helper targets for new
35721 tst-syscall-list test.
35722 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35723 tst-syscall-list.sh.
35724 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35725 target. Do not include bits/syscall.d.
35726 [$(subdir) = misc] (generated): Do not update.
35727 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35728 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35729 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35730 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35731
35732 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35733
35734 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35735 (tst-cxa_atexit, tst-on_exit): Likewise.
35736 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35737 tst-cxa_atexit, and tst-on_exit.
35738 * stdlib/tst-atexit-common.c: New file.
35739 * stdlib/tst-atexit.c: New file.
35740 * stdlib/tst-at_quick_exit.c: New file.
35741 * stdlib/tst-cxa_atexit.c: New file.
35742 * stdlib/tst-on_exit.c: New file.
35743
35744 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35745
35746 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35747 * mach/stack_chk_fail_local.c: New file.
35748 * hurd/stack_chk_fail_local.c: New file.
35749 * mach/Machrules ($(interface-library)-routines): Add
35750 stack_chk_fail_local.
35751 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35752 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35753 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35754 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35755 * hurd/Makefile (CFLAGS-hurdstartup.o,
35756 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35757
35758 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35759
35760 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35761 (index_cpu_*, index_arch_*): Removed.
35762
35763 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35764
35765 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35766 Use uint64_t instead of unsigned long.
35767
35768 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35769
35770 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35771 [__HAVE_DISTINCT_FLOAT128].
35772
35773 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35774 of <bits/math-finite.h>.
35775 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35776 inclusion of <bits/math-finite.h>.
35777 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35778 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35779 __NO_LONG_DOUBLE_MATH].
35780 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35781 (__MATH_REDIRCALL_2): Likewise.
35782 (__MATH_REDIRCALL_INTERNAL): Likewise.
35783 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35784 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35785 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35786
35787 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35788 Remove file.
35789 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35790 Likewise.
35791 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35792 Likewise.
35793 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35794 Likewise.
35795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35796 Likewise.
35797 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35798 Likewise.
35799 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35800 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35801 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35802 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35803 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35804 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35805 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35806 w_sqrtf_compat-ppc32.
35807
35808 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35809
35810 * math/math.h [defined __cplusplus] (issignaling): In the long
35811 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35812 is not defined. Call __issignaling, otherwise.
35813
35814 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35815
35816 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35817 syscall definitions and replace __builtin_expect with __glibc_likely.
35818 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35819 syscall.
35820 (SYSCALL_CANCELLABLE): Removedefinition
35821 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35822 definition.
35823 (PSEUDO_END): Likewise.
35824 [IS_IN (libpthread)] (CENABLE): Likewise.
35825 [IS_IN (libpthread)] (CDISABLE): Likewise.
35826 [IS_IN (libc)] (CENABLE): Likewise.
35827 [IS_IN (libc)] (CENABLE): Likewise.
35828 [IS_IN (librt)] (CDISABLE): Likewise.
35829 [IS_IN (librt)] (CDISABLE): Likewise.
35830 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35831 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35832 definition.
35833 (PSEUDO_END): Likewise.
35834 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35835 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35836 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35837 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35838 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35839 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35840 (CENABLE): Likewise.
35841 (CDISABLE): Likewise.
35842 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35843 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35844 defintion.
35845 (PSEUDO_END): Likewise.
35846 [IS_IN (libpthread)] (CENABLE): Likewise.
35847 [IS_IN (libpthread)] (CDISABLE): Likewise.
35848 [IS_IN (libc)] (CENABLE): Likewise.
35849 [IS_IN (libc)] (CENABLE): Likewise.
35850 [IS_IN (librt)] (CDISABLE): Likewise.
35851 [IS_IN (librt)] (CDISABLE): Likewise.
35852 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35853 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35854 definition.
35855 (PSEUDO_END): Likewise.
35856 [IS_IN (libpthread)] (CENABLE): Likewise.
35857 [IS_IN (libpthread)] (CDISABLE): Likewise.
35858 [IS_IN (libc)] (CENABLE): Likewise.
35859 [IS_IN (libc)] (CENABLE): Likewise.
35860 [IS_IN (librt)] (CDISABLE): Likewise.
35861 [IS_IN (librt)] (CDISABLE): Likewise.
35862 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35863 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35864 definition.
35865 (PSEUDO_END): Likewise.
35866 [IS_IN (libpthread)] (CENABLE): Likewise.
35867 [IS_IN (libpthread)] (CDISABLE): Likewise.
35868 [IS_IN (libc)] (CENABLE): Likewise.
35869 [IS_IN (libc)] (CENABLE): Likewise.
35870 [IS_IN (librt)] (CDISABLE): Likewise.
35871 [IS_IN (librt)] (CDISABLE): Likewise.
35872 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35873 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35874 definition.
35875 (PSEUDO_END): Likewise.
35876 [IS_IN (libpthread)] (CENABLE): Likewise.
35877 [IS_IN (libpthread)] (CDISABLE): Likewise.
35878 [IS_IN (libc)] (CENABLE): Likewise.
35879 [IS_IN (libc)] (CENABLE): Likewise.
35880 [IS_IN (librt)] (CDISABLE): Likewise.
35881 [IS_IN (librt)] (CDISABLE): Likewise.
35882 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35883 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35884 definition.
35885 (PSEUDO_END): Likewise.
35886 [IS_IN (libpthread)] (CENABLE): Likewise.
35887 [IS_IN (libpthread)] (CDISABLE): Likewise.
35888 [IS_IN (libc)] (CENABLE): Likewise.
35889 [IS_IN (libc)] (CENABLE): Likewise.
35890 [IS_IN (librt)] (CDISABLE): Likewise.
35891 [IS_IN (librt)] (CDISABLE): Likewise.
35892 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35893 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35894 definition.
35895 (PSEUDO_END): Likewise.
35896 [IS_IN (libpthread)] (CENABLE): Likewise.
35897 [IS_IN (libpthread)] (CDISABLE): Likewise.
35898 [IS_IN (libc)] (CENABLE): Likewise.
35899 [IS_IN (libc)] (CENABLE): Likewise.
35900 [IS_IN (librt)] (CDISABLE): Likewise.
35901 [IS_IN (librt)] (CDISABLE): Likewise.
35902 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35903 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35904 Remove definition.
35905 (PSEUDO_END): Likewise.
35906 [IS_IN (libpthread)] (CENABLE): Likewise.
35907 [IS_IN (libpthread)] (CDISABLE): Likewise.
35908 [IS_IN (libc)] (CENABLE): Likewise.
35909 [IS_IN (libc)] (CENABLE): Likewise.
35910 [IS_IN (librt)] (CDISABLE): Likewise.
35911 [IS_IN (librt)] (CDISABLE): Likewise.
35912 (SINGLE_THREAD_P): Likewise.
35913 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35914 definition.
35915 (PSEUDO_END): Likewise.
35916 [IS_IN (libpthread)] (CENABLE): Likewise.
35917 [IS_IN (libpthread)] (CDISABLE): Likewise.
35918 [IS_IN (libc)] (CENABLE): Likewise.
35919 [IS_IN (libc)] (CENABLE): Likewise.
35920 [IS_IN (librt)] (CDISABLE): Likewise.
35921 [IS_IN (librt)] (CDISABLE): Likewise.
35922 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35923 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35924 definition.
35925 (PSEUDO_END): Likewise.
35926 [IS_IN (libpthread)] (CENABLE): Likewise.
35927 [IS_IN (libpthread)] (CDISABLE): Likewise.
35928 [IS_IN (libc)] (CENABLE): Likewise.
35929 [IS_IN (libc)] (CENABLE): Likewise.
35930 [IS_IN (librt)] (CDISABLE): Likewise.
35931 [IS_IN (librt)] (CDISABLE): Likewise.
35932 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35933 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35934 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35935 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35936 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35937 definition.
35938 (PSEUDO_END): Likewise.
35939 [IS_IN (libpthread)] (CENABLE): Likewise.
35940 [IS_IN (libpthread)] (CDISABLE): Likewise.
35941 [IS_IN (libc)] (CENABLE): Likewise.
35942 [IS_IN (libc)] (CENABLE): Likewise.
35943 [IS_IN (librt)] (CDISABLE): Likewise.
35944 [IS_IN (librt)] (CDISABLE): Likewise.
35945 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35946 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35947 definition.
35948 (PSEUDO_END): Likewise.
35949 [IS_IN (libpthread)] (CENABLE): Likewise.
35950 [IS_IN (libpthread)] (CDISABLE): Likewise.
35951 [IS_IN (libc)] (CENABLE): Likewise.
35952 [IS_IN (libc)] (CENABLE): Likewise.
35953 [IS_IN (librt)] (CDISABLE): Likewise.
35954 [IS_IN (librt)] (CDISABLE): Likewise.
35955 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35956 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35957 definition.
35958 (PSEUDO_END): Likewise.
35959 [IS_IN (libpthread)] (CENABLE): Likewise.
35960 [IS_IN (libpthread)] (CDISABLE): Likewise.
35961 [IS_IN (libc)] (CENABLE): Likewise.
35962 [IS_IN (libc)] (CENABLE): Likewise.
35963 [IS_IN (librt)] (CDISABLE): Likewise.
35964 [IS_IN (librt)] (CDISABLE): Likewise.
35965 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35966 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35967 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35968 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35969 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35970 definition.
35971 (PSEUDO_END): Likewise.
35972 [IS_IN (libpthread)] (CENABLE): Likewise.
35973 [IS_IN (libpthread)] (CDISABLE): Likewise.
35974 [IS_IN (libc)] (CENABLE): Likewise.
35975 [IS_IN (libc)] (CENABLE): Likewise.
35976 [IS_IN (librt)] (CDISABLE): Likewise.
35977 [IS_IN (librt)] (CDISABLE): Likewise.
35978 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35979 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35980 definition.
35981 (PSEUDO_END): Likewise.
35982 [IS_IN (libpthread)] (CENABLE): Likewise.
35983 [IS_IN (libpthread)] (CDISABLE): Likewise.
35984 [IS_IN (libc)] (CENABLE): Likewise.
35985 [IS_IN (libc)] (CENABLE): Likewise.
35986 [IS_IN (librt)] (CDISABLE): Likewise.
35987 [IS_IN (librt)] (CDISABLE): Likewise.
35988 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35989
35990 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35991
35992 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35993
35994 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35995
35996 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35997
35998 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35999
36000 [BZ #21982]
36001 * string/stratcliff.c (do_test): Declare size, nchars, inner,
36002 middle and outer with size_t instead of int. Repleace %d and
36003 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
36004 "MAX (outer, nchars - 64)" to support unsigned outer and
36005 nchars. Also exit loop when outer == 0.
36006
36007 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36008
36009 * include/fcntl.h (__fcntl_nocancel): Remove definition.
36010 * include/signal.h (__sigsuspend_nocancel): Likewise.
36011 * include/time.h (__nanosleep_nocancel): Likewise.
36012 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
36013 * login/utmp_file.c: Include non cancellable syscall header.
36014 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36015 prototype.
36016
36017 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36018
36019 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36020 .byte sequences with AVX512F instructions.
36021 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36022 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36023 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36024 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36025 Likewise.
36026 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36027 Likewise.
36028
36029 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36030 Steve Ellcey <sellcey@cavium.com>
36031
36032 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36033 Use PTR_REG macro in cmp instruction.
36034
36035 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36036
36037 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36038 Change the return type of the ifunc resolver to match the return
36039 type of the target function.
36040
36041 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36042
36043 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36044 (preadv64): Likewise.
36045 (pwrite64(: Likewise.
36046 (pwritev64): Likewise.
36047
36048 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36049 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36050 (LOAD_ARGS_0): Likewise.
36051 (LOAD_ARGS_1): Likewise.
36052 (LOAD_ARGS_2): Likewise.
36053 (LOAD_ARGS_3): Likewise.
36054 (LOAD_ARGS_4): Likewise.
36055 (LOAD_ARGS_5): Likewise.
36056 (LOAD_ARGS_6): Likewise.
36057 (LOAD_REGS_0): Likewise.
36058 (LOAD_REGS_1): Likewise.
36059 (LOAD_REGS_2): Likewise.
36060 (LOAD_REGS_3): Likewise.
36061 (LOAD_REGS_4): Likewise.
36062 (LOAD_REGS_5): Likewise.
36063 (LOAD_REGS_6): Likewise.
36064 (ASM_ARGS_0): Likewise.
36065 (ASM_ARGS_1): Likewise.
36066 (ASM_ARGS_2): Likewise.
36067 (ASM_ARGS_3): Likewise.
36068 (ASM_ARGS_4): Likewise.
36069 (ASM_ARGS_5): Likewise.
36070 (ASM_ARGS_6): Likewise.
36071 (LOAD_ARGS_TYPES_1): Likewise.
36072 (LOAD_ARGS_TYPES_2): Likewise.
36073 (LOAD_ARGS_TYPES_3): Likewise.
36074 (LOAD_ARGS_TYPES_4): Likewise.
36075 (LOAD_ARGS_TYPES_5): Likewise.
36076 (LOAD_ARGS_TYPES_6): Likewise.
36077 (LOAD_REGS_TYPES_1): Likewise.
36078 (LOAD_REGS_TYPES_2): Likewise.
36079 (LOAD_REGS_TYPES_3): Likewise.
36080 (LOAD_REGS_TYPES_4): Likewise.
36081 (LOAD_REGS_TYPES_5): Likewise.
36082 (LOAD_REGS_TYPES_6): Likewise.
36083 (TYPEFY): New define.
36084 (ARGIFY): Likewise.
36085 (internal_syscall0): Likewise.
36086 (internal_syscall1): Likewise.
36087 (internal_syscall2): Likewise.
36088 (internal_syscall3): Likewise.
36089 (internal_syscall4): Likewise.
36090 (internal_syscall5): Likewise.
36091 (internal_syscall6): Likewise.
36092 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36093 (INTERNAL_SYSCALL_NCS): Remove define.
36094 (internal_syscall1): Add define.
36095
36096 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36097
36098 * math/w_remainder_compat.c: Remove duplicate inclusion of
36099 math-svid-compat.h.
36100 * math/w_remainderf_compat.c: Likewise.
36101 * math/w_remainderl_compat.c: Likewise.
36102
36103 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36104
36105 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36106
36107 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36108
36109 [BZ #21684]
36110 * math/tgmath.h (__floating_type): Simplify definitions.
36111 (__real_integer_type): New macro.
36112 (__complex_integer_type): Likewise.
36113 (__expr_is_real): Likewise.
36114 (__tgmath_real_type_sub): Update comment to describe handling of
36115 complex types.
36116 (__tgmath_complex_type_sub): New macro.
36117 (__tgmath_complex_type): Likewise.
36118 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36119 (__TGMATH_CF128): Use __expr_is_real.
36120 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36121 __expr_is_real.
36122 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36123 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36124 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36125 integer types.
36126
36127 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36128
36129 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36130 macro.
36131 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36132 alias.
36133 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36134 Likewise.
36135
36136 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36137 nanosleep_not_cancel with __nanosleep_nocancel.
36138 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36139 (__nanosleep_nocancel): New macro.
36140 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36141 function.
36142 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36143 macro.
36144 (__nanosleep_nocancel): New prototype.
36145
36146 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36147 pause_not_cancel with __pause_nocancel.
36148 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36149 (__pause_nocancel): New macro.
36150 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36151 macro.
36152 (__pause_nocancel): New prototype.
36153 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36154
36155 2017-08-22 Martin Sebor <msebor@redhat.com>
36156
36157 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36158 to return a pointer to the same type as the target function.
36159
36160 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36161
36162 [BZ #18822]
36163 [BZ #21986]
36164 * include/printf.h (__printf_fphex): Add attribute_hidden.
36165 (__guess_grouping): New prototype.
36166 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36167 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36168 libc_hidden_proto and libc_hidden_def.
36169 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36170 (__vstrfmon_l): Remove the third argument passed to
36171 __guess_grouping.
36172
36173 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36174
36175 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36176 definition for issignaling that does not rely on __MATH_TG,
36177 since __MATH_TG uses __builtin_types_compatible_p, which is only
36178 available in C mode.
36179 (CFLAGS-test-math-issignaling.cc): New variable.
36180 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36181 * math/test-math-issignaling.cc: New test for C++ implementation
36182 of type-generic issignaling.
36183 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36184 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36185 options of test-math-issignaling on powerpc64le.
36186
36187 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36188
36189 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36190 building libc.a.
36191 (hidden_proto): Likewise.
36192 (hidden_tls_proto): Likewise.
36193 (__hidden_proto): Likewise.
36194
36195 2017-08-22 Florian Weimer <fweimer@redhat.com>
36196
36197 math: Statically link tests of internal functionality.
36198 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36199 atest-exp2.
36200 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36201 (gmp-objs): Remove assignment.
36202 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36203
36204 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36205
36206 [BZ #21987]
36207 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36208 and copy to ...
36209 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36210 ... here.
36211 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36212 ... and here.
36213
36214 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36215 variable definitions above inclusion of ../Rules.
36216
36217 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36218
36219 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36220 case calling __builtin_unreachable.
36221
36222 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36223
36224 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36225 __waitpid_nocancel.
36226 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36227 (__waitpid_nocancel): New macro.
36228 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36229 macro.
36230 (__waitpid_nocancel): Replace macro with a function.
36231 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36232 function.
36233
36234 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36235 __fcntl_nocancel.
36236 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36237 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36238
36239 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36240 __writev_nocancel_nostatus.
36241 (write_call_graph): Likewise.
36242 (write_bb_counts): Likewise.
36243 * resolv/herror.c (herror): Likewise.
36244 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36245 macro.
36246 (__writev_nocancel_nostatus): New macro.
36247 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36248 Remove macro.
36249 (__writev_nocancel_nostatus): New function.
36250
36251 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36252
36253 Revert:
36254 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36255
36256 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36257 building libc.a.
36258 (hidden_proto): Likewise.
36259 (hidden_tls_proto): Likewise.
36260 (__hidden_proto): Likewise.
36261
36262 [BZ #21973]
36263 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36264 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36266 Likewise.
36267 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36268 Likewise.
36269 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36270 Likewise.
36271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36272 Likewise.
36273 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36274 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36275 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36276 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36277 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36278 GLIBC_2.0 sqrtl symbol.
36279
36280 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36281 [__USE_MISC] (_LIB_VERSION): Likewise.
36282 [__USE_MISC] (struct exception): Likewise.
36283 [__USE_MISC] (matherr): Likewise.
36284 [__USE_MISC] (DOMAIN): Likewise.
36285 [__USE_MISC] (SING): Likewise.
36286 [__USE_MISC] (OVERFLOW): Likewise.
36287 [__USE_MISC] (UNDERFLOW): Likewise.
36288 [__USE_MISC] (TLOSS): Likewise.
36289 [__USE_MISC] (PLOSS): Likewise.
36290 [__USE_MISC] (HUGE): Likewise.
36291 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36292 * math/math-svid-compat.h: New file.
36293 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36294 and matherrl.
36295 * include/math.h [!_ISOMAC] (__matherr): Remove.
36296 * manual/arith.texi (FP Exceptions): Do not document matherr.
36297 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36298 (tests-internal): New variable.
36299 (install-lib): Do not add libieee.a.
36300 (non-lib.a): Likewise.
36301 (extra-objs): Do not add libieee.a and ieee-math.o.
36302 (CPPFLAGS-s_lib_version.c): Remove variable.
36303 ($(objpfx)libieee.a): Remove rule.
36304 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36305 * math/ieee-math.c: Remove.
36306 * math/libm-test-support.c (matherr): Remove.
36307 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36308 and license notices. Include <math-svid-compat.h> and
36309 <shlib-compat.h>.
36310 (matherr): Undefine as macro. Use compat_symbol_reference.
36311 (_LIB_VERSION): Likewise.
36312 * math/test-matherr-2.c: New file.
36313 * math/test-matherr-3.c: Likewise.
36314 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36315 declaration.
36316 (__kernel_standard_f): Likewise.
36317 (__kernel_standard_l): Likewise.
36318 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36319 <math_private.h>. Include <math-svid-compat.h>.
36320 (_LIB_VERSION): Undefine as macro.
36321 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36322 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36323 [LIBM_SVID_COMPAT], use compat_symbol.
36324 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36325 <math_private.h>. Include <math-svid-compat.h>.
36326 (matherr): Undefine as macro.
36327 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36328 compat_symbol.
36329 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36330 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36331 compat_symbol_reference.
36332 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36333 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36334 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36335 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36336 (MATHERR_D): Remove declaration.
36337 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36338 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36339 [LIBM_BUILD] (pmatherrf): Likewise.
36340 [LIBM_BUILD] (pmatherr): Likewise.
36341 [LIBM_BUILD] (pmatherrl): Likewise.
36342 (DOMAIN): Likewise.
36343 (SING): Likewise.
36344 (OVERFLOW): Likewise.
36345 (UNDERFLOW): Likewise.
36346 (TLOSS): Likewise.
36347 (PLOSS): Likewise.
36348 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36349 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36350 compat_symbol.
36351 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36352 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36353 compat_symbol.
36354 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36355 * math/w_acos_compat.c: Likewise.
36356 * math/w_acosf_compat.c: Likewise.
36357 * math/w_acosh_compat.c: Likewise.
36358 * math/w_acoshf_compat.c: Likewise.
36359 * math/w_acoshl_compat.c: Likewise.
36360 * math/w_acosl_compat.c: Likewise.
36361 * math/w_asin_compat.c: Likewise.
36362 * math/w_asinf_compat.c: Likewise.
36363 * math/w_asinl_compat.c: Likewise.
36364 * math/w_atan2_compat.c: Likewise.
36365 * math/w_atan2f_compat.c: Likewise.
36366 * math/w_atan2l_compat.c: Likewise.
36367 * math/w_atanh_compat.c: Likewise.
36368 * math/w_atanhf_compat.c: Likewise.
36369 * math/w_atanhl_compat.c: Likewise.
36370 * math/w_cosh_compat.c: Likewise.
36371 * math/w_coshf_compat.c: Likewise.
36372 * math/w_coshl_compat.c: Likewise.
36373 * math/w_exp10_compat.c: Likewise.
36374 * math/w_exp10f_compat.c: Likewise.
36375 * math/w_exp10l_compat.c: Likewise.
36376 * math/w_exp2_compat.c: Likewise.
36377 * math/w_exp2f_compat.c: Likewise.
36378 * math/w_exp2l_compat.c: Likewise.
36379 * math/w_fmod_compat.c: Likewise.
36380 * math/w_fmodf_compat.c: Likewise.
36381 * math/w_fmodl_compat.c: Likewise.
36382 * math/w_hypot_compat.c: Likewise.
36383 * math/w_hypotf_compat.c: Likewise.
36384 * math/w_hypotl_compat.c: Likewise.
36385 * math/w_j0_compat.c: Likewise.
36386 * math/w_j0f_compat.c: Likewise.
36387 * math/w_j0l_compat.c: Likewise.
36388 * math/w_j1_compat.c: Likewise.
36389 * math/w_j1f_compat.c: Likewise.
36390 * math/w_j1l_compat.c: Likewise.
36391 * math/w_jn_compat.c: Likewise.
36392 * math/w_jnf_compat.c: Likewise.
36393 * math/w_jnl_compat.c: Likewise.
36394 * math/w_lgamma_main.c: Likewise.
36395 * math/w_lgamma_r_compat.c: Likewise.
36396 * math/w_lgammaf_main.c: Likewise.
36397 * math/w_lgammaf_r_compat.c: Likewise.
36398 * math/w_lgammal_main.c: Likewise.
36399 * math/w_lgammal_r_compat.c: Likewise.
36400 * math/w_log10_compat.c: Likewise.
36401 * math/w_log10f_compat.c: Likewise.
36402 * math/w_log10l_compat.c: Likewise.
36403 * math/w_log2_compat.c: Likewise.
36404 * math/w_log2f_compat.c: Likewise.
36405 * math/w_log2l_compat.c: Likewise.
36406 * math/w_log_compat.c: Likewise.
36407 * math/w_logf_compat.c: Likewise.
36408 * math/w_logl_compat.c: Likewise.
36409 * math/w_pow_compat.c: Likewise.
36410 * math/w_powf_compat.c: Likewise.
36411 * math/w_powl_compat.c: Likewise.
36412 * math/w_remainder_compat.c: Likewise.
36413 * math/w_remainderf_compat.c: Likewise.
36414 * math/w_remainderl_compat.c: Likewise.
36415 * math/w_scalb_compat.c: Likewise.
36416 * math/w_scalbf_compat.c: Likewise.
36417 * math/w_scalbl_compat.c: Likewise.
36418 * math/w_sinh_compat.c: Likewise.
36419 * math/w_sinhf_compat.c: Likewise.
36420 * math/w_sinhl_compat.c: Likewise.
36421 * math/w_sqrt_compat.c: Likewise.
36422 * math/w_sqrtf_compat.c: Likewise.
36423 * math/w_sqrtl_compat.c: Likewise.
36424 * math/w_tgamma_compat.c: Likewise.
36425 * math/w_tgammaf_compat.c: Likewise.
36426 * math/w_tgammal_compat.c: Likewise.
36427 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36428 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36429 * sysdeps/ieee754/k_standard.c: Likewise.
36430 * sysdeps/ieee754/k_standardf.c: Likewise.
36431 * sysdeps/ieee754/k_standardl.c: Likewise.
36432 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36433 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36434 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36435 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36436 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36437 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36438 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36439 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36440 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36441 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36442 Likewise.
36443 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36444 Likewise.
36445 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36446 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36447 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36448 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36449
36450 2017-08-21 Florian Weimer <fweimer@redhat.com>
36451
36452 [BZ #21864]
36453 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36454 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36455 Move before inclusion of ../Rules.
36456
36457 2017-08-21 Florian Weimer <fweimer@redhat.com>
36458
36459 [BZ #21972]
36460 * assert/assert.h (assert): Use static_cast (bool) for C++.
36461 Use the ternary operator in the warning branch for GNU C.
36462 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36463 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36464 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36465 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36466 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36467
36468 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36469
36470 [BZ #18822]
36471 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36472 (__syscall_clock_gettime): Add attribute_hidden.
36473 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36474 (__start_context): Likewise.
36475
36476 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36477
36478 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36479 building libc.a.
36480 (hidden_proto): Likewise.
36481 (hidden_tls_proto): Likewise.
36482 (__hidden_proto): Likewise.
36483
36484 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36485
36486 * include/libc-symbols.h (attribute_hidden): Enable hidden
36487 visibility in libc.a compiled with PIE.
36488
36489 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36490
36491 [BZ #18822]
36492 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36493 Add attribute_hidden.
36494
36495 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36496
36497 [BZ #21864]
36498 * Makerules (all-nonlib): Add $(others-extras).
36499 * catgets/Makefile (others-extras): New.
36500 * elf/Makefile (others-extras): Likewise.
36501 * nss/Makefile (others-extras): Likewise.
36502
36503 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36504
36505 [BZ #18822]
36506 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36507 * elf/dl-open.c: Include <libc-internal.h>.
36508 (__libc_multiple_libcs): Removed.
36509 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36510 <hp-timing.h>.
36511 * include/libc-internal.h (__libc_multiple_libcs): New.
36512 * misc/sbrk.c: Include <libc-internal.h>.
36513 (__libc_multiple_libcs): Removed.
36514
36515 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36516
36517 [BZ #18822]
36518 * grp/initgroups.c (__nss_group_database): Removed.
36519 (__nss_initgroups_database): Likewise.
36520 * nscd/gai.c (__nss_hosts_database): Likewise.
36521 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36522 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36523 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36524 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36525 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36526 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36527 attribute_hidden.
36528 * nss/nsswitch.c (__nss_database_custom): Define only if
36529 USE_NSCD is defined.
36530 (__nss_configure_lookup): Use __nss_database_custom only if
36531 USE_NSCD is defined.
36532 * nss/nsswitch.h (__nss_database_custom): Declare only if
36533 USE_NSCD is defined. Add attribute_hidden.
36534 (__nss_setent): Add attribute_hidden.
36535 (__nss_endent): Likewise.
36536 (__nss_getent_r): Likewise.
36537 (__nss_getent): Likewise.
36538 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36539
36540 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36541
36542 [BZ #18822]
36543 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36544 libc_hidden_proto and libc_hidden_def.
36545
36546 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36547
36548 [BZ #18822]
36549 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36550 Add libc_hidden_proto.
36551 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36552 Add libc_hidden_def.
36553
36554 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36555
36556 [BZ #21974]
36557 * gmon/Makefile (routines): Remove bb_init_func and
36558 bb_exit_func.
36559 (elide-routines.os): Removed.
36560 * gmon/bb_exit_func.c: Likewise.
36561 * gmon/bb_init_func.c: Likewise.
36562 * include/sys/gmon.h (__bb): Likewise.
36563 (__bb_init_func): Likewise.
36564 (__bb_exit_func): Likewise.
36565 * sysdeps/alpha/bb_init_func.S: Likewise.
36566
36567 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36568
36569 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36570 * include/setjmp.h (____longjmp_chk): Here. Add
36571 attribute_hidden.
36572
36573 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36574
36575 [BZ #18822]
36576 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36577 attribute_hidden.
36578 (__strspn_sse2): Likewise.
36579
36580 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36581
36582 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36583 (close_not_cancel_no_status): Likewise.
36584 (__close_nocancel): New macro.
36585 (__close_nocancel_nostatus): Likewise.
36586 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36587 macro.
36588 (close_not_cancel): Likewise.
36589 (close_not_cancel_no_status): Likewise.
36590 (__close_nocancel): New prototype.
36591 (__close_nocancel_nostatus): New function.
36592 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36593 * catgets/open_catalog.c (__open_catalog): Replace
36594 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36595 * gmon/gmon.c (write_gmon): Likewise.
36596 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36597 * intl/loadmsgcat.c (close): Likewise.
36598 * io/ftw.c (open_dir_stream): Likewise.
36599 (ftw_startup): Likewise.
36600 * libio/fileops.c (_IO_file_open): Likewise.
36601 (_IO_file_close_mmap): Likewise.
36602 (_IO_file_close): Likewise.
36603 * libio/iopopen.c (_IO_dup2): Likewise.
36604 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36605 * locale/loadlocale.c (_nl_load_locale): Likewise.
36606 * login/utmp_file.c (pututline_file): Likewise.
36607 (endutent_file): Likewise.
36608 * misc/daemon.c (daemon): Likewise.
36609 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36610 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36611 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36612 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36613 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36614 * nscd/nscd_helper.c (open_socket): Likewise.
36615 (__nscd_open_socket): Likewise.
36616 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36617 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36618 (__nscd_innetgr): Likewise.
36619 * nss/nss_db/db-open.c (internal_setent): Likewise.
36620 * resolv/res-close.c (__res_iclose): Likewise.
36621 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36622 * sysdeps/posix/closedir.c (__closedir): Likewise.
36623 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36624 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36625 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36626 (opendir_tail): Likewise.
36627 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36628 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36629 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36630 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36631 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36632 (gethostid): Likewise.
36633 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36634 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36635 Likewise.
36636 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36637 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36638 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36639 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36640 Likewise.
36641 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36642 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36643 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36644 Likewise.
36645 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36646 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36647 Likewise.
36648 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36649 Likewise.
36650 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36651 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36652 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36653 __close_nocancel.
36654
36655 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36656 (openat_not_cancel_3): Likewise.
36657 (openat64_not_cancel_3): Likewise).
36658 (openat_not_cancel_3): Likewise).
36659 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36660 macro.
36661 (openat_not_cancel_3): Likewise.
36662 (openat64_not_cancel): Likewise.
36663 (openat64_not_cancel_3): Likewise.
36664 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36665 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36666 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36667 __open{64}_nocancel.
36668 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36669 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36670 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36671
36672 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36673
36674 [BZ #18822]
36675 * include/argz.h (__argz_create_sep): New function prototype.
36676 (__argz_append): Likewise.
36677 (__argz_add): Likewise.
36678 (__argz_add_sep): Likewise.
36679 (__argz_delete): Likewise.
36680 (__argz_insert): Likewise.
36681 (__argz_replace): Likewise.
36682 * string/argz.h (__argz_create_sep): Removed.
36683 (__argz_append): Likewise.
36684 (__argz_add): Likewise.
36685 (__argz_add_sep): Likewise.
36686 (__argz_delete): Likewise.
36687 (__argz_insert): Likewise.
36688 (__argz_replace): Likewise.
36689
36690 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36691
36692 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36693 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36694 (GNU_PROPERTY_STACK_SIZE): Likewie.
36695 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36696 (GNU_PROPERTY_LOPROC): Likewise.
36697 (GNU_PROPERTY_HIPROC): Likewise.
36698 (GNU_PROPERTY_LOUSER): Likewise.
36699 (GNU_PROPERTY_HIUSER): Likewise.
36700 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36701 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36702 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36703 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36704 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36705 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36706 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36707 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36708 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36709 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36710 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36711 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36712 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36713 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36714 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36715 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36716 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36717 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36718 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36719 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36720 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36721 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36722 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36723
36724 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36725
36726 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36727 in C++ mode.
36728
36729 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36730
36731 [BZ #21930]
36732 * math/math.h (isinf): Check if in C or C++ mode before using
36733 __builtin_types_compatible_p, since this is a C mode feature.
36734
36735 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36736
36737 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36738 (__write_nocancel): New macro.
36739 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36740 Rewrite as a function prototype.
36741 (write_not_cancel): Remove macro.
36742 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36743 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36744 (write_gmon): Likewise.
36745 * libio/fileops.c (_IO_new_file_write): Likewise.
36746 * login/utmp_file.c (pututline_file): Likewise.
36747 (updwtmp_file): Likewise.
36748 * stdio-common/psiginfo.c (psiginfo): Likewise.
36749 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36750 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36751 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36752 Likewise.
36753 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36754 Likewise.
36755
36756 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36757 (__read_nocancel): New macro.
36758 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36759 __read_nocancel.
36760 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36761 macro.
36762 (__read_nocancel): New prototype.
36763 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36764 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36765 with __read_nocancel.
36766 * intl/loadmsgcat.c (read): Likewise.
36767 * libio/fileops.c (_IO_file_read): Likewise.
36768 * locale/loadlocale.c (_nl_load_locale): Likewise.
36769 * login/utmp_file.c (getutent_r_file): Likewise.
36770 (internal_getut_r): Likewise.
36771 (getutline_r_file): Likewise.
36772 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36773 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36774 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36775 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36776 Likewise.
36777 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36778 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36779 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36780 Likewise.
36781 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36782 Likewise.
36783 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36784 Likewise.
36785 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36786 Likewise.
36787 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36788
36789 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36790
36791 [BZ #21966]
36792 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36793 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36794 usable.
36795
36796 2017-08-17 DJ Delorie <dj@redhat.com>
36797
36798 * bug17079.c: Update to new test harness.
36799 * test-digits-dots.c: Likewise.
36800 * test-netdb.c: Likewise.
36801 * tst-field.c: Likewise.
36802 * tst-nss-getpwent.c: Likewise.
36803 * tst-nss-static.c: Likewise.
36804 * tst-nss-test1.c: Likewise.
36805 * tst-nss-test2.c: Likewise.
36806 * tst-nss-test3.c: Likewise.
36807 * tst-nss-test4.c: Likewise.
36808 * tst-nss-test5.c: Likewise.
36809
36810 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36811
36812 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36813 (open_not_cancel_2): Likewise.
36814 (open_nocancel): New macro.
36815 (open64_nocancel): Likewise.
36816 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36817 (open_not_cancel_2): Likewise.
36818 (__open_nocancel): New prototype.
36819 (__open64_nocancel): Likewise.
36820 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36821 __open_nocancel.
36822 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36823 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36824 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36825 with __open_nocancel.
36826 * csu/check_fds.c (check_one_fd): Likewise.
36827 * gmon/gmon.c (write_gmon): Likewise.
36828 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36829 * intl/loadmsgcat.c (open): Likewise.
36830 * libio/fileops.c (_IO_file_open): Likewise.
36831 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36832 * locale/loadlocale.c (_nl_load_locale): Likewise.
36833 * login/utmp_file.c (setutent_file): Likewise.
36834 * misc/daemon.c (daemon): Likewise.
36835 * nss/nss_db/db-open.c (internal_setent): Likewise.
36836 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36837 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36838 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36839 (__opendir): Likewise.
36840 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36841 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36842 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36843 (gethostid): Likewise.
36844 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36845 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36846 Likewise.
36847 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36848 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36849 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36850 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36851 Likewise.
36852 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36853 Likewise.
36854 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36855 Likewise.
36856 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36857 Likewise.
36858 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36859 Likewise.
36860 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36861 Likewise.
36862 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36863 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36864
36865 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36866
36867 * benchtests/bench-skeleton.c (main): Add support for
36868 latency benchmarking.
36869 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36870
36871 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36872
36873 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36874 the startup object.
36875
36876 2017-08-17 Florian Weimer <fweimer@redhat.com>
36877
36878 * include/sys/socket.h (__opensock): Remove internal_function.
36879 * socket/opensock.c (__opensock): Likewise.
36880 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36881
36882 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36883
36884 [BZ #21944]
36885 * signal/bits/types/__sigval_t.h: New file.
36886 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36887 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36888 and define sigval_t using __sigval_t.
36889 * include/bits/types/__sigval_t.h: New file.
36890 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36891 instead of <bits/types/__sigval_t.h>.
36892 (struct sigevent): Use __sigval_t instead of sigval_t.
36893 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36894 instead of <bits/types/__sigval_t.h>.
36895 (siginfo_t): Use __sigval_t instead of sigval_t.
36896 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36897 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36898 (struct sigevent): Use __sigval_t instead of sigval_t.
36899 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36900 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36901 (siginfo_t): Use __sigval_t instead of sigval_t.
36902 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36903
36904 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36905
36906 * NEWS: Remove "[Add new features here]" for 2.27.
36907
36908 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36909
36910 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36911 libc.so.
36912
36913 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36914
36915 * NEWS: Mention x86-64 FMA optimization.
36916
36917 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36918
36919 [BZ #21912]
36920 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36921 Add e_expf-fma.
36922 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36923 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36924 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36925
36926 2017-08-16 Andreas Schwab <schwab@suse.de>
36927
36928 [BZ #16750]
36929 CVE-2009-5064
36930 * elf/ldd.bash.in: Never run file directly.
36931
36932 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36933
36934 [BZ #21955]
36935 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36936 (L(SP_INF_0)): Likewise.
36937
36938 2017-08-15 Florian Weimer <fweimer@redhat.com>
36939
36940 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36941 run-built-tests.
36942
36943 2017-08-15 Florian Weimer <fweimer@redhat.com>
36944
36945 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36946 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36947 BROKEN_THREAD_SIGNALS code.
36948 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36949 request_list): Remove caller_pid member used for
36950 BROKEN_THREAD_SIGNALS.
36951 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36952 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36953 Remove BROKEN_THREAD_SIGNALS support.
36954 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36955 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36956
36957 2017-08-15 Florian Weimer <fweimer@redhat.com>
36958
36959 * gmon/Makefile (tests): Add tst-gmon.
36960 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36961 Set.
36962 (tests-special): Add tst-gmon-prof.out.
36963 (tst-gmon.out): Depend on clean-tst-gmon-data.
36964 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36965 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36966 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36967 startup object.
36968 * aclocal.m4 (GPROF): Set and substitute.
36969 * config.amke.in (GPROF): Set.
36970 * configure: Regenerate.
36971
36972 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36973
36974 * elf/elf.h A (NT_PPC_TAR): New macro.
36975 (NT_PPC_PPR): Likewise.
36976 (NT_PPC_DSCR): Likewise.
36977 (NT_PPC_EBB): Likewise.
36978 (NT_PPC_PMU): Likewise.
36979 (NT_PPC_TM_CGPR): Likewise.
36980 (NT_PPC_TM_CFPR): Likewise.
36981 (NT_PPC_TM_CVMX): Likewise.
36982 (NT_PPC_TM_CVSX): Likewise.
36983 (NT_PPC_TM_SPR): Likewise.
36984 (NT_PPC_TM_CTAR): Likewise.
36985 (NT_PPC_TM_CPPR): Likewise.
36986 (NT_PPC_TM_CDSCR): Likewise.
36987
36988 2017-08-15 Florian Weimer <fweimer@redhat.com>
36989
36990 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36991 regparm (2) instead of internal_function.
36992 (_MCOUNT_DECL): Adjust.
36993
36994 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36995
36996 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36997 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36998
36999 2017-08-14 Joseph Myers <joseph@codesourcery.com>
37000
37001 * conform/data/sys/wait.h-data (si_value): Do not expect for
37002 XPG42.
37003
37004 2017-08-14 Florian Weimer <fweimer@redhat.com>
37005
37006 [BZ #21962]
37007 NSS: Create stubs for accidentally exported lookup functions.
37008 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
37009 Remove declaration.
37010 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
37011 (ether_hostton): Call __nss_ethers_lookup2 instead.
37012 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
37013 (ether_ntohost): Call __nss_ethers_lookup2 instead.
37014 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37015 (setup): Call __nss_netgroup_lookup2 instead.
37016 * nss/Makefile (routines): Add compat-lookup.
37017 * nss/Versions (GLIBC_2.27): Add symbol version.
37018 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
37019 (DB_COMPAT_FCT): Remove.
37020 * nss/compat-lookup.c: New file.
37021 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37022 from databases.def.
37023 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37024 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37025 (netname2user): Call __nss_publickey_lookup2 instead.
37026 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37027 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37028 instead.
37029
37030 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37031 Sergei Trofimovich <slyfox@inbox.ru>
37032
37033 [BZ #21908]
37034 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37035 Rename to MMAP2_PAGE_UNIT.
37036 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37037 __OFF_T_MATCHES_OFF64_T is not defined.
37038 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37039 uint64_t.
37040 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37041 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37042
37043 2017-08-14 Florian Weimer <fweimer@redhat.com>
37044
37045 i386: Do not set internal_function.
37046 * config.h.in (USE_REGPARMS, internal_function): Remove.
37047 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37048 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37049
37050 2017-08-14 Florian Weimer <fweimer@redhat.com>
37051
37052 * elf/dl-init.c (_dl_init): Remove internal_function.
37053 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37054 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37055
37056 2017-08-14 Florian Weimer <fweimer@redhat.com>
37057
37058 * elf/rtld.c (_dl_start): Remove internal_function.
37059 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37060 _dl_start.
37061
37062 2017-08-14 Florian Weimer <fweimer@redhat.com>
37063
37064 * elf/dl-fini.c (_dl_fini): Remove internal_function
37065 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37066
37067 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37068
37069 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37070 (bit_cpu_SHSTK): Likewise.
37071 (index_cpu_IBT): Likewise.
37072 (index_cpu_SHSTK): Likewise.
37073 (reg_IBT): Likewise.
37074 (reg_SHSTK): Likewise.
37075 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37076 Handle index_cpu_IBT and index_cpu_SHSTK.
37077
37078 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37079
37080 [BZ #19982]
37081 * po/fr.po: Fix spelling mistake.
37082
37083 2017-08-13 Florian Weimer <fweimer@redhat.com>
37084
37085 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37086 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37087 (_dl_catch_error, _dl_receive_error): Likewise.
37088 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37089 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37090 (_dl_deallocate_tls): Likewise.
37091 * include/dlfcn.h (_dl_addr): Likewise.
37092 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37093 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37094 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37095 Likewise.
37096
37097 2017-08-13 Florian Weimer <fweimer@redhat.com>
37098
37099 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37100 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37101 internal_function.
37102 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37103
37104 2017-08-13 Florian Weimer <fweimer@redhat.com>
37105
37106 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37107 internal_function.
37108 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37109 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37110 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37111 internal_function from _dl_make_stack_executable_hook member.
37112 (_dl_make_stack_executable): Remove internal_function.
37113 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37114 Likewise.
37115 * sysdeps/unix/sysv/linux/dl-execstack.c
37116 (_dl_make_stack_executable): Likewise.
37117
37118 2017-08-13 Florian Weimer <fweimer@redhat.com>
37119
37120 * sysdeps/unix/sysv/linux/netlinkaccess.h
37121 (__netlink_assert_response): Remove internal_function.
37122 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37123 (__netlink_assert_response): Likewise.
37124
37125 2017-08-13 Florian Weimer <fweimer@redhat.com>
37126
37127 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37128 internal_function.
37129 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37130
37131 2017-08-13 Florian Weimer <fweimer@redhat.com>
37132
37133 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37134 internal_function.
37135 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37136 * inet/netgroup.h (__internal_setnetgrent)
37137 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37138 * inet/getnetgrent_r.c (__internal_setnetgrent)
37139 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37140 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37141 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37142 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37143 * nss/nsswitch.h (db_lookup_function): Likewise.
37144
37145 2017-08-13 Florian Weimer <fweimer@redhat.com>
37146
37147 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37148 Remove internal_function.
37149 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37150 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37151 message argument on the stack.
37152 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37153 Likeweise.
37154
37155 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37156
37157 Adapt test case data to the changes in the thousands
37158 separators.
37159
37160 [BZ #20756]
37161 * localedata/tst-langinfo.sh: Adapt test case data.
37162 * stdlib/tst-strfmon_l.c: Likewise.
37163 * stdlib/tst-strtod4.c: Likewise.
37164 * stdlib/tst-strtod5i.c: Likewise.
37165
37166 2017-08-11 Florian Weimer <fweimer@redhat.com>
37167
37168 [BZ #21242]
37169 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37170 Suppress pedantic warning resulting from statement expression.
37171 (__ASSERT_FUNCTION): Add missing __extension__.
37172
37173 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37174
37175 * benchtests/bench-memmove-large.c: Print output in JSON
37176 format.
37177 * benchtests/bench-memmove.c: Likewise.
37178
37179 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37180 * benchtests/bench-memchr.c (do_one_test): Likewise.
37181 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37182 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37183 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37184 * benchtests/bench-memmove.c (do_one_test): Likewise.
37185 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37186 * benchtests/bench-memset.c (do_one_test): Likewise.
37187 * benchtests/bench-string.h (test_init): Remove memsets.
37188
37189 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37190
37191 * manual/lang.texi
37192 (Computing the Width of an Integer Data Type): Rename section to
37193 "Width of an Integer Type". Remove inaccurate statement regarding
37194 lack of C language facilities for determining width of integer
37195 types, and reorder content to improve flow and context of
37196 discussion.
37197
37198 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37199
37200 * lang.texi (va_copy): Change standard from ISO to C99.
37201 (__va_copy): Add standard and header annotation.
37202 Update description for clarity of origins and current use.
37203
37204 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37205
37206 [BZ #21941]
37207 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37208 xssqrtqp requires operands to be in Vector Registers
37209 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37210 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37211 (__ieee754_sqrtf128): Likewise.
37212
37213 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37214
37215 * sysdeps/aarch64/memcmp.S (memcmp):
37216 Rewrite of optimized memcmp.
37217
37218 2017-08-10 Florian Weimer <fweimer@redhat.com>
37219
37220 Introduce ld.so exceptions.
37221 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37222 (_dl_exception_create, _dl_exception_create_format)
37223 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37224 (_dl_catch_exception): Declare.
37225 (_dl_catch_error): Update comment.
37226 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37227 errstring, malloced members with exception member.
37228 (_dl_out_of_memory): Remove.
37229 (fatal_error): New function, extracted from _dl_signal_error.
37230 (_dl_signal_exception, _dl_signal_cexception): New functions.
37231 (_dl_signal_error): Call _dl_exception_create to allocate an
37232 exception object.
37233 (_dl_catch_exception): New function, based on _dl_catch_error.
37234 (_dl_catch_error): Implement using _dl_catch_exception.
37235 * elf/dl-exception.c: New file.
37236 * elf/Makefile (dl-routines): Add dl-exception.
37237 (elide-routines.os): Likewise.
37238 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37239 _dl_exception_create_format, _dl_exception_free.
37240 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37241 _dl_signal_exception.
37242 * elf/dl-lookup.c (make_string): Remove.
37243 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37244 _dl_signal_cexception, _dl_exception_free.
37245 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37246 _dl_signal_exception.
37247 * elf/dl-sym.c (do_sym): Likewise.
37248 * elf/dl-version.c (make_string): Remove.
37249 (match_symbol): Use _dl_exception_create_format,
37250 _dl_signal_cexception, _dl_exception_free.
37251 (_dl_check_map_versions): Likewise.
37252 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37253 _dl_catch_exception.
37254 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37255 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37256 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37257 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37258 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37259 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37260 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37261 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37262 Likewise.
37263 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37265 (ld.so): Likewise.
37266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37267 (ld.so): Likewise.
37268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37269 Likewise.
37270 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37271 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37272 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37273 Likewise.
37274 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37275 Likewise.
37276 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37277
37278 2017-08-10 Florian Weimer <fweimer@redhat.com>
37279
37280 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37281 attribute_hidden, internal_function.
37282 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37283 internal_function.
37284
37285 2017-08-10 Florian Weimer <fweimer@redhat.com>
37286
37287 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37288 function which calls __builtin_unreachable.
37289
37290 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37291
37292 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37293 Indian monetary formatting
37294 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37295 test cases.
37296
37297 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37298
37299 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37300 Fix typo in comment.
37301
37302 [BZ #21928]
37303 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37304 PTRACE_SEIZE_DEVEL): Remove.
37305 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37306 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37307 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37308 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37309 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37310
37311 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37312
37313 * posix/bits/types.h (__qaddr_t): Remove.
37314
37315 [BZ #21457]
37316 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37317 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37318 __glibc_reserved1.
37319 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37320 (ucontext_t): Use __ctx with uc_flags.
37321 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37322 (__ctxt): Likewise.
37323 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37324 __glibc_reserved1.
37325 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37326 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37327 __glibc_reserved1.
37328 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37329 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37330 __glibc_reserved1.
37331 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37332 macro.
37333 (ucontext_t): Use __ctx with uc_flags.
37334 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37335 (ucontext_t): Use __ctx with uc_flags.
37336 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37337 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37338 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37339 (ucontext_t): Use __ctx with uc_flags.
37340 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37341 undefine further down.
37342 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37343 __glibc_reserved1.
37344 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37345 undefine further down.
37346 (ucontext_t): Use __ctx with uc_flags.
37347 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37348 undefine further down.
37349 (ucontext_t): Use __ctx with uc_flags.
37350 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37351 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37352 Rename uc_pad to __glibc_reserved1.
37353 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37354 undefine further down.
37355 (ucontext_t): Use __ctx with uc_flags.
37356 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37357 further down.
37358 (ucontext_t): Use __ctx with uc_flags.
37359 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37360 __ctx with uc_flags.
37361 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37362 (ucontext_t): Use __ctx with uc_flags.
37363 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37364 __ctx with uc_flags.
37365
37366 2017-08-09 Florian Weimer <fweimer@redhat.com>
37367
37368 [BZ #21932]
37369 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37370 before early return.
37371
37372 2017-08-09 Andreas Schwab <schwab@suse.de>
37373
37374 [BZ #21041]
37375 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37376 renamed alias.
37377
37378 [BZ #21041]
37379 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37380 tst-compat-forwarder.
37381 (modules-names): Add tst-compat-forwarder-mod.
37382 ($(objpfx)tst-compat-forwarder): Depend on
37383 $(objpfx)tst-compat-forwarder-mod.so.
37384 * nptl/tst-compat-forwarder.c: New file.
37385 * nptl/tst-compat-forwarder-mod.c: New file.
37386
37387 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37388
37389 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37390 comments.
37391
37392 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37393 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37394 memcpy_falkor.
37395 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37396 Bump.
37397 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37398 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37399 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37400 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37401 Add falkor.
37402 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37403 New macro.
37404
37405 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37406
37407 [BZ #759]
37408 * manual/setjmp.texi (getcontex): Document uc_stack value
37409 compatibility differences.
37410
37411 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37412
37413 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37414 (old_malloc_hook): Likewise.
37415 (old_memalign_hook): Likewise.
37416 (old_realloc_hook): Likewise.
37417 (struct hdr): Likewise.
37418 (flood): Likewise.
37419 (freehook): Likewise.
37420 (mallochook): Likewise.
37421 (memalignhook): Likewise.
37422 (reallochook): Likewise.
37423 (mprobe): Likewise.
37424 * malloc/mtrace.c (mallwatch): Likewise.
37425 (tr_old_free_hook): Likewise.
37426 (tr_old_malloc_hook): Likewise.
37427 (tr_old_realloc_hook): Likewise.
37428 (tr_old_memalign_hook): Likewise.
37429 (tr_where): Likewise.
37430 (lock_and_info): Likewise.
37431 (tr_freehook): Likewise.
37432 (tr_mallochook): Likewise.
37433 (tr_reallochook): Likewise.
37434 (tr_memalignhook): Likewise.
37435 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37436 * misc/mmap.c (__mmap): Likewise.
37437 * misc/mmap64.c (__mmap64): Likewise.
37438 * misc/mprotect.c (__mprotect): Likewise.
37439 * misc/msync.c (msync): Likewise.
37440 * misc/munmap.c (__munmap): Likewise.
37441 * posix/posix_madvise.c (posix_madvise): Likewise.
37442 * socket/send.c (__send): Likewise.
37443 * socket/sendto.c (__sendto): Likewise.
37444 * socket/setsockopt.c (__setsockopt): Likewise.
37445 * string/memcmp.c (__ptr_t): Remove macro.
37446 (MEMCMP): Use void * instead of ptr_t.
37447 * string/memrchr.c (__ptr_t): Remove macro.
37448 (__memrchr): Use void * instead of ptr_t.
37449 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37450 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37451 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37452 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37453 * sysdeps/mach/msync.c (msync): Likewise.
37454 * sysdeps/mach/munmap.c (__munmap): Likewise.
37455 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37456 Likewise.
37457 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37458 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37459 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37460 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37461 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37462 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37463 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37464 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37465 Likewise.
37466 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37467 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37468 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37469 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37470 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37471 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37472 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37473 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37474 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37475 Likewise.
37476 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37477 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37478 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37479 (MEMCMP): Use void * instead of ptr_t.
37480 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37481 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37482
37483 2017-08-08 Florian Weimer <fweimer@redhat.com>
37484
37485 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37486 return statement.
37487
37488 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37489
37490 [BZ #21913]
37491 * csu/libc-tls.c: Include <startup.h> first.
37492 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37493 * elf/dl-tunables.c: Include <startup.h> first.
37494 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37495 * sysdeps/generic/startup.h: New file.
37496 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37497 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37498 (I386_USE_SYSENTER): New. Defined to 0.
37499
37500 2017-08-08 Andreas Schwab <schwab@suse.de>
37501
37502 [BZ #21041]
37503 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37504 * nptl/pt-system.c (system): Likewise.
37505
37506 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37507
37508 [BZ #21780]
37509 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37510 EOPNOTSUPP.
37511 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37512 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37513 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37514 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37515 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37516 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37517 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37518
37519 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37520
37521 [BZ #21899]
37522 * bits/sigaction.h (struct sigaction): Define sa_handler and
37523 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37524 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37525 [__USE_XOPEN_EXTENDED].
37526 (SA_RESTART): Likewise.
37527 (SA_NODEFER): Likewise.
37528 (SA_RESETHAND): Likewise.
37529 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37530 (struct sigaction): Define sa_handler and sa_sigaction using union
37531 also for [__USE_XOPEN_EXTENDED].
37532 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37533 [__USE_XOPEN_EXTENDED].
37534 (SA_RESTART): Likewise.
37535 (SA_NODEFER): Likewise.
37536 (SA_RESETHAND): Likewise.
37537 * sysdeps/unix/sysv/linux/bits/sigaction.h
37538 (struct sigaction): Define sa_handler and sa_sigaction using union
37539 also for [__USE_XOPEN_EXTENDED].
37540 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37541 [__USE_XOPEN_EXTENDED].
37542 (SA_RESTART): Likewise.
37543 (SA_NODEFER): Likewise.
37544 (SA_RESETHAND): Likewise.
37545 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37546 (struct sigaction): Define sa_handler and sa_sigaction using union
37547 also for [__USE_XOPEN_EXTENDED].
37548 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37549 [__USE_XOPEN_EXTENDED].
37550 (SA_RESTART): Likewise.
37551 (SA_NODEFER): Likewise.
37552 (SA_RESETHAND): Likewise.
37553 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37554 (struct sigaction): Define sa_handler and sa_sigaction using union
37555 also for [__USE_XOPEN_EXTENDED].
37556 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37557 [__USE_XOPEN_EXTENDED].
37558 (SA_RESTART): Likewise.
37559 (SA_NODEFER): Likewise.
37560 (SA_RESETHAND): Likewise.
37561 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37562 (struct sigaction): Define sa_handler and sa_sigaction using union
37563 also for [__USE_XOPEN_EXTENDED].
37564 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37565 [__USE_XOPEN_EXTENDED].
37566 (SA_RESTART): Likewise.
37567 (SA_NODEFER): Likewise.
37568 (SA_RESETHAND): Likewise.
37569 * sysdeps/unix/sysv/linux/s390/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 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37578 (struct sigaction): Define sa_handler and sa_sigaction using union
37579 also for [__USE_XOPEN_EXTENDED].
37580 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37581 [__USE_XOPEN_EXTENDED].
37582 (SA_RESTART): Likewise.
37583 (SA_NODEFER): Likewise. Define directly rather than as alias.
37584 (SA_RESETHAND): Likewise.
37585 (SA_INTERRUPT): Define only for [__USE_MISC].
37586 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37587 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37588 [__USE_MISC].
37589 (SA_STACK): Define only for [__USE_MISC].
37590 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37591 (struct sigaction): Define sa_handler and sa_sigaction using union
37592 also for [__USE_XOPEN_EXTENDED].
37593 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37594 [__USE_XOPEN_EXTENDED].
37595 (SA_RESTART): Likewise.
37596 (SA_NODEFER): Likewise.
37597 (SA_RESETHAND): Likewise.
37598 (SA_NOPTRACE): Define only for [__USE_MISC].
37599
37600 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37601 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37602 (struct catalog_info): Likewise.
37603 * inet/htontest.c (lo): Likewise.
37604 (foo): Likewise.
37605 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37606 * inet/inet_net.c (inet_network): Likewise.
37607 * inet/inet_netof.c (inet_netof): Likewise.
37608 * inet/rcmd.c (__ivaliduser): Likewise.
37609 (iruserok): Likewise.
37610 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37611 * locale/programs/locale-spec.c (locale_special): Likewise.
37612 * nis/nis_findserv.c (struct findserv_req): Likewise.
37613 (__nis_findfastest_with_timeout): Likewise.
37614 * nss/test-netdb.c (test_network): Likewise.
37615 * resolv/inet_neta.c (inet_neta): Likewise.
37616 * resolv/ns_date.c (ns_datetosecs): Likewise.
37617 (SECS_PER_DAY): Likewise.
37618 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37619 Likewise.
37620 * resolv/res_comp.c (__putlong): Likewise.
37621 (__putshort): Likewise.
37622 (_getlong): Likewise.
37623 (_getshort): Likewise.
37624 * resolv/res_debug.c (p_time): Likewise.
37625 (precsize_ntoa): Likewise.
37626 (precsize_aton): Likewise.
37627 (latlon2ul): Likewise.
37628 (loc_aton): Likewise.
37629 (loc_ntoa): Likewise.
37630 * resolv/res_hconf.c (struct netaddr): Likewise.
37631 (_res_hconf_reorder_addrs): Likewise.
37632 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37633 (clnttcp_control): Likewise.
37634 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37635 (clntudp_control): Likewise.
37636 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37637 (clntunix_control): Likewise.
37638 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37639 * sunrpc/rpc/auth.h (union des_block): Likewise.
37640 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37641 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37642 (xdrrec_create): Likewise.
37643 (xdrrec_endofrecord): Likewise.
37644 (flush_out): Likewise.
37645 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37646 (xdrstdio_putlong): Likewise.
37647 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37648 Likewise.
37649
37650 * misc/sys/cdefs.h (__long_double_t): Remove.
37651 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37652 instead of __long_double_t,
37653 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37654
37655 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37656
37657 * benchtests/scripts/compare_strings.py: Avoid display error when
37658 running on a text terminal.
37659
37660 * benchtests/scripts/compare_strings.py (main): Add an
37661 optional -base option.
37662 (process_results): New argument base_func.
37663
37664 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37665 hardcoding memcpy.
37666 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37667 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37668
37669 2017-08-07 Andreas Schwab <schwab@suse.de>
37670
37671 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37672 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37673 * intl/Makefile ($(objpfx)tst-gettext.out)
37674 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37675 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37676 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37677 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37678 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37679 * posix/Makefile ($(objpfx)globtest.out)
37680 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37681 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37682 ($(objpfx)tst-printf.out): Likewise.
37683 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37684 ($(objpfx)tst-setcontext3.out): Likewise.
37685
37686 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37687
37688 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37689 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37690 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37691 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37692 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37693 and mptan-fma.
37694 (CFLAGS-doasin-fma.c): New.
37695 (CFLAGS-dosincos-fma.c): Likewise.
37696 (CFLAGS-e_asin-fma.c): Likewise.
37697 (CFLAGS-e_atan2-fma.c): Likewise.
37698 (CFLAGS-e_exp-fma.c): Likewise.
37699 (CFLAGS-e_log-fma.c): Likewise.
37700 (CFLAGS-e_pow-fma.c): Likewise.
37701 (CFLAGS-halfulp-fma.c): Likewise.
37702 (CFLAGS-mpa-fma.c): Likewise.
37703 (CFLAGS-mpatan-fma.c): Likewise.
37704 (CFLAGS-mpatan2-fma.c): Likewise.
37705 (CFLAGS-mpexp-fma.c): Likewise.
37706 (CFLAGS-mplog-fma.c): Likewise.
37707 (CFLAGS-mpsqrt-fma.c): Likewise.
37708 (CFLAGS-mptan-fma.c): Likewise.
37709 (CFLAGS-s_atan-fma.c): Likewise.
37710 (CFLAGS-sincos32-fma.c): Likewise.
37711 (CFLAGS-slowexp-fma.c): Likewise.
37712 (CFLAGS-slowpow-fma.c): Likewise.
37713 (CFLAGS-s_sin-fma.c): Likewise.
37714 (CFLAGS-s_tan-fma.c): Likewise.
37715 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37716 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37717 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37718 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37719 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37720 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37721 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37722 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37723 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37724 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37725 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37726 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37727 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37728 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37729 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37730 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37731 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37732 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37733 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37734 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37735 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37736 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37737 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37738 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37739 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37740 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37741 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37742 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37743 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37744 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37745 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37746
37747 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37748
37749 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37750 (min_of_type_f): New macro.
37751 (min_of_type_): Likewise.
37752 (min_of_type_l): Likewise.
37753 (min_of_type_f128): Likewise.
37754 (min_of_type): Define using __MATH_TG and taking an expression
37755 argument.
37756 (math_check_force_underflow): Pass expression instead of type to
37757 min_of_type.
37758 (math_check_force_underflow_nonneg): Likewise.
37759
37760 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37761
37762 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37763 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37764 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37765
37766 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37767
37768 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37769 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37770 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37771 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37772 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37773 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37774 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37775 memmove_chk-nonshared and memset_chk-nonshared
37776 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37777 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37778 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37779 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37780 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37781 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37782 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37783 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37784 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37785 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37786 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37787 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37788 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37789 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37790 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37791 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37792 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37793 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37794 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37795 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37796 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37797 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37798 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37799 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37800 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37801 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37802 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37803 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37804 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37805 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37806 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37807 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37808 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37809 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37810 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37811 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37812 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37813 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37814 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37815 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37816 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37817 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37818 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37819 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37820 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37821 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37822 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37823 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37824 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37825 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37826 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37827 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37828 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37829 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37830 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37831 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37832 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37833 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37834 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37835 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37836 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37837 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37838 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37839 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37840 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37841 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37842 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37843 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37844 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37845 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37846 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37847 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37848 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37849 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37850 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37851 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37852 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37853 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37854 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37855 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37856 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37857 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37858 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37859 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37860 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37861 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37862 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37863 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37864 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37865 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37866 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37867 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37868 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37869 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37870 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37871 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37872 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37873 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37874 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37875 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37876 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37877 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37878 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37879 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37880 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37881 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37882 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37883 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37884
37885 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37886
37887 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37888 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37889 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37890 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37891 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37892 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37893 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37894 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37895 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37896 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37897 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37898 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37899 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37900 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37901 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37902 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37903 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37904 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37905 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37906 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37907 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37908 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37909 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37910 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37911 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37912 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37913 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37914 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37915 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37916 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37917 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37918 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37919 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37920 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37921 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37922 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37923 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37924 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37925 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37926 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37927 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37928 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37929 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37930 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37931 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37932 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37933 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37934 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37935 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37936 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37937 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37938 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37939 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37940 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37941 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37942 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37943 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37944 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37945 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37946 ...
37947 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37948 Don't include <sysdep.h> nor <init-arch.h>.
37949 (_ZGVbN2v_cos): Removed.
37950 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37951 ...
37952 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37953 Don't include <sysdep.h> nor <init-arch.h>.
37954 (_ZGVdN4v_cos): Removed.
37955 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37956 ...
37957 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37958 Don't include <sysdep.h> nor <init-arch.h>.
37959 (_ZGVeN8v_cos): Removed.
37960 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37961 ...
37962 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37963 Don't include <sysdep.h> nor <init-arch.h>.
37964 (_ZGVbN2v_exp): Removed.
37965 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37966 ...
37967 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37968 Don't include <sysdep.h> nor <init-arch.h>.
37969 (_ZGVdN4v_exp): Removed.
37970 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37971 ...
37972 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37973 Don't include <sysdep.h> nor <init-arch.h>.
37974 (_ZGVeN8v_exp): Removed.
37975 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37976 ...
37977 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37978 Don't include <sysdep.h> nor <init-arch.h>.
37979 (_ZGVbN2v_log): Removed.
37980 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37981 ...
37982 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37983 Don't include <sysdep.h> nor <init-arch.h>.
37984 (_ZGVdN4v_log): Removed.
37985 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37986 ...
37987 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37988 Don't include <sysdep.h> nor <init-arch.h>.
37989 (_ZGVeN8v_log): Removed.
37990 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37991 ...
37992 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37993 Don't include <sysdep.h> nor <init-arch.h>.
37994 (_ZGVbN2vv_pow): Removed.
37995 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37996 ...
37997 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37998 Don't include <sysdep.h> nor <init-arch.h>.
37999 (_ZGVdN4vv_pow): Removed.
38000 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
38001 ...
38002 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
38003 Don't include <sysdep.h> nor <init-arch.h>.
38004 (_ZGVeN8vv_pow): Removed.
38005 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
38006 ...
38007 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
38008 Don't include <sysdep.h> nor <init-arch.h>.
38009 (_ZGVbN2v_sin): Removed.
38010 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
38011 ...
38012 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
38013 Don't include <sysdep.h> nor <init-arch.h>.
38014 (_ZGVbN4v_sin): Removed.
38015 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
38016 ...
38017 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38018 Don't include <sysdep.h> nor <init-arch.h>.
38019 (_ZGVbN8v_sin): Removed.
38020 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38021 ...
38022 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38023 Don't include <sysdep.h> nor <init-arch.h>.
38024 (_ZGVbN2vvv_sincos): Removed.
38025 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38026 ...
38027 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38028 Don't include <sysdep.h> nor <init-arch.h>.
38029 (_ZGVdN4vvv_sincos): Removed.
38030 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38031 ...
38032 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38033 Don't include <sysdep.h> nor <init-arch.h>.
38034 (_ZGVeN8vvv_sincos): Removed.
38035 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38036 ...
38037 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38038 Don't include <sysdep.h> nor <init-arch.h>.
38039 (_ZGVeN16v_cosf): Removed.
38040 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38041 ...
38042 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38043 Don't include <sysdep.h> nor <init-arch.h>.
38044 (_ZGVbN4v_cosf): Removed.
38045 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38046 ...
38047 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38048 Don't include <sysdep.h> nor <init-arch.h>.
38049 (_ZGVdN8v_cosf): Removed.
38050 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38051 ...
38052 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38053 Don't include <sysdep.h> nor <init-arch.h>.
38054 (_ZGVeN16v_expf): Removed.
38055 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38056 ...
38057 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38058 Don't include <sysdep.h> nor <init-arch.h>.
38059 (_ZGVbN4v_expf): Removed.
38060 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38061 ...
38062 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38063 Don't include <sysdep.h> nor <init-arch.h>.
38064 (_ZGVdN8v_expf): Removed.
38065 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38066 ...
38067 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38068 Don't include <sysdep.h> nor <init-arch.h>.
38069 (_ZGVeN16v_logf): Removed.
38070 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38071 ...
38072 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38073 Don't include <sysdep.h> nor <init-arch.h>.
38074 (_ZGVbN4v_logf): Removed.
38075 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38076 ...
38077 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38078 Don't include <sysdep.h> nor <init-arch.h>.
38079 (_ZGVdN8v_logf): Removed.
38080 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38081 ...
38082 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38083 Don't include <sysdep.h> nor <init-arch.h>.
38084 (_ZGVeN16vv_powf): Removed.
38085 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38086 ...
38087 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38088 Don't include <sysdep.h> nor <init-arch.h>.
38089 (_ZGVbN4vv_powf): Removed.
38090 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38091 ...
38092 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38093 Don't include <sysdep.h> nor <init-arch.h>.
38094 (_ZGVdN8vv_powf): Removed.
38095 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38096 ...
38097 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38098 Don't include <sysdep.h> nor <init-arch.h>.
38099 (_ZGVeN16vvv_sincosf): Removed.
38100 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38101 ...
38102 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38103 Don't include <sysdep.h> nor <init-arch.h>.
38104 (_ZGVbN4vvv_sincosf): Removed.
38105 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38106 ...
38107 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38108 Don't include <sysdep.h> nor <init-arch.h>.
38109 (_ZGVdN8vvv_sincosf): Removed.
38110 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38111 ...
38112 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38113 Don't include <sysdep.h> nor <init-arch.h>.
38114 (_ZGVeN16v_sinf): Removed.
38115 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38116 ...
38117 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38118 Don't include <sysdep.h> nor <init-arch.h>.
38119 (_ZGVbN4v_sinf): Removed.
38120 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38121 ...
38122 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38123 Don't include <sysdep.h> nor <init-arch.h>.
38124 (_ZGVdN8v_sinf): Removed.
38125
38126 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38127
38128 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38129 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38130 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38131 s_rint-sse4_1 and s_rintf-sse4_1.
38132 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38133 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38134 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38135 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38136 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38137 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38138 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38139 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38140 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38141 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38142 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38143 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38144 (__ceil): Removed.
38145 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38146 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38147 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38148 (__ceilf): Removed.
38149 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38150 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38151 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38152 (__floor): Removed.
38153 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38154 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38155 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38156 (__floorf): Removed.
38157 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38158 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38159 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38160 (__nearbyint): Removed.
38161 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38162 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38163 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38164 (__nearbyintf): Removed.
38165 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38166 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38167 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38168 (__rint): Removed.
38169 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38170 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38171 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38172 (__rintf): Removed.
38173
38174 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38175
38176 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38177 SHARED. Avoid dynamic relocation against main in static PIE.
38178
38179 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38180
38181 [BZ #21815]
38182 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38183 (LDFLAGS-tst-prelink): Likewise.
38184
38185 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38186
38187 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38188 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38189 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38190 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38191 (INTERNAL_SYSCALL_NCS): Likewise.
38192 (LOADARGS_1): Likewise.
38193 (LOADARGS_5): Likewise.
38194 (RESTOREARGS_1): Likewise.
38195 (RESTOREARGS_5): Likewise.
38196
38197 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38198
38199 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38200 (MEMPCPY_SYMBOL): Likewise.
38201 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38202 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38203 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38204 in libc.a.
38205 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38206 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38207 Likewise.
38208 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38209 (__hidden_ver1): Don't use in libc.a.
38210 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38211 (__mempcpy): Don't create a weak alias in libc.a.
38212 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38213 libc.a.
38214 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38215 (__hidden_ver1): Don't use in libc.a.
38216
38217 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38218
38219 * config.make.in (have-insert): New.
38220 * configure.ac (libc_cv_insert): New. Set to yes if linker
38221 supports INSERT in linker script.
38222 (AC_SUBST(libc_cv_insert): New.
38223 * configure: Regenerated.
38224 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38225 if $(have-insert) == yes.
38226
38227 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38228
38229 * elf/Makefile (tests): Add vismain only if
38230 $(have-protected-data) == yes.
38231 (tests-pie): Likewise.
38232
38233 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38234
38235 [BZ #21871]
38236 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38237 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38238
38239 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38240
38241 [BZ #21790]
38242 * sysdeps/i386/i586/memset.S
38243 (__memset_zero_constant_len_parameter): Removed.
38244 * sysdeps/i386/i686/memset.S
38245 (__memset_zero_constant_len_parameter): Likewise.
38246 * sysdeps/i386/i686/multiarch/memset_chk.S
38247 (__memset_zero_constant_len_parameter): Likewise.
38248 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38249 Likewise.
38250
38251 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38252
38253 * stdlib/getentropy.c (getentropy): Change return type to int.
38254
38255 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38256
38257 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38258
38259 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38260
38261 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38262 u_intN_t.
38263 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38264 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38265 Likewise.
38266 (ieee_float_shape_type): Likewise.
38267 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38268 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38269 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38270 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38271 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38272 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38273 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38274 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38275 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38276 Likewise.
38277 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38278 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38279 (__ieee754_yn): Likewise.
38280 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38281 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38282 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38283 Likewise.
38284 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38285 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38286 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38287 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38288 (__erfc): Likewise.
38289 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38290 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38291 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38292 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38293 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38294 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38295 Likewise.
38296 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38297 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38298 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38299 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38300 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38301 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38302 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38303 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38304 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38305 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38306 (__issignaling): Likewise.
38307 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38308 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38309 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38310 Likewise.
38311 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38312 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38313 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38314 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38315 Likewise.
38316 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38317 Likewise.
38318 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38319 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38320 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38321 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38322 (__erfcf): Likewise.
38323 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38324 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38325 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38326 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38327 Likewise.
38328 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38329 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38330 Likewise.
38331 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38332 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38333 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38334 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38335 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38336 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38337 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38338 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38339 Likewise.
38340 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38341 Likewise.
38342 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38343 Likewise.
38344 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38345 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38346 Likewise.
38347 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38348 Likewise.
38349 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38350 (__ieee754_ynl): Likewise.
38351 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38352 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38353 Likewise.
38354 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38355 Likewise.
38356 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38357 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38358 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38359 Likewise.
38360 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38361 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38362 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38363 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38364 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38365 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38366 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38367 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38368 Likewise.
38369 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38370 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38371 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38372 Likewise.
38373 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38374 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38375 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38376 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38377 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38378 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38379 Likewise.
38380 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38381 Likewise.
38382 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38383 Likewise.
38384 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38385 Likewise.
38386 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38387 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38388 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38389 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38390 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38391 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38392 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38393 Likewise.
38394 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38395 Likewise.
38396 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38397 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38398 Likewise.
38399 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38400 (__ieee754_remainderl): Likewise.
38401 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38402 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38403 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38404 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38405 Likewise.
38406 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38407 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38408 Likewise.
38409 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38410 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38411 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38412 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38413 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38414 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38415 Likewise.
38416 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38417 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38418 (__ieee754_y0l): Likewise.
38419 (pzero): Likewise.
38420 (qzero): Likewise.
38421 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38422 (__ieee754_y1l): Likewise.
38423 (pone): Likewise.
38424 (qone): Likewise.
38425 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38426 (__ieee754_ynl): Likewise.
38427 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38428 (__ieee754_lgammal_r): Likewise.
38429 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38430 Likewise.
38431 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38432 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38433 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38434 (__erfcl): Likewise.
38435 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38436 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38437 Likewise.
38438 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38439 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38440 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38441 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38442 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38443 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38444 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38445 Likewise.
38446 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38447 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38448 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38449 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38450 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38451 Likewise.
38452 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38453 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38454 Likewise.
38455 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38456 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38457 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38458 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38459 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38460
38461 2017-08-03 Florian Weimer <fweimer@redhat.com>
38462
38463 [BZ #21885]
38464 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38465 on memory allocation failure.
38466
38467 2017-08-03 Alan Modra <amodra@gmail.com>
38468
38469 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38470 tst-tlsopt-powerpc.c with function name change and no test harness.
38471 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38472 Call tls_get_addr_opt_test.
38473 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38474 (modules-names): Add mod-tlsopt-powerpc.
38475 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38476 (tst-tlsopt-powerpc): Depend on .so.
38477 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38478 define. Expand use in TLS_GD and TLS_LD.
38479
38480 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38481
38482 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38483 function.
38484 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38485
38486 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38487
38488 [BZ #21686]
38489 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38490 comparing size with that of double.
38491 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38492 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38493 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38494 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38495 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38496 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38497 unsigned __int128 types.
38498
38499 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38500
38501 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38502 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38503 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38504 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38505 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38506
38507 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38508
38509 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38510
38511 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38512
38513 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38514 of SHARED.
38515 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38516 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38517 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38518 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38519 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38520 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38521 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38522
38523 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38524
38525 [BZ #21685]
38526 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38527 bit-field expressions passed to sizeof or typeof.
38528 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38529 (__TGMATH_F128): Likewise.
38530 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38531 (__TGMATH_CF128): Likewise.
38532 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38533 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38534 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38535 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38536 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38537 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38538 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38539 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38540 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38541 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38542 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38543 (__TGMATH_UNARY_IMAG): Likewise.
38544 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38545 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38546 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38547 type.
38548 (define_vars_for_type): Handle bit_field type specially.
38549 (Tests.__init__): Declare structure with bit-field element.
38550
38551 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38552
38553 [BZ #21791]
38554 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38555 (MEMCPY_CHK): Define only if SHARED is defined.
38556 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38557 Likewise.
38558 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38559 Likewise.
38560
38561 See ChangeLog.18 for earlier changes.