]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Fix vDSO initialization on arm and mips
[thirdparty/glibc.git] / ChangeLog
1 2019-09-24 Andreas Schwab <schwab@suse.de>
2
3 * sysdeps/unix/sysv/linux/arm/sysdep.h
4 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
5 not "__vdso_gettimeofday".
6 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
7 "__vdso_clock_gettime".
8 * sysdeps/unix/sysv/linux/mips/sysdep.h
9 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
10 not "__vdso_gettimeofday".
11 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
12 "__vdso_clock_gettime".
13
14 2019-09-19 Paul A. Clarke <pc@us.ibm.com>
15
16 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_and_set_rn): New.
17 (__fe_mffscrn): New.
18 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
19 Do not clear enable bits, remove obsolete code, use
20 fegetenv_and_set_rn.
21 (libc_feresetround_ppc): Remove obsolete code, use
22 fegetenv_and_set_rn.
23
24 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
25
26 * support/support_ptrace.c: Remove inclusion of sys/prctl.h.
27
28 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
29
30 * sysdeps/s390/hp-timing.h (_HP_TIMING_H): Undefine.
31 (_HP_TIMING_S390_H): Define.
32
33 2019-09-18 Joseph Myers <joseph@codesourcery.com>
34
35 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
36 version to 5.3.
37 (clone3): New syscall.
38 (pidfd_open): Likewise.
39
40 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
41 version to 5.3.
42
43 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
44
45 * sysdeps/s390/hp-timing.h: New file.
46
47 2019-09-18 Joseph Myers <joseph@codesourcery.com>
48
49 * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
50 <linux/sched.h>.
51 (CLONE_VM): New macro.
52 (CLONE_VFORK): Likewise.
53
54 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
55
56 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
57 Rearrange subprocesses.
58 (pldd_process): New function.
59 * support/Makefile (libsupport-routines): Add support_ptrace.
60 * support/xptrace.h: New file.
61 * support/support_ptrace.c: Likewise.
62
63 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
64
65 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
66
67 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
68 (INTERNAL_VSYSCALL_CALL): Remove.
69 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
70 (INTERNAL_VSYSCALL_CALL): Likewise.
71 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
72 (INTERNAL_VSYSCALL_CALL): Likewise.
73 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
74 New macro.
75
76 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
77 defined.
78 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
79 (__get_timebase_freq): Remove use of
80 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
81 (get_timebase_freq_fallback): New symbol.
82 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
83 HAVE_GETTIMEOFDAY_VSYSCALL.
84 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
85 HAVE_TIME_VSYSCALL.
86 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
87 implementation.
88 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
89 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
90 powerpc64.
91 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
92 * .../sysv/linux/powerpc/powerpc64/sysdep.h
93 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
94 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
95 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
96
97 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
98 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
99 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
100 Likewise.
101 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
102 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
103 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
104 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
105 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
106 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
107 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
108 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
109 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
110 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
111 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
112 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
113 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
114 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
115 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
116 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
117 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
118 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
119 name.
120 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
121 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
122 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
123 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
124 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
125 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
126 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
127 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
128 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
129 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
130 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
131 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
132 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
133 HAVE_GETCPU_VSYSCALL): Likewise.
134 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
135 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
136 HAVE_GETCPU_VSYSCALL): Likewise.
137 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
138 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
139 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
140 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
141 HAVE_GETCPU_VSYSCALL): Likewise.
142 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
143 invalid names if architecture does not define them.
144 (get_vdso_mangle_symbol): New symbol.
145 * sysdeps/unix/sysv/linux/init-first.c: New file.
146 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
147 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
148 clock_gettime, clock_getres, getcpu, time): Remove declaration.
149 (__libc_vdso_platform_setup_arch): Likewise and use
150 get_vdso_mangle_symbol to setup vDSO symbols.
151 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
152 attribute_hidden.
153 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
154 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
155 definition.
156
157 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
158 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
159 Use get_vdso_symbol instead of _dl_vdso_vsym.
160 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
161 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
162 (__lookup_riscv_flush_icache): Likewise.
163 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
164 Likewise.
165 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
166 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
167 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
168 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
169 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
170 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
171 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
172 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
173 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
174 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
175 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
176 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
177 Define.
178 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
179 Likewise.
180 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
181 Likewise.
182 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
183 Likewise.
184 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
185 Likewise.
186 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
187 Likewise.
188 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
189 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
190 definition.
191 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
192 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
193 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
194 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
196 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
198 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
199 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
200 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
201 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
202 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
203 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
204 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
205 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
206 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
207 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
208 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
209 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
210 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
211 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
212 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
213 (get_vdso_symbol): New function.
214
215 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
216
217 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
218 position of string null termination.
219
220 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
221
222 [BZ #24986]
223 * sysdeps/unix/alpha/getegid.S: Move to ...
224 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
225 * sysdeps/unix/alpha/geteuid.S: Move to ...
226 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
227 * sysdeps/unix/alpha/getppid.S: Move to ...
228 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
229
230 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
231
232 Fix http: URL in 'configure'
233 * configure.ac: Add URL to AC_INIT so that it generates an
234 https: URL instead of an http: URL.
235 * configure: Regenerate.
236
237 Regenerate charmap-kw.h, locfile-kw.h
238 This propagates the recent http->https URL changes.
239 Since I used gperf 3.1 to regenerate, this is also a minor
240 internal-to-localedef API change.
241 URL problem reported by Joseph Myers in:
242 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
243 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
244 Regenerate with gperf 3.1.
245 * locale/programs/linereader.h (kw_hash_fct_t):
246 * locale/programs/repertoire.c (repertoiremap_hash):
247 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
248
249 2019-09-05 Florian Weimer <fweimer@redhat.com>
250
251 [BZ #24962]
252 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
253 (_nl_category_names_get): New function.
254 * intl/dcigettext.c (category_to_name): Call it.
255 * locale/findlocale.c (_nl_find_locale): Likewise.
256 * intl/loadlocale.c (_nl_load_locale): Likewise.
257 * locale/newlocale.c (__newlocale): Likewise.
258 * locale/setlocale.c (_nl_category_names): Adjust definition.
259 (_nl_category_name_idxs): Likewise.
260 (new_composite_name): Call _nl_category_names_get.
261 (setlocale): Likewise.
262
263 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
264
265 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
266 const attribute with pure attribute.
267
268 2019-09-04 Lukasz Majewski <lukma@denx.de>
269
270 * sysdeps/unix/sysv/linux/kernel-features.h
271 (__ASSUME_TIME64_SYSCALLS): New macro.
272
273 2019-09-04 Zack Weinberg <zackw@panix.com>
274
275 [BZ #24959]
276 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
277 * rt/clock_getres.c: Move to time/clock_getres.c.
278 * rt/clock_gettime.c: Move to time/clock_gettime.c.
279 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
280 * rt/clock_settime.c: Move to time/clock_settime.c.
281 * rt/tst-clock.c: Move to time/tst-clock.c.
282 * rt/tst-clock2.c: Move to time/tst-clock2.c.
283 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
284 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
285 * rt/clock-compat.c: Delete file.
286
287 * time/clock_getcpuclockid.c
288 * time/clock_getres.c
289 * time/clock_gettime.c
290 * time/clock_nanosleep.c
291 * time/clock_settime.c
292 * sysdeps/posix/clock_getres.c
293 * sysdeps/unix/clock_gettime.c
294 * sysdeps/unix/clock_nanosleep.c
295 * sysdeps/unix/clock_settime.c
296 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
297 * sysdeps/unix/sysv/linux/clock_getres.c
298 * sysdeps/unix/sysv/linux/clock_gettime.c
299 * sysdeps/unix/sysv/linux/clock_nanosleep.c
300 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
301 defined by this file with default symbol version GLIBC_2_17,
302 and optionally a compatibility alias at symbol version GLIBC_2_2.
303 * include/time.h: Remove internal prototypes for clock_getres,
304 clock_nanosleep, and clock_getcpuclockid.
305
306 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
307 Remove unused function realtime_gettime.
308
309 * rt/Makefile (clock-routines, routines): Remove variable.
310 (librt-routines): Remove clock-compat.
311 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
312 and tst-cpuclock1.
313 * time/Makefile (routines): Add clock_getres, clock_gettime,
314 clock_settime, clock_getcpuclockid, and clock_nanosleep.
315 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
316 and tst-cpuclock1.
317
318 * rt/Versions (libc): Remove entire stanza.
319 (librt GLIBC_2.2): Remove all clock_* functions.
320 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
321 Add clock_getres, clock_gettime, clock_settime,
322 clock_getcpuclockid, and clock_nanosleep.
323 (libc GLIBC_PRIVATE): Add __clock_gettime.
324
325 * sysdeps/mach/hurd/i386/librt.abilist
326 * sysdeps/unix/sysv/linux/alpha/librt.abilist
327 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
328 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
329 * sysdeps/unix/sysv/linux/hppa/librt.abilist
330 * sysdeps/unix/sysv/linux/i386/librt.abilist
331 * sysdeps/unix/sysv/linux/ia64/librt.abilist
332 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
333 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
334 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
335 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
336 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
337 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
339 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
340 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
341 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
342 * sysdeps/unix/sysv/linux/sh/librt.abilist
343 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
344 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
345 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
346 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
347 Remove entries for clock_getres, clock_gettime, clock_settime,
348 clock_getcpuclockid, and clock_nanosleep.
349
350 * sysdeps/mach/hurd/i386/libc.abilist
351 * sysdeps/unix/sysv/linux/alpha/libc.abilist
352 * sysdeps/unix/sysv/linux/arm/libc.abilist
353 * sysdeps/unix/sysv/linux/hppa/libc.abilist
354 * sysdeps/unix/sysv/linux/i386/libc.abilist
355 * sysdeps/unix/sysv/linux/ia64/libc.abilist
356 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
357 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
358 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
359 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
360 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
361 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
364 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
365 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
366 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
367 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
368 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
369 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
370 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
371 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
372 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
373 Add another set of entries for clock_getres, clock_gettime,
374 clock_settime, clock_getcpuclockid, and clock_nanosleep at
375 whatever version GLIBC_2.2 maps to.
376
377 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
378
379 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
380
381 2019-09-03 Florian Weimer <fweimer@redhat.com>
382
383 [BZ #24950]
384 * locale/programs/charmap.h (struct charseq): Turn bytes into a
385 flexible array member.
386 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
387 replace.
388
389 2019-09-02 Florian Weimer <fweimer@redhat.com>
390
391 * misc/tst-mntent-autofs.c: New file.
392 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
393
394 2019-09-02 Ian Kent <ikent@redhat.com>
395
396 Use autofs "ignore" mount hint in getmntent_r/getmntent.
397 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
398 getmntent_r.
399 (__getmntent_r): Call it. Filter out autofs entries with an
400 "ignore" mount option.
401
402 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
403
404 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
405 (generic_memcpy): Include generic C memcpy.
406 * benchtests/bench-memmove.c (simple_memmove): Remove.
407 (generic_memmove): Include generic C memmove.
408 * benchtests/bench-memset.c (simple_memset): Remove.
409 (generic_memset): Include generic C memset.
410 * benchtests/bench-memset-large.c (simple_memset): Remove.
411 (generic_memset): Include generic C memset.
412 * benchtests/bench-memset-walk.c (simple_memset): Remove.
413 (generic_memset): Include generic C memset.
414 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
415 * string/memset.c (MEMSET): Likewise.
416 * sysdeps/x86_64/memcopy.h: Remove empty file.
417
418 2019-08-30 Florian Weimer <fweimer@redhat.com>
419
420 nptl: Move pthread_attr_getinheritsched implementation into libc.
421 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
422 (libpthread-routines): Remove pthread_attr_getinheritsched.
423 * nptl/Versions (libpthread GLIBC_2.0): Remove
424 pthread_attr_getinheritsched.
425 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
426 * nptl/nptl-init.c (pthread_functions): Remove initializer for
427 ptr_pthread_attr_getinheritsched.
428 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
429 Remove ptr_pthread_attr_getinheritsched member.
430 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
431 Remove pthread_attr_getinheritsched.
432 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
433 Likewise.
434 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
435 Likewise.
436 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
437 Likewise.
438 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
439 Likewise.
440 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
441 Likewise.
442 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
443 Likewise.
444 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
445 Likewise.
446 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
447 (GLIBC_2.4): Likewise.
448 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
449 (GLIBC_2.0): Likewise.
450 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
451 (GLIBC_2.18): Likewise.
452 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
453 (GLIBC_2.18): Likewise.
454 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
455 (GLIBC_2.0): Likewise.
456 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
457 (GLIBC_2.0): Likewise.
458 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
459 Likewise.
460 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
461 (GLIBC_2.0): Likewise.
462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
463 (GLIBC_2.3): Likewise.
464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
465 (GLIBC_2.17): Likewise.
466 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
467 (GLIBC_2.27): Likewise.
468 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
469 (GLIBC_2.0): Likewise.
470 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
471 (GLIBC_2.2): Likewise.
472 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
473 Likewise.
474 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
475 Likewise.
476 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
477 (GLIBC_2.0): Likewise.
478 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
479 (GLIBC_2.2): Likewise.
480 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
481 (GLIBC_2.2.5): Likewise.
482 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
483 (GLIBC_2.16): Likewise.
484
485 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
486
487 * sysdeps/mach/hurd/getcwd.c
488 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
489 slash if we got an unknown root directory. (__getcwd): Do not fail with
490 EGRATUITOUS if we got an unknown root directory.
491 * hurd/hurdselect.c (SELECT_ERROR): New macro.
492 (_hurd_select):
493 - Add `error' field to `d' structures array.
494 - If a poll descriptor is bogus, set EBADF, but continue with a zero
495 timeout.
496 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
497 EBADF there is any bit set above _hurd_dtablesize.
498 - Do not request io_select on bogus descriptors (SELECT_ERROR).
499 - On io_select request error, record the error.
500 - On io_select bogus reply, use EIO error code.
501 - On io_select bogus or error reply, record the error.
502 - Do not destroy reply port for bogus FDs.
503 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
504 EBADF case, or else POLLERR.
505 - On error, make select simulated readiness.
506
507 [BZ #19903]
508 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
509 as __vm_allocate.
510
511 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
512 unlocks SS and returns to the saved PC.
513 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
514 thread stack instead of the saved PC.
515
516 2019-08-30 Richard Braun <rbraun@sceen.net>
517
518 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
519 timeout.
520 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
521 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
522 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
523 <limits.h>.
524 (_hurd_select): Replace the call to __io_select with either
525 __io_select_request or __io_select_timeout_request, depending on the
526 timeout. Count the number of ready descriptors (replies for which at
527 least one type bit is set). Implement the timeout locally when there is
528 no file descriptor.
529
530 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
531
532 * elf/dl-addr.c (determine_info): Calculate the symbol index
533 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
534 * elf/dl-lookup.c (do_lookup_x): Ditto.
535 (_dl_setup_hash): Initialize MIPS xhash translation table.
536 * elf/elf.h (SHT_MIPS_XHASH): New define.
537 (DT_MIPS_XHASH): New define.
538 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
539 define.
540 (ELF_MACHINE_HASH_SYMIDX): Ditto.
541 (ELF_MACHINE_XHASH_SETUP): Ditto.
542 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
543 define.
544 (ELF_MACHINE_HASH_SYMIDX): Ditto.
545 (ELF_MACHINE_XHASH_SETUP): Ditto.
546 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
547 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
548 version.
549 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
550
551 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
552
553 * sysdeps/sh/preconfigure.ac: New file.
554 * sysdeps/sh/preconfigure: Regenerate.
555 * sysdeps/sh/be/sh3/Implies: New file.
556 * sysdeps/sh/be/sh4/Implies: Likewise.
557 * sysdeps/sh/le/sh3/Implies: Likewise.
558 * sysdeps/sh/le/sh4/Implies: Likewise.
559 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
560 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
561 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
562 sysdeps/unix/sysv/linux/sh/le/*.abilist.
563 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
564
565 * sysdeps/microblaze/preconfigure.ac: New file.
566 * sysdeps/microblaze/preconfigure: Regenerate.
567 * sysdeps/microblaze/be/implies: New file.
568 * sysdeps/microblaze/le/implies: Likewise.
569 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
570 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
571 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
572 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
573 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
574
575 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
576 * sysdeps/arm/preconfigure: Regenerate.
577 * sysdeps/arm/be/Implies: New file.
578 * sysdeps/arm/be/armv6/Implies: Likewise.
579 * sysdeps/arm/be/armv6t2/Implies: Likewise.
580 * sysdeps/arm/be/armv7/Implies: Likewise.
581 * sysdeps/arm/le/Implies: Likewise.
582 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
583 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
584 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
585 sysdeps/unix/sysv/linux/arm/le/*.abilist.
586 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
587
588 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
589
590 Fix posix/tst-regex by using UTF-8 and own test input
591 Problem reported by Stefan Liebler in:
592 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
593 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
594 (do_test, test_expr): Adjust to the fact that this source file,
595 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
596 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
597 so that it is now UTF-8.
598
599 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
600
601 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
602 (fegetenv_status): Generate 'mffsl' unconditionally.
603
604 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
605
606 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
607 FPSCR read.
608 (_FPU_MASK_ALL): Delete.
609
610 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
611
612 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
613 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
614 if possible.
615 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
616 with simpler required steps, set fewer FPSCR bits if possible.
617
618 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
619
620 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
621 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
622 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
623 weight access to FPSCR; remove unnecessary second FPSCR read and
624 validate.
625 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
626 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
627 access to FPSCR; Use macros in fenv_libc.h in favor of local.
628
629 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
630
631 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
632 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
633 (fenv_exceptions_to_reg): New.
634 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
635 operation with call to fenv_exceptions_to_reg().
636 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
637
638 2019-08-28 Florian Weimer <fweimer@redhat.com>
639
640 * misc/mntent.c (struct mntent_buffer): Define.
641 (mntent_buffer): Adjust type to void *.
642 (allocate): Adjust for allocate_once.
643 (deallocate): New function.
644 (getmntent): Call allocate_once.
645
646 2019-08-28 Florian Weimer <fweimer@redhat.com>
647
648 nptl: Move pthread_attr_setdetachstate implementation into libc.
649 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
650 (libpthread-routines): Remove pthread_attr_setdetachstate.
651 * nptl/Versions (libpthread GLIBC_2.0): Remove
652 pthread_attr_setdetachstate.
653 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
654 * nptl/nptl-init.c (pthread_functions): Remove initializer for
655 ptr_pthread_attr_setdetachstate.
656 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
657 Remove ptr_pthread_attr_setdetachstate member.
658 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
659 Remove pthread_attr_setdetachstate.
660 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
661 Likewise.
662 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
663 Likewise.
664 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
665 Likewise.
666 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
667 Likewise.
668 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
669 Likewise.
670 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
671 Likewise.
672 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
673 (GLIBC_2.4): Likewise.
674 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
675 (GLIBC_2.0): Likewise.
676 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
677 (GLIBC_2.18): Likewise.
678 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
679 (GLIBC_2.0): Likewise.
680 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
681 (GLIBC_2.0): Likewise.
682 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
683 Likewise.
684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
685 (GLIBC_2.0): Likewise.
686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
687 (GLIBC_2.3): Likewise.
688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
689 (GLIBC_2.17): Likewise.
690 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
691 (GLIBC_2.27): Likewise.
692 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
693 (GLIBC_2.0): Likewise.
694 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
695 (GLIBC_2.2): Likewise.
696 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
697 Likewise.
698 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
699 (GLIBC_2.0): Likewise.
700 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
701 (GLIBC_2.2): Likewise.
702 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
703 (GLIBC_2.2.5): Likewise.
704 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
705 (GLIBC_2.16): Likewise.
706
707 2019-08-28 Florian Weimer <fweimer@redhat.com>
708
709 [BZ #24902]
710 * login/Makefile (tests): Add tst-pututxline-lockfail.
711 (tst-pututxline-lockfail): Link with -lpthread.
712 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
713 (__libc_getutid_r): Adjust.
714 (__libc_pututline): Likewise. Check for file_offset == -1.
715 * login/tst-pututxline-lockfail.c: New file.
716
717 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
718
719 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
720 * posix/tst-regex.input: New file.
721
722 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
723
724 [BZ #24916]
725 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
726 tst-undefined-weak.
727 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
728 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
729 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
730 * sysdeps/mips/tst-undefined-weak.c: Likewise.
731 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
732 Increment highest valid ABIVERSION value.
733
734 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
735
736 * sysdeps/unix/sysv/linux/mips/Makefile
737 (test-xfail-check-execstack):
738 Move under mips-has-gnustack != yes.
739 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
740 Apply -Wa,-execstack if mips-force-execstack == yes.
741 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
742 * sysdeps/unix/sysv/linux/mips/configure.ac
743 (mips-force-execstack): New var.
744 Set to yes for hard-float builds with minimum_kernel < 4.8.0
745 or minimum_kernel not set at all.
746 (mips-has-gnustack): New var.
747 Use value of libc_cv_as_noexecstack
748 if mips-force-execstack != yes, otherwise set to no.
749
750 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
751 Florian Weimer <fweimer@redhat.com>
752
753 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
754 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
755 Make a compat_symbol.
756 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
757 (__profil_counter_global): Likewise.
758
759 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
760 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
761 uintptr_t.
762 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
763 sigcontext_get_pc and return aligned cast to uintptr_t.
764 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
765 * sysdeps/posix/profil.c (profil_count): Change PC argument to
766 uintptr_t.
767 (__profil): Use SA_SIGINFO.
768 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
769 uintptr_t.
770 (__sprofil): Use SA_SIGINFO.
771 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
772 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
773 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
774 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
775 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
776 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
777 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
778 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
779 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
780 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
781 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
782 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
783 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
784 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
785 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
786 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
787 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
788 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
789 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
790 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
791 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
792 GET_PC, __sigaction, sigaction): Remove defines.
793 (sigcontext_get_pc): New function.
794 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
795 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
796 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
797 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
798 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
799 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
800 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
801 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
802 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
803 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
804 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
805 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
806 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
807 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
808 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
809 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
810 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
811 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
812 Handle CTX argument as ucontext_t.
813 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
814 Likewise.
815 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
816 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
817 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
818 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
819 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
820 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
821 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
822 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
823 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
824 tst-sigcontextinfo-get_pc.
825 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
826 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
827
828 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
829
830 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
831 definition.
832
833 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
834
835 [BZ #24682]
836 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
837 * localedata/locales/ug_CN (first_weekday): Likewise.
838 * localedata/locales/zh_CN (first_weekday): Likewise.
839
840 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
841
842 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
843 field name in mcontext_t struct.
844
845 2019-08-22 Joseph Myers <joseph@codesourcery.com>
846
847 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
848 unsupported with libidn2 before 2.0.5.
849 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
850
851 * manual/time.texi (strftime): Document %Ob and %OB as C2X
852 features.
853
854 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
855
856 Remove dead regex code
857 * posix/regex_internal.c (re_node_set_insert):
858 Remove unnecessary assignment. Reported by Tim Rühsen in:
859 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
860
861 Fix bad pointer / leak in regex code
862 This was found by Coverity (CID 1484201). [BZ#24844]
863 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
864 pointer and/or memory leak when storage is exhausted.
865
866 2019-08-21 Zack Weinberg <zackw@panix.com>
867
868 * misc/syslog.c (__vsyslog_internal)
869 * time/getdate.c (__getdate_r)
870 * time/tst_wcsftime.c (main):
871 Use return value of time, not its argument.
872
873 * string/strfry.c (strfry)
874 * sysdeps/mach/sleep.c (__sleep):
875 Remove unnecessary casts of NULL in calls to time.
876
877 2019-08-21 Joseph Myers <joseph@codesourcery.com>
878
879 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
880 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
881 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
882 (__TGMATH_2_NARROW_F): Likewise.
883 (__TGMATH_2_NARROW_D): New macro.
884 (__TGMATH_2_NARROW_F16): Likewise.
885 (__TGMATH_2_NARROW_F32): Likewise.
886 (__TGMATH_2_NARROW_F64): Likewise.
887 (__TGMATH_2_NARROW_F32X): Likewise.
888 (__TGMATH_2_NARROW_F64X): Likewise.
889 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
890 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
891 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
892 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
893 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
894 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
895 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
896 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
897 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
898 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
899 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
900 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
901 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
902 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
903 Likewise.
904 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
905 Likewise.
906 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
907 Likewise.
908 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
909 Likewise.
910 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
911 Likewise.
912 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
913 Likewise.
914 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
915 Likewise.
916 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
917 Likewise.
918 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
919 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
920 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
921 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
922 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
923 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
924 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
925 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
926 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
927 Likewise.
928 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
929 Likewise.
930 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
931 Likewise.
932 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
933 Likewise.
934 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
935 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
936 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
937 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
938 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
939 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
940 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
941 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
942 * math/gen-tgmath-tests.py (Type): Add members
943 non_standard_real_argument_types_list, long_double_type,
944 complex_float64_type and float32x_ext_type.
945 (Type.__init__): Set the new members.
946 (Type.floating_type): Add new argument floatn.
947 (Type.real_floating_type): Likewise.
948 (Type.can_combine_types): Likewise.
949 (Type.combine_types): Likewise.
950 (Type.init_types): Create internal Float32x_ext type.
951 (Tests.__init__): Define Float32x_ext in generated C code.
952 (Tests.add_tests): Handle narrowing functions.
953 (Tests.add_all_tests): Likewise.
954 (Tests.tests_text): Allow variation in mant_dig for narrowing
955 functions with compilers before GCC 8.
956 * math/Makefile (tgmath3-narrow-types): New variable.
957 (tgmath3-narrow-macros): Likewise.
958 (tgmath3-macros): Add $(tgmath3-narrow-macros).
959
960 2019-08-20 Andreas Schwab <schwab@suse.de>
961
962 * sysdeps/i386/fpu/libm-test-ulps: Update.
963
964 2019-08-19 Carlos O'Donell <carlos@redhat.com>
965
966 * nscd/nscd.conf: Add warning and comment about shared option.
967
968 2019-08-19 Carlos O'Donell <carlos@redhat.com>
969
970 * nss/nsswitch.conf: Expand comments, and simplify defaults.
971 * manual/nss.texi (NSS Basics): List all known databases.
972 (Services in the NSS configuration): Mention automount.
973
974 2019-08-19 Florian Weimer <fweimer@redhat.com>
975
976 Do not print backtraces on fatal errors.
977 * debug/fortify_fail.c (__libc_argv): Remove declaration.
978 (__fortify_fail_abort): Remove definition.
979 (__fortify_fail): Call __libc_message directly.
980 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
981 (__stack_chk_fail): Call __fortify_fail instead of
982 __fortify_fail_abort.
983 * include/stdio.h (__fortify_fail_abort): Remove declaration.
984 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
985 definitions.
986 (__libc_message): Do not handle do_backtrace. Do not call
987 BEFORE_ABORT.
988 (__libc_fatal): Do not pass do_backtrace to __libc_message.
989 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
990 (before_abort): Remove definitions.
991
992 2019-08-16 Florian Weimer <fweimer@redhat.com>
993
994 nptl: Move pthread_attr_getdetachstate implementation into libc.
995 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
996 (libpthread-routines): Remove pthread_attr_getdetachstate.
997 * nptl/Versions (libpthread GLIBC_2.0): Remove
998 pthread_attr_getdetachstate.
999 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
1000 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1001 ptr_pthread_attr_getdetachstate.
1002 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1003 Remove ptr_pthread_attr_getdetachstate member.
1004 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1005 Remove pthread_attr_getdetachstate.
1006 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1007 Likewise.
1008 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1009 Likewise.
1010 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1011 Likewise.
1012 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1013 Likewise.
1014 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1015 Likewise.
1016 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1017 Likewise.
1018 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1019 (GLIBC_2.4): Likewise.
1020 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1021 (GLIBC_2.0): Likewise.
1022 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1023 (GLIBC_2.18): Likewise.
1024 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1025 (GLIBC_2.0): Likewise.
1026 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1027 (GLIBC_2.0): Likewise.
1028 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1029 Likewise.
1030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1031 (GLIBC_2.0): Likewise.
1032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1033 (GLIBC_2.3): Likewise.
1034 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1035 (GLIBC_2.17): Likewise.
1036 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1037 (GLIBC_2.27): Likewise.
1038 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1039 (GLIBC_2.0): Likewise.
1040 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1041 (GLIBC_2.2): Likewise.
1042 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1043 Likewise.
1044 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1045 (GLIBC_2.0): Likewise.
1046 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1047 (GLIBC_2.2): Likewise.
1048 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1049 (GLIBC_2.2.5): Likewise.
1050 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1051 (GLIBC_2.16): Likewise.
1052
1053 2019-08-16 Joseph Myers <joseph@codesourcery.com>
1054
1055 * math/libm-test-compat_totalorder.inc (do_test)
1056 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1057 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1058 * math/libm-test-compat_totalordermag.inc (do_test)
1059 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1060
1061 2019-08-15 Florian Weimer <fweimer@redhat.com>
1062
1063 nptl: Move pthread_attr_init implementation into libc.
1064 * nptl/Makefile (routines): Add pthread_attr_init.
1065 (libpthread-routines): Remove pthread_attr_init.
1066 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1067 (libpthread GLIBC_2.0): Likewise.
1068 * nptl/pthread_attr_init.c: Check for libc compat version instead
1069 of libpthread compat version.
1070 * nptl/forward.c (__pthread_attr_init_2_0)
1071 (__pthread_attr_init_2_1): Remove definitions.
1072 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1073 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1074 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1075 Remove members ptr___pthread_attr_init_2_0,
1076 ptr___pthread_attr_init_2_1.
1077 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1078 Remove pthread_attr_init.
1079 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1080 Likewise.
1081 (GLIBC_2.1): Likewise.
1082 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1083 Likewise.
1084 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1085 Likewise.
1086 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1087 Likewise.
1088 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1089 Likewise.
1090 (GLIBC_2.1): Likewise.
1091 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1092 Likewise.
1093 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1094 (GLIBC_2.4): Likewise.
1095 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1096 (GLIBC_2.0): Likewise.
1097 (GLIBC_2.1): Likewise.
1098 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1099 (GLIBC_2.18): Likewise.
1100 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1101 (GLIBC_2.0): Likewise.
1102 (GLIBC_2.1): Likewise.
1103 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1104 (GLIBC_2.0): Likewise.
1105 (GLIBC_2.1): Likewise.
1106 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1107 Likewise.
1108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1109 (GLIBC_2.0): Likewise.
1110 (GLIBC_2.1): Likewise.
1111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1112 (GLIBC_2.3): Likewise.
1113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1114 (GLIBC_2.17): Likewise.
1115 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1116 (GLIBC_2.27): Likewise.
1117 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1118 (GLIBC_2.0): Likewise.
1119 (GLIBC_2.1): Likewise.
1120 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1121 (GLIBC_2.2): Likewise.
1122 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1123 Likewise.
1124 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1125 (GLIBC_2.0): Likewise.
1126 (GLIBC_2.1): Likewise.
1127 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1128 (GLIBC_2.2): Likewise.
1129 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1130 (GLIBC_2.2.5): Likewise.
1131 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1132 (GLIBC_2.16): Likewise.
1133
1134 2019-08-15 Florian Weimer <fweimer@redhat.com>
1135
1136 [BZ #24900]
1137 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1138 new object in __RTLD_OPENEXEC mode (except for the origin).
1139 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1140 check for the error message.
1141 (do_test): Call it. Add check using relative path.
1142 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1143 (tst-dlopen-aout-container): Link with libpthread.
1144 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1145
1146 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1147
1148 * math/bits/mathcalls.h
1149 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1150 (totalorder): Take pointer arguments.
1151 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1152 (totalordermag): Likewise.
1153 * manual/arith.texi (totalorder): Likewise.
1154 (totalorderf): Likewise.
1155 (totalorderl): Likewise.
1156 (totalorderfN): Likewise.
1157 (totalorderfNx): Likewise.
1158 (totalordermag): Likewise.
1159 (totalordermagf): Likewise.
1160 (totalordermagl): Likewise.
1161 (totalordermagfN): Likewise.
1162 (totalordermagfNx): Likewise.
1163 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1164 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1165 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1166 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1167 totalorderl, totalordermag, totalordermagf, totalordermagl,
1168 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1169 totalordermagf64, totalordermagf32x, totalorderf64x,
1170 totalordermagf64x, totalorderf128 and totalordermagf128.
1171 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1172 and compat_totalordermag.
1173 (libm-test-funcs-compat): New variable.
1174 (libm-tests-compat): Likewise.
1175 (tests): Do not include compat tests.
1176 (tests-internal): Add compat tests.
1177 ($(foreach t,$(libm-tests-base),
1178 $(objpfx)$(t)-compat_totalorder.o)): Depend
1179 on $(objpfx)libm-test-totalorder.c.
1180 ($(foreach t,$(libm-tests-base),
1181 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1182 $(objpfx)libm-test-totalordermag.c.
1183 (tgmath3-macros): Remove totalorder and totalordermag.
1184 * math/libm-test-compat_totalorder.inc: New file.
1185 * math/libm-test-compat_totalordermag.inc: Likewise.
1186 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1187 (RUN_TEST_fpfp_b): New macro.
1188 (RUN_TEST_LOOP_fpfp_b): Likewise.
1189 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1190 TEST_fpfp_b.
1191 (totalorder_test): Condition on [!COMPAT_TEST].
1192 (do_test): Likewise.
1193 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1194 TEST_fpfp_b.
1195 (totalordermag_test): Condition on [!COMPAT_TEST].
1196 (do_test): Likewise.
1197 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1198 totalorder and totalordermag.
1199 * math/test-tgmath.c (NCALLS): Change to 132.
1200 (F(compile_test)): Do not call totalorder or totalordermag.
1201 (F(totalorder)): Remove.
1202 (F(totalordermag)): Likewise.
1203 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1204 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1205 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1206 SJSTR_HELPER.
1207 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1208 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1209 [!_ISOMAC] (TEST_ALIGN): Likewise.
1210 [!_ISOMAC] (TEST_OFFSET): Likewise.
1211 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1212 and <first-versions.h>.
1213 (__totalorder): Take pointer arguments. Add symbol versions and
1214 compat symbols.
1215 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1216 <shlib-compat.h> and <first-versions.h>.
1217 (__totalordermag): Take pointer arguments. Add symbol versions
1218 and compat symbols.
1219 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1220 <shlib-compat.h> and <first-versions.h>.
1221 (__totalorder): Take pointer arguments. Add symbol versions and
1222 compat symbols.
1223 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1224 <shlib-compat.h> and <first-versions.h>.
1225 (__totalordermag): Take pointer arguments. Add symbol versions
1226 and compat symbols.
1227 * sysdeps/ieee754/float128/float128_private.h
1228 (__totalorder_compatl): New macro.
1229 (__totalordermag_compatl): Likewise.
1230 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1231 and <first-versions.h>.
1232 (__totalorderf): Take pointer arguments. Add symbol versions and
1233 compat symbols.
1234 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1235 <shlib-compat.h> and <first-versions.h>.
1236 (__totalordermagf): Take pointer arguments. Add symbol versions
1237 and compat symbols.
1238 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1239 <shlib-compat.h> and <first-versions.h>.
1240 (__totalorderl): Take pointer arguments. Add symbol versions and
1241 compat symbols.
1242 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1243 <shlib-compat.h> and <first-versions.h>.
1244 (__totalordermagl): Take pointer arguments. Add symbol versions
1245 and compat symbols.
1246 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1247 <shlib-compat.h>.
1248 (__totalorderl): Take pointer arguments. Add symbol versions and
1249 compat symbols.
1250 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1251 <shlib-compat.h>.
1252 (__totalordermagl): Take pointer arguments. Add symbol versions
1253 and compat symbols.
1254 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1255 <shlib-compat.h> and <first-versions.h>.
1256 (__totalorderl): Take pointer arguments. Add symbol versions and
1257 compat symbols.
1258 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1259 <shlib-compat.h> and <first-versions.h>.
1260 (__totalordermagl): Take pointer arguments. Add symbol versions
1261 and compat symbols.
1262 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1263 pointer arguments.
1264 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1265 Likewise.
1266 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1267 (do_test): Update calls to totalorderl and totalordermagl.
1268 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1269 Update calls to totalorderl and totalordermagl.
1270 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1271 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1272 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1273 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1274 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1275 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1276 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1277 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1278 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1279 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1280 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1281 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1282 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1283 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1284 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1285 Likewise.
1286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1287 Likewise.
1288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1289 Likewise.
1290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1291 Likewise.
1292 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1293 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1294 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1295 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1296 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1297 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1298 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1299 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1300
1301 2019-08-15 Florian Weimer <fweimer@redhat.com>
1302
1303 [BZ #24899]
1304 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1305 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1306 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1307 Likewise.
1308 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1309 __attribute_nonstring__ to ut_id.
1310 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1311 Likewise.
1312
1313 2019-08-15 Florian Weimer <fweimer@redhat.com>
1314
1315 [BZ #24880]
1316 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1317 (file_locking_unlock): Likewise.
1318
1319 2019-08-15 Florian Weimer <fweimer@redhat.com>
1320
1321 [BZ #24879]
1322 login: Disarm timer after utmp lock acquisition.
1323 * login/utmp_file.c (struct file_locking): Remove.
1324 (try_file_lock): Adjust.
1325 (file_lock_restore): Remove function.
1326 (__libc_getutent_r): .
1327 (internal_getut_r): Likewise.
1328 (__libc_getutline_r): Likewise.
1329 (__libc_pututline): Likewise.
1330 (__libc_updwtmp): Likewise.
1331
1332 2019-08-15 Florian Weimer <fweimer@redhat.com>
1333
1334 nptl: Remove pthread_self compatibility symbol from libpthread.
1335 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1336 pthread_equal.
1337 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1338 * nptl/compat-pthread_self.c: Remove file.
1339 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1340 Remove pthread_self.
1341 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1342 Likewise.
1343 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1344 Likewise.
1345 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1346 Likewise.
1347 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1348 Likewise.
1349 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1350 Likewise.
1351 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1352 (GLIBC_2.4): Likewise.
1353 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1354 (GLIBC_2.0): Likewise.
1355 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1356 (GLIBC_2.18): Likewise.
1357 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1358 (GLIBC_2.0): Likewise.
1359 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1360 (GLIBC_2.0): Likewise.
1361 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1362 Likewise.
1363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1364 (GLIBC_2.0): Likewise.
1365 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1366 (GLIBC_2.3): Likewise.
1367 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1368 (GLIBC_2.17): Likewise.
1369 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1370 (GLIBC_2.0): Likewise.
1371 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1372 (GLIBC_2.2): Likewise.
1373 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1374 Likewise.
1375 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1376 (GLIBC_2.0): Likewise.
1377 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1378 (GLIBC_2.2): Likewise.
1379 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1380 (GLIBC_2.2.5): Likewise.
1381 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1382 (GLIBC_2.16): Likewise.
1383
1384 2019-08-15 Florian Weimer <fweimer@redhat.com>
1385
1386 nptl: Move pthread_attr_destroy implementation into libc.
1387 * nptl/Makefile (routines): Add pthread_attr_destroy.
1388 (libpthread-routines): Remove pthread_attr_destroy.
1389 * nptl/Versions (libpthread GLIBC_2.0): Remove
1390 pthread_attr_destroy.
1391 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1392 libc compat version instead of libpthread compat version.
1393 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1394 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1395 ptr_pthread_attr_destroy.
1396 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1397 Remove ptr_pthread_attr_destroy member.
1398 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1399 Remove pthread_attr_destroy.
1400 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1401 Likewise.
1402 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1403 Likewise.
1404 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1405 Likewise.
1406 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1407 Likewise.
1408 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1409 Likewise.
1410 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1411 Likewise.
1412 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1413 (GLIBC_2.4): Likewise.
1414 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1415 (GLIBC_2.0): Likewise.
1416 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1417 (GLIBC_2.18): Likewise.
1418 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1419 (GLIBC_2.0): Likewise.
1420 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1421 (GLIBC_2.0): Likewise.
1422 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1423 Likewise.
1424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1425 (GLIBC_2.0): Likewise.
1426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1427 (GLIBC_2.3): Likewise.
1428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1429 (GLIBC_2.17): Likewise.
1430 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1431 (GLIBC_2.27): Likewise.
1432 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1433 (GLIBC_2.0): Likewise.
1434 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1435 (GLIBC_2.2): Likewise.
1436 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1437 Likewise.
1438 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1439 (GLIBC_2.0): Likewise.
1440 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1441 (GLIBC_2.2): Likewise.
1442 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1443 (GLIBC_2.2.5): Likewise.
1444 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1445 (GLIBC_2.16): Likewise.
1446
1447 2019-08-15 Andreas Schwab <schwab@suse.de>
1448
1449 * sysdeps/i386/fpu/libm-test-ulps: Update.
1450
1451 2019-08-15 Florian Weimer <fweimer@redhat.com>
1452
1453 * malloc/Makefile (tests): Only add tst-mxfast for
1454 $(have-tunables).
1455 * malloc/tst-mxfast.c: Fix copyright year.
1456 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1457 assert for checks.
1458
1459 2019-08-15 Florian Weimer <fweimer@redhat.com>
1460
1461 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1462 descriptor.
1463 * login/Makefile (tests): Add tst-updwtmpx.
1464 * login/tst-updwtmpx.c: New file.
1465
1466 2019-08-15 Florian Weimer <fweimer@redhat.com>
1467
1468 nptl: Move pthread_equal implementation into libc.
1469 * nptl/Makefile (routines): Add pthread_equal.
1470 * nptl/forward.c (pthread_equal): Remove definition.
1471 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1472 ptr_pthread_equal.
1473 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1474 Remove ptr_pthread_equal member.
1475 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1476 Remove pthread_equal.
1477 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1478 Likewise.
1479 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1480 Likewise.
1481 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1482 Likewise.
1483 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1484 Likewise.
1485 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1486 Likewise.
1487 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1488 Likewise.
1489 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1490 (GLIBC_2.4): Likewise.
1491 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1492 (GLIBC_2.0): Likewise.
1493 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1494 (GLIBC_2.18): Likewise.
1495 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1496 (GLIBC_2.0): Likewise.
1497 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1498 (GLIBC_2.0): Likewise.
1499 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1500 Likewise.
1501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1502 (GLIBC_2.0): Likewise.
1503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1504 (GLIBC_2.3): Likewise.
1505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1506 (GLIBC_2.17): Likewise.
1507 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1508 (GLIBC_2.27): Likewise.
1509 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1510 (GLIBC_2.0): Likewise.
1511 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1512 (GLIBC_2.2): Likewise.
1513 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1514 Likewise.
1515 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1516 (GLIBC_2.0): Likewise.
1517 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1518 (GLIBC_2.2): Likewise.
1519 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1520 (GLIBC_2.2.5): Likewise.
1521 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1522 (GLIBC_2.16): Likewise.
1523
1524 2019-08-14 Florian Weimer <fweimer@redhat.com>
1525
1526 * support/support_descriptors.c: Include <support/descriptors.h>.
1527
1528 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1529
1530 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1531 Disable DC ZVA code if this macro is defined as zero.
1532 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1533 Change to zero to disable using DC ZVA.
1534
1535 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1536
1537 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1538 Update comment.
1539 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1540 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1541 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1542 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1543 Likewise.
1544
1545 2019-08-13 Florian Weimer <fweimer@redhat.com>
1546
1547 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1548 Remove macros.
1549 (struct file_locking): New.
1550 (try_file_lock, file_unlock, file_lock_restore): New functions.
1551 (__libc_getutent_r): Use the new functions.
1552 (internal_getut_r): Likewise.
1553 (__libc_getutline_r): Likewise.
1554 (__libc_pututline): Likewise.
1555 (__libc_updwtmp): Likewise.
1556
1557 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1558
1559 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1560 comment.
1561 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1562 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1563 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1564 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1565 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1566 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1567 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1568 Likewise.
1569 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1570 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1571 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1572 Likewise.
1573 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1574 Likewise.
1575 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1576 Likewise.
1577 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1578 Likewise.
1579 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1580 Likewise.
1581 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1582 Likewise.
1583 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1584 Likewise.
1585 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1586 (IEC_60559_BFP_EXT)]: Likewise.
1587 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1588 Likewise.
1589 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1590 Likewise.
1591 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1592 Likewise.
1593 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1594 Likewise.
1595 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1596 Likewise.
1597 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1598 Likewise.
1599 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1600 Likewise.
1601 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1602 Likewise.
1603 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1604 Likewise, except for totalorder, totalordermag, getpayload,
1605 setpayload and setpayloadsig.
1606 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1607 except for totalorder and totalordermag.
1608
1609 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1610 (strdup): Likewise.
1611 (strndup): Likewise.
1612
1613 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1614 Undefine and define to 1 if [_GNU_SOURCE].
1615 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1616 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1617 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1618 (__USE_ISOC99): Likewise.
1619 (__USE_ISOC95): Likewise.
1620 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1621
1622 2019-08-13 Florian Weimer <fweimer@redhat.com>
1623
1624 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1625 are always true.
1626 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1627 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1628 * login/getutmpx.c (getutmpx): Likewise.
1629 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1630 true.
1631 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1632 _HAVE_UT_TV are always true.
1633 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1634 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1635 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1636 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1637 are always true.
1638 (internal_getut_r): _HAVE_UT_TYPE is always true.
1639 (__libc_pututline): Likewise.
1640 * login/programs/utmpdump.c (print_entry): Assume that
1641 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1642 _HAVE_UT_TV are always true.
1643 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1644 _HAVE_UT_ID are always true.
1645 * sysdeps/gnu/bits/utmp.h: Move to ...
1646 * bits/utmp.h: ... here, replacing the old file.
1647
1648 2019-08-12 Florian Weimer <fweimer@redhat.com>
1649
1650 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1651 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1652 not set.
1653 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1654 (do_test): Open the executable using an absolute path. Print
1655 error message to standard output.
1656
1657 2019-08-09 DJ Delorie <dj@redhat.com>
1658
1659 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1660 * manual/tunables.texi: Document it.
1661 * malloc/malloc.c (do_set_mxfast): New.
1662 (__libc_mallopt): Call it.
1663 * malloc/arena.c: Add mxfast tunable.
1664 * malloc/tst-mxfast.c: New.
1665 * malloc/Makefile: Add it.
1666
1667 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1668 Carlos O'Donell <carlos@redhat.com>
1669
1670 [BZ #24026]
1671 * malloc/malloc.c (__malloc_info): Account for top chunk.
1672
1673 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1674
1675 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1676 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1677
1678 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1679
1680 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1681
1682 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1683
1684 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1685
1686 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1687
1688 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1689 New macro.
1690
1691 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1692
1693 [BZ #19767]
1694 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1695 Remove definition.
1696 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1697 Likewise.
1698 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1699 Likewise.
1700 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1701 Likewise.
1702 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1703 (ALWAYS_USE_VSYSCALL): Likewise.
1704 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1705 (ALWAYS_USE_VSYSCALL): Likewise.
1706 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1707 (ALWAYS_USE_VSYSCALL): Likewise.
1708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1709 (ALWAYS_USE_VSYSCALL): Likewise.
1710 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1711 Likewise.
1712 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1713 (ALWAYS_USE_VSYSCALL): Likewise.
1714 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1715 (ALWAYS_USE_VSYSCALL): Likewise.
1716 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1717 Likewise.
1718 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1719 Likewise.
1720 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1721 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1722 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1723 USE_VSYSCALL): Remove defitions.
1724
1725 [BZ #19767]
1726 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1727 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1728 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1729 Define.
1730
1731 [BZ #19767]
1732 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1733 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1734 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1735 (ALWAYS_USE_VSYSCALL): Define.
1736 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1737 (ALWAYS_USE_VSYSCALL): Likewise.
1738
1739 [BZ #19767]
1740 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1741 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1742 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1743 Define.
1744
1745 * sysdeps/sh/libm-test-ulps: Update.
1746
1747 2019-08-05 Florian Weimer <fweimer@redhat.com>
1748
1749 [BZ #23518]
1750 * login/uptmp-private.h (struct ufuncs): Remove definition.
1751 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1752 (__libc_utmp_jump_table): Remove declarations.
1753 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1754 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1755 (__libc_updwtmp): Declare.
1756 * login/getutent_r.c (__libc_utmp_unknown_functions)
1757 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1758 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1759 (endutent_unknown): Remove definitions.
1760 (__setutent): Call __libc_setutent.
1761 (__getutent_r): Call __libc_getutent_r.
1762 (__pututline): Call __libc_pututline.
1763 (__endutent): Call __libc_endutent.
1764 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1765 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1766 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1767 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1768 (__libc_setutent): Rename from stetutent_file. Drop static.
1769 (maybe_setutent): New function.
1770 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1771 Check for initialization.
1772 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1773 Check for initialization.
1774 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1775 Check for initialization.
1776 (__libc_pututline): Rename from pututline_file. Drop static.
1777 Check for initialization.
1778 (__libc_endutent): Rename from endutent_file. Drop static. Check
1779 for initialization.
1780 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1781 * login/utmpname.c (__utmpname): Call __libc_endutent.
1782 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1783 __libc_getutlien_r, __libc_endutent.
1784 * manual/users.texi (Who Logged In, Manipulating the Database):
1785 Adjust.
1786
1787 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1788
1789 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1790
1791 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1792
1793 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1794
1795 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1796 kernel version number to 5.2.
1797
1798 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1799
1800 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1801 mnemonics and set .machine power8.
1802 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1803 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1804 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1805 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1806 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1807 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1808 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1809 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1810 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1811 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1812
1813 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1814
1815 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1816
1817 2019-08-01 Florian Weimer <fweimer@redhat.com>
1818
1819 [BZ #24867]
1820 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1821 whitespace.
1822
1823 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1824
1825 [BZ #15813]
1826 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1827 attempt.
1828
1829 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1830
1831 * version.h (RELEASE): Set to "stable".
1832 (VERSION): Set to "2.30".
1833 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1834
1835 * manual/install.texi: Update component versions.
1836 * INSTALL: Regenerate.
1837 * NEWS: Update.
1838
1839 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1840
1841 * po/be.po: Update translations.
1842 * po/bg.po: Likewise.
1843 * po/ca.po: Likewise.
1844 * po/cs.po: Likewise.
1845 * po/da.po: Likewise.
1846 * po/de.po: Likewise.
1847 * po/el.po: Likewise.
1848 * po/eo.po: Likewise.
1849 * po/es.po: Likewise.
1850 * po/fi.po: Likewise.
1851 * po/fr.po: Likewise.
1852 * po/gl.po: Likewise.
1853 * po/hr.po: Likewise.
1854 * po/hu.po: Likewise.
1855 * po/ia.po: Likewise.
1856 * po/id.po: Likewise.
1857 * po/it.po: Likewise.
1858 * po/ja.po: Likewise.
1859 * po/ko.po: Likewise.
1860 * po/lt.po: Likewise.
1861 * po/nb.po: Likewise.
1862 * po/nl.po: Likewise.
1863 * po/pl.po: Likewise.
1864 * po/pt_BR.po: Likewise.
1865 * po/ru.po: Likewise.
1866 * po/rw.po: Likewise.
1867 * po/sk.po: Likewise.
1868 * po/sl.po: Likewise.
1869 * po/sv.po: Likewise.
1870 * po/tr.po: Likewise.
1871 * po/uk.po: Likewise.
1872 * po/vi.po: Likewise.
1873 * po/zh_CN.po: Likewise.
1874 * po/zh_TW.po: Likewise.
1875
1876 2019-07-31 Florian Weimer <fweimer@redhat.com>
1877
1878 [BZ #24583]
1879 [BZ #24677]
1880 iconv, libio: Revert reference counting changes.
1881 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1882 free the steps array.
1883 * libio/Makefile (tests): Remove tst-wfile-gconv.
1884 (tests-container): Do not add tst-wfile-ascii.
1885 (tst-wfile-gconv-ENV): Do not set.
1886 (generated): Do not add tst-wfile-gconv.mtrace,
1887 tst-wfile-gconv.check.
1888 [($run-built-tests)] (tests-special): Do not add
1889 tst-wfile-gconv-mem.out.
1890 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1891 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1892 instead of __wcsmbs_clone_conv.
1893 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1894 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1895
1896 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1897
1898 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1899 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1900
1901 2019-07-30 Florian Weimer <fweimer@redhat.com>
1902
1903 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1904 type to uintptr_t. Update comment.
1905 (check_stack_top): Adjust.
1906
1907 2019-07-29 Florian Weimer <fweimer@redhat.com>
1908
1909 Linux: Move declaration of getdents64 to <dirent.h>.
1910 * bits/dirent_ext.h: New file.
1911 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1912 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1913 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1914 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1915 declaration.
1916 * manual/filesys.texi (Low-level Directory Access): Update header
1917 to dirent.h.
1918
1919 2019-07-29 DJ Delorie <dj@redhat.com>
1920 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1921
1922 [BZ #24794]
1923 * Makeconfig (all-subdirs): Improved source comments.
1924 * Makefile (testroot.pristine/install.stamp): Pass
1925 subdirs='$(sorted-subdirs)' to make install.
1926
1927 2019-07-25 Florian Weimer <fweimer@redhat.com>
1928
1929 [BZ #24677]
1930 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1931 counter before freeing array.
1932
1933 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1934
1935 [BZ #24603]
1936 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1937 works.
1938 * sysdeps/x86_64/configure: Regenerated.
1939 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1940 to -mprefer-vector-width=128 if supported.
1941
1942 2019-07-24 Florian Weimer <fweimer@redhat.com>
1943
1944 * scripts/build-many-glibcs.py (Context.checkout): Default to
1945 Linux 5.2.
1946
1947 2019-07-24 Florian Weimer <fweimer@redhat.com>
1948
1949 [BZ #24532]
1950 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1951 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1952 (sysdep_headers): Add bits/socket-constants.h.
1953 (tests-special): Add tst-socket-consts.out.
1954 (tst-socket-consts.out): New target.
1955 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1956 around <asm/unistd.h>.
1957 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1958 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1959 <asm/socket.h>.
1960 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1961 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1962 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1963 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1964 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1965 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1966 Likewise.
1967 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1968
1969 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1970
1971 [BZ #24794]
1972 * Makefile (testroot.pristine/install.stamp): Pass
1973 subdirs='$(all-subdirs)' to make install.
1974
1975 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1976 the same arguments used in all tests.
1977
1978 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1979
1980 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1981
1982 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1983
1984 [BZ #2872]
1985 * locale/C-translit.h.in: Add Cyrillic transliteration.
1986
1987 2019-07-19 Florian Weimer <fweimer@redhat.com>
1988
1989 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1990 from Linux 5.2.
1991 (fsconfig): Add system call name.
1992 (fsmount): Likewise.
1993 (fsopen): Likewise.
1994 (fspick): Likewise.
1995 (move_mount): Likewise.
1996 (open_tree): Likewise.
1997
1998 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1999
2000 * po/libc.pot: Regenerate.
2001
2002 2019-07-18 Mike Crowe <mac@mcrowe.com>
2003
2004 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
2005 functions recently added to sysdeps/nptl/pthread.h:
2006 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
2007 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
2008
2009 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
2010 pthread_cond_clockwait forwarding functions. There are no internal
2011 users, so it is unnecessary to expose these functions in libc.so.
2012 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2013 unnecessary ptr___pthread_cond_clockwait member.
2014 * nptl/nptl-init.c (pthread_functions): Remove assignment of
2015 removed member.
2016
2017 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2018
2019 [BZ #21897]
2020 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
2021 begin with an uppercase letter now.
2022 (abmon): Likewise.
2023 (mon): Update from CLDR, reword February from "Kudo" to
2024 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
2025 and August from "Liiqen" to "Leqeeni".
2026 * localedata/locales/aa_ER (mon): Update from CLDR, reword
2027 April from "Agda Baxisso" to "Agda Baxis" and August from
2028 "Leqeeni" to "Liiqen".
2029 * localedata/locales/aa_ER@saaho (mon): Likewise.
2030 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
2031 abbreviated February from "Kud" to "Nah".
2032 (mon): Update from CLDR, reword February from "Kudo" to
2033 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
2034
2035 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2036
2037 [BZ #23996]
2038 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
2039
2040 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
2041
2042 [BZ #23996]
2043 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
2044 name_mrs, name_miss, and name_ms.
2045 * localedata/locales/nl_NL (LC_NAME): Likewise.
2046
2047 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
2048
2049 [BZ #24200]
2050 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2051 * localedata/locales/en_IE (first_weekday): Likewise.
2052
2053 2019-07-12 Mike Crowe <mac@mcrowe.com>
2054
2055 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2056 that is only useful if futex_supports_exact_relative_timeouts ()
2057 returns false.
2058 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2059 Likewise.
2060 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2061 timeouts potentially being imprecise since it's no longer true.
2062 Remove declaration of futex_supports_exact_relative_timeouts.
2063 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2064 of futex_supports_exact_relative_timeouts.
2065
2066 * NEWS: Mention recently-added pthread_cond_clockwait,
2067 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2068 sem_clockwait functions.
2069
2070 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2071 works like pthread_mutex_timedlock but takes a clockid parameter to
2072 measure the abstime parameter against.
2073 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2074 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2075 * nptl/pthread_mutex_timedlock.c
2076 (__pthread_mutex_clocklock_common): Rename from
2077 __pthread_mutex_timedlock and add clockid parameter. Pass this
2078 parameter to lll_clocklock and lll_clocklock_elision in place of
2079 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2080 LIBC_PROBE and validate clockid parameter before calling
2081 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2082 implementation to add LIBC_PROBE and calls
2083 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2084 clockid.
2085 * nptl/Makefile: Add tst-mutex11.c.
2086 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2087 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2088 clockid parameters to pthread_mutex_clocklock.
2089 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2090 clockid parameter to indicate which clock to be used. Call
2091 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2092 (do_test): Call do_test_clock to separately test
2093 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2094 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2095 * nptl/tst-mutex9.c: Likewise.
2096 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2097 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2098 Likewise.
2099 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2100 Likewise.
2101 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2102 Likewise.
2103 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2104 Likewise.
2105 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2106 Likewise.
2107 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2108 Likewise.
2109 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2110 Likewise.
2111 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2112 (GLIBC_2.30): Likewise.
2113 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2114 (GLIBC_2.30): Likewise.
2115 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2116 (GLIBC_2.30): Likewise.
2117 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2118 (GLIBC_2.30): Likewise.
2119 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2120 (GLIBC_2.30): Likewise.
2121 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2122 Likewise.
2123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2124 (GLIBC_2.30): Likewise.
2125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2126 (GLIBC_2.30): Likewise.
2127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2128 (GLIBC_2.30): Likewise.
2129 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2130 (GLIBC_2.30): Likewise.
2131 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2132 (GLIBC_2.30): Likewise.
2133 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2134 (GLIBC_2.30): Likewise.
2135 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2136 Likewise.
2137 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2138 (GLIBC_2.30): Likewise.
2139 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2140 (GLIBC_2.30): Likewise.
2141 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2142 (GLIBC_2.30): Likewise.
2143 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2144 (GLIBC_2.30): Likewise.
2145
2146 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2147 parameter to indicate the clock that the abstime parameter should
2148 be measured against in preparation for adding
2149 pthread_mutex_clocklock.
2150 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2151 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2152 from __lll_timedlock and add clockid parameter.
2153 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2154 Likewise.
2155 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2156 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2157 rather than __gettimeofday so that clockid can be used. This means
2158 that conversion from struct timeval is no longer required.
2159 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2160 Likewise.
2161 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2162 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2163 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2164 from lll_timedlock_elision, add clockid parameter and use
2165 meaningful names for other parameters. (__pthread_mutex_timedlock):
2166 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2167 lll_clocklock_elision.
2168 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2169 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2170 clockid parameter. (__lll_clocklock_elision): Rename from
2171 __lll_timedlock_elision and add clockid parameter.
2172 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2173 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2174 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2175 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2176 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2177 (LLL_LOCK): Likewise.
2178 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2179 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2180
2181 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2182 pthread_rwlock_clockwrlock which behave like
2183 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2184 respectively, except they always measure abstime against the
2185 supplied clockid. The functions currently support CLOCK_REALTIME
2186 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2187 specified.
2188 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2189 pthread_wrlock_clockwrlock.
2190 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2191 pthread_rwlock_clockwrlock.c.
2192 * nptl/pthread_rwlock_clockrdlock.c: Implement
2193 pthread_rwlock_clockrdlock.
2194 * nptl/pthread_rwlock_clockwrlock.c: Implement
2195 pthread_rwlock_clockwrlock.
2196 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2197 clockid parameter and verify that it indicates a supported clock on
2198 entry so that we fail even if it doesn't end up being used. Pass
2199 that clock on to futex_abstimed_wait when necessary.
2200 (__pthread_rwlock_wrlock_full): Likewise.
2201 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2202 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2203 be used because there's no timeout.
2204 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2205 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2206 be used because there is no timeout.
2207 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2208 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2209 uses that clock.
2210 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2211 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2212 uses that clock.
2213 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2214 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2215 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2216 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2217 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2218 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2219 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2220 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2221 (GLIBC_2.30): Likewise.
2222 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2223 (GLIBC_2.30): Likewise.
2224 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2225 (GLIBC_2.30): Likewise.
2226 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2227 (GLIBC_2.30): Likewise.
2228 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2229 (GLIBC_2.30): Likewise.
2230 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2232 (GLIBC_2.30): Likewise.
2233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2234 (GLIBC_2.30): Likewise.
2235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2236 (GLIBC_2.30): Likewise.
2237 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2238 (GLIBC_2.30): Likewise.
2239 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2240 (GLIBC_2.30): Likewise.
2241 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2242 (GLIBC_2.30): Likewise.
2243 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2244 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2245 (GLIBC_2.30): Likewise.
2246 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2247 (GLIBC_2.30): Likewise.
2248 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2249 (GLIBC_2.30): Likewise.
2250 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2251 (GLIBC_2.30): Likewise.
2252 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2253 pthread_rwlock_clockwrlock timeout tests to match the existing
2254 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2255 * nptl/tst-rwlock14.c (do_test): Likewise.
2256 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2257 ancillary output throughout. (tf): Accept thread_args structure so
2258 that rwlock, a clockid and function name can be passed to the
2259 thread. (do_test_clock): Rename from do_test. Accept clockid
2260 parameter to specify test clock. Use the magic clockid value of
2261 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2262 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2263 specified clockid to pthread_rwlock_clockrdlock and
2264 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2265 (do_test): Call do_test_clock to test each clockid in turn.
2266 * nptl/tst-rwlock7.c: Likewise.
2267 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2268 thread_args structure so that the (now int) thread number, the
2269 clockid and the function name can be passed to the thread.
2270 (do_test_clock): Renamed from do_test. Pass the necessary
2271 thread_args when creating the reader and writer threads. Use
2272 xpthread_create and xpthread_join.
2273 (do_test): Call do_test_clock to test each clockid in turn.
2274 * manual/threads.texi: Add documentation for
2275 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2276
2277 nptl: pthread_rwlock: Move timeout validation into _full functions
2278 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2279 Check validity of abstime parameter.
2280 (__pthread_rwlock_rwlock_full): Likewise.
2281 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2282 Remove check for validity of abstime parameter.
2283 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2284 Likewise.
2285
2286 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2287 like pthread_cond_timedwait except it always measures abstime
2288 against the supplied clockid.
2289 * nptl/Makefile: Add tst-cond26 and tst-cond27
2290 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2291 * sysdeps/nptl/pthread.h: Likewise
2292 * nptl/forward.c: Add __pthread_cond_clockwait
2293 * nptl/forward.c: Likewise
2294 * nptl/pthreadP.h: Likewise
2295 * sysdeps/nptl/pthread-functions.h: Likewise
2296 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2297 clockid parameter and comment describing why we don't need to check
2298 its value. Use that value when calling
2299 futex_abstimed_wait_cancelable rather than reading the clock from
2300 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2301 (__pthread_cond_timedwait): Read clock from flags and pass it to
2302 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2303 function with weak alias from pthread_cond_clockwait.
2304 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2305 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2306 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2307 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2308 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2309 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2310 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2311 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2312 (GLIBC_2.30): Likewise.
2313 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2314 (GLIBC_2.30): Likewise.
2315 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2316 (GLIBC_2.30): Likewise.
2317 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2318 (GLIBC_2.30): Likewise.
2319 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2320 (GLIBC_2.30): Likewise.
2321 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2323 (GLIBC_2.30): Likewise.
2324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2325 (GLIBC_2.30): Likewise.
2326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2327 (GLIBC_2.30): Likewise.
2328 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2329 (GLIBC_2.30): Likewise.
2330 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2331 (GLIBC_2.30): Likewise.
2332 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2333 (GLIBC_2.30): Likewise.
2334 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2335 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2336 (GLIBC_2.30): Likewise.
2337 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2338 (GLIBC_2.30): Likewise.
2339 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2340 (GLIBC_2.30): Likewise.
2341 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2342 (GLIBC_2.30): Likewise.
2343 * nptl/tst-cond11.c (run_test): Support testing
2344 pthread_cond_clockwait too by using a special magic
2345 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2346 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2347 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2348 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2349 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2350 clocks to pthread_cond_clockwait.
2351 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2352 struct timespec and pthread_cond_clockwait.
2353 * manual/threads.texi: Document pthread_cond_clockwait.
2354
2355 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2356 sem_timedwait, but measures abstime against the specified clock.
2357 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2358 clockid parameters to indicate the clock which abstime should be
2359 measured against.
2360 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2361 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2362 __new_sem_wait_slow.
2363 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2364 on sem_timedwait.c.
2365 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2366 sem_clockwait.c to match those used for sem_timedwait.c.
2367 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2368 * nptl/Versions (GLIBC_2.30): Likewise.
2369 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2370 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2371 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2372 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2373 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2374 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2375 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2376 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2377 (GLIBC_2.30): Likewise.
2378 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2379 (GLIBC_2.30): Likewise.
2380 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2381 (GLIBC_2.30): Likewise.
2382 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2383 (GLIBC_2.30): Likewise.
2384 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2385 (GLIBC_2.30): Likewise.
2386 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2388 (GLIBC_2.30): Likewise.
2389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2390 (GLIBC_2.30): Likewise.
2391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2392 (GLIBC_2.30): Likewise.
2393 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2394 (GLIBC_2.30): Likewise.
2395 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2396 (GLIBC_2.30): Likewise.
2397 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2398 (GLIBC_2.30): Likewise.
2399 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2400 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2401 (GLIBC_2.30): Likewise.
2402 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2403 (GLIBC_2.30): Likewise.
2404 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2405 (GLIBC_2.30): Likewise.
2406 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2407 (GLIBC_2.30): Likewise.
2408 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2409 sem_clockwait.
2410 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2411 tests to also test sem_clockwait.
2412 * manual/threads.texi: Document sem_clockwait.
2413
2414 nptl: Add clockid parameter to futex timed wait calls
2415 * sysdeps/nptl/lowlevellock-futex.h,
2416 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2417 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2418 takes a clockid rather than a special clockbit.
2419 * sysdeps/nptl/lowlevellock-futex.h: Add
2420 lll_futex_supported_clockid so that client functions can check
2421 whether their clockid parameter is valid even if they don't
2422 ultimately end up calling lll_futex_clock_wait_bitset.
2423 * sysdeps/nptl/futex-internal.h,
2424 sysdeps/unix/sysv/linux/futex-internal.h
2425 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2426 clockid_t parameter to indicate which clock the absolute time
2427 passed should be measured against. Pass that clockid onto
2428 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2429 returning -EINVAL.
2430 * sysdeps/nptl/futex-internal.h,
2431 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2432 futex_abstimed_supported_clockid so that client functions can check
2433 whether their clockid parameter is valid even if they don't
2434 ultimately end up calling futex_abstimed_wait.
2435 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2436 code to calculate relative timeout for
2437 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2438 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2439 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2440 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2441 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2442 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2443 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2444
2445 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2446
2447 [BZ #24699]
2448 * posix/tst-mmap-offset.c: Mention BZ #24699.
2449 (do_test_bz21270): Rename to do_test_large_offset and use
2450 mmap64_maximum_offset to check for maximum expected offset value.
2451 * sysdeps/generic/mmap_info.h: New file.
2452 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2453 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2454 __NR_mmap2 is used.
2455
2456 2019-07-10 DJ Delorie <dj@redhat.com>
2457 Sergei Trofimovich <slyfox@inbox.ru>
2458
2459 [BZ #24696]
2460 [BZ #24695]
2461 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2462 mappings.
2463 * nss/tst-nss-db-endgrent.c: New.
2464 * nss/tst-nss-db-endgrent.root: New.
2465 * nss/tst-nss-db-endpwent.c: New.
2466 * nss/tst-nss-db-endpwent.root: New.
2467 * nss/Makefile: Add new tests.
2468 * support/links-dso-program-c.c: Add selinux dependency.
2469 * support/links-dso-program.cc: Add selinux dependency.
2470 * support/Makefile: Build those with -lselinux if enabled.
2471
2472 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2473
2474 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2475 DT_AARCH64_VARIANT_PCS check.
2476 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2477 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2478 variant_pcs.
2479
2480 2019-07-10 Andreas Schwab <schwab@suse.de>
2481
2482 [BZ #23352]
2483 * malloc/malloc.h (__malloc_check_init): Don't declare.
2484 * include/malloc.h (__malloc_check_init): Likewise.
2485 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2486 * manual/memory.texi (__malloc_check_init): Don't mention it.
2487
2488 2019-07-10 Mao Han <han_mao@c-sky.com>
2489
2490 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2491
2492 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2493
2494 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2495 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2496
2497 2019-07-08 DJ Delorie <dj@redhat.com>
2498
2499 [BZ #23501]
2500 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2501 * io/tst-ftw-lnk.c: New test.
2502 * io/Makefile: Run it.
2503
2504 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2505
2506 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2507 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2508 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2509 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2510 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2511 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2512 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2513 Adjust implementation path.
2514 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2515 Adjust implementation path.
2516 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2517 Adjust implementation path.
2518 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2519 (libm-sysdep_routines): Add s_log* objects.
2520 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2521 CFLAGS-s_logb-power7.c): New fule.
2522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2523 to ...
2524 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2525 ... here.
2526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2527 to ...
2528 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2529 ... here.
2530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2531 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2533 to ...
2534 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2535 ... here.
2536 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2537 to ...
2538 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2539 ... here.
2540 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2541 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2543 to ...
2544 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2545 ... here.
2546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2547 to ...
2548 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2549 ... here.
2550 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2551 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2552 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2553 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2554 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2555 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2556
2557 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2558 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2559 powerpc32 integer 0 converting to -0.
2560
2561 * benchtests/Makefile (bench-math): Add logb.
2562 * benchtests/logb-inputs: New file.
2563 * benchtests/logbf-inputs: New file.
2564
2565 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2566 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2567 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2568 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2569 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2570 Adjust include.
2571 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2572 Likewise.
2573 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2574 sysdep_routines): Add s_modf* objects.
2575 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2576 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2578 to ...
2579 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2580 ... here.
2581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2582 to ...
2583 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2584 ... here.
2585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2586 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2587 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2588 to ...
2589 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2590 ... here.
2591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2592 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2593 ... here.
2594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2595 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2596
2597 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2598 twoM500, twoM600, two60factor, pdnum): Remove.
2599 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2600 (__ieee754_hypot): Replace static variables with inline definition,
2601 remove ununsed branches.
2602 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2603 (libm-sysdep_routines): Remove e_hypot-* objects.
2604 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2605 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2606 file.
2607 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2608 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2609 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2610 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2611 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2612
2613 * benchtests/Makefile (bench-math): Add hypot.
2614 * benchtests/hypot-inputs: New file.
2615
2616 2019-07-08 Vincent Chen <vincentc@andestech.com>
2617
2618 * sysdeps/unix/sysv/linux/dl-vdso.h
2619 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2620
2621 2019-07-04 Andreas Schwab <schwab@suse.de>
2622
2623 [BZ #24484]
2624 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2625
2626 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2627
2628 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2629 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2630 * sysdeps/aarch64/sys/ifunc.h: New file.
2631 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2632 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2633
2634 2019-07-01 Florian Weimer <fweimer@redhat.com>
2635
2636 [BZ #20188]
2637 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2638 Replace __vfork with __libpthread_version_placeholder for
2639 GLIBC_2.1.2.
2640 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2641 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2642 libpthread-compat.
2643 * nptl/pt-vfork.c: Remove file.
2644 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2645 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2646 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2647 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2648 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2649 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2650 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2651 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2652 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2653 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2654 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2655 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2656 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2657 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2658 Remove vfork, __vfork.
2659 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2660 Remove vfork.
2661 (GLIBC_2.1.2): Replace __vfork with
2662 __libpthread_version_placeholder.
2663 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2664 Remove vfork, __vfork.
2665 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2666 Likewise.
2667 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2668 Remove vfork.
2669 (GLIBC_2.1.2): Replace __vfork with
2670 __libpthread_version_placeholder.
2671 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2672 Remove vfork.
2673 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2674 (GLIBC_2.4): Remove vfork, __vfork.
2675 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2676 (GLIBC_2.0): Remove vfork.
2677 (GLIBC_2.1.2): Replace __vfork with
2678 __libpthread_version_placeholder.
2679 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2680 (GLIBC_2.18): Remove vfork, __vfork.
2681 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2682 (GLIBC_2.0): Remove vfork.
2683 (GLIBC_2.2): Remove __vfork.
2684 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2685 (GLIBC_2.2): Remove vfork, __vfork.
2686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2687 (GLIBC_2.0): Remove vfork.
2688 (GLIBC_2.1.2): Replace __vfork with
2689 __libpthread_version_placeholder.
2690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2691 (GLIBC_2.3): Remove vfork, __vfork.
2692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2693 (GLIBC_2.17): Likewise.
2694 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2695 (GLIBC_2.0): Remove vfork.
2696 (GLIBC_2.1.2): Replace __vfork with
2697 __libpthread_version_placeholder.
2698 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2699 (GLIBC_2.2): Remove vfork, __vfork.
2700 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2701 Likewise.
2702 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2703 (GLIBC_2.0): Remove vfork.
2704 (GLIBC_2.1.2): Replace __vfork with
2705 __libpthread_version_placeholder.
2706 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2707 (GLIBC_2.2): Remove vfork, __vfork.
2708 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2709 (GLIBC_2.2.5): Likewise.
2710 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2711 (GLIBC_2.16): Likewise.
2712 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2713 Remove __errno_location.
2714
2715 2019-07-02 Florian Weimer <fweimer@redhat.com>
2716
2717 [BZ #24757]
2718 * malloc/Depend: Add nptl and htl, due to potential indirect
2719 libpthread dependency of memusagestat.
2720
2721 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2722
2723 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2724 warning.
2725
2726 2019-07-01 Florian Weimer <fweimer@redhat.com>
2727
2728 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2729 variant for arm-linux-gnueabi.
2730
2731 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2732
2733 [BZ #24259]
2734 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2735 relocation.
2736 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2737 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2738 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2739 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2740 and tst-cet-legacy-mod-6c.
2741 (CFLAGS-tst-cet-legacy-5a.c): New.
2742 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2743 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2744 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2745 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2746 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2747 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2748 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2749 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2750 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2751 ($(objpfx)tst-cet-legacy-5a): Likewise.
2752 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2753 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2754 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2755 ($(objpfx)tst-cet-legacy-5b): Likewise.
2756 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2757 (tst-cet-legacy-5b-ENV): Likewise.
2758 ($(objpfx)tst-cet-legacy-6a): Likewise.
2759 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2760 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2761 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2762 ($(objpfx)tst-cet-legacy-6b): Likewise.
2763 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2764 (tst-cet-legacy-6b-ENV): Likewise.
2765 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2766 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2767 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2768 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2769 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2770 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2771 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2772 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2773 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2774 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2775 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2776 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2777 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2778 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2779
2780 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2781
2782 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2783 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2784 (__fegetround_ISA300) New.
2785 (__fegetround_ISA2) New.
2786 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2787 (_FPU_MFFS): Move implementation...
2788 (_FPU_GETCW): Here.
2789 (_FPU_MFFSL): Move implementation....
2790 (_FPU_GET_RC_ISA300): Here. New.
2791 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2792 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2793 (fegetenv_status): New.
2794 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2795 instead of fegetenv_register().
2796 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2797
2798 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2799
2800 * benchtests/bench-math-inlines.c: Increase iterations.
2801 * benchtests/bench-memcmp.c: Likewise.
2802 * benchtests/bench-rawmemchr.c: Likewise.
2803 * benchtests/bench-strcmp.c: Likewise.
2804 * benchtests/bench-strcpy_chk.c: Likewise.
2805 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2806 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2807 (INNER_LOOP_ITERS_SMALL): Likewise.
2808 * benchtests/bench-strncat.c: Increase iterations.
2809 * benchtests/bench-strncmp.c: Increase iterations.
2810 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2811 * benchtests/bench-strrchr.c: Increase iterations.
2812 * benchtests/bench-strstr.c: Keep iterations unchanged.
2813 * benchtests/bench-strtod.c: Increase iterations.
2814
2815 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2816
2817 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2818 with INNER_LOOP_ITERS_LARGE.
2819 * benchtests/bench-memchr.c: Likewise.
2820 * benchtests/bench-rawmemchr.c: Likewise.
2821 * benchtests/bench-strcat.c: Likewise.
2822 * benchtests/bench-strchr.c: Likewise.
2823 * benchtests/bench-string.h: Likewise.
2824 * benchtests/bench-strlen.c: Likewise.
2825 * benchtests/bench-strncpy.c: Likewise.
2826 * benchtests/bench-strnlen.c: Likewise.
2827
2828 2019-06-28 Florian Weimer <fweimer@redhat.com>
2829
2830 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2831 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2832 entire allocated memory range.
2833
2834 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2835
2836 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2837 (prepare_version_base): New helper inline function.
2838 (prepare_version): New macro replacing PREPARE_VERSION.
2839 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2840
2841 2019-06-28 Florian Weimer <fweimer@redhat.com>
2842
2843 [BZ #24741]
2844 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2845 mismatch in a versioned symbol reference.
2846 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2847 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2848 tst-sonamemove-dlopen.
2849 (module-names): Add tst-sonamemove-linkmod1,
2850 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2851 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2852 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2853 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2854 (tst-sonamemove-runmod1.so): Link against
2855 tst-sonamemove-runmod2.so.
2856 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2857 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2858 tst-sonamemove-runmod2.so.
2859 (tst-sonamemove-dlopen): Link with -ldl.
2860 (tst-sonamemove-dlopen.out): Likewise.
2861 * elf/tst-sonamemove-link.c: New file.
2862 * elf/tst-sonamemove-dlopen.c: Likewise.
2863 * elf/tst-sonamemove-linkmod1.c: Likewise.
2864 * elf/tst-sonamemove-linkmod1.map: Likewise.
2865 * elf/tst-sonamemove-runmod1.c: Likewise.
2866 * elf/tst-sonamemove-runmod1.map: Likewise.
2867 * elf/tst-sonamemove-runmod2.c: Likewise.
2868 * elf/tst-sonamemove-runmod2.map: Likewise.
2869
2870 2019-06-28 Florian Weimer <fweimer@redhat.com>
2871
2872 * support/xdlfcn.h (xdlvsym): Declare function.
2873 * support/xdlfcn.c (xdlvsym): Define funciton.
2874
2875 2019-06-28 Florian Weimer <fweimer@redhat.com>
2876
2877 [BZ #24744]
2878 io: Remove the copy_file_range emulation.
2879 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2880 not define and call copy_file_range_compat.
2881 * io/Makefile (tests-static, tests-internal): Do not add
2882 tst-copy_file_range-compat.
2883 * io/copy_file_range-compat.c: Remove file.
2884 * io/copy_file_range.c (copy_file_range): Define as stub.
2885 * io/tst-copy_file_range-compat.c: Remove file.
2886 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2887 (typical_sizes): Update comment. Remove 16K sizes.
2888 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2889 Remove variables.
2890 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2891 (delayed_write_failure_beginning, delayed_write_failure_end)
2892 (cross_device_failure, enospc_failure_1, enospc_failure)
2893 (oappend_failure): Remove functions.
2894 (tests): Adjust test case list.
2895 (do_test): Remove file system search code. Check for ENOSYS from
2896 copy_file_range. Do not free xdevfile.
2897 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2898 copy_file_range. Do not document the EXDEV error, which future
2899 kernels may not report. Update the wording to reflect that
2900 further errors are possible.
2901 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2902 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2903 not undefine.
2904 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2905 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2906 Likewise.
2907 * sysdeps/unix/sysv/linux/kernel-features.h
2908 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2909 Remove definition.
2910 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2911 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2912 not undefine.
2913 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2914 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2915 Likewise.
2916
2917 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2918
2919 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2920 used as a mask for the mode argument of __vfprintf_internal.
2921 * stdio-common/printf-parse.h (printf_arg): New union member:
2922 pa_float128.
2923 * stdio-common/vfprintf-internal.c
2924 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2925 (PARSE_FLOAT_VA_ARG): Likewise.
2926 (SETUP_FLOAT128_INFO): Likewise.
2927 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2928 SETUP_FLOAT128_INFO.
2929 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2930 floating-point value to the new union member, pa_float128.
2931 (printf_positional): Zero-initialize args_value[cnt] with memset.
2932
2933 2019-06-27 Florian Weimer <fweimer@redhat.com>
2934
2935 [BZ #24740]
2936 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2937 buffer size if necessary.
2938 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2939 Likewise.
2940 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2941 New function.
2942 (large_buffer_checks): Likewise.
2943 (do_test): Call large_buffer_checks.
2944
2945 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2946
2947 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2948 * sysdeps/x86/dl-lookupcfg.h: Here.
2949 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2950
2951 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2952
2953 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2954 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2955 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2956 file.
2957 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2958 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2959 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2960 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2961 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2962
2963 * sysdeps/powerpc/powerpc32/fpu/Makefile
2964 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2965 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2966 and fctidz optimization.
2967 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2968 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2969 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2970 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2971 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2972 CFLAGS-s_lround-power5+.c): New rule.
2973 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2974 New file.
2975 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2976 Likewise.
2977 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2978 Likewise.
2979 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2980 Likewise.
2981 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2982 Likewise.
2983 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2984 Remove file.
2985 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2986 Likewise.
2987 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2988 Likewise.
2989 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2990 Likewise.
2991 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2992 Likewise.
2993 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2994 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2995 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2996 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2997 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2998 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2999 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3000
3001 2019-06-26 Vincent Chen <vincentc@andestech.com>
3002
3003 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
3004 specific system calls, fp_udfiex_crtl and udftrap.
3005
3006 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3007
3008 * nptl/tst-eintr1.c (tf1): Add return statement.
3009 (do_test): Remove unused th variable.
3010
3011 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3012
3013 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
3014 Return error if get_character fails.
3015
3016 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
3017
3018 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3019
3020 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
3021
3022 [BZ #24652]
3023 * localedata/locales/szl_PL (day): Use the correct Unicode
3024 sequences instead of non-ASCII characters.
3025
3026 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
3027
3028 [BZ #24652]
3029 * localedata/locales/szl_PL (abday): Spelling corrections.
3030 (day): Likewise.
3031 (abmon): Likewise.
3032 (mon): Rename to...
3033 (alt_mon): This, then apply spelling corrections.
3034 (mon): New entry, month names in the genitive case.
3035
3036 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
3037
3038 [BZ #23831]
3039 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
3040 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
3041 (thousands_sep): Likewise.
3042 (grouping): Set to 3;3.
3043
3044 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
3045
3046 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3047 PREPARE_VERSION_KNOWN.
3048 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3049 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3050 define.
3051 (VDSO_HASH_LINUX_2_6_39): Likewise.
3052 (VDSO_NAME_LINUX_4_9): Likewise.
3053 (VDSO_HASH_LINUX_4_9): Likewise.
3054 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3055 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3056 (_libc_vdso_platform_setup): Likewise.
3057 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3058 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3059 Likewise.
3060 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3061 Likewise.
3062
3063 2019-06-20 Mike Crowe <mac@mcrowe.com>
3064
3065 * nptl/eintr.c: Use libsupport.
3066 * nptl/tst-eintr1.c: Likewise.
3067 * nptl/tst-eintr2.c: Likewise.
3068 * nptl/tst-eintr3.c: Likewise.
3069 * nptl/tst-eintr4.c: Likewise.
3070 * nptl/tst-eintr5.c: Likewise.
3071 * nptl/tst-mutex-errorcheck.c: Likewise.
3072 * nptl/tst-mutex5.c: Likewise.
3073
3074 * support/test-driver.h: Add verbose_printf macro.
3075
3076 * support/xtime.h: Add xclock_now() helper function.
3077
3078 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3079 Florian Weimer <fweimer@redhat.com>
3080
3081 [BZ #24228]
3082 * libio/genops.c (_IO_unbuffer_all)
3083 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3084 buffers and access _IO_FILE_complete members of legacy libio streams.
3085 * libio/tst-bz24228.c: New file.
3086 * libio/tst-bz24228.map: Likewise.
3087 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3088 [build-shared] (generated): Add tst-bz24228.mtrace and
3089 tst-bz24228.check.
3090 [run-built-tests && build-shared] (tests-special): Add
3091 $(objpfx)tst-bz24228-mem.out.
3092 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3093 ($(objpfx)tst-bz24228-mem.out): New rule.
3094
3095 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3096
3097 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3098 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3099 (__FPU_MFFSL): Likewise.
3100 (_FPU_SETCW): Likewise.
3101
3102 2019-06-19 Stan Shebs <stanshebs@google.com>
3103 Raoni Fassina Firmino <raoni@linux.ibm.com>
3104
3105 [BZ #24640]
3106 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3107 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3108 static-linking version.
3109 * sysdeps/unix/sysv/linux/powerpc/Makefile
3110 (tests-static): Add test-gettimebasefreq-static.
3111 (tests): Likewise.
3112 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3113 New file.
3114
3115 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
3116
3117 [BZ #24614]
3118 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3119 between the currency symbol and the minus sign).
3120 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3121
3122 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3123
3124 [BZ #24556]
3125 * string/test-strcasestr.c (check_result): Add NULL check.
3126 * nss/tst-field.c (check_rewrite): Likewise.
3127 * benchtests/bench-strstr.c (do_one_test): Likewise.
3128 * string/test-strstr.c (check_result): Likewise.
3129 * argp/argp-test.c (popt): Increase size of buf to 12.
3130 * benchtests/bench-malloc-simple.c (bench):
3131 Do not initialize tests array out of bounds.
3132
3133 2019-06-19 Florian Weimer <fweimer@redhat.com>
3134
3135 [BZ #24166]
3136 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3137 dls_serpath field.
3138
3139 2019-06-18 Florian Weimer <fweimer@redhat.com>
3140
3141 [BZ #24323]
3142 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3143 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3144 fail when called from dlopen.
3145 * elf/Makefile [have-fpie && build-shared] (tests): Add
3146 tst-dlopen-pie.
3147 (tst-dlopen-pie): Link with -ldl.
3148 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3149 * elf/tst-dlopen-pie.c (do_test): New file.
3150
3151 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
3152
3153 [BZ #24614]
3154 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3155 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3156 between the currency symbol and the minus sign).
3157 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3158 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3159
3160 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3161
3162 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3163 sysdep-rtld-routines): Remove rules.
3164 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3165 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3166 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3167 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3168 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3169 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3170 vDSO path for SHARED.
3171 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3172 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3173 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3174 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3175 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3176 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3177
3178 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3179 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3180 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3181 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3182 CFLAGS-s_llround-power5+.c): New rule.
3183 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3184 New file.
3185 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3186 Likewise.
3187 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3188 Likewise.
3189 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3190 Likewise.
3191 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3192 Likewise.
3193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3194 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3196 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3198 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3199 * sysdeps/powerpc/powerpc64/fpu/Makefile
3200 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3201 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3202 (libm-sysdep_routines): Remove s_llround-* objects.
3203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3204 file.
3205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3206 Likewise.
3207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3208 Likewise.
3209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3210 Likewise.
3211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3212 Likewise.
3213 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3214 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3215 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3216 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3217 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3218 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3219 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3220 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3221 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3222 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3223 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3224 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3225 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3226 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3227
3228 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3229 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3230 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3231 * sysdeps/powerpc/powerpc32/fpu/Makefile
3232 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3233 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3234 optimization.
3235 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3236 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3237 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3238 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3239 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3240 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3241 CFLAGS-s_lrint-ppc32.c): New rule.
3242 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3243 Remove file.
3244 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3245 Likewise.
3246 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3247 Likewise.
3248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3249 Likewise.
3250 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3251 Likewise.
3252 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3253 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3254 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3255 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3256 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3257 New file.
3258 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3259 Likewise.
3260 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3261 Likewise.
3262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3263 Likewise.
3264 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3265 Likewise.
3266
3267 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3268 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3269 s_llrint-ppc64.
3270 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3271 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3272 file.
3273 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3274 Likewise.
3275 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3276 Likewise.
3277 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3278 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3280 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3282 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3283 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3284 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3285 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3286 (libm-sysdep_routines): Remove s_llrint-* objects.
3287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3288 file.
3289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3290 Likewise.
3291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3292 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3293 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3294 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3295 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3296 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3297 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3298 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3299 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3300 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3301
3302 2019-06-14 Florian Weimer <fweimer@redhat.com>
3303
3304 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3305 argument to __glibc_has_include to inhibit macro expansion.
3306
3307 2019-06-14 Florian Weimer <fweimer@redhat.com>
3308
3309 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3310 function-like macro, so that __has_include can inhibit expansion
3311 of its argument.
3312
3313 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3314
3315 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3316 New macro.
3317
3318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3319 Allow memset in libc.so.
3320
3321 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3322
3323 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3324 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3325 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3326 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3327 symbols at load time.
3328 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3329
3330 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3331
3332 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3333 (DT_AARCH64_VARIANT_PCS): Define.
3334
3335 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3336
3337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3338 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3339 objects.
3340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3341 Remove file.
3342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3343 Likewise.
3344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3346 Likewise.
3347 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3348 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3349 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3350 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3351 Remove s_finite* objects.
3352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3353 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3358 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3359 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3360 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3361 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3362
3363 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3364 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3365
3366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3367 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3368 objects.
3369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3370 Remove file.
3371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3372 Likewise.
3373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3374 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3375 Likewise.
3376 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3377 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3378 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3379 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3380 Remove s_isinf* and s_isinf* objects.
3381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3382 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3387 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3388 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3389 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3390 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3391
3392 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3393 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3394
3395 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3396 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3397 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3398 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3399 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3400 s_isnanf-* objects.
3401 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3402 Remove file
3403 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3404 Likewise.
3405 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3406 Likewise.
3407 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3408 Likewise.
3409 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3411 Likewise.
3412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3413 Likewise.
3414 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3415 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3416 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3417 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3418 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3419 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3420 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3421 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3422 Remove s_isnan-* and s_isnanf-* objects.
3423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3425 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3426 Likewise.
3427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3432 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3433 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3434 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3435 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3436 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3437 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3438 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3439 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3440
3441 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3442 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3443
3444 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3445 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3446 CFLAGS-bench-isfinite.c): New rule.
3447 * benchtests/isnan-input: New file.
3448 * benchtests/isinf-input: New file.
3449 * benchtests/isfinite-input: New file.
3450
3451 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3452 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3453 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3454 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3456 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3457 s_copysign-ppc32.
3458 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3459 Remove file.
3460 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3461 Likewise.
3462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3463 Likewise.
3464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3465 Likewise.
3466 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3467 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3468 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3469 Remove s_copysign-power6 s_copysign-ppc64.
3470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3471 Remove file.
3472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3473 Likewise.
3474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3476 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3477 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3478 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3479 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3480
3481 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3482 round_to_integer_float, round_mode): Add RINT handling.
3483 (reset_fenv_mode): New symbol.
3484 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3485 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3486 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3487 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3488 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3489 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3490
3491 2019-06-12 Florian Weimer <fweimer@redhat.com>
3492
3493 [BZ #24632]
3494 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3495 * libio/freopen.c (freopen): Use it.
3496
3497 2019-06-12 Florian Weimer <fweimer@redhat.com>
3498
3499 Linux: Deprecate sysctl.
3500 * include/sysctl.h (__sysctl): Remove declaration.
3501 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3502 check.
3503 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3504 (sysctl): Add deprecation attribute.
3505 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3506 directly, to avoid the deprecation warning. Do not include
3507 <string.h>.
3508 (__sysctl): Remove hidden alias.
3509
3510 2019-06-12 Florian Weimer <fweimer@redhat.com>
3511
3512 Linux: Use kernel headers for statx definitions if available.
3513 * include/bits/statx-generic.h: New file.
3514 * include/bits/types/struct_statx.h: Likewise.
3515 * include/bits/types/struct_statx_timestamp.h: Likewise.
3516 * io/Makefile (headers): Add bits/statx-generic.h.
3517 * io/bits/statx-generic.h: New file. Partly copied from
3518 io/bits/statx.h.
3519 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3520 define original_statx.
3521 * io/bits/types/struct_statx.h: Likewise.
3522 * io/bits/types/struct_statx_timestamp.h: Likewise.
3523 (statx_generic): Use original_statx.
3524 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3525 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3526
3527 2019-06-12 Florian Weimer <fweimer@redhat.com>
3528
3529 * misc/sys/cdefs.h (__glibc_has_include): Define.
3530
3531 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3532
3533 * string/memmem.c (__memmem): Rewrite to improve performance.
3534
3535 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3536
3537 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3538 warning.
3539 (two_way_long_needle): Block inlining.
3540 * string/strstr.c (strstr2): Add new function.
3541 (strstr3): Likewise.
3542 (STRSTR): Completely rewrite strstr to improve performance.
3543
3544 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3545
3546 * benchtests/bench-strstr.c (test_hard_needle): New function.
3547
3548 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3549
3550 * malloc/tst-calloc.c: Include <libc-diag.h>.
3551 (null_test): Ignore -Wunused-result around calls to calloc.
3552 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3553 (do_test): Ignore -Wunused-result around call to malloc.
3554
3555 2019-06-07 Florian Weimer <fweimer@redhat.com>
3556
3557 Linux: Add getdents64 system call.
3558 * include/dirnent.h (getdents): Add comment and change buffer
3559 argument type to void *.
3560 (getdents64): Likewise. Add hidden prototype.
3561 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3562 getdents64.
3563 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3564 Add tst-getdents64.
3565 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3566 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3567 argument type to void *.
3568 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3569 Add hidden definition and getdents64 alias.
3570 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3571 Likewise.
3572 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3573 * manual/filesys.texi (Accessing Directories): Add Low-level
3574 Directory Access node reference.
3575 (Opening a Directory): Cross-reference it.
3576 (Low-level Directory Access): New node.
3577 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3578 getdents64.
3579 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3580 Likewise.
3581 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3582 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3583 Likewise.
3584 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3585 Likewise.
3586 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3587 Likewise.
3588 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3589 Likewise.
3590 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3591 Likewise.
3592 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3593 Likewise.
3594 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3595 Likewise.
3596 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3597 (GLIBC_2.30): Likewise.
3598 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3599 (GLIBC_2.30): Likewise.
3600 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3601 (GLIBC_2.30): Likewise.
3602 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3603 (GLIBC_2.30): Likewise.
3604 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3605 Likewise.
3606 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3607 (GLIBC_2.30): Likewise.
3608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3609 (GLIBC_2.30): Likewise.
3610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3611 (GLIBC_2.30): Likewise.
3612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3613 (GLIBC_2.30): Likewise.
3614 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3615 Likewise.
3616 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3617 Likewise.
3618 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3619 Likewise.
3620 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3621 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3622 Likewise.
3623 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3624 Likewise.
3625 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3626 Likewise.
3627 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3628 Likewise.
3629
3630 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3631
3632 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3633 (__FPU_MFFS): New.
3634 (__FPU_MFFSL): New.
3635 (_FPU_GET_RC): New.
3636 (_FPU_GETCW): Use __FPU_MFFS().
3637 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3638
3639 2019-06-06 Florian Weimer <fweimer@redhat.com>
3640
3641 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3642 internal GCC preprocessor identifier __has_include__.
3643
3644 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3645
3646 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3647 with call to equivalent function.
3648
3649 2019-06-04 Florian Weimer <fweimer@redhat.com>
3650
3651 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3652 (do_release_shlib): Adjust for __twalk_r.
3653 (__gconv_release_shlib): Call __twalk_r.
3654
3655 2019-06-04 Andreas Schwab <schwab@suse.de>
3656
3657 [BZ #18830]
3658 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3659 no irreversible characters occurred.
3660 * iconv/gconv_simple.c (internal_ucs4_loop)
3661 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3662 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3663 (ucs4_internal_loop_single, internal_ucs4le_loop)
3664 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3665 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3666 (ucs4le_internal_loop_single): Add const to outend.
3667 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3668 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3669 * iconv/Makefile (tests): Add tst-iconv7.
3670 * iconv/tst-iconv7.c: New file.
3671
3672 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3673
3674 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3675
3676 2019-06-01 Florian Weimer <fweimer@redhat.com>
3677
3678 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3679 * sysdeps/unix/sysv/linux/arm/Makefile
3680 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3681 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3682 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3683 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3684 compatibility symbols.
3685
3686 2019-05-31 Florian Weimer <fweimer@redhat.com>
3687
3688 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3689 system calls for the arm architecture: breakpoint, get_tls,
3690 set_tls, usr26, usr32.
3691
3692 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3693
3694 * sysdeps/powerpc/Makefile
3695 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3696 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3697 Declare '.machine power7' to get support for ldbrx.
3698 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3699 directive based on the directory of the file.
3700 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3701 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3702 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3703 '.machine' directive.
3704 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3705 (VADDUQM_V7_V8): Remove.
3706 (__STRCASECMP): Replace macros with actual instructions.
3707 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3708 '.machine' directive.
3709 (VCLZD_V8_v7): Remove.
3710 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3711
3712 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3713
3714 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3715 Remove file.
3716 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3717
3718 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3719
3720 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3721 NEARBYINT handling.
3722 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3723 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3724 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3725 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3726 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3727 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3728
3729 2019-05-28 mansayk <6688000@gmail.com>
3730
3731 [BZ #24370]
3732 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3733
3734 2019-05-28 mansayk <6688000@gmail.com>
3735
3736 [BZ #24369]
3737 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3738 (abmon): Likewise, but remove the trailing dots.
3739
3740 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3741
3742 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3743
3744 2019-05-27 Florian Weimer <fweimer@redhat.com>
3745
3746 * nptl/nptl-init.c: Add comment.
3747
3748 2019-05-24 Florian Weimer <fweimer@redhat.com>
3749
3750 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3751 struct in_addr/struct in6_addr alignment.
3752
3753 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3754
3755 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3756 (F_SEAL_FUTURE_WRITE): New macro.
3757
3758 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3759
3760 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3761 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3762 * elf/tst-ldconfig_aux-cache.root: New directory.
3763 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3764 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3765 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3766
3767 2019-05-22 Zack Weinberg <zackw@panix.com>
3768
3769 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3770 host type.
3771 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3772 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3773
3774 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3777 Delete.
3778
3779 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3780 Issue an #error if used with a compiler in SPE-float mode.
3781 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3782 * sysdeps/powerpc/powerpc32/setjmp_common.S
3783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3785 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3787 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3789 Remove code to preserve SPE register state.
3790
3791 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3792 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3793 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3794 Remove __SPE__ ifndefs.
3795
3796 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3797
3798 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3799 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3800 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3801 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3802 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3803 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3804 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3805 (INNER_LOOP_ITERS_MEDIUM): New define.
3806 (INNER_LOOP_ITERS_SMALL): New define.
3807 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3808 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3809 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3810 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3811 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3812
3813 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3814
3815 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3816 New define.
3817 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3818 (SEMTIMEDOP_IPC_ARGS): Likewise.
3819
3820 2019-05-21 Florian Weimer <fweimer@redhat.com>
3821
3822 [BZ #24584]
3823 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3824 before updating __counter field and release it afterwards. Add
3825 overflow check.
3826 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3827 requirement for __counter member.
3828
3829 2019-05-21 Florian Weimer <fweimer@redhat.com>
3830
3831 [BZ #24583]
3832 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3833 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3834 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3835 instead of __gconv_release_step.
3836 * libio/Makefile (tests): Add tst-wfile-gconv.
3837 (tests-container): Add tst-wfile-ascii.
3838 (tst-wfile-gconv-ENV): Enable mtrace.
3839 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3840 (tests-special): Add tst-wfile-gconv-mem.out.
3841 (tst-wfile-gconv.out): Depend on locales.
3842 (tst-wfile-gconv-mem.out): Add mtrace rule.
3843 * libio/tst-wfile-ascii.c: New file.
3844 * libio/tst-wfile-gconv.c: Likewise.
3845
3846 2019-05-20 Florian Weimer <fweimer@redhat.com>
3847
3848 [BZ #24588]
3849 libio: Remove codecvt vtable.
3850 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3851 __libio_codecvt.
3852 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3853 __libio_codecvt_encoding.
3854 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3855 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3856 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3857 * libio/iofwide.c (__libio_codecvt): Remove variable.
3858 (_IO_fwide): Do not copy __libio_codecvt.
3859 (__libio_codecvt_out): Rename from do_out and export.
3860 (do_unshift): Remove function.
3861 (__libio_codecvt_in): Rename from do_in and export.
3862 (__libio_codecvt_encoding): Rename from do_encoding and export.
3863 (do_always_noconv): Remove function.
3864 (__libio_codecvt_length): Rename from do_length and export.
3865 (do_max_length): Remove function.
3866 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3867 to libioP.h.
3868 (struct _IO_codecvt): Remove fields __codecvt_destr,
3869 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3870 __codecvt_do_encoding, __codecvt_do_always_noconv,
3871 __codecvt_do_length, __codecvt_do_max_length.
3872 * libio/libioP.h (enum __codecvt_result): Define; moved from
3873 libio.h.
3874 (__libio_codecvt_out, __libio_codecvt_in)
3875 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3876 functions.
3877 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3878 (_IO_wfile_underflow): Call __libio_codecvt_in.
3879 (_IO_wfile_underflow): Likewise.
3880 (_IO_wfile_underflow_mmap): Likewise.
3881 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3882 __libio_codecvt_length.
3883 (adjust_wide_data): Call __libio_codecvt_encoding,
3884 __libio_codecvt_in.
3885 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3886 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3887 __libio_codecvt_length.
3888
3889 2019-05-20 Florian Weimer <fweimer@redhat.com>
3890
3891 * support/support.h (support_sbindir_prefix): Declare.
3892 (support_install_rootsbindir): Update comment.
3893 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3894 * support/support_paths.c (support_sbindir_prefix): Define.
3895
3896 2019-05-20 Mike Crowe <mac@mcrowe.com>
3897
3898 * support/timespec.c: Add backslash to correct newline in failure
3899 message.
3900
3901 * support/timespec.h: Correct confusing comment.
3902
3903 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3904
3905 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3906 define.
3907 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3908 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3909 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3910 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3911
3912 [BZ #24570]
3913 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3914 usage.
3915
3916 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3917
3918 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3919 (NT_ARM_PACG_KEYS): Likewise.
3920
3921 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3922
3923 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3924 (tcache_put): Remove redundant assert.
3925 (tcache_get): Remove redundant asserts.
3926 (__libc_malloc): Check tcache count is not zero.
3927 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3928
3929 2019-05-17 Florian Weimer <fweimer@redhat.com>
3930
3931 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3932
3933 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3934
3935 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3936 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3937 0x050100].
3938 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3939 Likewise.
3940 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3941 (__ASSUME_STATX): Likewise.
3942
3943 2019-05-16 Florian Weimer <fweimer@redhat.com>
3944
3945 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3946 flags argument.
3947 (LINE_PARSER): Do not map IPv4 addresses.
3948 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3949 to parse_line.
3950 (_nss_nis_gethostent_r): Always pass AF_INET to
3951 internal_nis_gethostent_r.
3952 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3953 to parse_line.
3954 (_nss_nis_gethostbyname2_r): Adjust call to
3955 internal_nis_gethostent_r.
3956 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3957 call to internal_nis_gethostent_r.
3958 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3959 from parse_line.
3960 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3961 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3962 Remove flags argument. Do not map IPv4 addresses.
3963 (internal_nisplus_gethostent_r): Adjust call to
3964 _nss_nisplus_parse_hostent.
3965 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3966 to _nss_nisplus_parse_hostent.
3967 (_nss_nisplus_gethostbyname2_r): Adjust call to
3968 internal_gethostbyname2_r.
3969 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3970 Adjust call to internal_gethostbyname2_r.
3971 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3972 _nss_nisplus_parse_hostent.
3973 (_nss_nisplus_gethostbyname4_r): Adjust call to
3974 internal_gethostbyname2_r.
3975
3976 2019-05-16 Florian Weimer <fweimer@redhat.com>
3977
3978 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3979 Remove flags.
3980 (LINE_PARSER): Remove address mapping.
3981 (EXTRA_ARGS_VALUE): Remove flags argument.
3982 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3983 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3984 gethostbyname3_multi.
3985 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3986 _nss_files_gethostbyname3_r.
3987 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3988
3989 2019-05-16 Florian Weimer <fweimer@redhat.com>
3990
3991 * support/support_test_compare_blob.c (report_blob): Report
3992 incorrect NULL blobs.
3993
3994 2019-05-15 Mark Wielaard <mark@klomp.org>
3995
3996 [BZ# 24476]
3997 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3998 __libc_once_get (once) and static_buf == NULL.
3999 (__dlerror): Check we have a valid key, set result to static_buf
4000 otherwise.
4001
4002 2019-05-15 Andreas Schwab <schwab@suse.de>
4003
4004 [BZ #20568]
4005 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
4006 __codecvt_do_length.
4007 * libio/Makefile (tests): Add tst-wfile-sync.
4008 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
4009 * libio/tst-wfile-sync.c: New file.
4010 * libio/tst-wfile-sync.input: New file.
4011
4012 2019-05-15 Florian Weimer <fweimer@redhat.com>
4013
4014 nss: Turn __nss_database_lookup into a compatibility symbol.
4015 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
4016 __nss_database_lookup.
4017 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
4018 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
4019 __nss_database_lookup.
4020 (__nss_next): Move to …
4021 * nss/compat-lookup.c (nss_next): … here. Change it to fail
4022 unconditionally.
4023 (__nss_database_lookup): New function.
4024 * nss/Versions (GLIBC_2.0): Update comment.
4025 (GLIBC_PRIVATE): Export __nss_database_lookup2.
4026 * grp/initgroups.c (internal_getgrouplist): Call
4027 __nss_database_lookup2 instead of __nss_database_lookup.
4028 * nscd/aicache.c (addhstaiX): Likewise.
4029 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4030 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
4031 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
4032 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
4033 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
4034 Likewise.
4035 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
4036 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
4037 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4038
4039 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
4040
4041 * support/support.h (support_install_rootsbindir): New variable.
4042 * support/support_paths.c: Likewise.
4043 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
4044
4045 2019-05-15 Florian Weimer <fweimer@redhat.com>
4046
4047 * iconv/gconv.h (__gconv_transliterate): Move declaration …
4048 * iconv/gconv_int.h (__gconv_transliterate): … here.
4049 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4050 * iconv/skeleton.c: Likewise.
4051
4052 2019-05-14 Florian Weimer <fweimer@redhat.com>
4053
4054 Linux: Add the tgkill function.
4055 * bits/signal_ext.h: New file.
4056 * manual/signal.texi (Signaling Another Process): Document tgkill.
4057 * signal/Makefile (headers): Add bits/signal_ext.h.
4058 * signal/signal.h: Include <bits/signal_ext.h>.
4059 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4060 (tst-tgkill): Link with libpthread.
4061 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4062 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4063 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4064 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4065 tgkill.
4066 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4067 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4068 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4069 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4070 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4071 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4072 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4073 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4074 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4075 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4076 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4077 Likewise.
4078 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4079 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4080 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4082 Likewise.
4083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4084 Likewise.
4085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4086 Likewise.
4087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4088 Likewise.
4089 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4090 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4091 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4092 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4093 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4094 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4095 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4096 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4097
4098 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4099
4100 * manual/search.texi (Tree Search Function): Adjust twalk_r
4101 documentation.
4102
4103 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4104
4105 [BZ #24544]
4106 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4107 pre-defined value.
4108
4109 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4110 * support/support.h (support_bindir_prefix): New variable.
4111 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4112
4113 * config.make.in (bindir): New variable.
4114
4115 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4116 (lll_trylock): Call __lll_trylock.
4117 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4118 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4119 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4120 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4121 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4122 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4123 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4124 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4125 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4126 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4127 lowlevellock-futex.h.
4128
4129 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4130 initialization for LLL_LOCK_INITIALIZER different than 0.
4131 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4132 Assume LLL_LOCK_INITIALIZER being 0.
4133 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4134 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4135 Likewise.
4136 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4137 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4138
4139 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4140 Optimize futex call and add systemtap probe.
4141
4142 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4143 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4144 __libc_disable_asynccancel, __librt_enable_asynccancel,
4145 __libc_disable_asynccancel, __librt_enable_asynccancel,
4146 __librt_disable_asynccancel): Move to ...
4147 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4148 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4149 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4150 * sysdeps/generic/single-thread.h: New file.
4151 * sysdeps/unix/sysdep.h: Include single-thread.h.
4152 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4153 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4154
4155 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4156
4157 [BZ #24535]
4158 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4159 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4160 Unicode 12.1.0.
4161 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4162 * localedata/unicode-gen/PropList.txt: Likewise.
4163 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4164 * localedata/charmaps/UTF-8: Regenerate.
4165 * localedata/locales/i18n_ctype: Likewise.
4166 * localedata/locales/tr_TR: Likewise.
4167 * localedata/locales/translit_circle: Likewise.
4168 * localedata/locales/translit_cjk_compat: Likewise.
4169 * localedata/locales/translit_combining: Likewise.
4170 * localedata/locales/translit_compat: Likewise.
4171 * localedata/locales/translit_font: Likewise.
4172 * localedata/locales/translit_fraction: Likewise.
4173
4174 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4175
4176 [BZ #24531]
4177 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4178 (do_set_tcache_count): Only update if count is small enough.
4179 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4180
4181 2019-05-10 Florian Weimer <fweimer@redhat.com>
4182
4183 * nptl/sem_close.c (struct walk_closure): Define.
4184 (walker): Adjust for __twalk_r.
4185 (sem_close): Call __twalk_r.
4186
4187 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4188
4189 * support/timespec.c (test_timespec_before_impl,
4190 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4191 insted of long int.
4192
4193 2019-05-09 Mike Crowe <mac@mcrowe.com>
4194
4195 * nptl/tst-abstime.c: Use libsupport.
4196
4197 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4198 small bug where only tv.tv_usec was checked which could cause an
4199 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4200 than a second.
4201
4202 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4203 libsupport.
4204
4205 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4206 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4207
4208 * nptl/tst-cond11.c: Use libsupport.
4209
4210 * support/timespec.h: New file. Provide timespec helper functions
4211 along with macros in the style of those in check.h.
4212 * support/timespec.c: New file. Implement check functions declared
4213 in support/timespec.h.
4214 * support/timespec-add.c: New file from gnulib containing
4215 timespec_add implementation that handles overflow.
4216 * support/timespec-sub.c: New file from gnulib containing
4217 timespec_sub implementation that handles overflow.
4218 * support/README: Mention timespec.h.
4219
4220 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4221
4222 [BZ #24537]
4223 * nptl/Makefile: Move tst-eintr1 to xtests.
4224
4225 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4226
4227 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4228 TRUNC handling.
4229 (round_mode): Add definition for TRUNC.
4230 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4231 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4232 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4233 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4234 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4235 Likewise.
4236 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4237 Likewise.
4238 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4239 Likewise.
4240 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4241 Likewise.
4242 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4243 file.
4244 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4245 Likewise.
4246 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4247 Likewise.
4248 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4249 Likewise.
4250 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4251 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4252 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4253 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4254 s_truncf-power5+, and s_truncf-ppc64.
4255 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4256 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4257 file.
4258 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4260 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4261 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4262 file.
4263 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4264 Likewise.
4265 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4266 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4267 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4268 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4269 s_truncf-power5+, and s_truncf-ppc64.
4270 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4271 file.
4272 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4273 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4274 Likewise.
4275 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4276 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4277 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4278 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4279 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4280
4281 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4282 ROUND handling.
4283 (round_mode): Add definition for ROUND.
4284 (round_to_integer_float): Likewise.
4285 * sysdeps/powerpc/fpu/s_round.c: New file.
4286 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4287 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4288 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4289 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4290 Likewise.
4291 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4292 Likewise.
4293 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4294 Likewise.
4295 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4296 Likewise.
4297 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4298 file.
4299 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4300 Likewise.
4301 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4302 Likewise.
4303 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4304 Likewise.
4305 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4306 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4307 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4308 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4309 s_roundf-power5+, and s_roundf-ppc64.
4310 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4311 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4312 file.
4313 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4315 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4316 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4317 file.
4318 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4319 Likewise.
4320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4321 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4322 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4323 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4324 s_roundf-power5+, and s_roundf-ppc64.
4325 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4326 file.
4327 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4328 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4329 Likewise.
4330 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4331 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4332 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4333 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4334 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4335
4336 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4337 Add FLOOR option.
4338 (round_mode): Add definition for FLOOR.
4339 * sysdeps/powerpc/fpu/s_floor.c: New file.
4340 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4341 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4342 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4343 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4344 Remove file.
4345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4346 Likewise
4347 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4348 Likewise.
4349 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4350 Likewise.
4351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4352 New file.
4353 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4354 Likewise.
4355 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4356 Likewise.
4357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4358 Likewise.
4359 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4360 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4361 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4362 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4363 s_floorf-power5+, and s_floorf-ppc64.
4364 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4365 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4366 file.
4367 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4369 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4370 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4371 file.
4372 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4373 Likewise.
4374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4375 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4376 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4377 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4378 s_floorf-power5+, and s_floorf-ppc64.
4379 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4380 file.
4381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4382 file.
4383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4384 Likewise.
4385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4386 Likewise.
4387 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4388 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4389 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4390 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4391
4392 2019-05-08 Mike Crowe <mac@mcrowe.com>
4393
4394 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4395 clock_gettime wrapper for use in tests that fails the test rather
4396 than returning failure.
4397
4398 * support/xtime.h: New file to declare xclock_gettime.
4399
4400 * support/Makefile: Add xclock_gettime.c.
4401
4402 * support/README: Mention xtime.h.
4403
4404 2019-05-08 Florian Weimer <fweimer@redhat.com>
4405
4406 malloc/tst-mallocfork2: Use process-shared barriers.
4407 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4408 (signal_count, sigusr1_sender_pid): Remove.
4409 (iterations): Define constant.
4410 (shared): New variable.
4411 (sigusr1_received): Update comment.
4412 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4413 (signal_sender): Optional use barriers to avoid sending signals
4414 during irrelevant times.
4415 (do_it): Initialize variable shared. Use xfork for error
4416 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4417 the iteration count, independent of signal delivery. Check for
4418 deadlocks in fork. Introduce barriers for reducing signal
4419 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4420 replaced by the barriers. Count signals during fork/free/malloc
4421 and report them.
4422 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4423
4424 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4425
4426 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4427 version to 5.1.
4428 (clock_adjtime64) New syscall.
4429 (clock_getres_time64) Likewise.
4430 (clock_gettime64) Likewise.
4431 (clock_nanosleep_time64) Likewise.
4432 (clock_settime64) Likewise.
4433 (futex_time64) Likewise.
4434 (io_pgetevents_time64) Likewise.
4435 (io_uring_enter) Likewise.
4436 (io_uring_register) Likewise.
4437 (io_uring_setup) Likewise.
4438 (mq_timedreceive_time64) Likewise.
4439 (mq_timedsend_time64) Likewise.
4440 (pidfd_send_signal) Likewise.
4441 (ppoll_time64) Likewise.
4442 (pselect6_time64) Likewise.
4443 (recvmmsg_time64) Likewise.
4444 (rt_sigtimedwait_time64) Likewise.
4445 (sched_rr_get_interval_time64) Likewise.
4446 (semtimedop_time64) Likewise.
4447 (timer_gettime64) Likewise.
4448 (timer_settime64) Likewise.
4449 (timerfd_gettime64) Likewise.
4450 (timerfd_settime64) Likewise.
4451 (utimensat_time64) Likewise.
4452
4453 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4454 version to 9 branch.
4455
4456 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4457
4458 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4459 __memmove_thunderx2 to the list of implementations
4460 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4461 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4462 (__memmove_thunderx2): Rewritten using SIMD ld/st
4463 (__memcpy_thunderx2): Fixed handling overlapping cases.
4464 Used ldp/stp instead of ldr/str if possible. Made loops
4465 tails branchless.
4466
4467 2019-05-03 Florian Weimer <fweimer@redhat.com>
4468
4469 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4470
4471 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4472
4473 [BZ #24506]
4474 * elf/tst-pldd.c (in_str_list): New function.
4475 (do_test): Add default names for ld and libc as one option.
4476
4477 2019-05-02 Florian Weimer <fweimer@redhat.com>
4478
4479 misc: Add twalk_r function.
4480 * include/search.h (__twalk_r): Declare.
4481 * manual/examples/twalk.c: New file.
4482 * manual/search.texi (Tree Search Function): Document twalk_r.
4483 * misc/Versions (2.30): Export twalk_r.
4484 (GLIBC_PRIVATE): Export __twalk_r.
4485 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4486 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4487 (twalk_r): Add weak alias.
4488 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4489 (walk_trace): New variable.
4490 (struct twalk_with_twalk_r_closure): Define.
4491 (twalk_with_twalk_r_action): New function.
4492 (twalk_with_twalk_r): Likewise.
4493 (walk_action): Call walk_trace_add.
4494 (walk_tree_with): Rename from walk_tree. Add walk argument.
4495 (walk_tree): New function.
4496 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4497 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4498 Likewise.
4499 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4500 Likewise.
4501 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4502 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4503 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4504 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4505 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4506 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4507 Likewise.
4508 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4509 Likewise.
4510 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4511 Likewise.
4512 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4513 (GLIBC_2.30): Likewise.
4514 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4515 (GLIBC_2.30): Likewise.
4516 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4517 (GLIBC_2.30): Likewise.
4518 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4519 (GLIBC_2.30): Likewise.
4520 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4521 Likewise.
4522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4523 (GLIBC_2.30): Likewise.
4524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4525 (GLIBC_2.30): Likewise.
4526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4527 (GLIBC_2.30): Likewise.
4528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4529 (GLIBC_2.30): Likewise.
4530 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4531 Likewise.
4532 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4533 Likewise.
4534 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4535 Likewise.
4536 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4537 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4538 Likewise.
4539 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4540 Likewise.
4541 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4542 Likewise.
4543 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4544 Likewise.
4545
4546 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4547
4548 Make mktime etc. compatible with __time64_t
4549 Keep these functions compatible with Gnulib while adding
4550 __time64_t support. The basic idea is to move private API
4551 declarations from include/time.h to time/mktime-internal.h, since
4552 the former file cannot easily be shared with Gnulib whereas the
4553 latter can.
4554 Also, do some other minor cleanup while in the neighborhood.
4555 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4556 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4557 since Gnulib needs it.
4558 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4559 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4560 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4561 (in_time_t_range): New static function.
4562 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4563 so that glibc users are not tempted to use __time64_t.
4564 * time/mktime-internal.h: Rewrite so that it does both glibc
4565 and Gnulib work. Include time.h if not _LIBC.
4566 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4567 (__time64_t): New type or macro, moved here from
4568 posix/bits/types.h.
4569 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4570 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4571 from include/time.h.
4572 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4573 New macros, taken from GNulib.
4574 (__mktime_internal): New prototype, moved here from include/time.h.
4575 * time/mktime.c (mktime_min, mktime_max, convert_time)
4576 (ranged_convert, __mktime_internal, __mktime64):
4577 * time/timegm.c (__timegm64):
4578 Use __time64_t, not time_t.
4579 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4580 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4581 Rename from mktime.
4582 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4583 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4584 for libc_hidden_def.
4585 Include errno.h.
4586 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4587 Rename from timegm.
4588 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4589
4590 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4591
4592 [BZ #19444]
4593 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4594 from `-Wmaybe-uninitialized'.
4595 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4596
4597 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4598
4599 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4600 function.
4601 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4602 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4603 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4604 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4605 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4606 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4607 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4608 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4609 Remove file.
4610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4611 Likewise.
4612 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4613 Likewise.
4614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4615 Likewise.
4616 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4617 New file.
4618 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4619 Likewise.
4620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4621 Likewise.
4622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4623 Likewise.
4624 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4625 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4626 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4627 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4628 Likewise.
4629 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4630 Likewise.
4631 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4632 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4633 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4634 file.
4635 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4636 Likewise.
4637 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4638 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4639 * here.
4640 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4641 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4642 s_ceilf-power5+, and s_ceilf-ppc64.
4643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4644 file.
4645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4648 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4649 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4650 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4651 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4652
4653 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4654 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4655 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4656
4657 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4658
4659 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4660 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4661 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4662 (sem_getvalue): Likewise.
4663
4664 2019-04-26 Florian Weimer <fweimer@redhat.com>
4665
4666 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4667 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4668
4669 2019-04-26 Florian Weimer <fweimer@redhat.com>
4670
4671 Makeconfig: Move -Wl,-rpath-link options before library references.
4672 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4673 (link-libc): Remove $(link-libc-rpath-link).
4674
4675 2019-04-25 Florian Weimer <fweimer@redhat.com>
4676
4677 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4678 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4679 (+link-static-before-libc): Remove $(CC).
4680 (+link-static, +link-static-tests): Add $(CC).
4681 (+link-before-libc): Remove $(CC).
4682 (+link, +link-pie, +link-pie-printers): Add $(CC).
4683
4684 2019-04-26 Florian Weimer <fweimer@redhat.com>
4685
4686 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4687 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4688 (+link-static-before-libc): Remove $(CC).
4689 (+link-static, +link-static-tests): Add $(CC).
4690 (+link-before-libc): Remove $(CC).
4691 (+link, +link-pie, +link-pie-printers): Add $(CC).
4692
4693 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4694
4695 [BZ#24484]
4696 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4697
4698 2019-04-25 Florian Weimer <fweimer@redhat.com>
4699
4700 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4701 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4702 (bench-link-targets): New variable.
4703 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4704
4705 2019-04-25 Florian Weimer <fweimer@redhat.com>
4706
4707 Also enable BIND_NOW for programs if --enable-bind-now.
4708 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4709 (+link-pie): Use $(link-extra-flags).
4710 (+link-static): Likewise.
4711 [! $(build-pie-default)] (+link): Likewise.
4712 * manual/install.texi (Configuring and compiling): Update
4713 --enable-bind-now description.
4714 * INSTALL: Regenerated.
4715
4716 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4717
4718 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4719 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4720
4721 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4722
4723 [BZ #18465]
4724 * malloc/Makefile (others): Add memusagestat.
4725 ($(objpfx)memusagestat): Delete rule.
4726 (LDLIBS-memusagestat): New variable.
4727
4728 2019-04-24 Florian Weimer <fweimer@redhat.com>
4729
4730 * locale/Makefile (tests-special): Guard setting by
4731 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4732 to run while cross-compiling.
4733
4734 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4735
4736 [BZ #18035]
4737 * elf/Makefile (tests-container): Add tst-pldd.
4738 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4739 (E(find_maps)): Avoid use alloca, use default read file operations
4740 instead of explicit LFS names, and fix infinite loop.
4741 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4742 (get_process_info): Use _Static_assert instead of assert, use default
4743 directory operations instead of explicit LFS names, and free some
4744 leadek pointers.
4745 * elf/tst-pldd.c: New file.
4746
4747 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4748
4749 * malloc/arena.c (do_set_mallopt_check): Removed.
4750
4751 2019-04-23 Florian Weimer <fweimer@redhat.com>
4752
4753 locale: Add LOCPATH diagnostics to the locale program.
4754 * locale/programs/locale.c (setlocale_failed): New variable.
4755 (try_setlocale): New function.
4756 (quote_string): Likewise.
4757 (setlocale_diagnostics): Likewise.
4758 (main): Call try_setlocale instead of setlocale. Call
4759 setlocale_diagnostics.
4760 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4761 (tst-locale-locpath.out): New target.
4762 * locale/tst-locale-locpath.sh: New file.
4763
4764 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4765
4766 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4767 to 2.30 notes.
4768
4769 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4770
4771 [BZ #23741]
4772 * malloc/hooks.c (malloc_check, realloc_check): Use
4773 __builtin_add_overflow on overflow check and adapt to
4774 checked_request2size change.
4775 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4776 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4777 allocation size to PTRDIFF_MAX.
4778 (REQUEST_OUT_OF_RANGE): Remove macro.
4779 (checked_request2size): Change to inline function and limit maximum
4780 requested size to PTRDIFF_MAX.
4781 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4782 maximum allocation size to PTRDIFF_MAX.
4783 (_mid_memalign): Use _int_memalign call for overflow check.
4784 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4785 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4786 limit maximum requested size to PTRDIFF_MAX.
4787 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4788 valloc, pvalloc): Add __attribute_alloc_size__.
4789 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4790 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4791 larger than PTRDIFF_MAX.
4792 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4793 around tests of malloc with negative sizes.
4794 * malloc/tst-posix_memalign.c (do_test): Likewise.
4795 * malloc/tst-pvalloc.c (do_test): Likewise.
4796 * malloc/tst-valloc.c (do_test): Likewise.
4797 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4798 with resulting size allocation larger than PTRDIFF_MAX with
4799 reallocarray_nowarn.
4800 (reallocarray_nowarn): New function.
4801 * NEWS: Mention the malloc function semantic change.
4802
4803 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4804
4805 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4806 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4807
4808 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4809 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4810 * sysdeps/powerpc/fpu/s_fma.c: New file.
4811 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4812
4813 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4814 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4815
4816 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4817 the magic flag store.
4818 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4819 Likewise.
4820 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4821 Likewise.
4822 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4823 Remove rt_sigreturn call.
4824
4825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4826 Remove rt_sigreturn call.
4827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4828 Likewise.
4829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4831
4832 * support/Makefile (libsupport-routines): Add support_subprocess,
4833 xposix_spawn, xposix_spawn_file_actions_addclose, and
4834 xposix_spawn_file_actions_adddup2.
4835 (tst-support_capture_subprocess-ARGS): New rule.
4836 * support/capture_subprocess.h (support_capture_subprogram): New
4837 prototype.
4838 * support/support_capture_subprocess.c (support_capture_subprocess):
4839 Refactor to use support_subprocess and support_capture_poll.
4840 (support_capture_subprogram): New function.
4841 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4842 str_to_write_mode, test_common, parse_int, handle_restart,
4843 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4844 (do_test): Add support_capture_subprogram tests.
4845 * support/subprocess.h: New file.
4846 * support/support_subprocess.c: Likewise.
4847 * support/xposix_spawn.c: Likewise.
4848 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4849 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4850 * support/xspawn.h: Likewise.
4851
4852 2019-04-17 Mike Gerow <gerow@google.com>
4853
4854 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4855 groups limit.
4856
4857 2019-04-11 Florian Weimer <fweimer@redhat.com>
4858
4859 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4860 domain with empty string.
4861 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4862
4863 2019-04-11 Florian Weimer <fweimer@redhat.com>
4864
4865 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4866 comment.
4867 (alloc_buffer_next): Change return type to non-const. Update
4868 comment.
4869
4870 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4871
4872 * manual/time.texi (Formatting Calendar Time): Add missing percent
4873 sign to conversion specifier.
4874
4875 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4876 Kwok Cheung Yeung <kcy@codesourcery.com>
4877
4878 [BZ #16573]
4879 * malloc/mtrace.c: Define prototypes for all hooks.
4880 (set_default_hooks): New function.
4881 (set_trace_hooks): Likewise.
4882 (save_default_hooks): Likewise.
4883 (tr_freehook): Use new s*_hooks functions.
4884 (tr_mallochook): Likewise.
4885 (tr_reallochook): Likewise.
4886 (tr_memalignhook): Likewise.
4887 (mtrace): Likewise.
4888 (muntrace): Likewise.
4889
4890 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4891
4892 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4893 (generic_stpcpy): New function.
4894 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4895 (generic_stpncpy): New function.
4896 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4897 (generic_strcat): New function.
4898 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4899 (generic_strcpy): New function.
4900 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4901 (STUPID_STRNCAT): Remove function.
4902 (generic_strncat): New function.
4903 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4904 (STUPID_STRNCPY): Remove function.
4905 (generic_strncpy): New function.
4906 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4907 (generic_strnlen): New function.
4908 (memchr_strnlen): New function.
4909 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4910 (memchr_strlen): Likewise.
4911
4912 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4913
4914 * benchtests/bench-strstr.c (input): Add realistic input text.
4915 (stupid_strstr): Remove function.
4916 (basic_strstr): Add function.
4917 (twoway_strstr): Add function.
4918 (do_one_test): Add result checking.
4919 (do_test): Use new input text. Remove accidental early matches.
4920 (test_main): Improve range of tests, reduce unaligned cases.
4921
4922 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4923
4924 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4925 (basic_memmem): Add function.
4926 (twoway_memmem): Add function.
4927
4928 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4929
4930 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4931 * benchtests/bench-malloc-thread.c: Likewise.
4932 * benchtests/bench-skeleton.c: Likewise.
4933 * benchtests/bench-strtod.c: Likewise.
4934 * benchtests/bench-timing.h: Likewise.
4935
4936 2019-04-08 Florian Weimer <fweimer@redhat.com>
4937
4938 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4939 definitions.
4940 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4941 RES_INSECURE2 security checks.
4942 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4943 RES_INSECURE2 handling.
4944
4945 2019-04-08 Florian Weimer <fweimer@redhat.com>
4946
4947 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4948 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4949 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4950 GETHOSTBYNAME.
4951 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4952 (tests-internal): Update justification for tst-resolv-res_init,
4953 tst-resolv-res_init-thread.
4954 (tst-res_use_inet6): Remove target.
4955 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4956 * resolv/res_debug.c (p_option): Remove "inet6" support.
4957 * resolv/res_init.c (res_setoptions): Likewise.
4958 * resolv/res_use_inet6.h: Remove file.
4959 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4960 definition.
4961 (res_use_inet6): Always return false.
4962 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4963 * resolv/resolv_context.h: Adjust file comment.
4964 (struct resolv_context): Update comment on __next field.
4965 (__resolv_context_put): Update comment.
4966 * resolv/tst-res_use_inet6.c: Remove file.
4967 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4968 "inet6" support.
4969 (test_cases): Adjust test case.
4970 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4971 (thread_byname2_af_inet6): Use old byname_inet6 code.
4972 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4973 (gai): Remove do_inet6 argument.
4974 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4975 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4976 (thread_gai_unspec_inet6): Remove functions.
4977 (do_test): Adjust thread_funcs.
4978 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4979 RES_USE_INET6 flag.
4980 (gaih_inet): Do not disable RES_USE_INET6 flag.
4981
4982 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4983
4984 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4985 and remove redundant code.
4986
4987 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4988
4989 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4990 New rule.
4991 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4992 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4993 Likewise.
4994 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4995 Likewise.
4996 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4997 Likewise.
4998 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4999 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
5000 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
5001 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
5002 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
5003 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
5004 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5005 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
5006 wcsrchr-power7.
5007 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
5008 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5009 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5010 Remove wcsrchr optimizations.
5011 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5012
5013 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
5014 the loop unroll.
5015
5016 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
5017 New rule.
5018 * sysdeps/powerpc/power6/wcschr.c: Remove file.
5019 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
5020 Likewise.
5021 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
5022 Likewise.
5023 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
5024 Likewise.
5025 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
5026 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
5027 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
5028 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
5029 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
5030 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
5031 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5032 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
5033 wcschr-power7.
5034 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
5035 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5036 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5037 Remove wcschr optimizations.
5038 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5039
5040 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
5041 the loop unroll.
5042
5043 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
5044 New rule.
5045 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5046 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5047 Likewise.
5048 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5049 Likewise.
5050 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5051 Likewise.
5052 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5053 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5054 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5055 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5056 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5057 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5058 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5059 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5060 wcscpy-power7.
5061 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5062 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5063 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5064 Remove wcscpy optimizations.
5065 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5066
5067 * include/loop_unroll.h: New file.
5068 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5069 besides generic implementation.
5070
5071 2019-04-03 DJ Delorie <dj@redhat.com>
5072
5073 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5074 snprintf truncating output.
5075
5076 2019-04-02 DJ Delorie <dj@redhat.com>
5077
5078 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5079 warning.
5080
5081 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5082
5083 [BZ #22964]
5084 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5085 era.
5086 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5087 (mkreftable): Add rules for the new Japanese era and the new dates.
5088
5089 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5090 Rafał Lużyński <digitalfreak@lingonborough.com>
5091
5092 * time/tst-strftime2.c (date_t): Explicitly define the type.
5093 (dates): Use natural month and year numbers to express a date.
5094 (is_before): New function to compare dates.
5095 (mkreftable): Minor improvements to simplify maintenance.
5096 (do_test): Reflect the changes in dates array.
5097
5098 [BZ #24293]
5099 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5100 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5101 * time/tst-strftime2.c (locales): Likewise.
5102 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5103 2010-04-01, and 2011-04-01.
5104 (mkreftable): Add rules for the new locales and the new dates.
5105
5106 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5107
5108 * localedata/locales/ja_JP: Add comments to era entries.
5109
5110 2019-04-01 DJ Delorie <dj@redhat.com>
5111
5112 [BZ #24394]
5113 * time/strptime_l.c (%Ey): Fix fencepost error.
5114 * time/tst-strftime3.c: New.
5115 * time/Makefile (tests): Add tst-strftime3.
5116
5117 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
5118
5119 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5120 conditional branch to DIVBYZERO. Fix unwind info.
5121 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5122 excb after conditional branch to $powerof2. Add missing unop
5123 instructions and .align directives and reorder instructions to
5124 match __divqu.
5125
5126 2019-04-01 Richard Henderson <rth@twiddle.net>
5127
5128 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5129 Do not redefine.
5130 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5131 Do not redefine.
5132
5133 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5134
5135 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5136 $libc_cv_riscv_float_abi in `test' invocation.
5137 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5138
5139 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5140
5141 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5142 asm with builtin.
5143 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5144 Likewise.
5145 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5146 (_GET_SI_FPSCR): Likewise.
5147 (_SET_SI_FPSCR): Likewise.
5148
5149 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5150
5151 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5152 clang 2.8.
5153 (signbit): Use builtin for clang 3.3.
5154 (isinf): Use builtin for clang 3.7.
5155
5156 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5157
5158 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5159
5160 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5161
5162 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5163 quote in printf.
5164
5165 2019-03-25 Mike Crowe <mac@mcrowe.com>
5166
5167 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5168 pthread_rwlock_timedrdlock with calls to
5169 pthread_rwlock_timedwrlock to ensure that the latter is tested
5170 too. Use new function name in diagnostic messages too.
5171
5172 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5173 (do_test) Use libsupport test macros rather than hand-coded
5174 conditionals and error messages. Ensure that sem_init returns zero
5175 rather than not -1. Use <support/test-driver.c> rather than
5176 test-skeleton.c.
5177
5178 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5179 test macros rather than hand-coded conditionals and error messages.
5180 Use <support/test-driver.c> rather than test-skeleton.c.
5181
5182 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5183
5184 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5185
5186 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5187 (NT_MIPS_MSA): Likewise.
5188
5189 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5190
5191 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5192 * benchtests/README: Update description.
5193 * benchtests/bench-timing.h: Default to hp-timing.
5194 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5195 HP_TIMING_PRINT): Remove.
5196 (HP_TIMING_NOW): Add generic implementation.
5197 (hp_timing_t): Change to uint64_t.
5198
5199 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5200 HP_TIMING_INLINE.
5201 * nptl/descr.h: Likewise.
5202 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5203 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5204 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5205 Abstract hp-timing usage with RTLD_* macros.
5206 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5207 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5208 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5209 HP_TIMING_NONAVAIL): Likewise.
5210 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5211 Likewise.
5212 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5213 HP_SMALL_TIMING_AVAIL): Likewise.
5214 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5215 HP_SMALL_TIMING_AVAIL): Likewise.
5216 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5217 HP_SMALL_TIMING_AVAIL): Likewise.
5218 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5219 HP_SMALL_TIMING_AVAIL): Likewise.
5220 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5221 Likewise.
5222 * sysdeps/generic/hp-timing-common.h: Update comment with
5223 HP_TIMING_AVAIL removal.
5224
5225 * include/random-bits.h: New file.
5226 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5227 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5228 random_bits.
5229 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5230 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5231 Likewise.
5232
5233 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5234 * rt/Makefile (clock-routines): Remove get_clockfreq.
5235 * rt/get_clockfreq.c: Remove file.
5236 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5237 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5238 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5239 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5240 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5241
5242 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5243 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5244 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5245 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5246 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5247
5248 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5249 pthread_clock_settime.
5250 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5251 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5252 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5253 * elf/rtld.c (_dl_start_final): Likewise.
5254 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5255 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5256 Remove.
5257 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5258 (_dl_cpuclock_offset): Remove.
5259 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5260 cpuclock_offset_ununsed.
5261 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5262 cpuclock_offset set.
5263 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5264 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5265 * nptl/pthread_clock_gettime.c: Remove file.
5266 * nptl/pthread_clock_settime.c: Likewise.
5267 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5268 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5269 and CLOCK_PROCESS_CPUTIME_ID support.
5270 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5271 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5272 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5273 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5274 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5275 Likewise.
5276 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5277
5278 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5279
5280 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5281 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5282 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5283 New defines.
5284 * sysdeps/s390/memmem-arch13.S: New file.
5285 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5286 if it is only used as fallback.
5287 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5288 * sysdeps/s390/multiarch/ifunc-impl-list.c
5289 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5290
5291 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5292
5293 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5294 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5295 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5296 New defines.
5297 * sysdeps/s390/multiarch/ifunc-impl-list.c
5298 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5299 * sysdeps/s390/strstr-arch13.S: New file.
5300 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5301 if it is only used as fallback.
5302 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5303
5304 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5305
5306 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5307 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5308 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5309 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5310 ifunc selector.
5311 * sysdeps/s390/multiarch/ifunc-impl-list.c
5312 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5313 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5314 S390_IS_ARCH13_MIE3): New defines.
5315
5316 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5317
5318 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5319 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5320 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5321 * sysdeps/s390/configure: Regenerated.
5322
5323 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5324
5325 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5326 Add vxe2, vxp, dflt, sort flags.
5327 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5328 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5329 capabilities.
5330 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5331 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5332 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5333 HWCAP_S390_DFLT): Define.
5334
5335 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5336
5337 [BZ #24372]
5338 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5339 of compiler warning.
5340 * locale/programs/ld-collate.c (collate_output): Likewise.
5341
5342 2019-03-21 DJ Delorie <dj@redhat.com>
5343
5344 [BZ #24372]
5345 * iconv/iconvconfig.c (write_output): Replace floating point math
5346 with integer math to avoid imprecise results.
5347 * locale/programs/ld-collate.c (collate_output): Likewise.
5348
5349 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5350
5351 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5352 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5353
5354 2019-03-20 mansayk <6688000@gmail.com>
5355
5356 [BZ #24296]
5357 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5358 (abday): Likewise, but remove the trailing dots.
5359
5360 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5361
5362 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5363 macro.
5364 (HWCAP_PACA): Likewise.
5365 (HWCAP_PACG): Likewise.
5366 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5367 Increase to 32.
5368 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5369
5370 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5371
5372 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5373 should be handled.
5374
5375 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5376
5377 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5378 version to 5.0.
5379 (old_getpagesize): New syscall.
5380
5381 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5382
5383 [BZ #24293]
5384 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5385 * localedata/locales/cmn_TW (era): Likewise.
5386 * localedata/locales/hak_TW (era): Likewise.
5387 * localedata/locales/lzh_TW (era): Likewise.
5388 * localedata/locales/nan_TW (era): Likewise.
5389
5390 2019-03-14 Adam Maris <amaris@redhat.com>
5391
5392 * malloc/malloc.c (_int_malloc): Check for large bin list
5393 corruption when inserting unsorted chunk.
5394
5395 2019-03-14 Florian Weimer <fweimer@redhat.com>
5396
5397 Remove obsolete, never-implemented XSI STREAMS declarations.
5398 * manual/terminal.texi (Allocation): Remove portability note and
5399 adjust example.
5400 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5401 _SC_STREAMS.
5402 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5403 * sysdeps/unix/inet/Subdirs (streams): Remove.
5404 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5405 (conformtest-headers-UNIX98): Likewise.
5406 (conformtest-headers-XOPEN2K): Likewise.
5407 (conformtest-headers-POSIX2008): Likewise.
5408 * posix/compat-streams.c: New file.
5409 * posix/Makefile (routines): Add it.
5410 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5411 getpmsg, isastream, putmsg, putpmsg.
5412 (GLIBC_2.30): New section.
5413 * bits/stropts.h: Remove file.
5414 * bits/xtitypes.h: Likewise.
5415 * conform/data/stropts.h-data: Likewise.
5416 * include/stropts.h: Likewise.
5417 * include/sys/stropts.h: Likewise.
5418 * include/xtitypes.h: Likewise.
5419 * streams/Makefile: Likewise.
5420 * streams/fattach.c: Likewise.
5421 * streams/fdetach.c: Likewise.
5422 * streams/getmsg.c: Likewise.
5423 * streams/getpmsg.c: Likewise.
5424 * streams/isastream.c: Likewise.
5425 * streams/putmsg.c: Likewise.
5426 * streams/putpmsg.c: Likewise.
5427 * streams/stropts.h: Likewise.
5428 * streams/sys/stropts.h: Likewise.
5429 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5430 * sysdeps/s390/bits/xtitypes.h: Likewise.
5431 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5432 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5433 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5434 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5435 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5436 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5437 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5438 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5439 * sysdeps/x86/bits/xtitypes.h: Likewise.
5440
5441 2019-03-14 Florian Weimer <fweimer@redhat.com>
5442
5443 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5444 libnss_files.
5445 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5446 but not with libnss_files.
5447 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5448
5449 2019-03-14 Zack Weinberg <zackw@panix.com>
5450
5451 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5452 Specify encoding="utf-8" when opening headers to check.
5453
5454 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5455
5456 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5457 version to 5.0.
5458 (Context.checkout_tar): Handle variable major version for Linux
5459 kernel.
5460
5461 2019-03-13 Florian Weimer <fweimer@redhat.com>
5462
5463 [BZ #24047]
5464 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5465
5466 2019-03-13 Zack Weinberg <zackw@panix.com>
5467
5468 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5469 Move to stdlib.
5470 * include/inttypes.h: Adjust to match.
5471 * include/stdint.h: New wrapper.
5472
5473 2019-03-13 Zack Weinberg <zackw@panix.com>
5474
5475 * scripts/check-obsolete-constructs.py: New test script.
5476 * scripts/check-installed-headers.sh: Remove tests for
5477 obsolete typedefs, superseded by check-obsolete-constructs.py.
5478 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5479 as a special test. Update commentary.
5480 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5481 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5482 Update commentary.
5483 * posix/sys/types.h (__u_intN_t): Remove.
5484 (u_int8_t): Typedef using __uint8_t.
5485 (u_int16_t): Typedef using __uint16_t.
5486 (u_int32_t): Typedef using __uint32_t.
5487 (u_int64_t): Typedef using __uint64_t.
5488
5489 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5490
5491 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5492 call _dl_procinfo.
5493 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5494 Ignore types other than AT_HWCAP.
5495 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5496 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5497 Likewise.
5498 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5499 in the case of falling back to generic output mechanism.
5500 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5501 Likewise.
5502
5503 2019-03-12 Florian Weimer <fweimer@redhat.com>
5504
5505 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5506
5507 2019-03-12 Florian Weimer <fweimer@redhat.com>
5508
5509 [BZ #24047]
5510 resolv: Enable full ICMP errors for UDP DNS sockets
5511 * resolv/res_enable_icmp.c: New file.
5512 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5513 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5514 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5515 socket.
5516
5517 2019-03-11 Mao Han <han_mao@c-sky.com>
5518
5519 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5520 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5521
5522 2019-03-11 Mao Han <han_mao@c-sky.com>
5523
5524 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5525 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5526 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5527
5528 2019-03-11 Mao Han <han_mao@c-sky.com>
5529
5530 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5531 directly.
5532 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5533 definition.
5534
5535 2019-03-11 Mao Han <han_mao@c-sky.com>
5536
5537 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5538 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5539 in mcontext_t
5540
5541 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5542
5543 [BZ #24307]
5544 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5545 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5546 Unicode 12.0.0.
5547 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5548 * localedata/unicode-gen/PropList.txt: Likewise.
5549 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5550 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5551 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5552 * localedata/charmaps/UTF-8: Regenerate.
5553 * localedata/locales/i18n_ctype: Likewise.
5554 * localedata/locales/tr_TR: Likewise.
5555 * localedata/locales/translit_circle: Likewise.
5556 * localedata/locales/translit_cjk_compat: Likewise.
5557 * localedata/locales/translit_combining: Likewise.
5558 * localedata/locales/translit_compat: Likewise.
5559 * localedata/locales/translit_font: Likewise.
5560 * localedata/locales/translit_fraction: Likewise.
5561
5562 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5563
5564 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5565 than after operators.
5566 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5567 (setitimer_locked): Likewise.
5568 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5569 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5570 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5571 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5572 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5573 (PPC_CPU_SUPPORTED): Likewise.
5574 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5575 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5576 (stat_overflow): Likewise.
5577 (statfs_overflow): Likewise.
5578 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5579 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5580 (eq_ttyname_r): Likewise.
5581 (run_chroot_tests): Likewise.
5582
5583 2019-03-07 Florian Weimer <fweimer@redhat.com>
5584
5585 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5586 header check.
5587
5588 2019-03-07 Martin Liska <mliska@suse.cz>
5589
5590 * math/Makefile: Change location where math-vector-fortran.h is
5591 installed.
5592 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5593 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5594 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5595 * scripts/check-installed-headers.sh: Skip Fortran header files.
5596 * scripts/check-wrapper-headers.py: Likewise.
5597
5598 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5599
5600 * nptl/nptl-init.c (__have_futex_clock_realtime,
5601 __have_futex_clock_realtime): Remove definition.
5602 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5603 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5604 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5605 __ASSUME_FUTEX_CLOCK_REALTIME support.
5606 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5607 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5608 * sysdeps/unix/sysv/linux/kernel-features.h
5609 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5610 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5611 Adjust comment.
5612
5613 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5614
5615 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5616 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5617 __GI___wcscpy and wcscpy.
5618
5619 2019-03-04 Florian Weimer <fweimer@redhat.com>
5620
5621 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5622 declaration.
5623 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5624 defined.
5625
5626 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5627
5628 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5629 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5630
5631 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5632
5633 [BZ #24162]
5634 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5635 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5636
5637 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5638
5639 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5640 tests.
5641 (do_test): Likewise.
5642 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5643 (do_test_call_varg): Likewise.
5644 (do_test_call_rarg): Likewise.
5645 * sysdeps/ieee754/ldbl-opt/Makefile
5646 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5647 tst-nldbl-error.
5648 ($(objpfx)tst-nldbl-warn.c): New rule.
5649 ($(objpfx)tst-nldbl-error.c): Likewise.
5650 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5651 New variables.
5652
5653 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5654
5655 [BZ #23984]
5656 * include/bits/error-ldbl.h: New file.
5657 * include/error.h: Include stdarg.h. Declare internal functions
5658 __error_internal and __error_at_line_internal.
5659 * misc/Makefile (headers): Add bits/error-ldbl.h.
5660 * misc/bits/error-ldbl.h: New file.
5661 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5662 avoid the inclusion of bits/error.h.
5663 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5664 and __nldbl_error_at_line.
5665 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5666 (__nldbl_error, __ndlbl_error_at_line): New functions.
5667 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5668 Redirect error and error_at_line.
5669 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5671 Likewise.
5672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5673 Likewise.
5674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5675 Likewise.
5676 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5677 Likewise.
5678 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5679 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5680 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5681
5682 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5683
5684 [BZ #23984]
5685 * include/bits/err-ldbl.h: New file.
5686 * include/err.h: Add prototypes for the internal functions:
5687 __vwarnx_internal and __vwarn_internal.
5688 * misc/Makefile (headers): Add bits/err-ldbl.h.
5689 * misc/bits/err-ldbl.h: New file.
5690 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5691 defined, i.e.: when -mlong-double-64 is in use.
5692 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5693 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5694 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5695 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5696 (VA_CALL): New macro.
5697 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5698 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5699 functions.
5700 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5701 declare prototypes for the new functions.
5702 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5704 Likewise.
5705 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5706 Likewise.
5707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5708 Likewise.
5709 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5710 Likewise.
5711 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5712 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5713 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5714
5715 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5716
5717 * sysdeps/ieee754/ldbl-opt/Makefile
5718 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5719 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5720 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5721
5722 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5723
5724 [BZ #23983]
5725 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5726 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5727 * argp/bits/argp-ldbl.h: New file.
5728 * include/argp.h: Include stdarg.h. Add prototypes for internal
5729 functions: __argp_error_internal and __argp_failure_internal.
5730 * include/bits/argp-ldbl.h: New file.
5731 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5732 __nldbl_argp_error and __nldbl_argp_failure.
5733 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5734 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5735 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5736 Redirect argp_error and argp_failure calls.
5737 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5739 Likewise.
5740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5741 Likewise.
5742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5743 Likewise.
5744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5745 Likewise.
5746 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5747 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5748 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5749
5750 2019-03-01 Florian Weimer <fweimer@redhat.com>
5751
5752 [BZ #20419]
5753 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5754 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5755 code, to avoid creating an ABI tag note.
5756 (modules-names-nobuild): Add tst-big-note-lib.
5757
5758 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5759
5760 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5761 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5762
5763 2019-03-01 Florian Weimer <fweimer@redhat.com>
5764
5765 [BZ #20271]
5766 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5767 (__netlink_assert_response): Add additional missing newlines.
5768
5769 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5770
5771 * sysdeps/powerpc/powerpc32/dl-machine.c
5772 (__elf_machine_fixup_plt): Use space before '('.
5773 (__process_machine_rela): Likewise.
5774 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5775 Likewise.
5776 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5777 Likewise.
5778 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5779 Likewise.
5780 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5781 (pattern): Likewise.
5782 (delta): Likewise.
5783 (check_result): Likewise.
5784 (check_excepts): Likewise.
5785 (check_op): Likewise.
5786 (fail_xr): Likewise.
5787 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5788 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5789 (SCNHSZ): Likewise.
5790 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5791 Likewise.
5792 (ARGS): Likewise.
5793 (__makecontext): Likewise.
5794 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5795 Likewise.
5796
5797 2019-02-28 Florian Weimer <fweimer@redhat.com>
5798
5799 [BZ #23937]
5800 elf: Add test with a local IFUNC resolver.
5801 * elf/ifuncmain9.c: New file.
5802 * elf/ifuncmain9pic.c: Likewise.
5803 * elf/ifuncmain9picstatic.c: Likewise.
5804 * elf/ifuncmain9pie.c: Likewise.
5805 * elf/ifuncmain9static.c: Likewise.
5806 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5807 ifuncmain9static, ifuncmain9picstatic.
5808 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5809 Add ifuncmain9, ifuncmain9pic.
5810 * elf/Makefile [multi-arch && build-shared && have-fpie]
5811 (ifunc-pie-tests): Add ifuncmain9pie.
5812 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5813 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5814 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5815
5816 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5817
5818 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5819 * configure: Regenerated.
5820 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5821
5822 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5823
5824 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5825 symbol as __wcspcy instead of wcscpy.
5826
5827 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5828
5829 * include/stdio.h (__renameat2): New hidden prototype.
5830 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5831 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5832 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5833 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5834
5835 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5836
5837 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5838 if statement.
5839
5840 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5841 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5842 * benchtests/bench-strlen.c (do_test): Likewise.
5843 (test_main): Likewise.
5844 * catgets/gencat.c (read_old): Likewise.
5845 * elf/cache.c (load_aux_cache): Likewise.
5846 * iconvdata/bug-iconv8.c (do_test): Likewise.
5847 * math/test-tgmath-ret.c (do_test): Likewise.
5848 * nis/nis_call.c (rec_dirsearch): Likewise.
5849 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5850 * nptl/tst-audit-threads.c (do_test): Likewise.
5851 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5852 * nss/nss_test1.c (init): Likewise.
5853 * nss/test-netdb.c (test_hosts): Likewise.
5854 * posix/execvpe.c (maybe_script_execute): Likewise.
5855 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5856 * stdio-common/tst-printf.c (do_test): Likewise.
5857 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5858 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5859 * stdlib/qsort.c (STACK_SIZE): Likewise.
5860 * stdlib/test-canon.c (do_test): Likewise.
5861 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5862 * string/memcmp.c (OPSIZ): Likewise.
5863 * string/test-strcpy.c (do_test): Likewise.
5864 (do_random_tests): Likewise.
5865 * string/test-strlen.c (do_test): Likewise.
5866 (test_main): Likewise.
5867 * string/test-strrchr.c (do_test): Likewise.
5868 (do_random_tests): Likewise.
5869 * string/tester.c (test_memrchr): Likewise.
5870 (test_memchr): Likewise.
5871 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5872 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5873 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5874 (read_encoded_value_with_base): Likewise.
5875 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5876 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5877 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5878 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5879 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5880 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5881 Likewise.
5882 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5883 Likewise.
5884 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5885 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5886 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5887 Likewise.
5888 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5889 Likewise.
5890 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5891 Likewise.
5892 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5893 Likewise.
5894 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5895 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5896 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5897 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5898 * time/test_time.c (main): Likewise.
5899
5900 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5901
5902 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5903
5904 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5905 wmemcpy.
5906
5907 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5908 wmemcpy.
5909
5910 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5911
5912 * include/wchar.h (__wcscpy): New prototype.
5913 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5914 (__wcscpy): Route internal symbol to generic implementation.
5915 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5916 Add internal __wcscpy alias.
5917 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5918 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5919 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5920 * wcsmbs/wcscpy.c (wcscpy): Add
5921 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5922 use generic implementation.
5923 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5924
5925 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5926 wmemset.
5927
5928 * sysdeps/m68k/wcpcpy.c: Remove file.
5929 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5930
5931 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5932
5933 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5934 than after operators.
5935 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5936 * sysdeps/mach/hurd/getcwd.c
5937 (__hurd_canonicalize_directory_name_internal): Likewise.
5938 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5939 (pthread_mutex_consistent): Likewise.
5940 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5941 Likewise.
5942 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5943 (__pthread_mutex_transfer_np): Likewise.
5944 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5945 (__pthread_mutex_unlock): Likewise.
5946 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5947 (mtx_owned_p): Likewise.
5948 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5949 (pthread_mutexattr_getrobust): Likewise.
5950 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5951 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5952 Likewise.
5953 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5954 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5955 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5956 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5957 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5958 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5959 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5960 Likewise.
5961 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5962 Likewise.
5963 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5964 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5965 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5966 (____longjmp_chk): Likewise.
5967 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5968 Likewise.
5969 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5970 (INTERNAL_SYSCALL): Likewise.
5971 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5972 (INTERNAL_SYSCALL): Likewise.
5973 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5974 (__get_clockfreq_via_cpuinfo): Likewise.
5975
5976 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5977 comments.
5978 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5979 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5980 (WORD_COPY_BWD): Likewise.
5981 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5982 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5983 Likewise.
5984 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5985 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5986 comment.
5987 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5988
5989 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5990
5991 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5992 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5993 rather than after operators.
5994 * elf/cache.c (print_cache): Likewise.
5995 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5996 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5997 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5998 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5999 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
6000 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
6001 (reauth_proc): Likewise.
6002 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
6003 (__file_name_split_at): Likewise.
6004 (__directory_name_split_at): Likewise.
6005 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6006 * hurd/port2fd.c (_hurd_port2fd): Likewise.
6007 * iconv/gconv_dl.c (do_print): Likewise.
6008 * inet/netinet/in.h (struct sockaddr_in): Likewise.
6009 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
6010 * locale/setlocale.c (new_composite_name): Likewise.
6011 * malloc/memusagestat.c (main): Likewise.
6012 * misc/fstab.c (fstab_convert): Likewise.
6013 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
6014 Likewise.
6015 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
6016 (getgrent_next_file): Likewise.
6017 (internal_getgrnam_r): Likewise.
6018 (internal_getgrgid_r): Likewise.
6019 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
6020 Likewise.
6021 (internal_getgrent_r): Likewise.
6022 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
6023 (getpwent_next_nss): Likewise.
6024 (getpwent_next_file): Likewise.
6025 (internal_getpwnam_r): Likewise.
6026 (internal_getpwuid_r): Likewise.
6027 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
6028 Likewise.
6029 (getspent_next_nss): Likewise.
6030 (internal_getspnam_r): Likewise.
6031 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
6032 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
6033 * string/strchr.c (STRCHR): Likewise.
6034 * string/strchrnul.c (STRCHRNUL): Likewise.
6035 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
6036 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6037 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
6038 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
6039 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
6040 Likewise.
6041 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
6042 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6043 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6044 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
6045 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6046 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6047 (open_file): Likewise.
6048 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6049 (pthread_mutexattr_setprotocol): Likewise.
6050 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6051 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6052 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6053 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6054 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6055 Likewise.
6056 (elf_machine_rela): Likewise.
6057 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6058 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6059 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6060 * sysdeps/posix/rename.c (rename): Likewise.
6061 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6062 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6063 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6064 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6065 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6066 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6067 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6068 Likewise.
6069 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6070 Likewise.
6071 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6072 * time/tzfile.c (__tzfile_compute): Likewise.
6073
6074 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6075
6076 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6077 rather than after operators.
6078 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6079 * crypt/md5.c (md5_finish_ctx): Likewise.
6080 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6081 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6082 * elf/cache.c (load_aux_cache): Likewise.
6083 * elf/dl-load.c (open_verify): Likewise.
6084 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6085 * elf/readelflib.c (process_elf_file): Likewise.
6086 * elf/rtld.c (dl_main): Likewise.
6087 * elf/sprof.c (generate_call_graph): Likewise.
6088 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6089 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6090 * hurd/dtable.c (reauth_dtable): Likewise.
6091 * hurd/getdport.c (__getdport): Likewise.
6092 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6093 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6094 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6095 Likewise.
6096 * hurd/hurdioctl.c (fioctl): Likewise.
6097 * hurd/hurdselect.c (_hurd_select): Likewise.
6098 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6099 (STOPSIGS): Likewise.
6100 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6101 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6102 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6103 * hurd/msgportdemux.c (msgport_server): Likewise.
6104 * hurd/setauth.c (_hurd_setauth): Likewise.
6105 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6106 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6107 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6108 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6109 * login/tst-utmp.c (do_check): Likewise.
6110 (simulate_login): Likewise.
6111 * mach/lowlevellock.h (lll_lock): Likewise.
6112 (lll_trylock): Likewise.
6113 * math/test-fenv.c (ALL_EXC): Likewise.
6114 * math/test-fenvinline.c (ALL_EXC): Likewise.
6115 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6116 * nis/nis_call.c (__do_niscall3): Likewise.
6117 * nis/nis_callback.c (cb_prog_1): Likewise.
6118 * nis/nis_defaults.c (searchaccess): Likewise.
6119 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6120 * nis/nis_ismember.c (internal_ismember): Likewise.
6121 * nis/nis_local_names.c (nis_local_principal): Likewise.
6122 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6123 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6124 Likewise.
6125 * nis/ypclnt.c (yp_match): Likewise.
6126 (yp_first): Likewise.
6127 (yp_next): Likewise.
6128 (yp_master): Likewise.
6129 (yp_order): Likewise.
6130 * nscd/hstcache.c (cache_addhst): Likewise.
6131 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6132 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6133 (internal_getpwuid_r): Likewise.
6134 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6135 * posix/glob.h (__GLOB_FLAGS): Likewise.
6136 * posix/regcomp.c (peek_token): Likewise.
6137 (peek_token_bracket): Likewise.
6138 (parse_expression): Likewise.
6139 * posix/regexec.c (sift_states_iter_mb): Likewise.
6140 (check_node_accept_bytes): Likewise.
6141 * posix/tst-spawn3.c (do_test): Likewise.
6142 * posix/wordexp-test.c (testit): Likewise.
6143 * posix/wordexp.c (parse_tilde): Likewise.
6144 (exec_comm): Likewise.
6145 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6146 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6147 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6148 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6149 * stdio-common/tst-fileno.c (do_test): Likewise.
6150 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6151 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6152 * stdlib/strtod_l.c (round_and_return): Likewise.
6153 (____STRTOF_INTERNAL): Likewise.
6154 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6155 * string/strcspn.c (STRCSPN): Likewise.
6156 * string/test-memmem.c (simple_memmem): Likewise.
6157 * termios/tcsetattr.c (tcsetattr): Likewise.
6158 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6159 * time/asctime.c (asctime_internal): Likewise.
6160 * time/strptime_l.c (__strptime_internal): Likewise.
6161 * time/sys/time.h (timercmp): Likewise.
6162 * time/tzfile.c (__tzfile_compute): Likewise.
6163
6164 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6165
6166 [BZ #21915]
6167 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6168
6169 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6170
6171 * argp/argp-help.c (__argp_error_internal): New function,
6172 renamed from __argp_error, but that takes a 'mode_flags'
6173 parameter to control the format of long double parameters.
6174 (__argp_error): Converted into a call __argp_error_internal.
6175 (__argp_failure_internal): New function, renamed from
6176 __argp_failure, but that takes a 'mode_flags' parameter.
6177 (__argp_failure): Converted into a call __argp_failure_internal.
6178 * misc/err.c (__vwarnx_internal): New function, renamed from
6179 vwarnx, but that takes a 'mode_flags' parameter.
6180 (vwarnx): Converted into a call to __vwarnx_internal.
6181 (__vwarn_internal): New function, renamed from vwarn, but that
6182 takes a 'mode_flags' parameter.
6183 (vwarn): Converted into a call to __vwarn_internal.
6184 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6185 call to __vfxprintf with 'mode_flags'.
6186 (__error_internal): New function, renamed from error, but that
6187 takes a 'mode_flags' parameter.
6188 (error): Converted into a call to __error_internal.
6189 (__error_at_line_internal): New function, renamed from
6190 error_at_line, but that takes a 'mode_flags' parameter.
6191 (error_at_line): Converted into a call to
6192 __error_at_line_internal.
6193 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6194 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6195 Likewise.
6196
6197 2019-02-20 Martin Liska <mliska@suse.cz>
6198
6199 * math/Makefile: Install math-vector-fortran.h.
6200 * bits/math-vector-fortran.h: New file.
6201 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6202
6203 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6204
6205 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6206 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6207
6208 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6209
6210 * nptl/pthread_mutex_trylock.c: Fix comment.
6211
6212 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6213
6214 * nptl/pthread_tryjoin.c: Fix comment.
6215
6216 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6217
6218 [BZ #24231]
6219 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6220 after R_SPARC_H34 case.
6221
6222 2019-02-18 Florian Weimer <fweimer@redhat.com>
6223
6224 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6225 (getanswer): Do not call Dprintf.
6226 (res_gethostbyname2_context): Likewise.
6227 (res_gethostbyaddr_context): Likewise.
6228
6229 2019-02-18 Florian Weimer <fweimer@redhat.com>
6230
6231 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6232 declaration.
6233 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6234 Remove definitions.
6235 * libio/stdfiles.c: Update comment.
6236 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6237 set _IO_stdin, _IO_stdout, _IO_stderr.
6238 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6239 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6240 inline function.
6241 (_IO_deallocate_file): New inline function.
6242 * libio/iolibio.h (_IO_vprintf): Remove definition.
6243 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6244 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6245 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6246 _IO_legacy_file.
6247 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6248 __builtin_expect. Use _IO_legacy_file.
6249
6250 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6251
6252 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6253 Initialize ctid with a known value and remove update of ctid
6254 after clone.
6255 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6256 as assumed current value of ctid_ptr.
6257
6258 2019-02-16 Florian Weimer <fweimer@redhat.com>
6259
6260 Check that non-sysdeps headers have wrapper headers.
6261 * scripts/check-wrapper-headers.py: New file.
6262 * Makefile (tests-special): Add check-wrapper-headers.out.
6263 (check-wrapper-headers.out): New target.
6264 * Rules (tests-special): Add check-wrapper-headers.out.
6265 (check-wrapper-headers.out): New target.
6266
6267 2019-02-16 Florian Weimer <fweimer@redhat.com>
6268
6269 Add missing header wrappers under include/.
6270 * include/ar.h: New file.
6271 * include/bits/mqueue2.h: Likewise.
6272 * include/bits/stdio.h: Likewise.
6273 * include/bits/stdio2.h: Likewise.
6274 * include/fstab.h: Likewise.
6275 * include/fts.h: Likewise.
6276 * include/lastlog.h: Likewise.
6277 * include/netinet/icmp6.h: Likewise.
6278 * include/netinet/igmp.h: Likewise.
6279 * include/netinet/ip6.h: Likewise.
6280 * include/re_comp.h: Likewise.
6281 * include/regexp.h: Likewise.
6282 * include/rpcsvc/bootparam.h: Likewise.
6283 * include/rpcsvc/yp_prot.h: Likewise.
6284 * include/sys/random.h: Likewise.
6285 * include/sys/stropts.h: Likewise.
6286 * include/sys/ttychars.h: Likewise.
6287 * include/sys/vfs.h: Likewise.
6288 * include/wait.h: Likewise.
6289
6290 2019-02-16 Florian Weimer <fweimer@redhat.com>
6291
6292 * nptl_db/proc_service.h: Move to ...
6293 * sysdeps/nptl/proc_service.h: ... here.
6294 * nptl_db/thread_db.h: Move to ...
6295 * sysdeps/nptl/thread_db.h: ... here.
6296 * nptl/descr.h: Include <thread_db.h>.
6297
6298 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6299
6300 * io/Makefile (tests): Add tst-lockf.
6301 * io/lockf.c (lockf): Use __fcntl and only define for
6302 !__OFF_T_MATCHES_OFF64_T.
6303 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6304 __OFF_T_MATCHES_OFF64_T case.
6305 * io/tst-lockf.c: New file.
6306 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6307 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6308 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6309 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6310 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6312 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6313 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6314 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6315
6316 2019-02-15 Florian Weimer <fweimer@redhat.com>
6317
6318 [BZ #24211]
6319 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6320 pd->result after the thread descriptor has been freed.
6321
6322 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6323
6324 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6325 from function return type.
6326
6327 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6328
6329 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6330
6331 * scripts/test_printers_common.py: Set TERM to a known harmless
6332 value.
6333
6334 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6335
6336 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6337 (xdr_u_int): Likewise.
6338 (xdr_enum): Likewise.
6339 (xdr_bytes): Reword fall-through comment.
6340 (xdr_string): Likewise.
6341
6342 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6343
6344 [BZ #2421]
6345 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6346 (tests): Add tst-join8 tst-join9.
6347 * nptl/lll_timedwait_tid.c: Remove file.
6348 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6349 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6350 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6351 * nptl/pthread_join_common.c (timedwait_tid): New function.
6352 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6353 is set.
6354 * nptl/tst-join5.c (thread_join): New function.
6355 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6356 check.
6357 * nptl/tst-join8.c: New file.
6358 * nptl/tst-join9.c: Likewise.
6359 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6360 lll_futex_timed_wait_cancel): Add generic macros.
6361 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6362 Remove definitions.
6363 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6364 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6365 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6366 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6367 Remove function.
6368 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6369 Likewise.
6370 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6371 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6372 (lll_futex_timed_wait_cancel): New macro.
6373
6374 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6375
6376 * benchtests/Makefile: Add malloc-simple benchmark.
6377 * benchtests/bench-malloc-simple.c: New benchmark.
6378
6379 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6380
6381 * benchtests/bench-memmove.c (do_one_test): Remove unused
6382 ORIG_SRC.
6383 (do_test): Adjust.
6384 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6385 ORIG_SRC.
6386 (do_test): Adjust.
6387
6388 2019-01-13 Jim Wilson <jimw@sifive.com>
6389
6390 [BZ #24040]
6391 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6392 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6393 (func): New.
6394 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6395 call func directly.
6396 * nptl/Makefile (tests): Add tst-unwind-thread.
6397 (CFLAGS-tst-unwind-thread.c): Define.
6398 * nptl/tst-unwind-thread.c: New file.
6399 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6400 as undefined.
6401
6402 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6403
6404 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6405 comment wording.
6406 * nis/nis_call.c (__do_niscall3): Likewise.
6407
6408 * catgets/gencat.c (normalize_line): Use braces around empty
6409 'else' body.
6410 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6411 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6412 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6413 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6414 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6415 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6416 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6417 definition.
6418
6419 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6420 execlp returns.
6421
6422 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6423
6424 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6425 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6426 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6427 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6428 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6429 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6430 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6431 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6432 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6433 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6434 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6435 * benchtests/bench-bcopy.c: Delete file.
6436 * benchtests/bench-bzero.c: Likewise.
6437 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6438 (simple_memccpy): Remove.
6439 (generic_memccpy): Add function.
6440 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6441 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6442 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6443 (generic_mempcpy): Add new function.
6444 * benchtests/bench-memset.c (simple_bzero): Remove.
6445 (builtin_bzero): Remove.
6446 (builtin_memset): Remove.
6447 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6448 (generic_rawmemchr): Add new function.
6449
6450 2019-02-12 Florian Weimer <fweimer@redhat.com>
6451
6452 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6453
6454 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6455
6456 [BZ #24122]
6457 * elf/Makefile (tests): Add tst-audit13.
6458 (modules-names): Add tst-audit13mod1.
6459 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6460 rule.
6461 * elf/tst-audit13.c: New file.
6462 * elf/tst-audit13mod1.c: Likewise.
6463
6464 2019-02-12 Florian Weimer <fweimer@redhat.com>
6465
6466 [BZ #24122]
6467 * elf/rtld.c (unload_audit_module): New function.
6468 (report_audit_module_load_error): Likewise.
6469 (load_audit_module): Likewise. Extracted from dl_main. Call
6470 _dl_close if the laversion symbol cannot be found. Use early
6471 returns for error handling. Add malloc error check. Check for a
6472 zero return value from la_version. Remove spurious comment about
6473 static TLS initialization. Remove useless casts.
6474 (notify_audit_modules_of_loaded_object): New function. Extracted
6475 from dl_main.
6476 (load_audit_module): Likewise.
6477 (dl_main): Call load_audit_modules.
6478
6479 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6480
6481 * elf/dl-exception.c (_dl_exception_create_format): Add
6482 fall-through comments.
6483 * elf/ldconfig.c (parse_conf_include): Likewise.
6484 * elf/rtld.c (print_statistics): Likewise.
6485 * locale/programs/charmap.c (parse_charmap): Likewise.
6486 * misc/mntent_r.c (__getmntent_r): Likewise.
6487 * posix/wordexp.c (parse_arith): Likewise.
6488 (parse_backtick): Likewise.
6489 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6490 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6491 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6492
6493 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6494
6495 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6496 Use float instead of double.
6497
6498 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6499
6500 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6501
6502 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6503
6504 * sysdeps/powerpc/bits/mathinline.h: Remove.
6505
6506 2019-02-08 Florian Weimer <fweimer@redhat.com>
6507
6508 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6509 * math/bits/math-finite.h: Move to ...
6510 * bits/math-finite.h: ... here.
6511
6512 2019-02-08 Florian Weimer <fweimer@redhat.com>
6513
6514 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6515 * bits/unistd_ext.h: here.
6516
6517 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6518
6519 [BZ #21915]
6520 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6521 * nss/tst-nss-files-hosts-long.c: New file.
6522 * nss/tst-nss-files-hosts-long.root: New directory.
6523 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6524 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6525
6526 2019-02-08 Florian Weimer <fweimer@redhat.com>
6527
6528 * include/bits/unistd_ext.h: Remove file.
6529 * posix/bits/unistd_ext.h: Move to ...
6530 * sysdeps/generic/bits/unistd_ext.h: ... here.
6531
6532 2019-02-08 Florian Weimer <fweimer@redhat.com>
6533
6534 * include/bits/unistd_ext.h: New file.
6535
6536 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6537
6538 * time/tst-strftime2.c: Use array_length macros instead of magic
6539 numbers.
6540
6541 2019-02-08 Florian Weimer <fweimer@redhat.com>
6542
6543 [BZ #24161]
6544 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6545 argument.
6546 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6547 locking if the new do_locking argument is true.
6548 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6549 __run_fork_handlers.
6550
6551 2019-02-08 Florian Weimer <fweimer@redhat.com>
6552
6553 [BZ #6399]
6554 Linux: Add gettid system call wrapper.
6555 * posix/Makefile (headers): Add bits/unistd_ext.h.
6556 * posix/bits/unistd_ext.h: New file.
6557 * posix/unistd.h: Include it.
6558 * manual/process.texi (Process Identification): Document gettid.
6559 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6560 tst-gettid, tst-gettid-kill.
6561 (tst-gettid): Link with $(shared-thread-library).
6562 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6563 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6564 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6565 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6566 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6567 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6568 Add gettid.
6569 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6570 Likewise.
6571 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6572 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6573 Likewise.
6574 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6575 Likewise.
6576 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6577 Likewise.
6578 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6579 Likewise.
6580 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6581 Likewise.
6582 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6583 Likewise.
6584 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6585 Likewise.
6586 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6587 (GLIBC_2.30): Likewise.
6588 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6589 (GLIBC_2.30): Likewise.
6590 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6591 (GLIBC_2.30): Likewise.
6592 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6593 (GLIBC_2.30): Likewise.
6594 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6595 Likewise.
6596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6597 (GLIBC_2.30): Likewise.
6598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6599 (GLIBC_2.30): Likewise.
6600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6601 (GLIBC_2.30): Likewise.
6602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6603 (GLIBC_2.30): Likewise.
6604 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6605 Likewise.
6606 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6607 Likewise.
6608 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6609 Likewise.
6610 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6611 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6612 Likewise.
6613 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6614 Likewise.
6615 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6616 Likewise.
6617 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6618 Likewise.
6619 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6620
6621 2019-02-08 Florian Weimer <fweimer@redhat.com>
6622
6623 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6624 compatibility symbols.
6625
6626 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6627
6628 [BZ #24180]
6629 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6630 Add compiler barriers and comments.
6631
6632 2019-02-07 Florian Weimer <fweimer@redhat.com>
6633
6634 * include/array_length.h (array_length): Do not use a statement
6635 expression and _Static_assert, so that array_length can be used at
6636 file scope and as a constant expression.
6637
6638 2019-02-07 Florian Weimer <fweimer@redhat.com>
6639
6640 * support/xdlfcn.h (xdlmopen): Declare.
6641 * support/xdlmopen.c: New file.
6642 * support/Makefile (libsupport-routines): Add xdlmopen.
6643
6644 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6645
6646 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6647 before return type, without separate inline.
6648 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6649 * elf/dl-tunables.h (tunable_is_name): Likewise.
6650 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6651 (do_set_top_pad): Likewise.
6652 (do_set_mmap_threshold): Likewise.
6653 (do_set_mmaps_max): Likewise.
6654 (do_set_mallopt_check): Likewise.
6655 (do_set_perturb_byte): Likewise.
6656 (do_set_arena_test): Likewise.
6657 (do_set_arena_max): Likewise.
6658 (do_set_tcache_max): Likewise.
6659 (do_set_tcache_count): Likewise.
6660 (do_set_tcache_unsorted_limit): Likewise.
6661 * nis/nis_subr.c (count_dots): Likewise.
6662 * nptl/allocatestack.c (advise_stack_range): Likewise.
6663 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6664 (do_sin): Likewise.
6665 (reduce_sincos): Likewise.
6666 (do_sincos): Likewise.
6667 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6668 (do_set_elision_enable): Likewise.
6669 (TUNABLE_CALLBACK_FNDECL): Likewise.
6670
6671 2019-02-06 Florian Weimer <fweimer@redhat.com>
6672
6673 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6674 (xdlsym): Use dlerror to detect a NULL symbol.
6675
6676 2019-02-06 Florian Weimer <fweimer@redhat.com>
6677
6678 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6679 <stap-probe.h>.
6680 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6681
6682 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6683
6684 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6685
6686 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6687
6688 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6689 __wmemcmp and weak alias to wmemcmp.
6690
6691 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6692
6693 [BZ #23403]
6694 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6695 TLS_TCB_AT_TP tls variant.
6696 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6697 Add alignment checks.
6698 * support/Makefile (libsupport-routines): Add xposix_memalign and
6699 xpthread_setstack.
6700 * support/support.h: Add xposix_memalign.
6701 * support/xthread.h: Add xpthread_attr_setstack.
6702 * support/xposix_memalign.c: New File.
6703 * support/xpthread_attr_setstack.c: Likewise.
6704
6705 2019-02-05 Florian Weimer <fweimer@redhat.com>
6706
6707 [BZ #24164]
6708 arm: Use "nr" constraint for Systemtap probes, to avoid the
6709 compiler using memory operands for constants, due to the "o"
6710 alternative in the default "nor" constraint.
6711 * include/stap-probe.h [USE_STAP_PROBE]: Include
6712 <stap-probe-machine.h>
6713 * sysdeps/generic/stap-probe-machine.h: New file.
6714 * sysdeps/arm/stap-probe-machine.h: Likewise.
6715
6716 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6717
6718 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6719 with 0, not tcache->entries[tc_idx].
6720
6721 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6722 once.
6723
6724 2019-02-04 Andreas Schwab <schwab@suse.de>
6725
6726 [BZ #16976]
6727 [BZ #17396]
6728 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6729 looking up collating elements match against (wide) character
6730 sequence instead of name. Correct alignment adjustment.
6731 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6732 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6733 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6734 (LOCALES): Add cs_CZ.ISO-8859-2.
6735 * posix/tst-fnmatch4.c: New file.
6736 * posix/tst-fnmatch5.c: New file.
6737 * include/wchar.h (__wmemcmp): Declare.
6738 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6739 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6740 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6741 * sysdeps/s390/wmemcmp.c: Likewise.
6742
6743 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6744
6745 [BZ #24155]
6746 CVE-2019-7309
6747 * NEWS: Updated for CVE-2019-7309.
6748 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6749 upper 32 bits of RDX register for x32. Use unsigned Jcc
6750 instructions, instead of signed.
6751 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6752 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6753
6754 2019-02-04 Florian Weimer <fweimer@redhat.com>
6755
6756 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6757 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6758 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6759 Likewise.
6760 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6761 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6762 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6763 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6764 Likewise.
6765 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6766 Likewise.
6767 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6768 Likewise.
6769 (posix_spawn_file_actions_addopen): Likewise.
6770 (posix_spawn_file_actions_addclose): Likewise.
6771 (posix_spawn_file_actions_adddup2): Likewise.
6772 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6773 qualifiers.
6774 (posix_spawn_file_actions_addfchdir_np): Likewise.
6775
6776 2019-02-04 David Newall <glibc@davidnewall.com>
6777
6778 elf: Implement --preload option for the dynamic linker.
6779 * elf/rtld.c (preloadarg): New variable.
6780 (handle_preload_list): Pass through “where” argument to
6781 do_preload.
6782 (dl_main): Handle "--preload" and add second call to
6783 handle_preload_list.
6784 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6785 (tst-rtld-preload-OBJS): Set variable.
6786 (tst-rtld-preload.out): New target.
6787 * elf/tst-rtld-preload.sh: New file.
6788
6789 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6790
6791 * Makefile (testrun.sh): Exit in case of incorrect argument.
6792
6793 2019-02-04 Florian Weimer <fweimer@redhat.com>
6794
6795 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6796 alignment gaps.
6797
6798 2019-02-03 Florian Weimer <fweimer@redhat.com>
6799
6800 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6801 implicit overflow checks.
6802
6803 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6804
6805 * stdlib/isomac.c: Include <unistd.h>.
6806
6807 2019-02-03 Florian Weimer <fweimer@redhat.com>
6808
6809 * include/time.h (__tzfile_default): Use int, not long int, for
6810 the GMT offsets.
6811 * time/tzfile.c (struct ttinfo): Change type of the offset member
6812 to int.
6813 (__tzfile_read): Remove useless cast.
6814 (__tzfile_default): Adjust prototype.
6815 * time/tzset.c (tz_rule): Change type of the offset member to int.
6816 (parse_offset): Change the type of the sign variable to int.
6817
6818 2019-02-03 Florian Weimer <fweimer@redhat.com>
6819
6820 [BZ #24153]
6821 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6822 * libio/getchar.c (getchar): Likewise.
6823 * libio/getchar_u.c (getchar_unlocked): Likewise.
6824 * libio/getwchar.c (getwchar): Likewise.
6825 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6826 * libio/iogets.c (_IO_gets): Likewise.
6827 * libio/vscanf.c (_IO_vscanf): Likewise.
6828 * libio/vwscanf.c (__vwscanf): Likewise.
6829 * libio/tst-bz24153.c: New file.
6830 * libio/Makefile (tests): Add it.
6831
6832 2019-02-02 Florian Weimer <fweimer@redhat.com>
6833
6834 [BZ #14829]
6835 * manual/resource.texi (Basic Scheduling Functions): Add
6836 portability note. Change process to task throughout the section.
6837 Remove incorrect comment about sched_yield as it affects
6838 tasks/threads, not entire processes.
6839 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6840 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6841
6842 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6843
6844 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6845 * configure: Regenerated.
6846 * manual/install.texi (Tools for Compilation): Update minimum GCC
6847 version.
6848 * INSTALL: Regenerated.
6849
6850 2019-02-01 Florian Weimer <fweimer@redhat.com>
6851
6852 * support/support_test_compare_string.c
6853 (support_test_compare_string): Use "string" in error message.
6854 * support/tst-test_compare_string.c (do_test): Adjust.
6855
6856 2019-02-01 Florian Weimer <fweimer@redhat.com>
6857
6858 * support/support_format_address_family.c
6859 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6860
6861 2019-02-01 Florian Weimer <fweimer@redhat.com>
6862
6863 * manual/socket.texi (Internet Address Formats): Clarify the byte
6864 order of struct sockaddr_in, struct sockaddr_in6. Document
6865 sin6_flowinfo and sin6_scope_id.
6866
6867 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6868
6869 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6870 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6871 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6872 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6873 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6874 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6875
6876 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6877
6878 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6879 [!MEMCHR](MEMCHR): Set to __memchr.
6880 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6881 Add memchr_generic and memchr_nosimd.
6882 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6883 (__libc_ifunc_impl_list): Add memchr ifuncs.
6884 * sysdeps/aarch64/multiarch/memchr.c: New file.
6885 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6886 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6887
6888 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6889
6890 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6891 Add memset_emag.
6892 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6893 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6894 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6895 Add IS_EMAG check for ifunc dispatch.
6896 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6897 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6898
6899 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6900
6901 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6902 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6903 Add emag.
6904 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6905 New macro.
6906
6907 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6908
6909 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6910
6911 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6912
6913 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6914 syscall-template file.
6915
6916 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6917 Torvald Riegel <triegel@redhat.com>
6918 Rik Prohaska <prohaska7@gmail.com>
6919
6920 [BZ# 23844]
6921 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6922 tst-rwlock-trywrlock-stall.
6923 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6924 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6925 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6926 Set __wrphase_fute to 1 only if we started the write phase.
6927 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6928 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6929 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6930 * support/xpthread_rwlock_destroy.c: New file.
6931 * support/xthread.h: Declare xpthread_rwlock_destroy.
6932
6933 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6934
6935 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6936 version to 4.0.2.
6937
6938 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6939
6940 [BZ #24051]
6941 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6942 * libio/fileops.c (_IO_new_file_underflow): Likewise
6943 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6944 * libio/putchar.c (putchar): Likewise.
6945 * libio/putchar_u.c (putchar_unlocked): Likewise.
6946 * libio/putwchar.c (putchar): Likewise.
6947 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6948 * libio/tst-bz24051.c: New test.
6949 * libio/Makefile (tests): Add tst-bz24051
6950
6951 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6952
6953 CVE-2019-9169
6954 regex: fix read overrun [BZ #24114]
6955 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6956 https://debbugs.gnu.org/34140
6957 * posix/regexec.c (proceed_next_node):
6958 Do not read past end of input buffer.
6959
6960 2019-01-31 Florian Weimer <fweimer@redhat.com>
6961
6962 [BZ #24059]
6963 * nss/nss_files/files-alias.c (get_next_alias): Handle
6964 continuation line without newline at the end.
6965 * nss/tst-nss-files-alias-truncated.c: New file.
6966 * nss/Makefile [$(build-shared)] (tests): Add
6967 tst-nss-files-alias-truncated.
6968 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6969 * support/namespace.h (struct support_chroot_configuration): Add
6970 aliases member.
6971 (struct support_chroot): Add path_aliases member.
6972 * support/support_chroot.c (support_chroot_create): Handle
6973 aliases.
6974 (support_chroot_free): Free path_aliases.
6975
6976 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6977
6978 * version.h (RELEASE): Set to "development".
6979 (VERSION): Set to "2.29.9000".
6980 * NEWS: Add section for 2.30.
6981
6982 * version.h (RELEASE): Set to "stable".
6983 (VERSION): Set to "2.29".
6984 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6985
6986 * NEWS: Add the list of bugs fixed in 2.29.
6987 * manual/contrib.texi: Update contributors list with some more
6988 names.
6989 * manual/install.texi: Update latest versions of packages
6990 tested.
6991 * INSTALL: Regenerated.
6992
6993 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6994
6995 * po/be.po: Update translations.
6996 * po/bg.po: Likewise.
6997 * po/ca.po: Likewise.
6998 * po/cs.po: Likewise.
6999 * po/da.po: Likewise.
7000 * po/de.po: Likewise.
7001 * po/el.po: Likewise.
7002 * po/eo.po: Likewise.
7003 * po/es.po: Likewise.
7004 * po/fi.po: Likewise.
7005 * po/fr.po: Likewise.
7006 * po/gl.po: Likewise.
7007 * po/hr.po: Likewise.
7008 * po/hu.po: Likewise.
7009 * po/ia.po: Likewise.
7010 * po/id.po: Likewise.
7011 * po/it.po: Likewise.
7012 * po/ja.po: Likewise.
7013 * po/ko.po: Likewise.
7014 * po/lt.po: Likewise.
7015 * po/nb.po: Likewise.
7016 * po/nl.po: Likewise.
7017 * po/pl.po: Likewise.
7018 * po/pt_BR.po: Likewise.
7019 * po/ru.po: Likewise.
7020 * po/rw.po: Likewise.
7021 * po/sk.po: Likewise.
7022 * po/sl.po: Likewise.
7023 * po/sv.po: Likewise.
7024 * po/tr.po: Likewise.
7025 * po/uk.po: Likewise.
7026 * po/vi.po: Likewise.
7027 * po/zh_CN.po: Likewise.
7028 * po/zh_TW.po: Likewise.
7029
7030 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7031
7032 [BZ #24130]
7033 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
7034 of $f3 register on $y_is_neg path.
7035
7036 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
7037
7038 [BZ #24110]
7039 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
7040 sigaltstack.ss_flags.
7041
7042 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
7043
7044 [BZ #23758]
7045 * manual/time.texi (strftime): Document "%Ey".
7046 * time/strftime_l.c (__strftime_internal): Set the default width
7047 padding with zero of "%Ey" to 2.
7048
7049 [BZ #24096]
7050 * manual/time.texi (strftime): Document "%EC" and "%EY".
7051 * time/Makefile (tests): Add tst-strftime2.
7052 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7053 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7054 override padding for "%Ey".
7055 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7056 "%Ey" in the subformat as if decorated with that flag.
7057 * time/tst-strftime2.c: New file.
7058
7059 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7060
7061 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7062 are not defined.
7063
7064 [BZ #24122]
7065 * elf/Makefile (tests): Add tst-audit13.
7066 (modules-names): Add tst-audit13mod1.
7067 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7068 rule.
7069 * elf/rtld.c (dl_main): Handle invalid audit module version.
7070 * elf/tst-audit13.c: New file.
7071 * elf/tst-audit13mod1.c: Likewise.
7072
7073 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7074
7075 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7076 returned by __hurd_at_flags.
7077 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7078 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7079 directly instead of __hurd_file_name_lookup.
7080
7081 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7082
7083 * scripts/build-many-glibcs.py (Context.checkout): Default
7084 binutils version to 2.32 branch.
7085
7086 2019-01-21 Florian Weimer <fweimer@redhat.com>
7087
7088 [BZ #20018]
7089 CVE-2016-10739
7090 resolv: Reject trailing characters in host names
7091 * include/arpa/inet.h (__inet_aton_exact): Declare.
7092 (inet_aton): Remove hidden prototype. No longer used internally.
7093 * nscd/gai.c (__inet_aton): Do not define.
7094 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7095 * nss/digits_dots.c (__inet_aton): Likewise.
7096 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7097 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7098 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7099 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7100 (tst-resolv-trailing): Likewise.
7101 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7102 libc.
7103 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7104 Make static. Add endp parameter.
7105 (__inet_aton_exact): New function.
7106 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7107 (__inet_addr): Call inet_aton_end.
7108 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7109 not just IPv6. Call __inet_aton_exact.
7110 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7111 (tests): Make const. Add additional test cases with trailing
7112 characters.
7113 (do_test): Use array_length.
7114 * resolv/tst-inet_aton_exact.c: New file.
7115 * resolv/tst-resolv-trailing.c: Likewise.
7116 * resolv/tst-resolv-nondecimal.c: Likewise.
7117 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7118
7119 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7120
7121 [BZ# 24097]
7122 CVE-2019-6488
7123 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7124 Clear the upper 32 bits of RSI register.
7125 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7126 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7127 and tst-size_t-wcsnlen.
7128 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7129 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7130
7131 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7132
7133 [BZ# 24097]
7134 CVE-2019-6488
7135 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7136 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7137 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7138 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7139 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7140
7141 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7142
7143 [BZ# 24097]
7144 CVE-2019-6488
7145 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7146 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7147 * sysdeps/x86_64/strcmp.S: Likewise.
7148 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7149 tst-size_t-strncmp and tst-size_t-wcsncmp.
7150 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7151 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7152 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7153
7154 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7155
7156 [BZ# 24097]
7157 CVE-2019-6488
7158 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7159 RDX_LP for length. Clear the upper 32 bits of RDX register.
7160 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7161 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7162 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7163 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7164
7165 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7166
7167 [BZ# 24097]
7168 CVE-2019-6488
7169 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7170 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7171 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7172 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7173
7174 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7175
7176 [BZ# 24097]
7177 CVE-2019-6488
7178 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7179 length. Clear the upper 32 bits of RDX register.
7180 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7181 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7182 Likewise.
7183 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7184 Likewise.
7185 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7186 tst-size_t-wmemchr.
7187 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7188
7189 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7190
7191 [BZ# 24097]
7192 CVE-2019-6488
7193 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7194 length. Clear the upper 32 bits of RDX register.
7195 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7196 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7197 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7198 tst-size_t-wmemcmp.
7199 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7200 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7201
7202 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7203
7204 [BZ# 24097]
7205 CVE-2019-6488
7206 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7207 upper 32 bits of RDX register.
7208 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7209 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7210 tst-size_t-wmemchr.
7211 * sysdeps/x86_64/x32/test-size_t.h: New file.
7212 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7213 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7214
7215 2019-01-18 Florian Weimer <fweimer@redhat.com>
7216
7217 [BZ #24112]
7218 resolv: Do not send queries for non-host-names in nss_dns.
7219 * resolv/nss_dns/dns-host.c (check_name): New function.
7220 (_nss_dns_gethostbyname2_r): Use it.
7221 (_nss_dns_gethostbyname_r): Likewise.
7222 (_nss_dns_gethostbyname4_r): Likewise.
7223
7224 2019-01-21 Florian Weimer <fweimer@redhat.com>
7225
7226 * resolv/inet_addr.c: Reformat to GNU style.
7227 (__inet_addr, __inet_aton): Update comment.
7228
7229 2019-01-18 Florian Weimer <fweimer@redhat.com>
7230
7231 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7232 ("malloc: Use current (C11-style) atomics for fastbin access").
7233 This commit introduces a substantial performance regression on
7234 POWER and Aarch64.
7235 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7236 (REMOVE_FB): Define.
7237 (_int_malloc): Use it and reindent.
7238 (_int_free): Use CAS loop with
7239 catomic_compare_and_exchange_val_rel.
7240 (malloc_consolidate): Use atomic_exchange_acq.
7241
7242
7243 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7244
7245 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7246 -Wl,-z,now.
7247 (LDFLAGS-tst-minsigstksz-2): Likewise.
7248 (LDFLAGS-tst-minsigstksz-3): Likewise.
7249 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7250 (LDFLAGS-tst-minsigstksz-4): Likewise.
7251
7252 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7253
7254 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7255 than "alternate".
7256
7257 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7258
7259 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7260
7261 2019-01-16 Zack Weinberg <zackw@panix.com>
7262
7263 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7264 (xget_sigstack_location): New test support functions.
7265 * support/xsigstack.c: New file, implementing them.
7266 * support/tst-xsigstack.c: New test for them.
7267 * support/Makefile: Update.
7268
7269 * signal/tst-minsigstksz-1.c
7270 * signal/tst-minsigstksz-2.c
7271 * signal/tst-minsigstksz-3.c
7272 * signal/tst-minsigstksz-3a.c
7273 * signal/tst-minsigstksz-4.c: New tests.
7274 * signal/Makefile: Run them.
7275
7276 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7277
7278 * po/libc.pot: Regenerate.
7279
7280 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7281
7282 * math/libm-test-fma.inc (fma_test_data): Set
7283 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7284
7285 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7286
7287 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7288 (do_test): Changed __vector __int128_t to __vector unsigned int.
7289
7290 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7291
7292 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7293 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7294 stpcpy-avx2 and stpncpy-avx2.
7295 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7296 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7297 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7298 and __stpncpy_avx2.
7299 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7300 ifunc-strcpy.h}: rename header for a more generic name.
7301 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7302 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7303 AVX unaligned load is fast and vzeroupper is preferred.
7304 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7305 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7306 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7307 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7308 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7309 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7310
7311 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7312
7313 * argp/argp-help.c: Fix typo in comment.
7314 * misc/sys/cdefs.h: Likewise.
7315 * posix/regexec.c (sift_states_iter_mb): Likewise.
7316 * socket/sockatmark.c: Likewise.
7317 * socket/sys/socket.h: Likewise.
7318 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7319 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7320 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7321 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7322 * sysdeps/unix/sockatmark.c: Likewise.
7323 * time/strptime_l.c: Likewise.
7324
7325 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7326
7327 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7328 missing space after the cast of "_NL_CURRENT".
7329
7330 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7331
7332 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7333 ifdef to fix read of VSCR.
7334 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7335 tst-ucontext-ppc64-vscr.c to test list.
7336 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7337
7338 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7339
7340 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7341 fall-through.
7342
7343 2019-01-09 Jim Wilson <jimw@sifive.com>
7344
7345 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7346
7347 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7348
7349 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7350 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7351 __memcpy_falkor for ares.
7352 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7353 Add new define.
7354 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7355 Add ares cpu.
7356
7357 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7358
7359 [BZ #24066]
7360 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7361 4_FP_W_TYPEs are used for IEEE quad precision.
7362 * soft-fp/extendhftf2.c: Likewise.
7363 * soft-fp/extendsftf2.c: Likewise.
7364 * soft-fp/extendxftf2.c: Likewise.
7365 * soft-fp/trunctfdf2.c: Likewise.
7366 * soft-fp/trunctfhf2.c: Likewise.
7367 * soft-fp/trunctfsf2.c: Likewise.
7368 * soft-fp/trunctfxf2.c: Likewise.
7369 * sysdeps/alpha/ots_cvttx.c: Likewise.
7370 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7371 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7372 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7373 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7374 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7375 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7376 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7377 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7378 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7379 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7380 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7381 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7382 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7383 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7384 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7385 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7386 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7387
7388 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7389
7390 [BZ #24024]
7391 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7392 code with -fmath-errno.
7393 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7394 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7395 * string/test-strerror-errno.c: New file.
7396
7397 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7398
7399 [BZ #24046]
7400 * localedata/locales/en_US (date_fmt): Add, set to
7401 "%a %d %b %Y %r %Z".
7402
7403 2019-01-07 Florian Weimer <fweimer@redhat.com>
7404
7405 [BZ #24063]
7406 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7407 instead of @var{errno}.
7408 (Parsing of Integers): Likewise.
7409 (Parsing of Floats): Likewise.
7410 * manual/filesys.texi (Working with Directory Trees): Likewise.
7411 (Temporary Files): Likewise.
7412 * manual/job.texi (Terminal Access Functions): Likewise.
7413 * manual/llio.texi (Synchronizing I/O): Likewise.
7414 * manual/math.texi (SVID Random): Likewise.
7415 * manual/message.texi (The catgets Functions): Likewise.
7416 (Translation with gettext): Likewise.
7417 (Locating gettext catalog): Likewise.
7418 (Charset conversion in gettext): Likewise.
7419 * manual/nss.texi (NSS Module Function Internals): Likewise.
7420 * manual/search.texi (Hash Search Function): Likewise.
7421 * manual/setjmp.texi (System V contexts): Likewise.
7422 * manual/time.texi (Sleeping): Likewise.
7423 * manual/users.texi (Lookup User): Likewise.
7424 (Lookup Group): Likewise.
7425
7426 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7427
7428 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7429 fix typo.
7430
7431 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7432
7433 [BZ #19444]
7434 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7435 __builtin_unreachable for default case in switch.
7436 (__ieee754_yn): Likewise.
7437 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7438 (__ieee754_ynl): Likewise.
7439 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7440 (__ieee754_ynl): Likewise.
7441 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7442 (__ieee754_ynl): Likewise.
7443
7444 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7445
7446 * manual/maint.texi: Use @{ and @}.
7447
7448 2019-01-04 Florian Weimer <fweimer@redhat.com>
7449
7450 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7451 function.
7452 (do_in_chroot_1): Call it.
7453 (run_chroot_tests):
7454 Improve error reporting in case it is not possible to create a
7455 collision for the PTY name required by the test.
7456
7457 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7458
7459 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7460 lll_wait_tid with timeout.
7461 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7462 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7463 futex_reltimed_wait_cancelable for cancelabla mode.
7464 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7465 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7466 macros.
7467 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7468 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7469 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7470 SYSCALL_CANCEL_NCS): New macro.
7471 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7472 (lll_timedwait_tid): Remove macro.
7473 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7474 Likewise.
7475 (lll_timedwait_tid): Likewise.
7476 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7477 Likewise.
7478 (lll_timedwait_tid): Likewise.
7479 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7480 Likewise.
7481 (lll_timedwait_tid): Likewise.
7482 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7483 Use INTERNAL_SYSCALL_CANCEL.
7484 * sysdeps/unix/sysv/linux/futex-internal.h
7485 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7486 instead of __pthread_{enable,disable}_asynccancel.
7487 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7488 (lll_futex_wait_cancel): New macro.
7489
7490 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7491 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7492
7493 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7494 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7495
7496 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7497 in backtrace analysis.
7498 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7499 side-effects.
7500 (tf_send): Likewise.
7501
7502 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7503 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7504 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7505 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7506 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7507 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7508 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7509 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7510 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7511 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7512 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7513 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7514 Likewise.
7515 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7516 tst-cancel-wrappers.sh.
7517 (generated): Remove tst-cancel-wrappers.out.
7518 (tst-cancel-wrappers.out): Remove rule.
7519 * nptl/tst-cancel-wrappers.sh: Remove file.
7520
7521 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7522
7523 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7524 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7525 Update.
7526
7527 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7528
7529 [BZ #23640]
7530 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7531 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7532 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7533 close-on-exec reset for adddup2 file action.
7534 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7535
7536 2019-01-03 Zack Weinberg <zackw@panix.com>
7537
7538 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7539 parameter. Only use deprecated scanf when __USE_GNU is defined
7540 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7541 than 201103L, whichever is relevant for the language being compiled.
7542
7543 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7544 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7545 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7546 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7547 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7548
7549 * libio/iovsscanf.c
7550 * libio/fwscanf.c
7551 * libio/iovswscanf.c
7552 * libio/swscanf.c
7553 * libio/vscanf.c
7554 * libio/vwscanf.c
7555 * libio/wscanf.c
7556 * stdio-common/fscanf.c
7557 * stdio-common/scanf.c
7558 * stdio-common/vfscanf.c
7559 * stdio-common/vfwscanf.c
7560 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7561 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7562 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7563 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7564 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7565 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7566 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7567 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7568 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7569 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7570 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7571 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7572 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7573 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7574 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7575
7576 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7577 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7578 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7579 not sscanf.
7580 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7581 with a preprocessor macro.
7582
7583 * stdio-common/bug21.c, stdio-common/scanf14.c:
7584 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7585 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7586 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7587 to xscanf, xfscanf, xsscanf.
7588
7589 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7590 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7591 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7592 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7593 xfscanf, xsscanf.
7594 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7595 override feature selection macros or provide definitions of u_char etc.
7596 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7597 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7598 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7599 with -std=gnu89.
7600
7601 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7602
7603 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7604 bits/termios-misc.h.
7605 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7606 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7607 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7608 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7609 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7610 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7611
7612 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7613 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7614 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7615 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7616 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7617 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7618 termios-misc.h.
7619 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7620 (sysdep_headers): Add termios-misc.h.
7621
7622 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7623 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7624 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7625
7626 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7627 termios-tcflow.h.
7628 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7629 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7630 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7631 TCSAFLUSH): Move to termios-tcflow.h.
7632 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7633 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7634 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7635 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7636
7637 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7638 termios-c_lflag.h.
7639 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7640 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7641 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7642 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7643 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7644 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7645 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7646 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7647 Likewise.
7648 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7649 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7650 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7651 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7652
7653 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7654 termios-c_cflag.h.
7655 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7656 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7657 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7658 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7659 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7660 termios-c_cflag.h.
7661 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7662 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7663 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7664 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7665
7666 [BZ #23783]
7667 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7668 termios-baud.h.
7669 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7670 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7671 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7672 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7673 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7674 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7675 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7676 __MAX_BAUD): Move to termios-baud.h.
7677 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7678 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7679 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7680 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7681 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7682
7683 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7684 termios-c_oflag.h.
7685 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7686 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7687 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7688 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7689 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7690 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7691 termios-c_oflag.h.
7692 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7693 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7694 FFR1): Likewise.
7695 [USE_MISC] (XTABS): Likewise.
7696 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7697 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7698 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7699 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7700
7701 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7702 termios-c_iflag.h.
7703 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7704 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7705 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7706 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7707 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7708 IUTF8): Move to termios-c_iflag.h.
7709 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7710 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7711 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7712 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7713
7714 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7715 termios-cc.h.
7716 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7717 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7718 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7719 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7720 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7721 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7722 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7723 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7724 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7725 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7726 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7727 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7728
7729 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7730 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7731 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7732 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7733 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7734 termios-struct.h.
7735 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7736 termios-struct.h.
7737 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7738 Likewise.
7739 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7740 Likewise.
7741 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7742 Likewise.
7743 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7744 Likewise.
7745 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7746 _HAVE_C_OSPEED): Define.
7747 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7748 _HAVE_C_OSPEED): Likewise.
7749 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7750 _HAVE_C_OSPEED): Likewise.
7751 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7752 (cfsetospeed): Check for define value instead of existence.
7753 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7754 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7755 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7756 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7757 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7758
7759 [BZ #17783]
7760 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7761 Define.
7762 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7763 (TIOCSER_TEMT): Likewise.
7764 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7765 (TEOCSER_TEMT): Likewise.
7766
7767 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7768
7769 [BZ #24011]
7770 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7771
7772 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7773
7774 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7775
7776 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7777
7778 * sysdeps/htl/pt-barrierattr-setpshared.c
7779 (pthread_barrierattr_setpshared): Add stub warning.
7780 * sysdeps/htl/pt-condattr-setpshared.c
7781 (pthread_condattr_setpshared): Likewise.
7782 * sysdeps/htl/pt-mutexattr-setpshared.c
7783 (pthread_mutexattr_setpshared): Likewise.
7784 * sysdeps/htl/pt-rwlockattr-setpshared.c
7785 (pthread_rwlockattr_setpshared): Likewise.
7786 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7787 (pthread_mutexattr_setpshared): Likewise.
7788
7789 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7790
7791 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7792 constants to match with Linux 4.20.
7793
7794 * sysdeps/mips/mips32/libm-test-ulps: Update.
7795 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7796
7797 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7798
7799 [BZ #24034]
7800 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7801 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7802 than __typeof (...) for the a_ptr variable.
7803
7804 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7805
7806 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7807 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7808 * libio/Makefile (tests): Add tst-sprintf-ub and
7809 tst-sprintf-chk-ub.
7810 (CFLAGS-tst-sprintf-ub.c): New variable.
7811 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7812 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7813 destination buffer and check for overflows in fortified mode.
7814 * libio/libioP.h (PRINTF_CHK): New macro.
7815 * libio/tst-sprintf-chk-ub.c: New file.
7816 * libio/tst-sprintf-ub.c: Likewise.
7817
7818 2019-01-02 Florian Weimer <fweimer@redhat.com>
7819
7820 [BZ #24018]
7821 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7822 failure.
7823
7824 2019-01-02 Florian Weimer <fweimer@redhat.com>
7825
7826 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7827
7828 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7829
7830 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7831 macro.
7832
7833 * sysdeps/unix/sysv/linux/netpacket/packet.h
7834 (PACKET_IGNORE_OUTGOING): New macro.
7835
7836 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7837 macro.
7838
7839 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7840 version to 4.20.
7841 (riscv_flush_icache): New syscall.
7842
7843 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7844 trailing whitespace removed.
7845 * scripts/config.guess: Update to version 2019-01-01.
7846 * scripts/config.sub: Update to version 2019-01-01.
7847 * scripts/move-if-change: Update from gnulib.
7848
7849 * NEWS: Update copyright dates.
7850 * catgets/gencat.c (print_version): Likewise.
7851 * csu/version.c (banner): Likewise.
7852 * debug/catchsegv.sh: Likewise.
7853 * debug/pcprofiledump.c (print_version): Likewise.
7854 * debug/xtrace.sh (do_version): Likewise.
7855 * elf/ldconfig.c (print_version): Likewise.
7856 * elf/ldd.bash.in: Likewise.
7857 * elf/pldd.c (print_version): Likewise.
7858 * elf/sotruss.sh: Likewise.
7859 * elf/sprof.c (print_version): Likewise.
7860 * iconv/iconv_prog.c (print_version): Likewise.
7861 * iconv/iconvconfig.c (print_version): Likewise.
7862 * locale/programs/locale.c (print_version): Likewise.
7863 * locale/programs/localedef.c (print_version): Likewise.
7864 * login/programs/pt_chown.c (print_version): Likewise.
7865 * malloc/memusage.sh (do_version): Likewise.
7866 * malloc/memusagestat.c (print_version): Likewise.
7867 * malloc/mtrace.pl: Likewise.
7868 * manual/libc.texinfo: Likewise.
7869 * nptl/version.c (banner): Likewise.
7870 * nscd/nscd.c (print_version): Likewise.
7871 * nss/getent.c (print_version): Likewise.
7872 * nss/makedb.c (print_version): Likewise.
7873 * posix/getconf.c (main): Likewise.
7874 * scripts/test-installation.pl: Likewise.
7875 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7876
7877 * All files with FSF copyright notices: Update copyright dates
7878 using scripts/update-copyrights.
7879 * locale/programs/charmap-kw.h: Regenerated.
7880 * locale/programs/locfile-kw.h: Likewise.
7881
7882 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7883
7884 * timezone/zdump.c: Update from tzcode 2018i.
7885 * timezone/zic.c: Likewise.
7886
7887 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7888
7889 regex: improve Gnulib port to AIX
7890 From the glibc point of view, this removes duplicate macro
7891 definitions and is obviously safe.
7892 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7893 * posix/regex_internal.h:
7894 (__attribute__, __attribute_warn_unused_result__):
7895 Remove; already defined elsewhere.
7896
7897 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7898
7899 [BZ #24027]
7900 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7901 copying operation. (ncopies had the wrong type, resulting in an
7902 integer wraparound and too few elements being copied.)
7903
7904 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7905
7906 [BZ #24022]
7907 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7908 <asm/syscalls.h> exists with __has_include__ before including it.
7909
7910 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7911
7912 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7913 version to 4.20.
7914
7915 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7916
7917 * hurd/lookup-retry: Include <unistd.h>.
7918 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7919 Release it on return. Handle "pid" magical lookup retry.
7920
7921 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7922
7923 [BZ #10496]
7924 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7925 (t_fmt_ampm): Likewise.
7926 * localedata/locales/aa_ER (t_fmt): Likewise.
7927 (t_fmt_ampm): Likewise.
7928 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7929 (t_fmt_ampm): Likewise.
7930 * localedata/locales/aa_ET (t_fmt): Likewise.
7931 (t_fmt_ampm): Likewise.
7932 * localedata/locales/am_ET (t_fmt): Likewise.
7933 (t_fmt_ampm): Likewise.
7934 * localedata/locales/byn_ER (t_fmt): Likewise.
7935 (t_fmt_ampm): Likewise.
7936 * localedata/locales/om_ET (t_fmt): Likewise.
7937 (t_fmt_ampm): Likewise.
7938 * localedata/locales/sid_ET (t_fmt): Likewise.
7939 (t_fmt_ampm): Likewise.
7940 * localedata/locales/so_DJ (t_fmt): Likewise.
7941 (t_fmt_ampm): Likewise.
7942 * localedata/locales/so_ET (t_fmt): Likewise.
7943 (t_fmt_ampm): Likewise.
7944 * localedata/locales/so_SO (t_fmt): Likewise.
7945 (t_fmt_ampm): Likewise.
7946 * localedata/locales/ti_ER (t_fmt): Likewise.
7947 (t_fmt_ampm): Likewise.
7948 * localedata/locales/ti_ET (t_fmt): Likewise.
7949 (t_fmt_ampm): Likewise.
7950 * localedata/locales/tig_ER (t_fmt): Likewise.
7951 (t_fmt_ampm): Likewise.
7952 * localedata/locales/wal_ET (t_fmt): Likewise.
7953 (t_fmt_ampm): Likewise.
7954
7955 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7956 * localedata/locales/ar_IN (t_fmt): Likewise.
7957 * localedata/locales/bhb_IN (t_fmt): Likewise.
7958 * localedata/locales/bho_IN (t_fmt): Likewise.
7959 * localedata/locales/bi_VU (t_fmt): Likewise.
7960 * localedata/locales/bn_BD (t_fmt): Likewise.
7961 * localedata/locales/bn_IN (t_fmt): Likewise.
7962 * localedata/locales/brx_IN (t_fmt): Likewise.
7963 * localedata/locales/doi_IN (t_fmt): Likewise.
7964 * localedata/locales/en_HK (t_fmt): Likewise.
7965 (t_fmt_ampm): Likewise.
7966 * localedata/locales/en_IN (t_fmt): Likewise.
7967 * localedata/locales/en_PH (t_fmt): Likewise.
7968 * localedata/locales/gu_IN (t_fmt): Likewise.
7969 * localedata/locales/hi_IN (t_fmt): Likewise.
7970 * localedata/locales/hif_FJ (t_fmt): Likewise.
7971 * localedata/locales/hne_IN (t_fmt): Likewise.
7972 * localedata/locales/kn_IN (t_fmt): Likewise.
7973 * localedata/locales/kok_IN (t_fmt): Likewise.
7974 * localedata/locales/ks_IN (t_fmt): Likewise.
7975 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7976 * localedata/locales/mag_IN (t_fmt): Likewise.
7977 * localedata/locales/mai_IN (t_fmt): Likewise.
7978 * localedata/locales/mjw_IN (t_fmt): Likewise.
7979 * localedata/locales/ml_IN (t_fmt): Likewise.
7980 * localedata/locales/mni_IN (t_fmt): Likewise.
7981 * localedata/locales/mr_IN (t_fmt): Likewise.
7982 * localedata/locales/ms_MY (t_fmt): Likewise.
7983 * localedata/locales/pa_IN (t_fmt): Likewise.
7984 * localedata/locales/raj_IN (t_fmt): Likewise.
7985 * localedata/locales/sa_IN (t_fmt): Likewise.
7986 * localedata/locales/sat_IN (t_fmt): Likewise.
7987 * localedata/locales/sd_IN (t_fmt): Likewise.
7988 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7989 * localedata/locales/tcy_IN (t_fmt): Likewise.
7990 * localedata/locales/the_NP (t_fmt): Likewise.
7991 * localedata/locales/to_TO (t_fmt): Likewise.
7992 * localedata/locales/ur_IN (t_fmt): Likewise.
7993
7994 * localedata/locales/hif_FJ (d_t_fmt): Set to
7995 "%A %d %b %Y %I:%M:%S %p".
7996 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7997
7998 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7999 * localedata/locales/ar_BH (t_fmt): Likewise.
8000 * localedata/locales/ar_DZ (t_fmt): Likewise.
8001 * localedata/locales/ar_EG (t_fmt): Likewise.
8002 * localedata/locales/ar_IQ (t_fmt): Likewise.
8003 * localedata/locales/ar_JO (t_fmt): Likewise.
8004 * localedata/locales/ar_KW (t_fmt): Likewise.
8005 * localedata/locales/ar_LB (t_fmt): Likewise.
8006 * localedata/locales/ar_LY (t_fmt): Likewise.
8007 * localedata/locales/ar_OM (t_fmt): Likewise.
8008 * localedata/locales/ar_QA (t_fmt): Likewise.
8009 * localedata/locales/ar_SD (t_fmt): Likewise.
8010 * localedata/locales/ar_SS (t_fmt): Likewise.
8011 * localedata/locales/ar_SY (t_fmt): Likewise.
8012 * localedata/locales/ar_TN (t_fmt): Likewise.
8013 * localedata/locales/ar_YE (t_fmt): Likewise.
8014
8015 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
8016 (t_fmt_ampm): Likewise.
8017 * localedata/locales/gez_ET (t_fmt): Likewise.
8018 (t_fmt_ampm): Likewise.
8019
8020 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
8021 (t_fmt_ampm): Likewise.
8022 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
8023
8024 * localedata/locales/zh_HK (t_fmt):
8025 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
8026
8027 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
8028 because this locale does not use the 12-hour clock.
8029 (t_fmt): Set to "%Z %H:%M:%S".
8030 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
8031
8032 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
8033 because this locale does not use the 12-hour clock.
8034 (t_fmt): Set to "%H:%M:%S %Z".
8035 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
8036
8037 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
8038 because this locale does not use the 12-hour clock.
8039 (t_fmt): Set to "%T".
8040 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
8041 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
8042
8043 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
8044 because this locale does not use the 12-hour clock.
8045 (t_fmt): Set to "%H:%M:%S %Z".
8046 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8047
8048 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8049 because this locale does not use the 12-hour clock.
8050 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8051 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8052
8053 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
8054
8055 [BZ #10496]
8056 [BZ #23724]
8057 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8058 (t_fmt_ampm): Likewise.
8059 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8060 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8061 (d_fmt): Set to "%-d.%-m.%y".
8062
8063 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8064
8065 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8066 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8067 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8068 Likewise.
8069 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8070 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8071 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8072 function.
8073 * support/blob_repeat.c (check_mul_overflow_size_t,
8074 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8075
8076 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8077
8078 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8079
8080 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8081
8082 regex: simplify Gnulib port
8083 This simplifies the code, by removing stuff intended for porting
8084 to Gnulib but no longer needed there.
8085 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8086 uses of libc_hidden_def, weak_alias.
8087 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8088 _Restrict_ except for public-facing headers.
8089 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8090 Remove; already defined elsewhere.
8091 * posix/regex.c, posix/regex_internal.h:
8092 Use __GNUC_PREREQ instead of rolling our own.
8093 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8094
8095 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8096
8097 * benchtests/bench-strlen.c (generic_strlen): New function.
8098 (memchr_strlen): New function.
8099
8100 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8101
8102 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8103 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8104 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8105
8106 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8107
8108 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8109
8110 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8111
8112 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8113 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8114 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8115 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8116 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8117 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8118 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8119
8120 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8121
8122 [BZ #24023]
8123 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8124 PLT reference in libc.so.
8125 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8126 _Q_lltoq and _Q_qtod PLT references in libc.so.
8127
8128 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8129
8130 * benchtests/bench-memchr.c: Cleanup defines.
8131 * benchtests/bench-memcmp.c: Likewise.
8132 * benchtests/bench-memset.c: Likewise.
8133 * benchtests/bench-memset-large.c: Likewise.
8134 * benchtests/bench-memset-walk.c: Likewise.
8135 * benchtests/bench-stpcpy.c: Likewise.
8136 * benchtests/bench-stpncpy.c: Likewise.
8137 * benchtests/bench-strcat.c: Likewise.
8138 * benchtests/bench-strchr.c: Likewise.
8139 * benchtests/bench-strcmp.c: Likewise.
8140 * benchtests/bench-strcpy.c: Likewise.
8141 * benchtests/bench-strcspn.c: Likewise.
8142 * benchtests/bench-string.h: Likewise.
8143 * benchtests/bench-strlen.c: Likewise.
8144 * benchtests/bench-strncat.c: Likewise.
8145 * benchtests/bench-strncmp.c: Likewise.
8146 * benchtests/bench-strncpy.c: Likewise.
8147 * benchtests/bench-strnlen.c: Likewise.
8148 * benchtests/bench-strpbrk.c: Likewise.
8149 * benchtests/bench-strrchr.c: Likewise.
8150 * benchtests/bench-strspn.c: Likewise.
8151
8152 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8153
8154 * stdlib/longlong.h: Update from GCC.
8155
8156 [BZ #23993]
8157 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8158 * configure: Regenerated.
8159 * manual/install.texi (Tools for Compilation): Update minimum GCC
8160 version.
8161 * INSTALL: Regenerated.
8162
8163 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8164
8165 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8166
8167 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8168
8169 * malloc/malloc.c (mremap_chunk): Additional checks.
8170
8171 2018-12-21 Mao Han <han_mao@c-sky.com>
8172
8173 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8174 * scripts/build-many-glibcs.py: Add C-SKY targets.
8175 * sysdeps/csky/Implies: New file.
8176 * sysdeps/csky/Makefile: Likewise.
8177 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8178 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8179 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8180 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8181 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8182 * sysdeps/csky/abiv2/memmove.S: Likewise.
8183 * sysdeps/csky/abiv2/memset.S: Likewise.
8184 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8185 * sysdeps/csky/abiv2/start.S: Likewise.
8186 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8187 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8188 * sysdeps/csky/abiv2/strlen.S: Likewise.
8189 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8190 * sysdeps/csky/abort-instr.h: Likewise.
8191 * sysdeps/csky/atomic-machine.h: Likewise.
8192 * sysdeps/csky/bits/endian.h: Likewise.
8193 * sysdeps/csky/bits/fenv.h: Likewise.
8194 * sysdeps/csky/bits/link.h: Likewise.
8195 * sysdeps/csky/bits/setjmp.h: Likewise.
8196 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8197 * sysdeps/csky/bsd-setjmp.S: Likewise.
8198 * sysdeps/csky/configure: Likewise.
8199 * sysdeps/csky/configure.ac: Likewise.
8200 * sysdeps/csky/dl-machine.h: Likewise.
8201 * sysdeps/csky/dl-procinfo.c: Likewise.
8202 * sysdeps/csky/dl-procinfo.h: Likewise.
8203 * sysdeps/csky/dl-sysdep.h: Likewise.
8204 * sysdeps/csky/dl-tls.h: Likewise.
8205 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8206 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8207 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8208 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8209 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8210 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8211 * sysdeps/csky/fpu/fegetround.c: Likewise.
8212 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8213 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8214 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8215 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8216 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8217 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8218 * sysdeps/csky/fpu/fesetround.c: Likewise.
8219 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8220 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8221 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8222 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8223 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8224 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8225 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8226 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8227 * sysdeps/csky/fpu_control.h: Likewise.
8228 * sysdeps/csky/gccframe.h: Likewise.
8229 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8230 * sysdeps/csky/ldsodefs.h: Likewise.
8231 * sysdeps/csky/libc-tls.c: Likewise.
8232 * sysdeps/csky/linkmap.h: Likewise.
8233 * sysdeps/csky/machine-gmon.h: Likewise.
8234 * sysdeps/csky/memusage.h: Likewise.
8235 * sysdeps/csky/nofpu/Implies: Likewise.
8236 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8237 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8238 * sysdeps/csky/nptl/Makefile: Likewise.
8239 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8240 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8241 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8242 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8243 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8244 * sysdeps/csky/nptl/tls.h: Likewise.
8245 * sysdeps/csky/preconfigure: Likewise.
8246 * sysdeps/csky/sfp-machine.h: Likewise.
8247 * sysdeps/csky/sotruss-lib.c: Likewise.
8248 * sysdeps/csky/stackinfo.h: Likewise.
8249 * sysdeps/csky/sysdep.h: Likewise.
8250 * sysdeps/csky/tininess.h: Likewise.
8251 * sysdeps/csky/tst-audit.h: Likewise.
8252 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8253 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8254 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8255 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8256 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8257 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8258 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8259 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8260 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8261 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8262 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8263 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8264 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8265 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8266 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8267 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8268 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8269 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8270 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8271 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8272 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8273 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8274 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8275 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8276 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8277 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8278 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8279 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8280 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8281 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8282 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8283 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8284 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8285 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8286 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8287 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8288 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8289 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8290 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8291 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8292 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8293 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8294 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8295 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8296
8297 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8298
8299 * include/time.h (__difftime64): Add.
8300 * time/difftime.c (subtract): convert to 64-bit time.
8301 * time/difftime.c (__difftime64): Add.
8302 * time/difftime.c (__difftime): Wrap around __difftime64.
8303
8304 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8305
8306 * manual/examples/add.c: Remove redundant "if not".
8307 * manual/examples/argp-ex1.c: Likewise.
8308 * manual/examples/argp-ex2.c: Likewise.
8309 * manual/examples/argp-ex3.c: Likewise.
8310 * manual/examples/argp-ex4.c: Likewise.
8311 * manual/examples/atexit.c: Likewise.
8312 * manual/examples/db.c: Likewise.
8313 * manual/examples/dir.c: Likewise.
8314 * manual/examples/dir2.c: Likewise.
8315 * manual/examples/execinfo.c: Likewise.
8316 * manual/examples/filecli.c: Likewise.
8317 * manual/examples/filesrv.c: Likewise.
8318 * manual/examples/fmtmsgexpl.c: Likewise.
8319 * manual/examples/genpass.c: Likewise.
8320 * manual/examples/inetcli.c: Likewise.
8321 * manual/examples/inetsrv.c: Likewise.
8322 * manual/examples/isockad.c: Likewise.
8323 * manual/examples/longopt.c: Likewise.
8324 * manual/examples/memopen.c: Likewise.
8325 * manual/examples/memstrm.c: Likewise.
8326 * manual/examples/mkdirent.c: Likewise.
8327 * manual/examples/mkfsock.c: Likewise.
8328 * manual/examples/mkisock.c: Likewise.
8329 * manual/examples/mygetpass.c: Likewise.
8330 * manual/examples/pipe.c: Likewise.
8331 * manual/examples/popen.c: Likewise.
8332 * manual/examples/rprintf.c: Likewise.
8333 * manual/examples/search.c: Likewise.
8334 * manual/examples/select.c: Likewise.
8335 * manual/examples/setjmp.c: Likewise.
8336 * manual/examples/sigh1.c: Likewise.
8337 * manual/examples/sigusr.c: Likewise.
8338 * manual/examples/stpcpy.c: Likewise.
8339 * manual/examples/strdupa.c: Likewise.
8340 * manual/examples/strftim.c: Likewise.
8341 * manual/examples/subopt.c: Likewise.
8342 * manual/examples/swapcontext.c: Likewise.
8343 * manual/examples/termios.c: Likewise.
8344 * manual/examples/testopt.c: Likewise.
8345 * manual/examples/testpass.c: Likewise.
8346 * manual/examples/timeval_subtract.c: Likewise.
8347
8348 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8349
8350 * sysdeps/x86/fpu/math_private.h: New file.
8351 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8352
8353 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8354 definition.
8355 (cosh): Likewise.
8356 (tanh): Likewise.
8357
8358 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8359
8360 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8361 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8362 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8363 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8364 fields.
8365 (_dl_show_auxv): Give a special treatment to
8366 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8367 and AT_L3_CACHEGEOMETRY.
8368 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8369 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8370 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8371 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8372
8373 2018-12-19 Andreas Schwab <schwab@suse.de>
8374
8375 * nscd/connections.c (check_use): Don't abort on invalid len.
8376
8377 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8378
8379 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8380 values in the 64bit value cases.
8381
8382 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8383
8384 * include/time.h
8385 (__ctime64_r): Add.
8386 * time/ctime_r.c
8387 (__ctime64_r): Add.
8388 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8389
8390 * include/time.h
8391 (__ctime64): Add.
8392 * time/gmtime.c
8393 (__ctime64): Add.
8394 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8395
8396 * include/time.h
8397 (__gmtime64_r): Add.
8398 * time/gmtime.c
8399 (__gmtime64_r): Add.
8400 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8401
8402 * include/time.h
8403 (__gmtime64): Add.
8404 * time/gmtime.c
8405 (__gmtime64): Add.
8406 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8407
8408 * include/time.h
8409 (__localtime64_r): Add.
8410 * time/localtime.c
8411 (__localtime64_r): Add.
8412 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8413
8414 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8415
8416 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8417 kernel_sigction definition.
8418
8419 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8420
8421 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8422
8423 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8424 __syscall_rt_sigaction.
8425 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8426 (kernel_sigaction): Use Linux generic defintion.
8427 (STUB): Define.
8428 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8429 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8430 (__syscall_rt_sigaction): Remove implementation.
8431 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8432 hidden.
8433 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8434 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8435 INTERNAL_SYSCALL): Remove definitions.
8436 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8437 action and signal set size.
8438 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8439 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8440
8441 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8442 James Clarke <jrtc27@jrtc27.com>
8443
8444 [BZ #23967]
8445 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8446 Define if SA_RESTORER is defined.
8447 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8448 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8449 already defined.
8450 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8451 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8452 definitions.
8453 (HAS_SA_RESTORER): Define.
8454 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8455 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8456 (HAS_SA_RESTORER): Define.
8457 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8458 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8459 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8460 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8461 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8462
8463 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8464
8465 * sysdeps/unix/sysv/linux/kernel-features.h
8466 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8467 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8468 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8469 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8470 (__ASSUME_ST_INO_64_BIT): Likewise.
8471 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8472 <kernel-features.h>.
8473 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8474 Remove conditional code.
8475 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8476 <kernel-features.h>.
8477 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8478 Remove conditional code.
8479 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8480 <kernel-features.h>.
8481 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8482 Remove conditional code.
8483 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8484 <kernel-features.h>.
8485 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8486 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8487
8488 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8489
8490 * sysdeps/s390/multiarch/ifunc-resolve.h
8491 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8492 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8493 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8494 Delete macro definition.
8495 (s390_libc_ifunc_init): Rename to
8496 s390_libc_ifunc_expr_stfle_init.
8497 * sysdeps/s390/bzero: Use
8498 s390_libc_ifunc_expr_stfle_init instead of
8499 s390_libc_ifunc_init.
8500 * sysdeps/s390/memcmp.c: Likewise.
8501 * sysdeps/s390/memcpy.c: Likewise.
8502 * sysdeps/s390/mempcpy.c: Likewise.
8503 * sysdeps/s390/memset.c: Likewise.
8504
8505 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8506
8507 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8508 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8509
8510 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8511
8512 * sysdeps/s390/multiarch/Makefile
8513 (sysdep_routines): Remove wmemcmp variants.
8514 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8515 * sysdeps/s390/multiarch/ifunc-impl-list.c
8516 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8517 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8518 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8519 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8520 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8521 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8522 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8523 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8524
8525 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8526
8527 * sysdeps/s390/multiarch/Makefile
8528 (sysdep_routines): Remove wmemset variants.
8529 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8530 * sysdeps/s390/multiarch/ifunc-impl-list.c
8531 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8532 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8533 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8534 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8535 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8536 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8537 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8538 * sysdeps/s390/ifunc-wmemset.h: New file.
8539
8540 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8541
8542 * sysdeps/s390/multiarch/Makefile
8543 (sysdep_routines): Remove wmemchr variants.
8544 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8545 * sysdeps/s390/multiarch/ifunc-impl-list.c
8546 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8547 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8548 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8549 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8550 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8551 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8552 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8553 * sysdeps/s390/ifunc-wmemchr.h: New file.
8554
8555 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8556
8557 * sysdeps/s390/multiarch/Makefile
8558 (sysdep_routines): Remove wcscspn variants.
8559 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8560 * sysdeps/s390/multiarch/ifunc-impl-list.c
8561 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8562 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8563 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8564 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8565 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8566 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8567 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8568 * sysdeps/s390/ifunc-wcscspn.h: New file.
8569
8570 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8571
8572 * sysdeps/s390/multiarch/Makefile
8573 (sysdep_routines): Remove wcspbrk variants.
8574 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8575 * sysdeps/s390/multiarch/ifunc-impl-list.c
8576 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8577 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8578 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8579 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8580 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8581 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8582 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8583 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8584
8585 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8586
8587 * sysdeps/s390/multiarch/Makefile
8588 (sysdep_routines): Remove wcsspn variants.
8589 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8590 * sysdeps/s390/multiarch/ifunc-impl-list.c
8591 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8592 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8593 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8594 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8595 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8596 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8597 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8598 * sysdeps/s390/ifunc-wcsspn.h: New file.
8599
8600 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8601
8602 * sysdeps/s390/multiarch/Makefile
8603 (sysdep_routines): Remove wcsrchr variants.
8604 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8605 * sysdeps/s390/multiarch/ifunc-impl-list.c
8606 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8607 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8608 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8609 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8610 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8611 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8612 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8613 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8614
8615 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8616
8617 * sysdeps/s390/multiarch/Makefile
8618 (sysdep_routines): Remove wcschrnul variants.
8619 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8620 * sysdeps/s390/multiarch/ifunc-impl-list.c
8621 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8622 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8623 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8624 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8625 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8626 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8627 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8628 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8629
8630 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8631
8632 * sysdeps/s390/multiarch/Makefile
8633 (sysdep_routines): Remove wcschr variants.
8634 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8635 * sysdeps/s390/multiarch/ifunc-impl-list.c
8636 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8637 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8638 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8639 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8640 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8641 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8642 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8643 * sysdeps/s390/ifunc-wcschr.h: New file.
8644
8645 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8646
8647 * sysdeps/s390/multiarch/Makefile
8648 (sysdep_routines): Remove wcsncmp variants.
8649 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8650 * sysdeps/s390/multiarch/ifunc-impl-list.c
8651 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8652 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8653 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8654 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8655 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8656 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8657 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8658 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8659
8660 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8661
8662 * sysdeps/s390/multiarch/Makefile
8663 (sysdep_routines): Remove wcscmp variants.
8664 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8665 * sysdeps/s390/multiarch/ifunc-impl-list.c
8666 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8667 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8668 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8669 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8670 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8671 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8672 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8673 * sysdeps/s390/ifunc-wcscmp.h: New file.
8674
8675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8676
8677 * sysdeps/s390/multiarch/Makefile
8678 (sysdep_routines): Remove wcsncat variants.
8679 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8680 * sysdeps/s390/multiarch/ifunc-impl-list.c
8681 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8682 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8683 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8684 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8685 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8686 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8687 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8688 * sysdeps/s390/ifunc-wcsncat.h: New file.
8689
8690 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8691
8692 * sysdeps/s390/multiarch/Makefile
8693 (sysdep_routines): Remove wcscat variants.
8694 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8695 * sysdeps/s390/multiarch/ifunc-impl-list.c
8696 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8697 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8698 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8699 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8700 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8701 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8702 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8703 * sysdeps/s390/ifunc-wcscat.h: New file.
8704
8705 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8706
8707 * sysdeps/s390/multiarch/Makefile
8708 (sysdep_routines): Remove wcpncpy variants.
8709 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8710 * sysdeps/s390/multiarch/ifunc-impl-list.c
8711 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8712 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8713 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8714 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8715 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8716 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8717 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8718 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8719
8720 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8721
8722 * sysdeps/s390/multiarch/Makefile
8723 (sysdep_routines): Remove wcsncpy variants.
8724 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8725 * sysdeps/s390/multiarch/ifunc-impl-list.c
8726 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8727 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8728 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8729 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8730 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8731 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8732 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8733 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8734
8735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8736
8737 * sysdeps/s390/multiarch/Makefile
8738 (sysdep_routines): Remove wcpcpy variants.
8739 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8740 * sysdeps/s390/multiarch/ifunc-impl-list.c
8741 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8742 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8743 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8744 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8745 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8746 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8747 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8748 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8749
8750 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8751
8752 * sysdeps/s390/multiarch/Makefile
8753 (sysdep_routines): Remove wcscpy variants.
8754 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8755 * sysdeps/s390/multiarch/ifunc-impl-list.c
8756 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8757 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8758 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8759 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8760 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8761 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8762 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8763 * sysdeps/s390/ifunc-wcscpy.h: New file.
8764
8765 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8766
8767 * sysdeps/s390/multiarch/Makefile
8768 (sysdep_routines): Remove wcsnlen variants.
8769 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8770 * sysdeps/s390/multiarch/ifunc-impl-list.c
8771 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8772 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8773 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8774 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8775 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8776 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8777 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8778 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8779
8780 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8781
8782 * sysdeps/s390/multiarch/Makefile
8783 (sysdep_routines): Remove wcslen variants.
8784 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8785 * sysdeps/s390/multiarch/ifunc-impl-list.c
8786 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8787 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8788 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8789 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8790 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8791 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8792 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8793 * sysdeps/s390/ifunc-wcslen.h: New file.
8794
8795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8796
8797 * sysdeps/s390/multiarch/Makefile
8798 (sysdep_routines): Remove memrchr variants.
8799 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8800 * sysdeps/s390/multiarch/ifunc-impl-list.c
8801 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8802 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8803 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8804 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8805 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8806 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8807 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8808 * sysdeps/s390/ifunc-memrchr.h: New file.
8809
8810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8811
8812 * sysdeps/s390/multiarch/Makefile
8813 (sysdep_routines): Remove memccpy variants.
8814 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8815 * sysdeps/s390/multiarch/ifunc-impl-list.c
8816 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8817 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8818 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8819 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8820 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8821 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8822 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8823 * sysdeps/s390/ifunc-memccpy.h: New file.
8824
8825 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8826
8827 * sysdeps/s390/multiarch/Makefile
8828 (sysdep_routines): Remove rawmemchr variants.
8829 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8830 * sysdeps/s390/multiarch/ifunc-impl-list.c
8831 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8832 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8833 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8834 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8835 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8836 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8837 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8838 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8839
8840 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8841
8842 * sysdeps/s390/multiarch/Makefile
8843 (sysdep_routines): Remove memchr variants.
8844 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8845 * sysdeps/s390/multiarch/ifunc-impl-list.c
8846 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8847 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8848 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8849 * sysdeps/s390/multiarch/memchr.c: Move to ...
8850 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8851 * sysdeps/s390/ifunc-memchr.h: New file.
8852 * sysdeps/s390/s390-64/memchr.S: Move to ...
8853 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8854 for 31/64bit and ifunc handling.
8855 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8856 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8857 * sysdeps/s390/s390-32/memchr.S: Likewise.
8858
8859 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8860
8861 * sysdeps/s390/multiarch/Makefile
8862 (sysdep_routines): Remove strcspn variants.
8863 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8864 * sysdeps/s390/multiarch/ifunc-impl-list.c
8865 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8866 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8867 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8868 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8869 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8870 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8871 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8872 * sysdeps/s390/ifunc-strcspn.h: New file.
8873
8874 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8875
8876 * sysdeps/s390/multiarch/Makefile
8877 (sysdep_routines): Remove strpbrk variants.
8878 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8879 * sysdeps/s390/multiarch/ifunc-impl-list.c
8880 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8881 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8882 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8883 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8884 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8885 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8886 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8887 * sysdeps/s390/ifunc-strpbrk.h: New file.
8888
8889 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8890
8891 * sysdeps/s390/multiarch/Makefile
8892 (sysdep_routines): Remove strspn variants.
8893 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8894 * sysdeps/s390/multiarch/ifunc-impl-list.c
8895 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8896 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8897 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8898 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8899 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8900 * sysdeps/s390/multiarch/strspn.c: Move to ...
8901 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8902 * sysdeps/s390/ifunc-strspn.h: New file.
8903
8904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8905
8906 * sysdeps/s390/multiarch/Makefile
8907 (sysdep_routines): Remove strrchr variants.
8908 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8909 * sysdeps/s390/multiarch/ifunc-impl-list.c
8910 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8911 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8912 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8913 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8914 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8915 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8916 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8917 * sysdeps/s390/ifunc-strrchr.h: New file.
8918
8919 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8920
8921 * sysdeps/s390/multiarch/Makefile
8922 (sysdep_routines): Remove strchrnul variants.
8923 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8924 * sysdeps/s390/multiarch/ifunc-impl-list.c
8925 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8926 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8927 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8928 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8929 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8930 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8931 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8932 * sysdeps/s390/ifunc-strchrnul.h: New file.
8933
8934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8935
8936 * sysdeps/s390/multiarch/Makefile
8937 (sysdep_routines): Remove strchr variants.
8938 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8939 * sysdeps/s390/multiarch/ifunc-impl-list.c
8940 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8941 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8942 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8943 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8944 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8945 * sysdeps/s390/multiarch/strchr.c: Move to ...
8946 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8947 * sysdeps/s390/ifunc-strchr.h: New file.
8948
8949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8950
8951 * sysdeps/s390/multiarch/Makefile
8952 (sysdep_routines): Remove strncmp variants.
8953 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8954 * sysdeps/s390/multiarch/ifunc-impl-list.c
8955 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8956 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8957 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8958 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8959 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8960 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8961 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8962 * sysdeps/s390/ifunc-strncmp.h: New file.
8963
8964 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8965
8966 * sysdeps/s390/multiarch/Makefile
8967 (sysdep_routines): Remove strcmp variants.
8968 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8969 * sysdeps/s390/multiarch/ifunc-impl-list.c
8970 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8971 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8972 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8973 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8974 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8975 * sysdeps/s390/ifunc-strcmp.h: New file.
8976 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8977 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8978 for 31/64bit and ifunc handling.
8979 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8980 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8981 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8982
8983 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8984
8985 * sysdeps/s390/multiarch/Makefile
8986 (sysdep_routines): Remove strncat variants.
8987 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8988 * sysdeps/s390/multiarch/ifunc-impl-list.c
8989 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8990 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8991 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8992 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8993 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8994 * sysdeps/s390/multiarch/strncat.c: Move to ...
8995 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8996 * sysdeps/s390/ifunc-strncat.h: New file.
8997
8998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8999
9000 * sysdeps/s390/multiarch/Makefile
9001 (sysdep_routines): Remove strcat variants.
9002 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
9003 * sysdeps/s390/multiarch/ifunc-impl-list.c
9004 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
9005 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
9006 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
9007 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
9008 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
9009 * sysdeps/s390/multiarch/strcat.c: Move to ...
9010 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
9011 * sysdeps/s390/ifunc-strcat.h: New file.
9012
9013 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9014
9015 * sysdeps/s390/multiarch/Makefile
9016 (sysdep_routines): Remove stpncpy variants.
9017 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
9018 * sysdeps/s390/multiarch/ifunc-impl-list.c
9019 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
9020 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
9021 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
9022 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
9023 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
9024 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
9025 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
9026 * sysdeps/s390/ifunc-stpncpy.h: New file.
9027
9028 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9029
9030 * sysdeps/s390/multiarch/Makefile
9031 (sysdep_routines): Remove strncpy variants.
9032 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
9033 * sysdeps/s390/multiarch/ifunc-impl-list.c
9034 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
9035 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
9036 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
9037 * sysdeps/s390/multiarch/strncpy.c: Move to ...
9038 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
9039 * sysdeps/s390/ifunc-strncpy.h: New file.
9040 * sysdeps/s390/s390-64/strncpy.S: Move to ...
9041 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
9042 and adjust ifunc handling.
9043 * sysdeps/s390/s390-32/strncpy.S: Move to ...
9044 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
9045 and adjust ifunc handling.
9046 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9047 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9048
9049 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9050
9051 * sysdeps/s390/multiarch/Makefile
9052 (sysdep_routines): Remove stpcpy variants.
9053 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9054 * sysdeps/s390/multiarch/ifunc-impl-list.c
9055 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9056 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9057 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9058 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9059 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9060 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9061 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9062 * sysdeps/s390/ifunc-stpcpy.h: New file.
9063
9064 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9065
9066 * sysdeps/s390/multiarch/Makefile
9067 (sysdep_routines): Remove strcpy variants.
9068 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9069 * sysdeps/s390/multiarch/ifunc-impl-list.c
9070 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9071 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9072 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9073 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9074 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9075 * sysdeps/s390/ifunc-strcpy.h: New file.
9076 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9077 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9078 for 31/64bit and ifunc handling.
9079 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9080 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9081 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9082
9083 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9084
9085 * sysdeps/s390/multiarch/Makefile
9086 (sysdep_routines): Remove strnlen variants.
9087 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9088 * sysdeps/s390/multiarch/ifunc-impl-list.c
9089 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9090 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9091 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9092 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9093 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9094 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9095 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9096 * sysdeps/s390/ifunc-strnlen.h: New file.
9097
9098 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9099
9100 * sysdeps/s390/multiarch/Makefile
9101 (sysdep_routines): Remove strlen variants.
9102 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9103 * sysdeps/s390/multiarch/ifunc-impl-list.c
9104 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9105 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9106 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9107 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9108 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9109 * sysdeps/s390/multiarch/strlen.c: Move to ...
9110 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9111 * sysdeps/s390/ifunc-strlen.h: New file.
9112
9113 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9114
9115 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9116 * sysdeps/s390/multiarch/ifunc-impl-list.c
9117 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9118 * sysdeps/s390/ifunc-memmem.h: New file.
9119 * sysdeps/s390/memmem.c: Likewise.
9120 * sysdeps/s390/memmem-c.c: Likewise.
9121 * sysdeps/s390/memmem-vx.c: Likewise.
9122
9123 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9124
9125 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9126 * sysdeps/s390/multiarch/ifunc-impl-list.c
9127 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9128 * sysdeps/s390/ifunc-strstr.h: New file.
9129 * sysdeps/s390/strstr.c: Likewise.
9130 * sysdeps/s390/strstr-c.c: Likewise.
9131 * sysdeps/s390/strstr-vx.c: Likewise.
9132
9133 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9134
9135 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9136 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9137 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9138 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9139 New defines.
9140 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9141 * sysdeps/s390/memmove-c.c: New file.
9142 * sysdeps/s390/memmove.c: Likewise.
9143 * sysdeps/s390/multiarch/ifunc-impl-list.c
9144 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9145
9146 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9147
9148 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9149 * sysdeps/s390/configure.ac: Add check for z13 support.
9150 * sysdeps/s390/configure: Regenerated.
9151
9152 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9153
9154 * sysdeps/s390/memcopy.h: New file.
9155
9156 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9157
9158 * sysdeps/s390/s390-32/bcopy.S: Remove.
9159 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9160
9161 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9162
9163 * sysdeps/s390/ifunc-memcpy.h: New File.
9164 * sysdeps/s390/memcpy.S: Move to ...
9165 * sysdeps/s390/memcpy-z900.S ... here.
9166 Move implementations from memcpy-s390x.s to here.
9167 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9168 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9169 Remove memcpy/mempcpy variants.
9170 * sysdeps/s390/Makefile (sysdep_routines):
9171 Add memcpy/mempcpy variants.
9172 * sysdeps/s390/multiarch/ifunc-impl-list.c
9173 (__libc_ifunc_impl_list): Adjust ifunc variants for
9174 memcpy and mempcpy.
9175 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9176 to ...
9177 * sysdeps/s390/memcpy.c: ... here.
9178 Adjust ifunc variants for memcpy.
9179 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9180 * sysdeps/s390/mempcpy.c: ... here.
9181 Adjust ifunc variants for mempcpy.
9182 * sysdeps/s390/mempcpy.S: Delete file.
9183
9184 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9185
9186 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9187 * sysdeps/s390/memcpy.S: ... here.
9188 Adjust to be usable for 31/64bit.
9189 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9190 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9191 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9192 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9193 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9194 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9195 Adjust to be usable for 31/64bit.
9196 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9197 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9198 * sysdeps/s390/multiarch/memcpy.c: ... here.
9199 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9200
9201 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9202
9203 * sysdeps/s390/ifunc-memcmp.h: New File.
9204 * sysdeps/s390/memcmp.S: Move to ...
9205 * sysdeps/s390/memcmp-z900.S ... here.
9206 Move implementations from memcmp-s390x.s to here.
9207 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9208 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9209 Remove memcmp variants.
9210 * sysdeps/s390/Makefile (sysdep_routines):
9211 Add memcmp variants.
9212 * sysdeps/s390/multiarch/ifunc-impl-list.c
9213 (__libc_ifunc_impl_list): Adjust ifunc variants for
9214 memcmp.
9215 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9216 to ...
9217 * sysdeps/s390/memcmp.c: ... here.
9218 Adjust ifunc variants for memcmp.
9219
9220 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9221
9222 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9223 * sysdeps/s390/memcmp.S: ... here.
9224 Adjust to be usable for 31/64bit.
9225 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9226 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9227 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9228 Remove memcmp.
9229 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9230 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9231 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9232 Adjust to be usable for 31/64bit.
9233 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9234 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9235 * sysdeps/s390/multiarch/memcmp.c: ... here.
9236 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9237
9238 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9239
9240 * sysdeps/s390/s390-32/bzero.S: Delete file.
9241 * sysdeps/s390/s390-64/bzero.S: Likewise.
9242 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9243 * sysdeps/s390/bzero.c: New file.
9244 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9245 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9246 * sysdeps/s390/multiarch/ifunc-impl-list.c
9247 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9248
9249 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9250
9251 * sysdeps/s390/ifunc-memset.h: New File.
9252 * sysdeps/s390/memset.S: Move to ...
9253 * sysdeps/s390/memset-z900.S ... here.
9254 Move implementations from memset-s390x.s to here.
9255 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9256 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9257 Remove memset variants.
9258 * sysdeps/s390/Makefile (sysdep_routines):
9259 Add memset variants.
9260 * sysdeps/s390/multiarch/ifunc-impl-list.c
9261 (__libc_ifunc_impl_list): Adjust ifunc variants for
9262 memset.
9263 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9264 to ...
9265 * sysdeps/s390/memset.c: ... here.
9266 Adjust ifunc variants for memset.
9267
9268 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9269
9270 * sysdeps/s390/s390-64/memset.S: Move to ...
9271 * sysdeps/s390/memset.S: ... here.
9272 Adjust to be usable for 31/64bit.
9273 * sysdeps/s390/s390-32/memset.S: Delete File.
9274 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9275 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9276 Remove memset.
9277 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9278 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9279 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9280 Adjust to be usable for 31/64bit.
9281 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9282 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9283 * sysdeps/s390/multiarch/memset.c: ... here.
9284 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9285
9286 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9287
9288 * sysdeps/s390/multiarch/ifunc-resolve.h
9289 (s390_libc_ifunc_init, s390_libc_ifunc,
9290 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9291
9292 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9293
9294 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9295 * sysdeps/s390/configure.ac: Add check for z10 support.
9296 * sysdeps/s390/configure: Regenerated.
9297
9298 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9299
9300 * sysdeps/i386/atomic-machine.h: Merged with ...
9301 * sysdeps/x86_64/atomic-machine.h: To ...
9302 * sysdeps/x86/atomic-machine.h: This. New file.
9303
9304 2018-12-18 Florian Weimer <fweimer@redhat.com>
9305
9306 Rewrite locale/gen-translit.pl in Python.
9307 * locale/Makefile (generated): Add C-translit.h.
9308 (before-compile): Add $(objpfx)C-translit.h.
9309 (C-translit.h): Move to $(objpfx). Create target directory.
9310 Build using Python script.
9311 * locale/gen-translit.py: New file.
9312 * locale/gen-translit.pl: Remove file.
9313 * locale/C-translit.h.in: Change comment character to '#' for
9314 easier parsing without a C preprocessor.
9315 * locale/C-translit.h: Remove generated file.
9316 * manual/install.texi (Tools for Compilation): Do not mention
9317 C-translit.h.
9318 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9319 Remove locale/C-translit.h.
9320 * scripts/update-copyrights: Likewise.
9321 * INSTALL: Regenerate.
9322
9323 2018-12-18 Florian Weimer <fweimer@redhat.com>
9324
9325 [BZ #23995]
9326 * localedata/locales/bi_VU: Remove executable bit from file.
9327
9328 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9329
9330 * include/time.h
9331 (__localtime64): Add.
9332 * manual/maint.texi: Document Y2038 symbol handling.
9333 * time/localtime.c
9334 (__localtime64): Add.
9335 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9336
9337 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9338
9339 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9340 Do not clobber r12.
9341
9342 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9343 to allow extra macros from first or second sources.
9344 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9345 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9346 (tests-special): Add $(objpfx)tst-mman-consts.out.
9347 ($(objpfx)tst-mman-consts.out): New makefile target.
9348
9349 2018-12-17 Mao Han <han_mao@c-sky.com>
9350
9351 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9352 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9353 without stat64 system call support.
9354 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9355 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9356 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9357 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9358 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9359 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9360 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9361 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9362 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9363 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9364 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9365
9366 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9367
9368 regex: fix storage-exhaustion error
9369 [BZ #18040]
9370 * posix/regexec.c (get_subexp):
9371 Do not continue if storage is exhausted.
9372
9373 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9374
9375 regex: fix heap-use-after-free error
9376 [BZ #18040]
9377 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9378 https://debbugs.gnu.org/32592
9379 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9380 call extend_buffers which reallocates the re_string_t internal buffer.
9381 Local variable 'buf' was not updated in such case, resulting in
9382 use-after-free.
9383 * posix/regexec.c (get_subexp): Update 'buf' after call to
9384 get_subexp_sub.
9385
9386 2018-12-15 Florian Weimer <fweimer@redhat.com>
9387
9388 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9389 (minimum_stride_size): Use it.
9390 (support_blob_repeat_allocate): Likewise.
9391
9392 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9393
9394 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9395 definition.
9396 (acosh): Likewise.
9397 (atanh): Likewise.
9398
9399 2018-12-14 Florian Weimer <fweimer@redhat.com>
9400
9401 * manual/process.texi (Process Creation Concepts): Remove
9402 documentation of process (ID) lifetime. List more process
9403 creation functions. Reference Process Identification section.
9404 (Process Identification): Add information about process ID
9405 lifetime. Describe Linux thread/task IDs.
9406 * manual/signal.texi (Signaling Another Process): Mention that the
9407 signal is always sent to the process.
9408
9409 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9410
9411 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9412 and tst-ldbl-efgcvt.
9413 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9414 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9415 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9416 (fcvt_tests, output_error, output_r_error, do_test): Use the
9417 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9418 select the type of floating-point variables and arguments; to
9419 produce extra tests for double and conversion specifiers for
9420 printf; and to set the names of called functions.
9421 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9422 in tst-efgcvt-template.c.
9423 * misc/tst-ldbl-efgcvt.c: Likewise.
9424
9425 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9426
9427 * nss/Makefile (tst-nss-test3.out): New rule.
9428
9429 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9430
9431 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9432 clobber sp.
9433
9434 2018-12-13 fanjinke <fanjinke@hygon.cn>
9435
9436 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9437 "HygonGenuine".
9438
9439 2018-12-13 Andreas Schwab <schwab@suse.de>
9440
9441 [BZ #23861]
9442 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9443 (__pthread_rwlock_rdlock_full): Update expected value for
9444 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9445 * nptl/tst-rwlock-pwn.c: New file.
9446 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9447
9448 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9449
9450 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9451 definition.
9452
9453 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9454
9455 * benchtests/scripts/compare_bench.py (do_compare): write to
9456 stderr in casestat is not present.
9457 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9458 stderr in case timings field is not present. Also string showing
9459 the output filename goes into the stderr.
9460
9461 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9462
9463 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9464 and ZeroDivisorError exceptions.
9465 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9466 argument to loop through user provided statistics.
9467 * benchtests/scripts/compare_bench.py (main): Include the --stats
9468 argument.
9469
9470 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9471
9472 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9473 instead of return.
9474
9475 2018-12-12 Florian Weimer <fweimer@redhat.com>
9476
9477 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9478 clause to copyright header.
9479
9480 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9481
9482 [BZ #23614]
9483 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9484 registers saved in the stack frame.
9485 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9486 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9487
9488 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9489
9490 * include/bits/monetary-ldbl.h: New file.
9491 * include/bits/printf-ldbl.h: Likewise.
9492 * include/bits/stdio-ldbl.h: Likewise.
9493 * include/bits/stdlib-ldbl.h: Likewise.
9494 * include/bits/syslog-ldbl.h: Likewise.
9495 * include/bits/wchar-ldbl.h: Likewise.
9496
9497 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9498
9499 * libio/libio.h: Remove redirection for _IO_vfprintf.
9500
9501 2018-12-11 Andreas Schwab <schwab@suse.de>
9502
9503 * Makerules: Remove all references to abilist-pattern.
9504 (update-all-abi): Simplify find expression.
9505
9506 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9507
9508 [BZ #23961]
9509 * math/auto-libm-test-in: Add new test case.
9510 * math/auto-libm-test-out-pow: Regenerated.
9511 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9512
9513 2018-12-10 DJ Delorie <dj@redhat.com>
9514
9515 [BZ #23948]
9516 * support/test-container.c: Move postclean step to before we
9517 change namespaces.
9518
9519 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9520
9521 * scripts/gen-as-const.py (main): Handle --python option.
9522 * scripts/gen-py-const.awk: Remove.
9523 * Makerules (py-const-script): Use gen-as-const.py.
9524 ($(py-const)): Likewise.
9525 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9526 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9527 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9528 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9529 ~PTHREAD_MUTEX_NO_ELISION_NP.
9530 * manual/README.pretty-printers: Update reference to
9531 gen-py-const.awk.
9532
9533 * scripts/glibcextract.py: New file.
9534 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9535 or tempfile. Import glibcexctract.
9536 (compute_c_consts): Remove. Moved to glibcextract.py.
9537 (gen_test): Update reference to compute_c_consts.
9538 (main): Likewise.
9539 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9540 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9541 * sysdeps/unix/sysv/linux/Makefile
9542 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9543 Redirect stderr as well as stdout.
9544
9545 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9546
9547 [BZ #19767]
9548 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9549 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9550 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9551 ALWAYS_USE_VSYSCALL.
9552 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9553 ALWAYS_USE_VSYSCALL.
9554 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9555 ALWAYS_USE_VSYSCALL.
9556
9557 2018-12-10 Florian Weimer <fweimer@redhat.com>
9558
9559 [BZ #23972]
9560 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9561 offset instead of count for clarity. Fix typo in comment.
9562 (__old_getdents64): Keep track of previous offset. Use it to call
9563 handle_overflow.
9564 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9565 that d_off is never zero.
9566
9567 2018-12-10 Andreas Schwab <schwab@suse.de>
9568
9569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9570 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9572 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9573 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9574
9575 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9576
9577 * timezone/private.h: Update from tzcode 2018g.
9578 * timezone/tzfile.h: Likewise.
9579 * timezone/tzselect.ksh: Likewise.
9580 * timezone/zdump.c: Likewise.
9581 * timezone/zic.c: Likewise.
9582
9583 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9584
9585 [BZ #23490]
9586 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9587 (do_test): Adjust buffer size and fix format.
9588
9589 2018-12-07 DJ Delorie <dj@redhat.com>
9590
9591 [BZ #23907]
9592 * malloc/tst-tcfree3.c: New.
9593 * malloc/Makefile: Add it.
9594
9595 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9596
9597 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9598
9599 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9600
9601 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9602 used as a mask for the mode argument of __vfscanf_internal and
9603 __vfwscanf_internal.
9604 * stdio-common/vfscanf-internal.c
9605 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9606 (__strtof128_internal): Define to __wcstof128_internal.
9607 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9608 __strtof128_internal or __wcstof128_internal when the format of
9609 long double is the same as _Float128.
9610
9611 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9612
9613 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9614 * posix/confstr.c (confstr): Rename to __confstr.
9615 (__confstr): Add hidden def.
9616 (confstr): Add weak alias for __confstr.
9617 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9618 confstr.
9619
9620 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9621
9622 * NEWS: Mention getcpu.
9623 * include/sched.h (__getcpu): New libc_hidden_proto.
9624 * manual/resource.texi: Document getcpu.
9625 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9626 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9627 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9628 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9629 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9630 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9631 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9632 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9633 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9634 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9635 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9636 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9637 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9638 Likewise.
9639 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9640 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9641 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9643 Likewise.
9644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9645 Likewise.
9646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9647 Likewise.
9648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9649 Likewise.
9650 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9651 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9652 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9653 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9654 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9655 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9656 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9657 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9658 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9659 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9660 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9661 Also check getcpu.
9662
9663 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9664
9665 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9666 functions.
9667 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9668
9669 2018-12-07 Florian Weimer <fweimer@redhat.com>
9670
9671 [BZ #17405]
9672 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9673 * posix/Versions (GLIBC_2.29): Export
9674 posix_spawn_file_actions_addfchdir_np.
9675 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9676 * posix/spawn_faction_destroy.c
9677 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9678 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9679 and the field action.fchdir_action.
9680 * posix/tst-spawn-chdir.c (add_chdir): New function.
9681 (do_test): Add do_fchdir loop. Call add_chdir.
9682 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9683 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9684 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9685 posix_spawn_file_actions_addfchdir_np.
9686 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9687 Likewise.
9688 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9689 Likewise.
9690 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9691 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9692 Likewise.
9693 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9694 Likewise.
9695 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9696 Likewise.
9697 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9698 Likewise.
9699 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9700 Likewise.
9701 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9702 Likewise.
9703 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9704 (GLIBC_2.29): Likewise.
9705 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9706 (GLIBC_2.29): Likewise.
9707 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9708 (GLIBC_2.29): Likewise.
9709 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9710 (GLIBC_2.29): Likewise.
9711 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9712 Likewise.
9713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9714 (GLIBC_2.29): Likewise.
9715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9716 (GLIBC_2.29): Likewise.
9717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9718 (GLIBC_2.29): Likewise.
9719 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9720 (GLIBC_2.29): Likewise.
9721 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9722 Likewise.
9723 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9724 Likewise.
9725 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9726 Likewise.
9727 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9728 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9729 Likewise.
9730 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9731 Likewise.
9732 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9733 Likewise.
9734 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9735 Likewise.
9736
9737 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9738
9739 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9740 trailing whitespace removed.
9741 * scripts/config.guess: Update to version 2018-11-28.
9742 * scripts/config.sub: Update to version 2018-11-28.
9743 * scripts/install-sh: Update to version 2018-03-11.20.
9744 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9745 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9746
9747 2018-12-07 Florian Weimer <fweimer@redhat.com>
9748
9749 [BZ #23927]
9750 CVE-2018-19591
9751 * inet/tst-if_index-long.c: New file.
9752 * inet/Makefile (tests): Add tst-if_index-long.
9753
9754 2018-12-07 Florian Weimer <fweimer@redhat.com>
9755
9756 * support/check.h (support_record_failure_is_failed): Declare.
9757 * support/descriptors.h: New file.
9758 * support/support_descriptors.c: Likewise.
9759 * support/tst-support_descriptors.c: Likewise.
9760 * support/support_record_failure.c
9761 (support_record_failure_is_failed): New function.
9762 * support/Makefile (libsupport-routines): Add support_descriptors.
9763 (tests): Add tst-support_descriptors.
9764
9765 2018-12-05 Zack Weinberg <zackw@panix.com>
9766 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9767
9768 * stdio-common/vfprintf-internal.c
9769 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9770 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9771 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9772 and __no_long_double.
9773 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9774 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9775 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9776 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9777 and __nldbl_*syslog* functions.
9778 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9779 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9780 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9781 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9782 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9783 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9784 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9785 (__nldbl_vwprintf, __nldbl_wprintf):
9786 Directly call the appropriate __v*printf_internal routine, passing
9787 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9788 variable names.
9789 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9790 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9791 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9792 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9793 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9794 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9795 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9796 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9797 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9798 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9799 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9800 (__nldbl_syslog, __nldbl_vsyslog):
9801 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9802 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9803 appropriate.
9804 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9805 appropriate.
9806
9807 2018-12-05 Zack Weinberg <zackw@panix.com>
9808 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9809
9810 [BZ #11319]
9811 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9812 Moved here from debug/vsprintf_chk.c.
9813 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9814 and completion logic for the strfile to match exactly what
9815 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9816 _IO_str_init_static_internal instead of maxlen-1.
9817 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9818 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9819 __vsprintf_internal.
9820
9821 * debug/vsprintf_chk.c (__vsprintf_chk)
9822 * debug/sprintf_chk.c (__sprintf_chk):
9823 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9824 'flags' argument is positive, and slen as maxlen. No need to lock
9825 the FILE and/or construct a temporary FILE. Minimize and normalize
9826 header inclusions and variable names. Do not libc_hidden_def anything.
9827
9828 * debug/asprintf_chk.c (__asprintf_chk)
9829 * debug/dprintf_chk.c (__dprintf_chk)
9830 * debug/fprintf_chk.c (__fprintf_chk)
9831 * debug/fwprintf_chk.c (__fwprintf_chk)
9832 * debug/printf_chk.c (__printf_chk)
9833 * debug/snprintf_chk.c (__snprintf_chk)
9834 * debug/swprintf_chk.c (__swprintf_chk)
9835 * debug/vasprintf_chk.c (__vasprintf_chk)
9836 * debug/vdprintf_chk.c (__vdprintf_chk)
9837 * debug/vfprintf_chk.c (__vfprintf_chk)
9838 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9839 * debug/vprintf_chk.c (__vprintf_chk)
9840 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9841 * debug/vswprintf_chk.c (__vswprintf_chk)
9842 * debug/vwprintf_chk.c (__vwprintf_chk)
9843 * debug/wprintf_chk.c (__wprintf_chk):
9844 Directly call the corresponding vxxprintf_internal function, passing
9845 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9846 the FILE and/or construct a temporary FILE. Minimize and normalize
9847 header inclusions and variable names. Do not libc_hidden_def anything.
9848
9849 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9850 __obstack_vprintf_internal.
9851 (__obstack_vprintf_chk): Convert into a wrapper that calls
9852 __obstack_vprintf_internal (these two functions already had the
9853 same code) and move to new file...
9854 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9855 file.
9856 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9857 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9858 * debug/Makefile (routines): Add vobprintf_chk.
9859
9860 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9861 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9862 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9863 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9864 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9865 (__nldbl___obstack_vfprintf_chk):
9866 Directly call the corresponding vxxprintf_internal function,
9867 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9868 duplicate comparison of slen with 0 or maxlen from the corresponding
9869 non-__nldbl function.
9870
9871 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9872 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9873 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9874 Remove libc_hidden_proto.
9875
9876 * stdio-common/vfprintf-internal.c
9877 (__vfprintf_internal, __vfwprintf_internal):
9878 Do not check _IO_FLAGS2_FORTIFY.
9879 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9880 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9881 a comment explaining why it has the maxlen argument.
9882 (_IO_acquire_lock_clear_flags2_fct): Remove.
9883 (_IO_acquire_lock_clear_flags2): Remove.
9884 (_IO_release_lock): Remove conditional statement which will
9885 now never execute.
9886 (_IO_acquire_lock): Remove variable which is now unused.
9887 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9888 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9889
9890 * stdio-common/Makefile (tests): Add tst-bz11319 and
9891 tst-bz11319-fortify2.
9892 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9893 * stdio-common/tst-bz11319-fortify2.c: New file.
9894 * stdio-common/tst-bz11319.c: Likewise.
9895
9896 2018-12-05 Zack Weinberg <zackw@panix.com>
9897 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9898
9899 * misc/syslog.c: Include libioP.h, not iolibio.h.
9900 (__vsyslog_internal): New function with the former body of
9901 __vsyslog_chk; takes mode_flags argument same as
9902 __v*printf_internal. Call __vfprintf_internal directly.
9903
9904 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9905 Remove libc_hidden_def.
9906 (__syslog, __syslog_chk): Use __vsyslog_internal.
9907 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9908
9909 * include/sys/syslog.h: Add multiple inclusion guard.
9910 Add prototype for __vsyslog_internal.
9911 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9912
9913 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9914 Use __vsyslog_internal.
9915
9916 2018-12-05 Zack Weinberg <zackw@panix.com>
9917 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9918
9919 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9920 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9921 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9922 New functions.
9923 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9924 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9925
9926 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9927 Include wctype.h here if COMPILE_WPRINTF is defined.
9928 Define __vfprintf_internal or __vfwprintf_internal, depending
9929 on COMPILE_WPRINTF.
9930 Temporarily, on entry to this function, update mode_flags
9931 according to the environmental settings corresponding to
9932 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9933 Throughout, check mode_flags instead of __ldbl_is_dbl and
9934 _IO_FLAGS2_FORTIFY on the destination FILE.
9935 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9936 Include vfprintf-internal.c. Don't include wctype.h.
9937 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9938 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9939 and vfprintf.
9940 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9941 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9942 and vfwprintf.
9943 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9944
9945 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9946 and add mode_flags argument; use __vfprintf_internal.
9947 (__vdprintf): New function. Alias vdprintf to this.
9948 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9949 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9950 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9951 (__obstack_printf): Use __obstack_printf_internal.
9952 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9953 public aliases __vsnprintf and vsnprintf.
9954 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9955 called internally.
9956 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9957 public aliases _IO_vsprintf and vsprintf.
9958 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9959 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9960 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9961 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9962 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9963
9964 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9965 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9966 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9967 * stdio-common/printf.c: Use __vfprintf_internal.
9968
9969 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9970 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9971 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9972
9973 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9974 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9975 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9976 __vfwprintf_internal.
9977
9978 * libio/libio.h: Remove libc_hidden_proto and declaration for
9979 _IO_vfprintf.
9980 Remove declaration of _IO_vfwprintf.
9981 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9982 _IO_vsprintf.
9983 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9984 _IO_obstack_printf.
9985 * include/stdio.h: Add prototype for __vasprintf.
9986 (__vsnprintf): Remove declaration, because there are no more
9987 internal calls.
9988 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9989 declaration, because there are no more internal calls.
9990
9991 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9992 __vsnprintf_internal, instead of _IO_vsnprintf.
9993 * argp/argp-help.c (__argp_error, __argp_failure): Use
9994 __vasprintf_internal, instead of _IO_vasprintf.
9995 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9996 redefine, because there are no more internal calls.
9997
9998 2018-12-05 Zack Weinberg <zackw@panix.com>
9999 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10000
10001 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
10002 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
10003 Include libio/strfile.h instead of libioP.h.
10004 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
10005 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
10006 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
10007 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
10008 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
10009 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
10010 necessary. Do not set __no_long_double. Normalize variable names.
10011 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
10012 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
10013 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
10014 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
10015 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
10016 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
10017 Call __vfscanf_internal / __vfwscanf_internal directly, passing
10018 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
10019 Do not set __no_long_double. Normalize variable names.
10020
10021 2018-12-05 Zack Weinberg <zackw@panix.com>
10022 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10023
10024 * stdio-common/isoc99_scanf.c
10025 * stdio-common/isoc99_fscanf.c
10026 * stdio-common/isoc99_sscanf.c
10027 * stdio-common/isoc99_vscanf.c
10028 * stdio-common/isoc99_vfscanf.c
10029 * stdio-common/isoc99_vsscanf.c
10030 * wcsmbs/isoc99_wscanf.c
10031 * wcsmbs/isoc99_fwscanf.c
10032 * wcsmbs/isoc99_swscanf.c
10033 * wcsmbs/isoc99_vwscanf.c
10034 * wcsmbs/isoc99_vfwscanf.c
10035 * wcsmbs/isoc99_vswscanf.c:
10036 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
10037 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
10038 No need to lock and unlock the FILE passed to that function.
10039
10040 * stdio-common/vfscanf-internal.c
10041 (__vfscanf_internal, __vfwscanf_internal):
10042 Don't look at _IO_FLAGS2_SCANF_STD.
10043 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
10044 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
10045 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10046
10047 2018-12-05 Zack Weinberg <zackw@panix.com>
10048 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10049
10050 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10051 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10052 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10053 * libio/strfile.h: Add multiple inclusion guard.
10054 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10055
10056 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10057 consistency with the other version of this file.
10058 (ldbl_compat_symbol): New macro.
10059 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10060 New macro.
10061
10062 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10063 Define __vfscanf_internal or __vfwscanf_internal, depending on
10064 COMPILE_WSCANF; don't define any other public symbols.
10065 Remove errval and code to set errp.
10066 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10067 as the mode_flags argument.
10068 (encode_error, conv_error, input_error): Don't set errval.
10069 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10070 Include vfscanf-internal.c.
10071 * stdio-common/vfscanf.c: New file defining the public entry
10072 point vfscanf, which calls __vfscanf_internal.
10073 * stdio-common/vfwscanf.c: New file defining the public entry
10074 point vfwscanf, which calls __vfwscanf_internal.
10075
10076 * stdio-common/iovfscanf.c: New file.
10077 * stdio-common/iovfwscanf.c: Likewise.
10078
10079 * stdio-common/Makefile (routines): Add vfscanf-internal,
10080 vfwscanf-internal, iovfscanf, iovfwscanf.
10081 * stdio-common/Versions: Mention GLIBC_2.29, so that
10082 it can be used in SHLIB_COMPAT expressions.
10083 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10084 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10085 Call __vfscanf_internal, instead of _IO_vfscanf.
10086 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10087 _IO_vfscanf.
10088 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10089 _IO_vfwscanf.
10090
10091 * libio/iovsscanf.c: Clean up includes, when possible. Use
10092 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10093 __vfscanf_internal or __vfwscanf_internal directly.
10094 * libio/iovswscanf.c: Likewise.
10095 * libio/swscanf.c: Likewise.
10096 * libio/vscanf.c: Likewise.
10097 * libio/vwscanf.c: Likewise.
10098 * libio/wscanf.c: Likewise.
10099 * stdio-common/isoc99_fscanf.c: Likewise.
10100 * stdio-common/isoc99_scanf.c: Likewise.
10101 * stdio-common/isoc99_sscanf.c: Likewise.
10102 * stdio-common/isoc99_vfscanf.c: Likewise.
10103 * stdio-common/isoc99_vscanf.c: Likewise.
10104 * stdio-common/isoc99_vsscanf.c: Likewise.
10105 * stdio-common/scanf.c: Likewise.
10106 * stdio-common/sscanf.c: Likewise.
10107 * wcsmbs/isoc99_fwscanf.c: Likewise.
10108 * wcsmbs/isoc99_swscanf.c: Likewise.
10109 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10110 * wcsmbs/isoc99_vswscanf.c: Likewise.
10111 * wcsmbs/isoc99_vwscanf.c: Likewise.
10112 * wcsmbs/isoc99_wscanf.c: Likewise.
10113
10114 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10115
10116 * include/time.h
10117 (__tz_compute): Replace time_t with __time64_t.
10118 (__tz_convert): Replace time_t* with __time64_t.
10119 (__offtime): Replace time_t* with __time64_t.
10120 * time/gmtime.c
10121 (__gmtime_r): Adjust call to __tz_convert.
10122 (gmtime): Likewise.
10123 * time/localtime.c
10124 (__localtime_r): Likewise.
10125 (localtime): Likewise.
10126 * time/offtime.c: Replace time_t with __time64_t.
10127 * time/tzset.c: Likewise.
10128
10129 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10130
10131 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10132 dynamic linker unless [$(run-built-tests) = yes].
10133
10134 2018-12-03 DJ Delorie <dj@delorie.com>
10135
10136 * support/test-container.c (check_for_unshare_hints): New.
10137 (main): Call it if unshare fails. Add support for "su" scriptlet
10138 command.
10139
10140 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10141
10142 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10143 'START' to indicate that start text should be output.
10144 (gen_test): Likewise.
10145 (main): Generate 'START' for first symbol or '--' line, or at end
10146 of input if not previously generated.
10147
10148 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10149
10150 [BZ #19767]
10151 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10152 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10153 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10154 ALWAYS_USE_VSYSCALL.
10155
10156 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10157
10158 [BZ #23913]
10159 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10160 new_argv by one.
10161
10162 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10163
10164 [BZ #23923]
10165 * locale/programs/localedef.c: Declare boolean hard_links default true.
10166 (options): Add --no-hard-links option.
10167 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10168 * locale/programs/localedef.h: Declare prototype for hard_links.
10169 * locale/programs/locfile.c (write_locale_data): Don't use hard
10170 links if hard_links is false.
10171
10172 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10173
10174 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10175 cpu_features_basic.
10176 (__cache_sysconf): Likewise.
10177 (init_cacheinfo): Likewise.
10178 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10179 populate COMMON_CPUID_INDEX_80000007 and
10180 COMMON_CPUID_INDEX_80000008.
10181 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10182 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10183 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10184 (init_cpu_features): Use _Static_assert on
10185 index_arch_Fast_Unaligned_Load.
10186 __get_cpuid_registers and __get_arch_feature. Updated for
10187 cpu_features_basic. Set stepping in cpu_features.
10188 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10189 (FEATURE_INDEX_2): New.
10190 (FEATURE_INDEX_MAX): Changed to enum.
10191 (COMMON_CPUID_INDEX_D_ECX_1): New.
10192 (COMMON_CPUID_INDEX_80000007): Likewise.
10193 (COMMON_CPUID_INDEX_80000008): Likewise.
10194 (cpuid_registers): Likewise.
10195 (cpu_features_basic): Likewise.
10196 (CPU_FEATURE_USABLE): Likewise.
10197 (bit_arch_XXX_Usable): Likewise.
10198 (cpu_features): Use cpuid_registers and cpu_features_basic.
10199 (bit_arch_XXX): Reweritten.
10200 (bit_cpu_XXX): Likewise.
10201 (index_cpu_XXX): Likewise.
10202 (reg_XXX): Likewise.
10203 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10204 <support/check.h>.
10205 (CHECK_CPU_FEATURE): New.
10206 (CHECK_CPU_FEATURE_USABLE): Likewise.
10207 (cpu_kinds): Likewise.
10208 (do_test): Print vendor, family, model and stepping. Check
10209 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10210 (TEST_FUNCTION): Removed.
10211 Include <support/test-driver.c> instead of
10212 "../../test-skeleton.c".
10213 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10214 Check POPCNT instead of POPCOUNT.
10215 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10216
10217 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10218
10219 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10220 there is no element in `consts'.
10221
10222 2018-12-01 Florian Weimer <fweimer@redhat.com>
10223
10224 * support/support_capture_subprocess.c
10225 (support_capture_subprocess): Check that pipe descriptors have
10226 expected values. Close original pipe descriptors in subprocess.
10227
10228 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10229
10230 [BZ #23032]
10231 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10232 attr with __pthread_default_barrierattr.
10233 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10234 attr with __pthread_default_condattr.
10235 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10236 attr with __pthread_default_mutexattr.
10237 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10238 attr with __pthread_default_rwlockattr.
10239
10240 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10241
10242 * manual/tunables.texi (POSIX Thread Tunables): New node.
10243 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10244 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10245 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10246 __pthread_tunables_init.
10247 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10248 (max_adaptive_count): Define.
10249 * nptl/pthread_mutex_conf.c: New file.
10250 * nptl/pthread_mutex_conf.h: New file.
10251 * sysdeps/generic/adaptive_spin_count.h: New file.
10252 * sysdeps/nptl/dl-tunables.list: New file.
10253 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10254 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10255 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10256 Likewise.
10257
10258 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10259
10260 [BZ #20544]
10261 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10262 * stdlib/on_exit.c (__on_exit): Likewise.
10263 * stdlib/Makefile (tests): Add tst-bz20544.
10264 * stdlib/tst-bz20544.c: New test.
10265
10266 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10267
10268 [BZ #19767]
10269 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10270 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10271 New.
10272
10273 2018-11-30 Florian Weimer <fweimer@redhat.com>
10274
10275 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10276 Extend error logging.
10277 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10278 symbol.
10279
10280 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10281
10282 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10283 __sigismember instead of sigismember.
10284 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10285 cancel_handler): New definitions.
10286 (do_system): Use posix_spawn instead of fork and execl and remove
10287 reentracy code.
10288 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10289 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10290 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10291 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10292 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10293 * sysdeps/unix/sysv/linux/system.c: Likewise.
10294
10295 [BZ #22834]
10296 [BZ #17490]
10297 * NEWS: Add new semantic for atfork with popen and system.
10298 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10299 fork and execl.
10300
10301 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10302
10303 [BZ #23690]
10304 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10305 modification order when accessing reloc_result->addr.
10306 * include/link.h (reloc_result): Add field init.
10307 * nptl/Makefile (tests): Add tst-audit-threads.
10308 (modules-names): Add tst-audit-threads-mod1 and
10309 tst-audit-threads-mod2.
10310 Add rules to build tst-audit-threads.
10311 * nptl/tst-audit-threads-mod1.c: New file.
10312 * nptl/tst-audit-threads-mod2.c: Likewise.
10313 * nptl/tst-audit-threads.c: Likewise.
10314 * nptl/tst-audit-threads.h: Likewise.
10315
10316 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10317
10318 * scripts/gen-as-const.py: New file.
10319 * scripts/gen-as-const.awk: Remove.
10320 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10321 gen-as-const.py.
10322 ($(objpfx)test-as-const-%.c): Likewise.
10323
10324 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10325
10326 * elf/dl-exception.c: Include <_itoa.h>.
10327
10328 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10329
10330 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10331 returned by __f_setlk.
10332
10333 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10334 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10335
10336 * elf/Makefile (tests-internal): Add tst-create_format1.
10337 * elf/dl-exception.c (_dl_exception_create_format): Support
10338 %x, %lx and %zx.
10339 * elf/tst-create_format1.c: New file.
10340
10341 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10342
10343 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10344 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10345 gnulib.)
10346 * argp/argp-help.c (__argp_failure): Likewise.
10347
10348 2018-11-29 Mao Han <han_mao@c-sky.com>
10349
10350 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10351 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10352 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10353 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10354 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10355 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10356 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10357 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10358 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10359 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10360 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10361 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10362 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10363 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10364 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10365 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10366 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10367 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10368 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10369 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10370 (R_CKCORE_TLS_TPOFF32): New defines.
10371
10372 2018-11-29 Florian Weimer <fweimer@redhat.com>
10373
10374 * posix/Makefile (before-compile): Remove testcases.h and
10375 ptestcases.h.
10376 (generated): Add testcases.h and ptestcases.h.
10377 (testcases.h, ptestcases.h): Move to $(objpfx).
10378 (runtests.o): Add dependency on testcases.h.
10379 (runptests.o): Add dependency on ptestcases.h.
10380 * posix/testcases.h, posix/ptestcases.h: Remove files.
10381 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10382 not touch posix/testcases.h and posix/ptestcases.h.
10383
10384 2018-11-28 Florian Weimer <fweimer@redhat.com>
10385
10386 support: Add signal support to support_capture_subprocess_check.
10387 * support/capture_subprocess.h (support_capture_subprocess_check):
10388 Adjust comment and rename parameter.
10389 * support/support_capture_subprocess_check.c
10390 (print_actual_status): New function.
10391 (support_capture_subprocess_check): Support negative
10392 status_or_signal. Call print_actual_status.
10393 * support/tst-support_capture_subprocess.c (do_test): Call
10394 support_capture_subprocess_check.
10395 * libio/tst-vtables-common.c (termination_status)
10396 (init_termination_status): Remove.
10397 (check_for_termination): Adjust support_capture_subprocess_check
10398 call.
10399 (do_test): Remove call to init_termination_status.
10400
10401 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10402
10403 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10404 source directory instead of a copy.
10405 (CommandList.create_copy_dir): Remove.
10406
10407 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10408
10409 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10410
10411 2018-11-28 Florian Weimer <fweimer@redhat.com>
10412
10413 * support/support.h (support_quote_string): Do not use str
10414 parameter name.
10415
10416 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10417
10418 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10419 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10420
10421 2018-11-27 Florian Weimer <fweimer@redhat.com>
10422
10423 * support/support.h (support_quote_string): Declare.
10424 * support/support_quote_string.c: New file.
10425 * support/tst-support_quote_string.c: Likewise.
10426 * support/Makefile (libsupport-routines): Add
10427 support_quote_string.
10428 (tests): Add tst-support_quote_string.
10429
10430 2018-11-27 Florian Weimer <fweimer@redhat.com>
10431
10432 [BZ #23927]
10433 CVE-2018-19591
10434 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10435 descriptor leak in case of ENODEV error.
10436
10437 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10438
10439 [BZ #19767]
10440 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10441 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10442 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10443
10444 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10445
10446 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10447 Error for unknown lines.
10448
10449 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10450
10451 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10452 Touch additional files.
10453
10454 2018-11-26 Florian Weimer <fweimer@redhat.com>
10455
10456 [BZ #23907]
10457 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10458 double-frees.
10459
10460 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10461
10462 [BZ #19767]
10463 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10464 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10465 SHARED. Include sysdep.h.
10466 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10467 ALWAYS_USE_VSYSCALL.
10468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10469 ALWAYS_USE_VSYSCALL.
10470
10471 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10472
10473 [BZ #19767]
10474 * nptl/Makefile (tests-static): Add tst-cond11-static.
10475 (tests): Likewise.
10476 * nptl/tst-cond11-static.c: New File.
10477 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10478 tst-affinity-static.
10479 (tests): Likewise.
10480 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10481 instead of SHARED.
10482 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10483 (USE_VSYSCALL): Likewise.
10484 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10485 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10486 instead of SHARED.
10487 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10488 SHARED.
10489 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10490 New.
10491
10492 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10493
10494 [BZ #23915]
10495 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10496 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10497 Undefine.
10498
10499 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10500
10501 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10502 (tst-cet-legacy-1a-ARGS): New.
10503 ($(objpfx)tst-cet-legacy-1a): New target.
10504 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10505
10506 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10507
10508 * conform/conformtest.py (CompileSubTest.__init__): Set
10509 self.run_early to False.
10510 (ExecuteSubTest.__init__): Likewise.
10511 (HeaderTests.run): Try running all non-optional, non-XFAILed
10512 compilation tests in a single execution of the compiler.
10513
10514 * conform/conformtest.py (CompileSubTest): New class.
10515 (ExecuteSubTest): Likewise.
10516 (ElementTest.run): Rename to gen_subtests. Append tests to
10517 self.subtests instead of running them.
10518 (ConstantTest.run): Likewise.
10519 (SymbolTest.run): Likewise.
10520 (TypeTest.run): Likewise.
10521 (TagTest.run): Likewise.
10522 (FunctionTest.run): Likewise.
10523 (VariableTest.run): Likewise.
10524 (MacroFunctionTest.run): Likewise.
10525 (MacroStrTest.run): Likewise.
10526 (HeaderTests.handle_test_line): Generate subtests for tests.
10527 (HeaderTests.run): Run subtests for tests.
10528
10529 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10530
10531 * math/Versions (GLIBC_2.29): Add pow.
10532 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10533 symbol.
10534 * math/w_pow.c: New file.
10535 * sysdeps/i386/fpu/w_pow.c: New file.
10536 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10537 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10538 and add necessary aliases.
10539 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10540 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10541 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10542 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10543 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10544 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10545 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10546 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10547 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10548 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10549 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10550 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10551 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10552 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10553 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10554 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10556 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10558 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10559 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10560 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10561 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10562 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10563 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10564 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10565 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10566 __pow.
10567 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10568 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10569 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10570
10571 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10572
10573 * math/Versions (GLIBC_2.29): Add log2.
10574 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10575 symbol.
10576 * math/w_log2.c: New file.
10577 * sysdeps/i386/fpu/w_log2.c: New file.
10578 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10579 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10580 and add necessary aliases.
10581 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10582 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10583 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10584 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10585 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10586 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10587 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10588 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10589 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10590 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10591 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10592 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10593 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10594 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10595 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10600 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10601 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10602 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10603 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10604 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10605 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10606 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10607
10608 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10609
10610 * math/Versions (GLIBC_2.29): Add log.
10611 * math/w_log_compat.c (__log_compat): Change to versioned compat
10612 symbol.
10613 * math/w_log.c: New file.
10614 * sysdeps/i386/fpu/w_log.c: New file.
10615 * sysdeps/ia64/fpu/e_log.S: Update.
10616 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10617 and add necessary aliases.
10618 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10619 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10620 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10621 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10622 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10623 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10624 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10625 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10626 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10627 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10628 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10629 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10630 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10631 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10632 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10634 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10637 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10638 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10639 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10640 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10641 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10642 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10643 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10644 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10645 __log.
10646 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10647 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10648 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10649 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10650
10651 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10652
10653 * math/Versions (GLIBC_2.29): Add exp and exp2.
10654 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10655 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10656 * math/w_exp_compat.c (__exp_compat): Likewise.
10657 * math/w_exp.c: New file.
10658 * math/w_exp2.c: New file.
10659 * sysdeps/i386/fpu/w_exp.c: New file.
10660 * sysdeps/i386/fpu/w_exp2.c: New file.
10661 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10662 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10663 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10664 and add necessary aliases.
10665 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10666 and add necessary aliases.
10667 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10668 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10669 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10670 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10671 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10672 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10673 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10674 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10675 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10676 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10677 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10678 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10679 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10680 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10681 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10682 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10683 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10685 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10687 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10688 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10689 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10690 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10691 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10692 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10693 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10694 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10695 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10696 (__ieee754_exp): Rename to __exp.
10697 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10698 (__ieee754_exp): Rename to __exp.
10699 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10700 (__ieee754_exp): Rename to __exp.
10701 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10702 __exp.
10703 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10704
10705 2018-11-20 DJ Delorie <dj@redhat.com>
10706
10707 * malloc/malloc.c (tcache_entry): Add key field.
10708 (tcache_put): Set it.
10709 (tcache_get): Likewise.
10710 (_int_free): Check for double free in tcache.
10711 * malloc/tst-tcfree1.c: New.
10712 * malloc/tst-tcfree2.c: New.
10713 * malloc/Makefile: Run the new tests.
10714 * manual/probes.texi: Document memory_tcache_double_free probe.
10715
10716 * dlfcn/dlerror.c (check_free): Prevent double frees.
10717
10718 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10719
10720 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10721
10722 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10723
10724 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10725 in tests. Use names for format arguments.
10726 (ConstantTest.run): Likewise.
10727 (SymbolTest.run): Likewise.
10728 (TypeTest.run): Likewise.
10729 (TagTest.run): Likewise.
10730 (FunctionTest.run): Likewise.
10731 (VariableTest.run): Likewise.
10732 (MacroFunctionTest.run): Likewise.
10733 (MacroStrTest.run): Likewise.
10734 (HeaderTests.__init__): Set self.num_tests.
10735 (HeaderTests.handle_test_line): Set test.num. Increment
10736 self.num_tests.
10737
10738 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10739
10740 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10741 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10742 SEEK_SET.
10743
10744 2018-11-19 Mao Han <han_mao@c-sky.com>
10745
10746 * scripts/config.guess: Update to version 2018-08-29.
10747 * scripts/config.sub: Update to version 2018-08-29.
10748
10749 2018-11-19 Florian Weimer <fweimer@redhat.com>
10750
10751 support: Print timestamps in timeout handler.
10752 * support/support_test_main.c (print_timestamp): New function.
10753 (signal_handler): Use it to print the termination time and the
10754 time of the last write to standard output.
10755
10756 2018-11-16 Zack Weinberg <zackw@panix.com>
10757 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10758
10759 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10760 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10761 argument.
10762 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10763 and add flags argument. Check flags instead of __ldbl_is_dbl when
10764 deciding whether to set is_long_double.
10765 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10766 passing zero for flags argument.
10767 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10768
10769 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10770 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10771 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10772 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10773 variable names. Remove libc_hidden_def/libc_hidden_proto from
10774 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10775 longer called from within the library.
10776 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10777 for __nldbl___vstrfmon_l, declare it explicitly.
10778
10779 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10780
10781 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10782
10783 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10784 macros
10785 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10786 F_SETLK64, F_SETLKW64, respectively.
10787 * sysdeps/mach/hurd/f_setlk.c: New file.
10788 * sysdeps/mach/hurd/f_setlk.h: New file.
10789 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10790 f_setlk.
10791 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10792 (__libc_fcntl): Move non-flock operations to...
10793 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10794 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10795
10796 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10797
10798 mktime: DEBUG_MKTIME cleanup
10799 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10800 And it’s no longer needed now that glibc and Gnulib both have
10801 their own testing mechanisms for mktime.
10802 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10803
10804 mktime: fix non-EOVERFLOW errno handling
10805 [BZ#23789]
10806 mktime was not properly reporting failures when the underlying
10807 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10808 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10809 The problem could happen on non-glibc platforms, with Gnulib.
10810 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10811 (tm_diff): ... this simpler function, which does not change errno.
10812 All callers changed to deal with errno themselves.
10813 (ranged_convert, __mktime_internal): Return failure immediately if
10814 the underlying function reports any failure other than EOVERFLOW.
10815 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10816 gap code fails.
10817
10818 mktime: fix bug with Y2038 DST transition
10819 [BZ#23789]
10820 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10821 mishandle a DST transition that jumps over the Y2038 boundary.
10822 No such DST transitions are known so this is only a theoretical
10823 bug, but we might as well do things right.
10824
10825 mktime: make more room for overflow
10826 [BZ#23789]
10827 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10828 This is so that we can add tm_diff results to a previous guess,
10829 which will be useful in a later patch.
10830
10831 mktime: simplify offset guess
10832 [BZ#23789]
10833 * time/mktime.c (__mktime_internal): Omit excess precision.
10834
10835 mktime: new test for mktime failure
10836 [BZ#23789]
10837 Based on a test suggested by Albert Aribaud in:
10838 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10839 * time/Makefile (tests): Add bug-mktime4.
10840 * time/bug-mktime4.c: New file.
10841
10842 mktime: fix EOVERFLOW bug
10843 [BZ#23789]
10844 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10845 Include libc-config.h, not config.h, for __set_errno.
10846 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10847
10848 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10849
10850 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10851 __attribute_copy__ to copy attributes from name. Drop static qualifier
10852 to avoid warnings about leaf attribute not having effect on static
10853 functions.
10854
10855 2018-11-13 Florian Weimer <fweimer@redhat.com>
10856
10857 * malloc/malloc.c (fastbin_push_entry): New function.
10858 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10859 (REMOVE_FB): Remove macro.
10860 (_int_malloc): Use fastbin_pop_entry and reindent.
10861 (_int_free): Use fastbin_push_entry.
10862 (malloc_consolidate): Use atomic_exchange_acquire.
10863
10864 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10865
10866 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10867 alias attribute, not with strong_alias.
10868
10869 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10870 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10871 with additional parameter thread.
10872 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10873 in terms of __hidden_ver2.
10874 (hidden_tls_def): New macro.
10875 (libc_hidden_tls_def): Likewise.
10876 (rtld_hidden_tls_def): Likewise.
10877 (libm_hidden_tls_def): Likewise.
10878 (libmvec_hidden_tls_def): Likewise.
10879 (libresolv_hidden_tls_def): Likewise.
10880 (librt_hidden_tls_def): Likewise.
10881 (libdl_hidden_tls_def): Likewise.
10882 (libnss_files_hidden_tls_def): Likewise.
10883 (libnsl_hidden_tls_def): Likewise.
10884 (libnss_nisplus_hidden_tls_def): Likewise.
10885 (libutil_hidden_tls_def): Likewise.
10886 (libutil_hidden_tls_def): Likweise.
10887 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10888 libc_hidden_tls_def.
10889 (__sim_disabled_exceptions_thread): Likewise.
10890 (__sim_round_mode_thread): Likewise.
10891
10892 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10893 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10894 copy attributes from name.
10895
10896 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10897
10898 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10899 Use __attribute_copy__ to copy attributes from name.
10900
10901 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10902 with __hidden_ver1 call.
10903 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10904 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10905 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10906 (__cosf): Do not declare here.
10907 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10908 (__sincosf): Do not declare here.
10909 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10910 (__sinf): Do not declare here.
10911
10912 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10913 (__BIG_ENDIAN): Likewise.
10914 (__BYTE_ORDER): Likewise.
10915 (strong_alias): Likewise.
10916 (_strong_alias): Likewise.
10917
10918 2018-11-12 Florian Weimer <fweimer@redhat.com>
10919
10920 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10921 function. Move after the definition of in_smallbin_range. Do not
10922 use __builtin_expect for paths that lead to a noreturn function.
10923 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10924 because it is unclear whether this is in fact an unlikely
10925 condition.
10926 (_int_malloc, _int_free): Adjust.
10927 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10928 variables.
10929 * malloc/arena.c (heap_trim): Likewise.
10930
10931 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10932
10933 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10934 it, free it if needed.
10935 (reauthenticate): Test and use ccwdir.
10936 (child_init_port): In non-resetids case, test and use ccwdir.
10937 (child_chdir): New nested function to set ccwdir.
10938 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10939 * hurd/hurd/port.h (_hurd_port_move): New function.
10940 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10941 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10942 * hurd/Versions (_hurd_port_move): Export function.
10943 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10944 symbol.
10945 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10946 of dtablesize for allocating dtable_cloexec.
10947
10948 2018-11-09 Martin Sebor <msebor@redhat.com>
10949
10950 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10951 it's already defined.
10952 (_strong_alias): Use __attribute_copy__.
10953 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10954 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10955 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10956 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10957 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10958 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10959 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10960 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10961 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10962 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10963 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10964 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10965 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10966 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10967 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10968 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10969 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10970 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10971 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10972
10973 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10974
10975 * misc/tst-efgcvt.c: Include support/check.h and
10976 support/test-driver.c. Do not include test-skeleton.c.
10977 (error_count): Remove.
10978 (output_error): Replace increments to error_count with calls to
10979 support_record_failure.
10980 (output_r_error): Likewise.
10981 (special): Likewise.
10982 (do_test): Unconditionally return zero.
10983 (TEST_FUNCTION): Remove.
10984
10985 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10986
10987 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10988 not $(@D)/scratch.
10989 ($(linknamespace-header-tests)): Likewise.
10990
10991 * conform/conformtest.py: New file.
10992 * conform/conformtest.pl: Remove.
10993 * conform/GlibcConform.pm: Likewise.
10994 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10995 (KEYWORDS_C99): Likewise.
10996 (KEYWORDS): Likewise.
10997 * conform/Makefile ($(conformtest-header-tests)): Use
10998 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10999 option. Use --header instead of --headers.
11000 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
11001 function entries.
11002 * conform/data/spawn.h-data: Likewise.
11003 * conform/data/fcntl.h-data (openat): Add space after function
11004 name.
11005 * conform/data/wchar.h-data (wcscasecmp): Likewise.
11006 (wcscasecmp_l): Likewise.
11007 * conform/data/termios.h-data (c_cc): Add space after element
11008 name.
11009
11010 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11011
11012 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
11013 instead of manually comparing and reporting mismatching strings.
11014 * misc/tst-ldbl-error.c (do_one_test): Likewise.
11015 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
11016
11017 2018-11-08 Joseph Myers <joseph@codesourcery.com>
11018
11019 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
11020 __ASSUME_SOCKETCALL.
11021 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11022 (__ASSUME_SOCKETCALL): Remove.
11023 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11024 (__ASSUME_SOCKETCALL): Likewise.
11025 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11026 (__ASSUME_SOCKETCALL): Likewise.
11027 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11028 (__ASSUME_SOCKETCALL): Likewise.
11029 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11030 (__ASSUME_SOCKETCALL): Likewise.
11031 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11032 (__ASSUME_SOCKETCALL): Likewise.
11033 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11034 (__ASSUME_SOCKETCALL): Likewise.
11035
11036 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
11037
11038 [BZ #23509]
11039 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
11040 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
11041 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
11042 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
11043 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
11044 lc_unknown.
11045
11046 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
11047
11048 [BZ #17630]
11049 * resolv/tst-resolv-network.c: Add test for getnetbyname.
11050
11051 2018-11-07 Joseph Myers <joseph@codesourcery.com>
11052
11053 [BZ #23867]
11054 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11055 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11056 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11057 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11058
11059 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11060
11061 * support/support_test_compare_string.c
11062 (support_test_compare_string): Fix printf format.
11063
11064 2018-11-07 Florian Weimer <fweimer@redhat.com>
11065
11066 Implement TEST_COMPARE_STRING.
11067 * support/check.h (TEST_COMPARE_STRING): Define.
11068 (support_test_compare_string): Declare.
11069 * support/Makefile (libsupport-routines): Add
11070 support_test_compare_string.
11071 (tests): Add tst-test_compare_string.
11072 * support/support_test_compare_string.c: New file.
11073 * support/tst-test_compare_string.c: Likewise.
11074
11075 2018-11-07 Andreas Schwab <schwab@suse.de>
11076
11077 [BZ #23864]
11078 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11079 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11080 Undef.
11081
11082 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11083
11084 [BZ #23862]
11085 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11086 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11087 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11088 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11089 Likewise.
11090
11091 2018-11-06 Florian Weimer <fweimer@redhat.com>
11092
11093 [BZ #17405]
11094 * posix/Makefile (routines): Add spawn_faction_addchdir.
11095 (tests): Add tst-spawn-chdir.
11096 * posix/Versions (GLIBC_2.29): Add
11097 posix_spawn_file_actions_addchdir_np.
11098 * posix/spawn_faction_addchdir.c: New file.
11099 * posix/spawn_faction_destroy.c
11100 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11101 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11102 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11103 chdir_action.
11104 * posix/tst-spawn-chdir.c: New file.
11105 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11106 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11107 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11108 posix_spawn_file_actions_addchdir_np.
11109 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11110 Likewise.
11111 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11112 Likewise.
11113 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11114 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11115 Likewise.
11116 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11117 Likewise.
11118 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11119 Likewise.
11120 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11121 Likewise.
11122 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11123 Likewise.
11124 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11125 Likewise.
11126 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11127 (GLIBC_2.29): Likewise.
11128 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11129 (GLIBC_2.29): Likewise.
11130 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11131 (GLIBC_2.29): Likewise.
11132 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11133 (GLIBC_2.29): Likewise.
11134 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11135 Likewise.
11136 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11137 (GLIBC_2.29): Likewise.
11138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11139 (GLIBC_2.29): Likewise.
11140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11141 (GLIBC_2.29): Likewise.
11142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11143 (GLIBC_2.29): Likewise.
11144 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11145 Likewise.
11146 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11147 Likewise.
11148 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11149 Likewise.
11150 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11151 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11152 Likewise.
11153 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11154 Likewise.
11155 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11156 Likewise.
11157 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11158 Likewise.
11159
11160 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11161
11162 * misc/Makefile (tests): Add tst-ldbl-error.
11163 * misc/tst-ldbl-error.c: New file.
11164
11165 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11166
11167 * misc/Makefile (tests): Add tst-ldbl-warn.
11168 * misc/tst-ldbl-warn.c: New file.
11169
11170 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11171
11172 * argp/Makefile (tests): Add tst-ldbl-argp.
11173 * argp/tst-ldbl-argp.c: New file.
11174
11175 2018-11-05 Arjun Shankar <arjun@redhat.com>
11176
11177 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11178 __gconv_path_elem and call __gconv_get_path unconditionally.
11179
11180 2018-11-05 Andreas Schwab <schwab@suse.de>
11181
11182 [BZ #22927]
11183 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11184 creating the first helper thread failed.
11185
11186 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11187
11188 * sysdeps/mach/hurd/msync.c: New file.
11189
11190 2018-11-02 Florian Weimer <fweimer@redhat.com>
11191
11192 * support/shell-container.c (copy_func): Call
11193 support_copy_file_range instead of copy_file_range to support
11194 cross-device copies.
11195
11196 2018-11-02 Florian Weimer <fweimer@redhat.com>
11197
11198 * support/test-container.c: Include <libc-pointer-arith.h> for
11199 ALIGN_UP.
11200
11201 2018-11-01 Zong Li <zong@andestech.com>
11202
11203 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11204 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11205 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11206 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11207
11208 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11209 variable to avoid overlap arguments.
11210
11211 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11212
11213 * posix/bug-regex22.c (main): Use puts with distinct error
11214 messages for unexpected success of re_compile_pattern, not printf
11215 with NULL argument to %s.
11216
11217 * stdio-common/bug22.c: Include <libc-diag.h>.
11218 (do_test): Disable -Wformat-overflow= warnings around fprintf
11219 calls outputting more than INT_MAX characters.
11220 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11221 around printf call with NULL %s argument.
11222
11223 [BZ #23848]
11224 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11225 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11226 Undefine.
11227 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11228 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11229 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11230 (__ASSUME_SENDTO_SYSCALL): Likewise.
11231 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11232 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11233 [!__arch64__].
11234 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11235 (__ASSUME_CONNECT_SYSCALL): Likewise.
11236 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11237 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11238 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11239 Define.
11240 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11241 Likewise.
11242 [__LINUX_KERNEL_VERSION >= 0x040400]
11243 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11244 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11245 Remove.
11246 (listen): Likewise.
11247 (setsockopt): Likewise.
11248
11249 2018-11-01 Fredrik Noring <noring@nocrew.org>
11250
11251 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11252 with the ISA override.
11253
11254 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11255
11256 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11257 #endif.
11258
11259 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11260
11261 * manual/errno.texi (EIEIO): Document how translators should
11262 translate the error message.
11263 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11264 printing trailing whitespaces refused by git.
11265 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11266 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11267 * hurd/Makefile (user-interfaces): Add pci.
11268
11269 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11270
11271 * conform/linknamespace.py: New file.
11272 * conform/linknamespace.pl: Remove file.
11273 * conform/Makefile ($(linknamespace-header-tests)): Use
11274 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11275 option.
11276
11277 2018-10-30 Florian Weimer <fweimer@redhat.com>
11278
11279 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11280 memory leaks.
11281
11282 2018-10-30 Florian Weimer <fweimer@redhat.com>
11283
11284 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11285
11286 2018-10-30 Florian Weimer <fweimer@redhat.com>
11287
11288 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11289 support_blob_repeat.
11290
11291 2018-10-30 Florian Weimer <fweimer@redhat.com>
11292
11293 Avoid spurious test failures in stdlib/test-bz22786.
11294 * support/Makefile (libsupport-routines): Add blob_repeat.
11295 (tests): Add tst-support_blob_repeat.
11296 * support/blob_repeat.h: New file.
11297 * support/blob_repeat.c: Likewise.
11298 * support/tst-support_blob_repeat.c: Likewise.
11299 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11300 support_blob_repeat_allocate.
11301
11302 2018-10-30 Andreas Schwab <schwab@suse.de>
11303
11304 [BZ #23125]
11305 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11306 Don't use tail call.
11307 * elf/tst-unwind-main.c: New file.
11308 * elf/Makefile (tests): Add tst-unwind-main.
11309 (CFLAGS-tst-unwind-main.c): Define.
11310
11311 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11312
11313 [BZ #23791]
11314 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11315 n_cs_precedes to 0.
11316 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11317
11318 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11319
11320 * conform/glibcconform.py: Do not import shutil.
11321 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11322 of mkdtemp.
11323
11324 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11325 critic_missing for versions before 3.4.
11326 * configure: Regenerated.
11327 * manual/install.texi (Tools for Compilation): Document
11328 requirement for Python to build glibc.
11329 * INSTALL: Regenerated.
11330 * Rules [PYTHON]: Make code unconditional.
11331 * benchtests/Makefile [PYTHON]: Likewise.
11332 * conform/Makefile [PYTHON]: Likewise.
11333 * manual/Makefile [PYTHON]: Likewise.
11334 * math/Makefile [PYTHON]: Likewise.
11335
11336 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11337
11338 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11339 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11340 answer to interrupt_operation, return EIEIO instead of EINTR.
11341 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11342 _hurd_intr_rpc_msg_about_to global point to start of controlled
11343 assembly snippet. Make it check canceled flag.
11344 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11345 the _hurd_intr_rpc_msg_about_to point.
11346 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11347 issue, remove cancel flag check.
11348
11349 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11350
11351 * scripts/build-many-glibcs.py: Remove compatibility for missing
11352 os.cpu_count and re.fullmatch.
11353
11354 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11355
11356 [BZ #23822]
11357 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11358 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11359 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11360
11361 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11362
11363 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11364 macro.
11365
11366 2018-10-25 Florian Weimer <fweimer@redhat.com>
11367
11368 [BZ #23562]
11369 [BZ #23821]
11370 XFAIL siginfo_t si_band conform test on sparc64.
11371 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11372 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11373 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11374 (conformtest-xfail-conds): Add sparc64-linux.
11375 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11376 sparc64.
11377 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11378
11379 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11380
11381 * elf/elf.h (NT_MIPS_DSP): New macro.
11382 (NT_MIPS_FP_MODE): Likewise.
11383
11384 2018-10-25 Zong Li <zong@andestech.com>
11385
11386 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11387 name by adding the file extension (.so).
11388
11389 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11390
11391 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11392 (test-xfail-ISO11/threads.h/linknamespace,
11393 test-xfail-ISO11/threads.h/conform): Add.
11394
11395 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11396
11397 * math/gen-libm-test.py: Import os.
11398 (ALL_FLOATS_MANUAL): New constant.
11399 (ALL_FLOATS_SUFFIX): Likewise.
11400 (Ulps.all_functions): New function.
11401 (real_all_ulps): Likewise.
11402 (generate_err_table_sub): Likewise.
11403 (generate_err_table): Likewise.
11404 (main): Handle -s and -m options.
11405 * manual/libm-err-tab.pl: Remove.
11406 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11407 instead of libm-err-tab.pl.
11408 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11409 != no].
11410 * manual/install.texi (Tools for Compilation): Document
11411 requirement for Python to build manual.
11412 * INSTALL: Regenerated.
11413
11414 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11415
11416 * bits/time64.h: New file.
11417 * include/time.h: Replace internal_time_t with __time64_t.
11418 * posix/bits/types (__time64_t): Add.
11419 * stdlib/Makefile: Add bits/time64.h to includes.
11420 * time/tzfile.c: Replace internal_time_t with __time64_t.
11421
11422 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11423
11424 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11425 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11426 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11427 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11428 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11429 prototype.
11430 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11431 * posix/spawn_faction_addclose.c
11432 (__posix_spawn_file_actions_addclose): Add hidden definition.
11433 * posix/spawn_faction_adddup2.c
11434 (__posix_spawn_file_actions_adddup2): Likewise.
11435 * posix/spawn_faction_destroy.c
11436 (__posix_spawn_file_actions_destroy): Likewise.
11437 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11438 Likewise.
11439 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11440 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11441 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11442 Likewise.
11443 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11444 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11445 Likewise.
11446
11447 2018-10-24 Andreas Schwab <schwab@suse.de>
11448
11449 [BZ #18093]
11450 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11451 format cache.
11452 * elf/cache.c (print_cache): Likewise.
11453
11454 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11455
11456 * bits/timesize.h: New file.
11457 * stdlib/Makefile (headers): Add bits/timesize.h.
11458 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11459 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11460 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11461 (__SEM_PAD_AFTER_TIME): Likewise.
11462 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11463 (__SHM_PAD_AFTER_TIME): Likewise.
11464 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11465 (__MSQ_PAD_BEFORE_TIME): Likewise.
11466 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11467 (__SEM_PAD_BEFORE_TIME): Likewise.
11468 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11469 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11470 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11471 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11472 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11473 (__MSQ_PAD_BEFORE_TIME): Likewise.
11474 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11475 (__SEM_PAD_BEFORE_TIME): Likewise.
11476 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11477 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11478 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11479 (__MSQ_PAD_BEFORE_TIME): Likewise.
11480 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11481 (__SEM_PAD_BEFORE_TIME): Likewise.
11482 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11483 (__SHM_PAD_BEFORE_TIME): Likewise.
11484 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11485 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11486 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11487
11488 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11489
11490 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11491 USE_RDTSCP is defined.
11492 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11493 USE_RDTSCP is defined.
11494
11495 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11496
11497 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11498 defined.
11499
11500 [BZ #23709]
11501 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11502 independently of other flags.
11503
11504 2018-10-23 Florian Weimer <fweimer@redhat.com>
11505
11506 * time/tst-mktime2.c (N_STRINGS): Remove.
11507 (set_timezone): New function.
11508 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11509 (mktime_test1): Report localtime failure and check errno value.
11510 Use TEST_COMPARE.
11511 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11512 (do_test): Remove alarm call. Use set_timezone and array_length.
11513
11514 2018-10-23 Andreas Schwab <schwab@suse.de>
11515
11516 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11517 (__start_context): Use END instead of PSEUDO_END.
11518
11519 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11520
11521 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11522 version to 4.19.
11523
11524 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11525 version to 4.19.
11526
11527 [BZ #23793]
11528 * wcsmbs/c32rtomb.c: New file.
11529 * wcsmbs/mbrtoc32.c: Likewise.
11530 * wcsmbs/tst-c32-state.c: Likewise.
11531 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11532 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11533 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11534 (tests): Add tst-c32-state.
11535 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11536 $(gen-locales).
11537
11538 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11539
11540 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11541 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11542
11543 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11544
11545 [BZ #23794]
11546 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11547 pair and return 0 in that case, and use saved character to
11548 interpret following character.
11549 * wcsmbs/tst-c16-surrogate.c: New file.
11550 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11551 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11552 Depend on $(gen-locales)
11553
11554 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11555
11556 [BZ #23562]
11557 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11558 (struct siginfo_t): Use correct type for si_band.
11559
11560 2018-10-19 Florian Weimer <fweimer@redhat.com>
11561
11562 [BZ #23689]
11563 * resource/bits/types/struct_rusage.h (struct rusage): Update
11564 comment on struct. Remove extraneous field comment.
11565
11566 2018-10-18 David S. Miller <davem@davemloft.net>
11567
11568 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11569 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11570 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11571 sysdep_routines in subdir elf.
11572 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11573 version for __vdso_clock_gettime.
11574 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11575 Define.
11576 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11577 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11578
11579 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11580
11581 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11582
11583 * sysdeps/i386/init-arch.h: Removed.
11584 * sysdeps/i386/i586/init-arch.h: Likewise.
11585 * sysdeps/i386/i686/init-arch.h: Likewise.
11586 * sysdeps/i386/i686/hp-timing.h: Likewise.
11587 * sysdeps/x86_64/hp-timing.h: Likewise.
11588 * sysdeps/i386/isa.h: New file.
11589 * sysdeps/i386/i586/isa.h: Likewise.
11590 * sysdeps/i386/i686/isa.h: Likewise.
11591 * sysdeps/x86_64/isa.h: Likewise.
11592 * sysdeps/x86/hp-timing.h: New file.
11593 * sysdeps/x86/init-arch.h: Include <isa.h>.
11594
11595 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11596
11597 * math/libm-test-pow.inc (pow_test_data): Do not allow
11598 divide-by-zero exception for pow(+/- 0, -Inf).
11599
11600 2018-10-17 Zack Weinberg <zackw@panix.com>
11601
11602 * manual/job.texi (Job Control is Optional): Remove node, as
11603 job control has not been optional in quite some time.
11604 (Job Control): Mention briefly that systems older than
11605 POSIX.1-2001 might not support job control.
11606 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11607 defined on systems conforming to POSIX.1-2001.
11608
11609 2018-10-17 Arjun Shankar <arjun@redhat.com>
11610
11611 [BZ #22062]
11612 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11613 indentation.
11614 * (__gconv_read_conf): Mark function static.
11615 * (once): New static variable.
11616 * (__gconv_load_conf): New function.
11617 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11618 * iconv/gconv_db.c (once): Remove static variable.
11619 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11620 __gconv_read_conf.
11621 * (__gconv_find_transform): Likewise.
11622 * iconv/tst-iconv-mt.c: New test.
11623 * iconv/Makefile: Add tst-iconv_mt.
11624
11625 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11626
11627 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11628 bits/shm-pad.h.
11629 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11630 (shmatt_t): Define as __syscall_ulong_t.
11631 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11632 and [__SHM_PAD_AFTER_TIME].
11633 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11634 Define shm_segsz and associated padding based on
11635 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11636 Use __syscall_ulong_t instead of unsigned long int.
11637 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11638 unsigned long int.
11639 [__USE_MISC] (struct shm_info): Likewise.
11640 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11641 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11642 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11643 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11644 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11645 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11646 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11647 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11648 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11649 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11650 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11651
11652 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11653 bits/shmlba.h.
11654 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11655 (SHMLBA): Remove macro.
11656 (__getpagesize): Remove function declaration.
11657 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11658 <bits/shmlba.h>.
11659 (SHMLBA): Remove macro.
11660 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11661 <bits/shmlba.h>.
11662 (SHMLBA): Remove macro.
11663 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11664 <bits/shmlba.h>.
11665 (SHMLBA): Remove macro.
11666 (__getpagesize): Remove function declaration.
11667 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11668 <bits/shmlba.h>.
11669 (SHMLBA): Remove macro.
11670 (__getshmlba): Remove function declaration.
11671 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11672 (SHMLBA): Remove macro.
11673 (__getpagesize): Remove function declaration.
11674 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11675 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11676 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11677 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11678 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11679 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11680 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11681 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11682 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11683 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11684
11685 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11686
11687 [BZ #23275]
11688 * nptl/tst-mutex10.c: New File.
11689 * nptl/Makefile (tests): Add tst-mutex10.
11690 (tst-mutex10-ENV): New variable.
11691 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11692 Ensure that elision path is used if elision is available.
11693 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11694 Likewise.
11695 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11696 Likewise.
11697 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11698 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11699 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11700 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11701 Likewise.
11702 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11703 (__pthread_mutex_cond_lock_adjust): Likewise.
11704 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11705 Likewise.
11706 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11707 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11708 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11709 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11710 Add comments.
11711 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11712 Use atomic_load_relaxed and atomic_store_relaxed.
11713 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11714 Use atomic_store_relaxed.
11715
11716 2018-10-17 Andreas Schwab <schwab@suse.de>
11717
11718 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11719 * crypt/badsalttest.c (TIMEOUT): Likewise.
11720 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11721 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11722 * io/test-lfs.c (TIMEOUT): Likewise.
11723 * libio/tst-atime.c (TIMEOUT): Likewise.
11724 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11725 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11726 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11727 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11728 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11729 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11730 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11731 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11732 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11733 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11734 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11735 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11736 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11737 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11738 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11739 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11740 * nptl/tst-once2.c (TIMEOUT): Likewise.
11741 * nptl/tst-once3.c (TIMEOUT): Likewise.
11742 * nptl/tst-once4.c (TIMEOUT): Likewise.
11743 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11744 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11745 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11746 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11747 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11748 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11749 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11750 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11751 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11752 * posix/tst-chmod.c (TIMEOUT): Likewise.
11753 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11754 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11755 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11756 * posix/tst-regex2.c (TIMEOUT): Likewise.
11757 * posix/tst-waitid.c (TIMEOUT): Likewise.
11758 * rt/tst-aio.c (TIMEOUT): Likewise.
11759 * rt/tst-aio10.c (TIMEOUT): Likewise.
11760 * rt/tst-aio4.c (TIMEOUT): Likewise.
11761 * rt/tst-aio5.c (TIMEOUT): Likewise.
11762 * rt/tst-aio6.c (TIMEOUT): Likewise.
11763 * rt/tst-aio64.c (TIMEOUT): Likewise.
11764 * rt/tst-aio7.c (TIMEOUT): Likewise.
11765 * rt/tst-aio9.c (TIMEOUT): Likewise.
11766 * rt/tst-clock.c (TIMEOUT): Likewise.
11767 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11768 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11769 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11770 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11771 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11772 * rt/tst-timer4.c (TIMEOUT): Likewise.
11773 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11774 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11775 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11776 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11777 * time/tst-ftime.c (TIMEOUT): Likewise.
11778 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11779
11780 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11781
11782 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11783 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11784 for thunderX2.
11785
11786 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11787
11788 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11789 bits/sem-pad.h.
11790 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11791 instead of <bits/wordsize.h>.
11792 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11793 and [__SEM_PAD_AFTER_TIME].
11794 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11795 __syscall_ulong_t instead of unsigned long int.
11796 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11797 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11798 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11799 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11800 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11801 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11802 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11803 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11804 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11805 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11806 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11807
11808 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11809
11810 regex: simplify by using intprops.h
11811 [BZ#23744]
11812 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11813 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11814 intprops.h defines them.
11815
11816 regex: __builtin_expect → __glibc_unlikely
11817 [BZ#23744]
11818 This refactoring was prompted by a problem when the regex code is
11819 used as part of Gnulib and when the builder’s compiler does not grok
11820 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11821 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11822 Although this refactoring does not fix the problem directly,
11823 we might as well have Gawk use the now-preferred glibc style for when
11824 __builtin_expect is unavailable.
11825 * posix/regex_internal.h (BE): Remove.
11826 All uses replaced by __glibc_unlikely or __glibc_likely.
11827
11828 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11829
11830 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11831 bits/msq-pad.h.
11832 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11833 instead of <bits/wordsize.h>.
11834 (msgqnum_t): Define as __syscall_ulong_t.
11835 (msglen_t): Likewise.
11836 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11837 and [__MSQ_PAD_AFTER_TIME].
11838 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11839 __syscall_ulong_t instead of unsigned long int.
11840 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11841 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11842 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11843 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11844 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11845 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11846 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11847 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11848 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11849 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11850 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11851
11852 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11853
11854 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11855 (struct shmid_ds): Condition padding after time fields on
11856 [__WORDSIZE == 32].
11857 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11858 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11859 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11860
11861 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11862 (struct semid_ds): Condition padding after time fields on
11863 [__WORDSIZE == 32].
11864 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11865 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11866 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11867 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11868
11869 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11870 (struct msqid_ds): Condition padding after time fields on
11871 [__WORDSIZE == 32].
11872 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11873 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11874 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11875 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11876
11877 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11878
11879 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11880
11881 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11882
11883 * libio/tst-readline.c (TIMEOUT): Define.
11884
11885 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11886
11887 mktime fix for Gnulib + coreutils
11888 [BZ#23745]
11889 This fix affects only Gnulib. Problem discovered when
11890 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11891 * time/mktime.c:
11892 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11893 Do not define since it is not used. Defining an unused static
11894 function prompts a warning from GCC when Coreutils is configured
11895 with --enable-gcc-warnings.
11896
11897 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11898
11899 * benchtests/scripts/compare_bench.py (main): set float type on
11900 threshold argument.
11901
11902 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11903
11904 [BZ #23740]
11905 * localedata/locales/kl_GL (mon): Update, the relative case.
11906 (alt_mon): Add, fill with month names in the nominative case.
11907 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11908 (d_fmt): Set to "%b %d %Y".
11909
11910 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11911
11912 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11913 <bits/mman-linux.h>.
11914 (PROT_READ): Don't define here.
11915 (PROT_WRITE): Likewise.
11916 (PROT_EXEC): Likewise.
11917 (PROT_NONE): Likewise.
11918 (PROT_GROWSDOWN): Likewise.
11919 (PROT_GROWSUP): Likewise.
11920 (MAP_SHARED): Likewise.
11921 (MAP_PRIVATE): Likewise.
11922 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11923 [__USE_MISC] (MAP_FILE): Likewise.
11924 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11925 [__USE_MISC] (MAP_ANON): Likewise.
11926 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11927 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11928 (MCL_CURRENT): Likewise.
11929 (MCL_FUTURE): Likewise.
11930 (MCL_ONFAULT): Likewise.
11931 [__USE_MISC] (MADV_NORMAL): Likewise.
11932 [__USE_MISC] (MADV_RANDOM): Likewise.
11933 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11934 [__USE_MISC] (MADV_WILLNEED): Likewise.
11935 [__USE_MISC] (MADV_DONTNEED): Likewise.
11936 [__USE_MISC] (MADV_FREE): Likewise.
11937 [__USE_MISC] (MADV_REMOVE): Likewise.
11938 [__USE_MISC] (MADV_DONTFORK): Likewise.
11939 [__USE_MISC] (MADV_DOFORK): Likewise.
11940 [__USE_MISC] (MADV_HWPOISON): Likewise.
11941 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11942 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11943 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11944 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11945 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11946 (__MAP_ANONYMOUS): New macro.
11947 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11948 <bits/mman-linux.h> inclusion.
11949 (MAP_FIXED): Likewise.
11950 (MS_SYNC): Likewise.
11951 (MS_ASYNC): Likewise.
11952 (MS_INVALIDATE): Likewise.
11953 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11954 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11955 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11956 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11957 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11958 [__USE_MISC] (MADV_DODUMP): Likewise.
11959 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11960 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11961
11962 [BZ #23735]
11963 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11964 Define.
11965 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11966 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11967 Add test-nldbl-redirect.
11968 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11969 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11970 $(objpfx)libnldbl_nonshared.a.
11971
11972 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11973
11974 * support/support.h (support_objdir_elf_ldso): New variable.
11975 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11976 * support/Makefile (CFLAGS-support_paths.c): Add definition
11977 for OBJDIR_ELF_LDSO_PATH.
11978 * support/test-container.c (main): Search for the ld.so
11979 which is also used by the testsuite.
11980
11981 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11982
11983 [BZ #20209]
11984 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11985 should be "sap" rather than "sab".
11986 (day): Fix spelling of Sunday, should be "sapaat" rather than
11987 "sabaat".
11988
11989 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11990
11991 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11992
11993 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11994
11995 [BZ #19444]
11996 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11997 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11998 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11999
12000 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12001
12002 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
12003
12004 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
12005
12006 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
12007 Add -mrtm.
12008 (CFLAGS-elision-unlock.c): Likewise.
12009 (CFLAGS-elision-timed.c): Likewise.
12010 (CFLAGS-elision-trylock.c): Likewise.
12011 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
12012
12013 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12014
12015 [BZ #21037]
12016 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
12017 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
12018 new fd_to_filename interface.
12019 * libio/freopen64.c (freopen64): Likewise.
12020 * libio/tst-memstream.h: New file.
12021 * libio/tst-memstream4.c: Likewise.
12022 * libio/tst-wmemstream4.c: Likewise.
12023 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
12024 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
12025 and remove internal dynamic allocation.
12026
12027 2018-10-01 Joseph Myers <joseph@codesourcery.com>
12028
12029 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
12030 (MREMAP_MAYMOVE): Do not define here.
12031 [__USE_GNU] (MREMAP_FIXED): Likewise.
12032 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
12033 (MREMAP_MAYMOVE): Define here instead.
12034 [__USE_GNU] (MREMAP_FIXED): Likewise.
12035 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
12036 (MREMAP_MAYMOVE): Remove.
12037 [__USE_GNU] (MREMAP_FIXED): Likewise.
12038
12039 2018-09-28 Joseph Myers <joseph@codesourcery.com>
12040
12041 * math/fromfp.h: Do not include <math_private.h>.
12042 * math/s_cacosh_template.c: Likewise.
12043 * math/s_casin_template.c: Likewise.
12044 * math/s_casinh_template.c: Likewise.
12045 * math/s_ccos_template.c: Likewise.
12046 * math/s_cproj_template.c: Likewise.
12047 * math/s_fdim_template.c: Likewise.
12048 * math/s_fmaxmag_template.c: Likewise.
12049 * math/s_fminmag_template.c: Likewise.
12050 * math/s_iseqsig_template.c: Likewise.
12051 * math/s_ldexp_template.c: Likewise.
12052 * math/s_nextdown_template.c: Likewise.
12053 * math/w_log1p_template.c: Likewise.
12054 * math/w_scalbln_template.c: Likewise.
12055 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12056 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12057 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12058 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12059 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12060 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12061 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12062 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12063 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12064 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12065 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12066 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12067 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12068 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12069 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12070 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12071 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12072 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12073 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12074 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12075 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12076 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12077 * sysdeps/ieee754/k_standardf.c: Likewise.
12078 * sysdeps/ieee754/k_standardl.c: Likewise.
12079 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12080 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12081 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12082 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12083 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12084 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12085 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12086 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12087 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12088 * sysdeps/ieee754/s_signgam.c: Likewise.
12089 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12090 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12091 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12092 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12093 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12094 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12095 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12096 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12097 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12098 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12099 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12100 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12101 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12102 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12103 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12104 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12105 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12106 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12107 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12108 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12109 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12110 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12111 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12112 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12113 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12114 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12115 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12116 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12117 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12118 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12119 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12120 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12121 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12122 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12123 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12124 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12125 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12126 <math_private.h>.
12127 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12128
12129 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12130
12131 [BZ #23716]
12132 * sysdeps/i386/dl-cet.c: Removed.
12133 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12134 prototype.
12135 (_dl_runtime_profile_shstk): Likewise.
12136 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12137 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12138
12139 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12140
12141 [BZ #23579]
12142 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12143 do_test_with_invalid_iov): New tests.
12144 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12145 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12146 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12147 errno is ENOSYS.
12148 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12149 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12150 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12151
12152 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12153
12154 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12155 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12156 (MATH_REDIRECT_BINARY_ARGS): New macro.
12157 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12158 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12159 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12160 header inclusion.
12161 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12162 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12163 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12164 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12165 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12166 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12167 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12168 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12169 Likewise.
12170 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12171 Likewise.
12172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12174 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12175 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12176 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12177 Likewise.
12178 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12179 Likewise.
12180 * sysdeps/generic/math_private_calls.h
12181 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12182 Do not declare and define as an inline function.
12183 * math/divtc3.c (__divtc3): Use copysign functions instead of
12184 __copysign variants.
12185 * math/multc3.c (__multc3): Likewise.
12186 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12187 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12188 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12189 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12190 Likewise.
12191 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12192 (__ieee754_yn): Likewise.
12193 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12194 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12195 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12196 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12197 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12198 (__sin): Likewise.
12199 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12200 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12201 Likewise.
12202 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12203 Likewise.
12204 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12205 Likewise.
12206 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12207 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12208 Likewise.
12209 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12210 (__ieee754_ynf): Likewise.
12211 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12212 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12213 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12214 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12215 Likewise.
12216 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12217 (__ieee754_ynl): Likewise.
12218 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12219 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12220 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12221 Likewise.
12222 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12223 (__ieee754_ynl): Likewise.
12224 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12225 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12226 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12227 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12228 Likewise.
12229 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12230 (__ieee754_ynl)
12231 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12232 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12233 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12234 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12235 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12236
12237 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12238 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12239 using MATH_REDIRECT.
12240 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12241 header inclusion.
12242 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12243 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12244 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12245 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12246 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12247 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12248 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12249 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12250 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12253 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12254 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12255 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12256 (round): Redirect to __round.
12257 (__roundl): Call round instead of __round.
12258 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12259 Remove macro.
12260 [_ARCH_PWR5X] (__roundf): Likewise.
12261 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12262 functions instead of __round variants.
12263 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12264 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12265 Likewise.
12266 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12267 Likewise.
12268 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12269 Likewise.
12270 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12271 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12272 __lroundl.
12273 (__ieee754_expl): Call roundl instead of __roundl.
12274
12275 2018-09-27 Andreas Schwab <schwab@suse.de>
12276
12277 [BZ #23717]
12278 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12279 (do_test): Make st1 static.
12280
12281 2018-09-26 Andreas Schwab <schwab@suse.de>
12282
12283 [BZ #23707]
12284 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12285 * elf/Makefile (tests): Add tst-unwind-ctor.
12286 (modules-names): Add tst-unwind-ctor-lib.
12287 ($(objpfx)tst-unwind-ctor): Depend on
12288 $(objpfx)tst-unwind-ctor-lib.so.
12289
12290 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12291
12292 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12293 file. Most contents moved from ....
12294 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12295 and include <bits/mman-map-flags-generic.h>.
12296 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12297 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12298 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12299 <bits/mman-map-flags-generic.h>.
12300 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12301 macros defined in <bits/mman-map-flags-generic.h>.
12302 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12303 <bits/mman-map-flags-generic.h>.
12304 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12305 defined in <bits/mman-map-flags-generic.h>.
12306
12307 2018-09-26 Andreas Schwab <schwab@suse.de>
12308
12309 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12310 output.
12311
12312 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12313 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12314 Fangrui Song <maskray@google.com>
12315
12316 [BZ #20480]
12317 * config.make.in (have-textrel_ifunc): New define.
12318 * configure.ac: Add check if linker supports textrel relocation with
12319 ifunc.
12320 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12321 tst-ifunc-textrel.
12322 (CFLAGS-tst-ifunc-textrel.c): New rule.
12323 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12324 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12325 * elf/tst-ifunc-textrel.c: New file.
12326
12327 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12328
12329 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12330 <bits/procfs-prregset.h>.
12331 (prgregset_t): Define using __prgregset_t.
12332 (prfpregset_t): Define using __prfpregset_t.
12333 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12334 (sysdep_headers): Add bits/procfs-prregset.h.
12335 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12336 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12337 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12338 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12339
12340 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12341 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12342 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12343 pr_uid and pr_gid.
12344 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12345 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12346 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12347 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12348 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12349 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12350 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12351 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12352 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12353 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12354 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12355 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12356 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12357 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12358 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12359 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12360 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12361 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12362 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12363 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12364 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12365 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12366 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12367 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12368
12369 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12370 AArch64 version. Include <bits/procfs.h>.
12371 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12372 (sysdep_headers): Add bits/procfs.h.
12373 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12374 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12375 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12376 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12377 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12378 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12379 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12380 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12381 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12382 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12383 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12384 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12385 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12386 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12387 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12388 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12389 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12390
12391 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12392
12393 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12394 Use libsupport.
12395
12396 2018-09-25 Arjun Shankar <arjun@redhat.com>
12397
12398 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12399 (__gconv_max_path_elem_len): Likewise.
12400 (__gconv_nmodules): Likewise.
12401 (__gconv_get_path): Likewise.
12402 (path_elem): Move to ...
12403 * iconv/gconv_conf.c: ... here.
12404 (__gconv_get_path): Mark function static.
12405 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12406 * iconv/gconv_open.c: ... here.
12407
12408 2018-09-24 Andreas Schwab <schwab@suse.de>
12409
12410 * scripts/haveversions.awk: New file.
12411 * Makerules ($(common-objpfx)Versions.def)
12412 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12413 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12414 Move rules ...
12415 * Makeconfig ($(common-objpfx)Versions.def)
12416 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12417 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12418 ... here.
12419 ($(common-objpfx)Versions.mk): New rule. Include it.
12420 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12421 Emit error if build-obsolete-nsl = yes.
12422 * manual/install.texi (Configuring and compiling): Describe
12423 --enable-obsolete-nsl as unavaiable after version 2.28.
12424 * INSTALL: Regenerate.
12425
12426 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12427
12428 * NEWS: Add note about new TLE support on powerpc64le.
12429 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12430 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12431 __ununsed1.
12432 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12433 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12434 * sysdeps/powerpc/powerpc32/sysdep.h,
12435 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12436 ABORT_TRANSACTION): Remove macros.
12437 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12438 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12439 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12441 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12442 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12443 usage.
12444 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12445
12446 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12447
12448 [BZ #10425]
12449 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12450 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12451 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12452 which is the same as in it_IT.
12453 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12454 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12455
12456 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12457
12458 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12459 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12460 using MATH_REDIRECT.
12461 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12462 header inclusion.
12463 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12464 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12465 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12466 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12467 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12468 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12469 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12470 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12473 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12474 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12475 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12476 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12477 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12478 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12479 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12480 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12481 (ceil): Redirect to __ceil.
12482 (floor): Redirect to __floor.
12483 (trunc): Redirect to __trunc.
12484 (__truncl): Call trunc instead of __trunc.
12485 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12486 Remove macro.
12487 [_ARCH_PWR5X] (__truncf): Likewise.
12488 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12489 trunc functions instead of __trunc variants.
12490 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12491 Likewise.
12492 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12493 Likewise.
12494 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12495 Likewise.
12496 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12497 Likewise.
12498
12499 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12500 [__i586__ || __pentium__].
12501 [__i486__]: Handle explicitly.
12502 (HAS_CPUID): Define to 1 if above macros are undefined.
12503 (HAS_I586): Likewise.
12504 (HAS_I686): Likewise.
12505
12506 2018-09-20 Florian Weimer <fweimer@redhat.com>
12507
12508 * misc/tst-gethostid.c: New file.
12509 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12510 (tst-gethostid): Link with -ldl.
12511
12512 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12513
12514 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12515 value from gethostbyname_r.
12516
12517 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12518
12519 * stdlib/tst-setcontext9.c (f1): Rename to...
12520 (f1a): ... this.
12521 (f1b): New function implementing lower half of f1 in alternate stack.
12522
12523 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12524
12525 Fix mktime localtime offset confusion
12526 [BZ #23603]
12527 * include/time.h (__mktime_internal): The localtime offset is now
12528 of type long int instead of time_t. This is the longstanding type
12529 in glibc, and it is more than enough to represent difference
12530 between localtime and gmtime even if it is 32 bits and time_t is
12531 64. Changing it now will let us avoid an unnecessary change when
12532 time_t is widened to 64 bits on 32-bit platforms.
12533 * time/mktime-internal.h (mktime_offset_t): Now long int.
12534
12535 Merge mktime, timegm from upstream Gnulib
12536 [BZ #23603][BZ #16346]
12537 This fixes some obscure problems with integer overflow.
12538 Although it looks scary, it is almost all a byte-for-byte copy
12539 from Gnulib, and the Gnulib code has been tested reasonably well.
12540 * include/intprops.h: New file, copied from Gnulib.
12541 * include/verify.h, time/mktime-internal.h:
12542 New tiny files, simplified from Gnulib.
12543 * time/mktime.c: Copy from Gnulib. This has the following changes:
12544 Do not include config.h if DEBUG_MKTIME is nonzero.
12545 Include stdbool.h, intprops.h, verify.h.
12546 Include string.h only if needed.
12547 Include stdlib.h on MS-Windows.
12548 Include mktime-internal.h.
12549 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12550 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12551 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12552 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12553 simplify later conditionals; default the others to zero. Use
12554 these conditionals to express only the code needed on the current
12555 platform. In uses of these conditionals, explicitly spell out how
12556 _LIBC affects things, so it’s easier to review from a glibc
12557 viewpoint.
12558 (WRAPV): Remove; no longer needed now that we have
12559 systematic overflow checking.
12560 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12561 compartmentalize tzset issues. Move system-dependent tzsettish
12562 code here from mktime.
12563 (verify): Remove; now done by verify.h. All uses changed.
12564 (long_int): Use a more-conservative definition, to avoid
12565 integer overflow.
12566 (SHR): Remove, replacing with ...
12567 (shr): New function, which means we needn’t worry about side
12568 effects in args, and conversion analysis is simpler.
12569 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12570 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12571 (time_t_avg, time_t_add_ok): Remove.
12572 (mktime_min, mktime_max): New constants.
12573 (leapyear, isdst_differ): Use bool for booleans.
12574 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12575 Use long_int, not time_t, for mktime differences.
12576 (long_int_avg): New function, replacing time_t_avg.
12577 INT_ADD_WRAPV replaces time_t_add_ok.
12578 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12579 All uses changed.
12580 (convert_time): New function.
12581 (ranged_convert): Use it.
12582 (__mktime_internal): Last arg now points to mktime_offset_t, not
12583 time_t. All uses changed. This is a no-op on glibc, where
12584 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12585 offset guess. Directly check for integer overflow instead of
12586 using a heuristic that works only 99.9...% of the time.
12587 Access *OFFSET only once, to avoid an unlikely race if the
12588 compiler delays a load and if this cascades into a signed integer
12589 overflow.
12590 (mktime): Move tzsettish code to my_tzset, and move
12591 localtime_offset to within mktime so that it doesn’t
12592 need a separate ifdef.
12593 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12594 instead of localtime.
12595 * time/timegm.c: Copy from Gnulib. This has the following changes:
12596 Include mktime-internal.h.
12597 [!_LIBC]: Include config.h and time.h. Do not include
12598 timegm.h or time_r.h. Make __mktime_internal a macro,
12599 and include mktime-internal.h to get its declaration.
12600 (timegm): Temporary is now mktime_offset_t, not time_t.
12601 This affects only Gnulib.
12602
12603 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12604
12605 [BZ #23637]
12606 * string/test-strstr.c (pr23637): New function.
12607 (test_main): Add tests with longer needles.
12608 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12609 * string/strstr.c (AVAILABLE): Likewise.
12610
12611 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12612
12613 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12614
12615 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12616
12617 * NEWS: Mention pow improvements.
12618 * math/Makefile (type-double-routines): Add e_pow_log_data.
12619 * sysdeps/generic/math_private.h (__exp1): Remove.
12620 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12621 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12622 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12623 contraction.
12624 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12625 (exp_inline): Remove.
12626 (__ieee754_exp): Only single double input is handled.
12627 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12628 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12629 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12630 (__pow_log_data): Define.
12631 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12632 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12633 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12634 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12635 contraction.
12636 (CFLAGS-e_pow-fma4.c): Likewise.
12637
12638 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12639
12640 Simplify tzfile fstat failure code
12641 [BZ #21716]
12642 * time/tzfile.c (__tzfile_read): Simplify slightly.
12643
12644 Fix tzfile low-memory assertion failure
12645 [BZ #21716]
12646 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12647 when registering time zone abbreviations.
12648
12649 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12650
12651 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12652 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12653 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12654 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12655 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12656 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12657 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12658 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12659 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12660
12661 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12662 __ceil.
12663 (__ceill): Call ceil instead of __ceil.
12664 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12665 __floor.
12666 (__floorl): Call floor instead of __floor.
12667
12668 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12669
12670 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12671 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12672 using MATH_REDIRECT.
12673 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12674 header inclusion.
12675 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12676 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12677 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12678 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12679 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12680 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12681 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12682 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12683 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12684 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12686 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12687 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12688 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12689 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12690 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12691 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12692 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12693 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12694 Remove macro.
12695 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12696 functions instead of __ceil variants.
12697 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12698 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12699 Likewise.
12700 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12701 Likewise.
12702 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12703 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12704 Likewise.
12705 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12706 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12707
12708 [BZ #21286]
12709 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12710 constant.
12711 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12712 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12713 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12714 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12715 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12716 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12717 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12718 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12719 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12720 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12721 (ILL_BADIADDR): Remove constant.
12722 (TRAP_BRANCH): Likewise.
12723 (TRAP_HWBKPT): Likewise.
12724
12725 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12726
12727 [BZ #23656]
12728 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12729 Remove [_MIPS_SIM = _ABIN32] conditional case.
12730 (struct elf_prpsinfo): Likewise.
12731
12732 [BZ #23649]
12733 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12734 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12735 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12736 Likewise.
12737 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12738 elf_prpsinfo): Likewise.
12739 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12740 elf_prpsinfo): Likewise.
12741 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12742 Likewise.
12743
12744 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12745 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12746 using MATH_REDIRECT.
12747 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12748 header inclusion.
12749 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12750 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12751 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12752 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12753 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12754 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12755 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12756 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12757 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12758 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12759 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12760 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12761 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12762 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12763 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12764 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12765 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12766 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12767 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12768 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12770 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12771 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12772 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12773 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12774 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12775 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12776 __rint variants.
12777 * math/e_scalbf.c (invalid_fn): Likewise.
12778 * math/e_scalbl.c (invalid_fn): Likewise.
12779 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12780 Likewise.
12781 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12782 Likewise.
12783 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12784 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12785 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12786 Likewise.
12787 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12788 Likewise.
12789 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12790 Likewise.
12791 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12792 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12793
12794 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12795 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12796 New macro.
12797 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12798 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12799 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12800 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12801 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12802 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12803 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12804 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12805 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12806 && !NO_MATH_REDIRECT] (floor): Likewise.
12807 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12808 header inclusion.
12809 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12810 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12811 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12812 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12813 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12814 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12815 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12816 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12817 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12818 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12821 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12822 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12823 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12824 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12825 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12826 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12827 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12828 Remove macro.
12829 [_ARCH_PWR5X] (__floorf): Likewise.
12830 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12831 inline function.
12832 [__SSE4_1__] (__floorf): Likewise.
12833 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12834 instead of __floor variants.
12835 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12836 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12837 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12838 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12839 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12840 * math/w_tgamma_compat.c (__tgamma): Likewise.
12841 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12842 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12843 * math/w_tgammal_compat.c (__tgammal): Likewise.
12844 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12845 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12846 Likewise.
12847 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12848 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12849 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12850 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12851 Likewise.
12852 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12853 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12854 Likewise.
12855 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12856 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12857 Likewise.
12858 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12859 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12860 Likewise.
12861 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12862 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12863 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12864 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12865 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12866 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12867
12868 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12869
12870 * elf/Makefile (modules-names-tests): New variable.
12871
12872 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12873
12874 * NEWS: Mention log2 improvements.
12875 * math/Makefile (type-double-routines): Add e_log2_data.
12876 * sysdeps/i386/fpu/e_log2_data.c: New file.
12877 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12878 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12879 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12880 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12881 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12882 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12883
12884 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12885
12886 * NEWS: Mention log improvement.
12887 * math/Makefile (type-double-routines): Add e_log_data.
12888 * sysdeps/i386/fpu/e_log_data.c: New file.
12889 * sysdeps/ia64/fpu/e_log_data.c: New file.
12890 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12891 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12892 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12893 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12894 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12895 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12896
12897 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12898 Xuepeng Guo <xuepeng.guo@intel.com>
12899
12900 [BZ #23606]
12901 * sysdeps/i386/start.S: Include <sysdep.h>
12902 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12903 enabled. Add cfi_undefined (eip).
12904
12905 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12906
12907 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12908 (MOVQ): Likewise.
12909 (EXTRACT_WORDS64): Likewise.
12910 (INSERT_WORDS64): Likewise.
12911 (GET_FLOAT_WORD): Likewise.
12912 (SET_FLOAT_WORD): Likewise.
12913
12914 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12915 argument.
12916 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12917 build, but not for second build if --full-gcc. Use
12918 --enable-languages=all for second build if --full-gcc.
12919 (get_parser): Add --full-gcc option.
12920 (main): Update call to Context.
12921
12922 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12923
12924 [BZ #10797]
12925 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12926 Single Quotation Mark).
12927 (thousands_sep): Likewise.
12928 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12929 * localedata/locales/it_IT (thousands_sep): Use ".".
12930 (grouping): Use "3;3".
12931
12932 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12933
12934 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12935 x86_64 and i686 configs using --enable-obsolete-rpc
12936 --enable-obsolete-nsl.
12937
12938 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12939
12940 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12941
12942 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12943
12944 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12945 Increment size of new_argv by one.
12946
12947 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12948
12949 [BZ #17426]
12950 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12951 * localedata/locales/ar_IN (d_fmt): Likewise.
12952 * localedata/locales/bhb_IN (d_fmt): Likewise.
12953 * localedata/locales/bho_IN (d_fmt): Likewise.
12954 * localedata/locales/bn_BD (d_fmt): Likewise.
12955 * localedata/locales/bn_IN (d_fmt): Likewise.
12956 * localedata/locales/doi_IN (d_fmt): Likewise.
12957 * localedata/locales/gu_IN (d_fmt): Likewise.
12958 * localedata/locales/hi_IN (d_fmt): Likewise.
12959 * localedata/locales/hne_IN (d_fmt): Likewise.
12960 * localedata/locales/kn_IN (d_fmt): Likewise.
12961 * localedata/locales/mag_IN (d_fmt): Likewise.
12962 * localedata/locales/mai_IN (d_fmt): Likewise.
12963 * localedata/locales/mjw_IN (d_fmt): Likewise.
12964 * localedata/locales/ml_IN (d_fmt): Likewise.
12965 * localedata/locales/mni_IN (d_fmt): Likewise.
12966 * localedata/locales/mr_IN (d_fmt): Likewise.
12967 * localedata/locales/pa_IN (d_fmt): Likewise.
12968 * localedata/locales/raj_IN (d_fmt): Likewise.
12969 * localedata/locales/sat_IN (d_fmt): Likewise.
12970 * localedata/locales/sd_IN (d_fmt): Likewise.
12971 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12972 * localedata/locales/ta_IN (d_fmt): Likewise.
12973 * localedata/locales/ta_LK (d_fmt): Likewise.
12974 * localedata/locales/tcy_IN (d_fmt): Likewise.
12975 * localedata/locales/ur_IN (d_fmt): Likewise.
12976
12977 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12978 * localedata/locales/ks_IN (d_fmt): Likewise.
12979 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12980
12981 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12982 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12983 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12984 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12985
12986 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12987
12988 * NEWS: Mention exp and exp2 improvements.
12989 * math/Makefile (libm-support): Remove t_exp.
12990 (type-double-routines): Add math_err and e_exp_data.
12991 * sysdeps/aarch64/libm-test-ulps: Update.
12992 * sysdeps/arm/libm-test-ulps: Update.
12993 * sysdeps/i386/fpu/e_exp_data.c: New file.
12994 * sysdeps/i386/fpu/math_err.c: New file.
12995 * sysdeps/i386/fpu/t_exp.c: Remove.
12996 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12997 * sysdeps/ia64/fpu/math_err.c: New file.
12998 * sysdeps/ia64/fpu/t_exp.c: Remove.
12999 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
13000 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
13001 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
13002 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
13003 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
13004 * sysdeps/ieee754/dbl-64/math_config.h: New file.
13005 * sysdeps/ieee754/dbl-64/math_err.c: New file.
13006 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
13007 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
13008 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
13009 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
13010 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
13011 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
13012 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
13013 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13014 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13015
13016 2018-09-05 Joseph Myers <joseph@codesourcery.com>
13017
13018 * sysdeps/alpha/fpu/math_private.h: Remove.
13019
13020 * sysdeps/generic/math_private.h
13021 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
13022 Move this inline function ....
13023 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
13024 * include/math.h [!_ISOMAC]: To here....
13025
13026 2018-09-04 Joseph Myers <joseph@codesourcery.com>
13027
13028 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
13029 code ....
13030 [!FE_HAVE_ROUNDING_MODES]: And this code ....
13031 * include/fenv.h [!_ISOMAC]: ... to here.
13032 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
13033 (feraiseexcept): Likewise.
13034 * math/fromfp.h: Do not include <fenv_private.h>.
13035 * math/s_cexp_template.c: Likewise.
13036 * math/s_csin_template.c: Likewise.
13037 * math/s_csinh_template.c: Likewise.
13038 * math/s_ctan_template.c: Likewise.
13039 * math/s_ctanh_template.c: Likewise.
13040 * math/s_iseqsig_template.c: Likewise.
13041 * math/w_acos_compat.c: Likewise.
13042 * math/w_acosf_compat.c: Likewise.
13043 * math/w_acosl_compat.c: Likewise.
13044 * math/w_asin_compat.c: Likewise.
13045 * math/w_asinf_compat.c: Likewise.
13046 * math/w_asinl_compat.c: Likewise.
13047 * math/w_j0_compat.c: Likewise.
13048 * math/w_j0f_compat.c: Likewise.
13049 * math/w_j0l_compat.c: Likewise.
13050 * math/w_j1_compat.c: Likewise.
13051 * math/w_j1f_compat.c: Likewise.
13052 * math/w_j1l_compat.c: Likewise.
13053 * math/w_jn_compat.c: Likewise.
13054 * math/w_jnf_compat.c: Likewise.
13055 * math/w_log10_compat.c: Likewise.
13056 * math/w_log10f_compat.c: Likewise.
13057 * math/w_log10l_compat.c: Likewise.
13058 * math/w_log2_compat.c: Likewise.
13059 * math/w_log2f_compat.c: Likewise.
13060 * math/w_log2l_compat.c: Likewise.
13061 * math/w_log_compat.c: Likewise.
13062 * math/w_logf_compat.c: Likewise.
13063 * math/w_logl_compat.c: Likewise.
13064 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13065 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13066 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13067 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13068 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13069 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13070 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13071 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13072 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13073 * sysdeps/ieee754/k_standardl.c: Likewise.
13074 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13075 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13076 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13077 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13078 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13079 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13080 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13081 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13082 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13083 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13084 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13085 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13086 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13087 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13088 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13089 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13090 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13091 * math/w_ilogb_template.c: Include <fenv.h> instead of
13092 <fenv_private.h>.
13093 * math/w_llogb_template.c: Likewise.
13094 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13095 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13096
13097 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13098
13099 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13100 * math/fromfp.h: Include <fenv_private.h>.
13101 * math/math-narrow.h: Likewise.
13102 * math/s_cexp_template.c: Likewise.
13103 * math/s_csin_template.c: Likewise.
13104 * math/s_csinh_template.c: Likewise.
13105 * math/s_ctan_template.c: Likewise.
13106 * math/s_ctanh_template.c: Likewise.
13107 * math/s_iseqsig_template.c: Likewise.
13108 * math/w_acos_compat.c: Likewise.
13109 * math/w_acosf_compat.c: Likewise.
13110 * math/w_acosl_compat.c: Likewise.
13111 * math/w_asin_compat.c: Likewise.
13112 * math/w_asinf_compat.c: Likewise.
13113 * math/w_asinl_compat.c: Likewise.
13114 * math/w_ilogb_template.c: Likewise.
13115 * math/w_j0_compat.c: Likewise.
13116 * math/w_j0f_compat.c: Likewise.
13117 * math/w_j0l_compat.c: Likewise.
13118 * math/w_j1_compat.c: Likewise.
13119 * math/w_j1f_compat.c: Likewise.
13120 * math/w_j1l_compat.c: Likewise.
13121 * math/w_jn_compat.c: Likewise.
13122 * math/w_jnf_compat.c: Likewise.
13123 * math/w_llogb_template.c: Likewise.
13124 * math/w_log10_compat.c: Likewise.
13125 * math/w_log10f_compat.c: Likewise.
13126 * math/w_log10l_compat.c: Likewise.
13127 * math/w_log2_compat.c: Likewise.
13128 * math/w_log2f_compat.c: Likewise.
13129 * math/w_log2l_compat.c: Likewise.
13130 * math/w_log_compat.c: Likewise.
13131 * math/w_logf_compat.c: Likewise.
13132 * math/w_logl_compat.c: Likewise.
13133 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13134 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13135 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13136 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13137 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13138 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13139 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13140 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13141 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13142 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13143 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13144 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13145 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13146 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13147 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13148 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13149 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13150 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13151 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13152 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13153 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13154 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13155 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13156 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13157 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13158 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13159 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13160 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13161 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13162 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13163 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13164 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13165 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13166 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13167 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13168 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13169 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13170 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13171 * sysdeps/ieee754/k_standardl.c: Likewise.
13172 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13173 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13174 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13175 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13176 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13177 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13178 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13179 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13180 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13181 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13182 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13183 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13184 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13185 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13186 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13187 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13188 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13189 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13190 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13191 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13192 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13193 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13194 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13195 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13196 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13197 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13198 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13199 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13200 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13201 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13202 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13203 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13204 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13205 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13206 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13207 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13208 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13209 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13210 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13211 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13212 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13213 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13214 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13215 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13216 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13217 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13218 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13219 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13220 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13221 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13222 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13223 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13224 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13225 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13226 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13227 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13228 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13229 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13230 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13231 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13232 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13233 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13234 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13235 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13236 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13237 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13238 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13239 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13240 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13241 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13242 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13243
13244 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13245
13246 [BZ #20271]
13247 * include/stdio.h (__libc_fatal): Mention newline in comment.
13248 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13249 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13250 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13251 * nss/nsswitch.c (__nss_next2): Likewise.
13252 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13253 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13254 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13255 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13256 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13257 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13258 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13259 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13260 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13261 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13262 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13263 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13264 (__netlink_assert_response): Likewise.
13265
13266 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13267
13268 * conform/glibcconform.py: New file.
13269 * conform/list-header-symbols.py: Likewise.
13270 * conform/list-header-symbols.pl: Remove.
13271 * conform/Makefile (tests-special): Only add linknamespace tests
13272 if [PYTHON].
13273 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13274
13275 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13276
13277 [BZ #23597]
13278 * support/Makefile (libsupport-routines): Add
13279 support_copy_file_range and xcopy_file_range.
13280 * support/support.h: Include <sys/types.h>.
13281 (support_copy_file_range): New prototype.
13282 * support/support_copy_file_range.c: New file. Copied and
13283 modified from io/copy_file_range-compat.c.
13284 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13285 instead of copy_file_range.
13286 * support/xcopy_file_range.c: New file.
13287 * support/xunistd.h (xcopy_file_range): New prototype.
13288
13289 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13290
13291 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13292 xpthread_create and xpthread_join.
13293
13294 2018-08-30 Florian Weimer <fweimer@redhat.com>
13295
13296 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13297
13298 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13299
13300 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13301 if malloc fails.
13302
13303 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13304
13305 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13306 and minus_oflow as non-finite.
13307
13308 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13309
13310 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13311 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13312 moved to fenv_private.h except for ...
13313 (TOINT_INTRINSICS): Kept in math_private.h.
13314 (roundtoint): Likewise.
13315 (converttoint): Likewise.
13316 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13317 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13318 * sysdeps/arm/math_private.h: Remove.
13319 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13320 ....
13321 * sysdeps/generic/math_private.h: ... this file. Include
13322 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13323 Include <fenv_private.h>. Remove functions and macros moved to
13324 fenv_private.h.
13325 * sysdeps/i386/fpu/math_private.h: Remove.
13326 * sysdeps/mips/math_private.h: Move to ....
13327 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13328 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13329 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13330 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13331 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13332 * sysdeps/powerpc/fpu/math_private.h: Do not include
13333 <fenv_private.h>.
13334 * sysdeps/riscv/rvf/math_private.h: Move to ....
13335 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13336 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13337 <fenv_private.h>.
13338 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13339 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13340 * sysdeps/sparc/fpu/math_private.h: Remove.
13341 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13342 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13343 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13344 <fenv_private.h>.
13345 * sysdeps/x86_64/fpu/math_private.h: Do not include
13346 <sysdeps/i386/fpu/fenv_private.h>.
13347
13348 2018-08-28 Florian Weimer <fweimer@redhat.com>
13349
13350 [BZ #23578]
13351 * posix/tst-regcomp-truncated.c: New file.
13352 * posix/Makefile (tests): Add it.
13353 (tst-regcomp-truncated.out): Depend on generated locales.
13354
13355 2018-08-28 Florian Weimer <fweimer@redhat.com>
13356
13357 * support/test-container.c (main): Treat unshare failure with
13358 EPERM as an unsupported test.
13359
13360 2018-08-28 Florian Weimer <fweimer@redhat.com>
13361
13362 [BZ #23520]
13363 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13364 * nscd/netgroupcache.c
13365 (addgetnetgrentX): Add tofreep parameter. Do not free
13366 heap-allocated buffer.
13367 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13368 (addgetnetgrentX_ignore): New function.
13369 (addgetnetgrent): Call it.
13370 (readdgetnetgrent): Likewise.
13371
13372 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13373
13374 * string/memmem.c: Use memcmp for first match.
13375
13376 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13377
13378 [BZ #17426]
13379 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13380
13381 2018-08-27 DJ Delorie <dj@redhat.com>
13382
13383 * support/Makefile (others): Don't list programs explicitly as a
13384 dependency of "others".
13385
13386 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13387
13388 * sysdeps/generic/math-tests-trap-force.h: New file.
13389 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13390 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13391 * sysdeps/powerpc/math-tests.h: Remove file.
13392 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13393
13394 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13395 Torvald Riegel <triegel@redhat.com>
13396
13397 [BZ #23538]
13398 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13399 Update r to include the set wake-request flag if waiters are
13400 remaining after spinning.
13401
13402 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13403
13404 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13405
13406 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13407
13408 [BZ #23578]
13409 regex: fix uninitialized memory access
13410 I introduced this bug into gnulib in commit
13411 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13412 eventually it was merged into glibc. The bug was found by
13413 project-repo <bugs@feusi.co> and reported here:
13414 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13415 Diagnosis and draft fix reported by Assaf Gordon here:
13416 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13417 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13418 * posix/regex_internal.c (build_wcs_upper_buffer):
13419 Fix bug when mbrtowc returns 0.
13420
13421 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13422
13423 * po/be.po: Update translation.
13424
13425 2018-08-24 DJ Delorie <dj@delorie.com>
13426
13427 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13428 $(libunwind).
13429
13430 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13431
13432 [BZ #23400]
13433 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13434 create temporary files in source tree.
13435
13436 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13437
13438 * sysdeps/generic/math-tests-trap.h: New file.
13439 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13440 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13441 * sysdeps/aarch64/math-tests.h: Remove file.
13442 * sysdeps/arm/math-tests.h: Likewise.
13443 * sysdeps/riscv/math-tests.h: Likewise.
13444 * sysdeps/aarch64/math-tests-trap.h: New file.
13445 * sysdeps/arm/math-tests-trap.h: Likewise.
13446 * sysdeps/riscv/math-tests-trap.h: Likewise.
13447
13448 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13449
13450 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13451 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13452 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13453 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13454 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13455 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13456 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13457 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13458 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13459 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13460 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13461 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13462 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13463 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13464 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13465 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13466 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13467 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13468
13469 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13470
13471 * sysdeps/generic/math-tests-exceptions.h: New file.
13472 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13473 (EXCEPTION_TESTS_float): Do not define here.
13474 (EXCEPTION_TESTS_double): Likewise.
13475 (EXCEPTION_TESTS_long_double): Likewise.
13476 (EXCEPTION_TESTS_float128): Likewise.
13477 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13478 Likewise.
13479 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13480 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13481 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13482 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13483 * sysdeps/mips/math-tests.h: Likewise.
13484 * sysdeps/nios2/math-tests.h: Likewise.
13485 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13486 (EXCEPTION_TESTS_float): Do not define here.
13487 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13488 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13489 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13490
13491 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13492
13493 * NEWS: Move optimized sinf entry to 2.29.
13494
13495 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13496
13497 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13498
13499 2018-08-22 DJ Delorie <dj@redhat.com>
13500
13501 * Makefile (testroot.pristine): New rules to initialize the
13502 test-in-container "testroot".
13503 * Makerules (all-testsuite): Add tests-container.
13504 * Rules (tests-expected): Add tests-container.
13505 (binaries-all-tests): Likewise.
13506 (tests-container): New, run these tests in the testroot container.
13507 * support/Makefile (others): Add *-container, support_paths.c,
13508 xmkdirp, and links-dso-program.
13509 * support/links-dso-program-c.c: New.
13510 * support/links-dso-program.cc: New.
13511 * support/test-container.c: New.
13512 * support/shell-container.c: New.
13513 * support/echo-container.c: New.
13514 * support/true-container.c: New.
13515 * support/xmkdirp.c: New.
13516 * support/xsymlink.c: New.
13517 * support/support_paths.c: New.
13518 * support/support.h: Add support paths prototypes.
13519 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13520
13521 * nss/tst-nss-test3.c: Convert to test-in-container.
13522 * nss/tst-nss-test3.root/: New.
13523
13524 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13525
13526 regex: port Gnulib code to z/OS POSIX environment
13527 Problem reported by Arnold Robbins in:
13528 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13529 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13530 Undef.
13531
13532 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13533
13534 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13535 (ROUNDING_TESTS_double): Remove.
13536 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13537 (ROUNDING_TESTS_double): Remove.
13538 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13539 (ROUNDING_TESTS_double): Remove.
13540 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13541 (ROUNDING_TESTS_float): Remove.
13542 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13543 (ROUNDING_TESTS_float): Remove.
13544 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13545 (ROUNDING_TESTS_float): Remove.
13546 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13547 !TEST_MATHVEC here.
13548 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13549 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13550
13551 * sysdeps/generic/math-tests-rounding.h: New file.
13552 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13553 (ROUNDING_TESTS_float): Do not define here.
13554 (ROUNDING_TESTS_double): Likewise.
13555 (ROUNDING_TESTS_long_double): Likewise.
13556 (ROUNDING_TESTS_float128): Likewise.
13557 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13558 (ROUNDING_TESTS_double): Undefine before defining.
13559 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13560 (ROUNDING_TESTS_double): Undefine before defining.
13561 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13562 (ROUNDING_TESTS_double): Undefine before defining.
13563 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13564 (ROUNDING_TESTS_float): Undefine before defining.
13565 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13566 (ROUNDING_TESTS_float): Undefine before defining.
13567 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13568 (ROUNDING_TESTS_float): Undefine before defining.
13569 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13570 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13571 not define here.
13572 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13573 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13574 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13575 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13576 (ROUNDING_TESTS_float): Do not define here.
13577 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13578 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13579 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13580 (ROUNDING_TESTS_float): Likewise.
13581 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13582 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13583 * sysdeps/mips/math-tests.h [__mips_soft_float]
13584 (ROUNDING_TESTS_float): Likewise.
13585 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13586 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13587 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13588 (ROUNDING_TESTS_double): Likewise.
13589 (ROUNDING_TESTS_long_double): Likewise.
13590
13591 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13592
13593 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13594 (PF_XDP): New macro.
13595 (AF_XDP): New macro.
13596 (SOL_XDP): New macro.
13597
13598 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13599
13600 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13601 (TCP_INQ): Likewise.
13602 (TCP_CM_INQ): Likewise.
13603 (TCP_REPAIR_ON): Likewise.
13604 (TCP_REPAIR_OFF): Likewise.
13605 (TCP_REPAIR_OFF_NO_WP): Likewise.
13606 (struct tcp_zerocopy_receive): New type.
13607
13608 2018-08-21 Florian Weimer <fweimer@redhat.com>
13609
13610 * support/support.h (support_descriptor_supports_holes): Declare.
13611 * support/Makefile (libsupport-routines): Add
13612 support_descriptor_supports_holes.
13613 * support/support_descriptor_supports_holes.c: New file.
13614 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13615 and stop testing if holes are not supported.
13616 * io/test-lfs.c (do_prepare): Likewise.
13617 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13618 Likewise.
13619 * timezone/tst-tzset.c (create_tz_file): Likewise.
13620 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13621 variable.
13622 (do_prepare): Set it.
13623 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13624
13625 2018-08-21 Florian Weimer <fweimer@redhat.com>
13626
13627 [BZ #17248]
13628 * Makeconfig (+cflags): Do not sort (and deduplicate).
13629
13630 2018-08-21 Florian Weimer <fweimer@redhat.com>
13631
13632 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13633 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13634
13635 2018-08-20 Florian Weimer <fweimer@redhat.com>
13636
13637 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13638 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13639
13640 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13641
13642 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13643 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13644 and ssi_arch members.
13645
13646 * elf/elf.c (NT_VMCOREDD): New macro.
13647 (AT_MINSIGSTKSZ): Likewise.
13648
13649 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13650
13651 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13652 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13653 s_cosf-ppc64 and s_cosf-power8.
13654 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13655 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13656 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13657 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13661 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13664 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13665 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13666
13667 2018-08-17 Florian Weimer <fweimer@redhat.com>
13668
13669 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13670
13671 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13672
13673 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13674
13675 2018-08-16 Florian Weimer <fweimer@redhat.com>
13676
13677 * configure.ac: Add --with-nonshared-cflags option.
13678 * config.make.in (extra-nonshared-cflags): Set variable.
13679 * Makeconfig (CFLAGS-.oS): Use it.
13680 * manual/install.texi (Configuring and compiling): Document
13681 --with-nonshared-cflags.
13682 * configure: Regenerate.
13683 * INSTALL: Likewise.
13684
13685 2018-08-16 Florian Weimer <fweimer@redhat.com>
13686
13687 * Makeconfig (ASFLAGS): Always append required assembler flags.
13688
13689 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13690
13691 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13692 (malloc_consolidate): Likewise.
13693
13694 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13695
13696 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13697
13698 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13699
13700 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13701 every strlen call.
13702
13703 * benchtests/bench-strlen.c: Print performance numbers in json.
13704
13705 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13706
13707 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13708 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13709 only for little endian.
13710 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13711 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13712 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13713 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13714 Add check for little endian.
13715 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13716 (__strcmp_power9): Add check for little endian.
13717 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13718 Add check for little endian.
13719 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13720 (__strncmp_power9): Add check for little endian.
13721 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13722 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13723 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13724 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13725 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13726
13727 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13728
13729 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13730 [!STRLEN](STRLEN): Set to __strlen.
13731 * sysdeps/aarch64/multiarch/strlen.c: New file.
13732 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13733 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13734 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13735 (__libc_ifunc_impl_list): Add strlen.
13736 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13737 strlen_generic and strlen_asimd.
13738
13739 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13740
13741 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13742 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13743 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13744
13745 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13746
13747 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13748
13749 2018-08-14 Florian Weimer <fweimer@redhat.com>
13750
13751 [BZ #23519]
13752 * include/stdio.h (__vfxprintf): Declare.
13753 * stdio-common/fxprintf.c (__vfxprintf): New function.
13754 (__fxprintf): Call it.
13755 * misc/err.c (convert_and_print): Remove function.
13756 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13757 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13758 * misc/Makefile (tests): Add tst-warn-wide.
13759 * misc/tst-warn-wide.c: New file.
13760
13761 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13762 Szabolcs Nagy <szabolcs.nagy@arm.com>
13763
13764 * NEWS: Mention sinf, cosf, sincosf.
13765 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13766 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13767 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13768 constants rather than including generic sincosf.h.
13769 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13770 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13771 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13772 (reduced_cos): Remove.
13773 (sinf_poly): New function.
13774 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13775
13776 2018-08-14 Florian Weimer <fweimer@redhat.com>
13777
13778 [BZ #23521]
13779 [BZ #23522]
13780 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13781 processing, bail out if no room, and close the stream before
13782 returning ERANGE.
13783 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13784 (tst-nss-files-alias-leak): Link with libdl.
13785 (tst-nss-files-alias-leak.out): Depend on nss_files.
13786
13787 * nss/tst-nss-files-alias-leak.c: New file.
13788
13789 2018-08-14 Florian Weimer <fweimer@redhat.com>
13790
13791 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13792 server_user, stat_user.
13793
13794 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13795
13796 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13797 version to 4.18.
13798 (io_pgetevents): New syscall.
13799 (rseq): Likewise.
13800
13801 * manual/install.texi (Configuring and compiling): Do not list
13802 tools used for testing pretty printers here.
13803 (Tools for Compilation): List Python, PExpect and GDB here.
13804 Update descriptions of uses of Perl and Python.
13805 * INSTALL: Regenerate.
13806
13807 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13808 version to 4.18.
13809
13810 2018-08-13 Florian Weimer <fweimer@redhat.com>
13811
13812 * misc/error.c (error): Add missing va_end call.
13813 (error_at_line): Likewise.
13814
13815 2018-08-13 Florian Weimer <fweimer@redhat.com>
13816
13817 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13818
13819 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13820
13821 * benchtests/scripts/benchout.schema.json (properties): Add
13822 new properties.
13823
13824 * benchtests/bench-skeleton.c (main): Add duration and
13825 iterations attributes.
13826
13827 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13828
13829 regex: Gnulib unibyte RRI uses bytes not chars
13830 Adjust the non-glibc code to agree with what Gawk needs for
13831 rational range interpretation (RRI) for regular expression ranges.
13832 In unibyte locales, Gawk wants ranges to use the underlying byte
13833 rather than the character code point. This change does not affect
13834 glibc proper.
13835 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13836 In unibyte locales, use the byte value rather than
13837 running it through btowc.
13838
13839 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13840
13841 * sysdeps/generic/math-tests-snan.h: New file.
13842 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13843 (SNAN_TESTS_float): Do not define here.
13844 (SNAN_TESTS_double): Likewise.
13845 (SNAN_TESTS_long_double): Likewise.
13846 (SNAN_TESTS_float128): Likewise.
13847 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13848 * sysdeps/i386/fpu/math-tests.h: Remove file.
13849 * sysdeps/ia64/math-tests-snan.h: New file.
13850 * sysdeps/ia64/math-tests.h: Remove file.
13851 * sysdeps/x86/math-tests.h: Likewise.
13852 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13853
13854 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13855 Szabolcs Nagy <szabolcs.nagy@arm.com>
13856
13857 * math/Makefile: Add s_sincosf_data.c.
13858 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13859 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13860 (sincosf_poly): Likewise.
13861 (reduce_small): Likewise.
13862 (reduce_large): Likewise.
13863 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13864 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13865 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13866 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13867
13868 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13869 Szabolcs Nagy <szabolcs.nagy@arm.com>
13870
13871 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13872 (converttoint): Use lround.
13873 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13874 document the semantics when TOINT_INTRINSICS is set.
13875 (converttoint): Likewise.
13876 (TOINT_RINT): Remove.
13877 (TOINT_SHIFT): Remove.
13878 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13879 path.
13880
13881 2018-08-10 Florian Weimer <fweimer@redhat.com>
13882
13883 [BZ #23497]
13884 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13885 function.
13886 (__old_getdents64): Use getdents64. Convert entries without
13887 moving them.
13888 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13889 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13890 tst-readdir64-compat.
13891
13892 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13893
13894 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13895 Fix unwind.
13896
13897 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13898
13899 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13900 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13901 code to s390x-mcount.h and #include it.
13902 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13903 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13904 (__fentry__): Add.
13905
13906 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13907
13908 * stdlib/Versions: Remove __fentry__.
13909 * sysdeps/i386/Versions: Add __fentry__.
13910 * sysdeps/x86_64/Versions: Add __fentry__.
13911
13912 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13913
13914 * sysdeps/s390/Makefile: Register the new tests.
13915 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13916 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13917 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13918 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13919 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13920 * sysdeps/s390/tst-dl-runtime.c: New file.
13921
13922 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13923
13924 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13925 Do not clobber R0.
13926
13927 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13928
13929 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13930 Do not clobber R0.
13931
13932 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13933
13934 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13935 Do not clobber R0.
13936
13937 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13938
13939 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13940 Do not clobber R0.
13941
13942 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13943
13944 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13945 Use symbolic offsets for stack variables.
13946
13947 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13948
13949 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13950 Use symbolic offsets for stack variables.
13951
13952 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13953
13954 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13955 Use symbolic offsets for stack variables.
13956
13957 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13958
13959 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13960 Use symbolic offsets for stack variables.
13961
13962 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13963
13964 * math/gen-libm-test.py: New file.
13965 * math/gen-libm-test.pl: Remove.
13966 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13967 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13968 gen-libm-test.pl.
13969 ($(libm-test-c-noauto-obj)): Likewise.
13970 ($(libm-test-c-auto-obj)): Likewise.
13971 ($(libm-test-c-narrow-obj)): Likewise.
13972 (regen-ulps): Likewise.
13973 * math/README.libm-test: Update references to gen-libm-test.pl.
13974 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13975 referencing gen-libm-test.pl.
13976 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13977 * math/libm-test-support.c: Likewise.
13978 * math/libm-test-support.h: Likewise.
13979 * sysdeps/generic/libm-test-ulps: Likewise.
13980
13981 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13982
13983 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13984 Fix value.
13985
13986 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13987
13988 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13989 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13990
13991 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13992
13993 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13994 symbols.
13995 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13996 __pthread_setspecific): Add hidden proto.
13997 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13998 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13999
14000 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14001
14002 * benchtests/bench-string.h (buf1_size, buf2_size): New
14003 variables.
14004 (init_sizes): New function.
14005 (test_init): Use it.
14006 (alloc_buf, exit_error): New functions.
14007 (alloc_bufs): Use ALLOC_BUF.
14008 (realloc_bufs): Remove.
14009 * benchtests/bench-memcmp.c (do_test): Adjust.
14010 * benchtests/bench-memset-large.c (do_test): Likewise.
14011 * benchtests/bench-memset-walk.c (do_test): Likewise.
14012 * benchtests/bench-memset.c (do_test): Likewise.
14013 * benchtests/bench-strncmp.c (do_test): Likewise.
14014
14015 2018-08-06 Andreas Schwab <schwab@suse.de>
14016
14017 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
14018 of CONST_THREAD_AREA.
14019
14020 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
14021
14022 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
14023 (STATE_SAVE_MASK): Likewise.
14024 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
14025 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
14026 (STATE_SAVE_MASK): Likewise.
14027 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
14028 instead of <cpu-features.h>.
14029
14030 2018-08-03 DJ Delorie <dj@redhat.com>
14031
14032 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
14033 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
14034
14035 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
14036
14037 2018-08-03 Joseph Myers <joseph@codesourcery.com>
14038
14039 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
14040 after TEST_* calls.
14041 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
14042 * math/libm-test-logb.inc (logb_test_data): Likewise.
14043
14044 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
14045
14046 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14047 * string/strstr.c (AVAILABLE): Likewise.
14048
14049 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14050
14051 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14052 <init-arch.h>.
14053 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14054 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14055 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14056
14057 2018-08-03 Carlos O'Donell <carlos@redhat.com>
14058
14059 * po/be.po: Update translation.
14060
14061 * po/be.po: Update translation.
14062
14063 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14064
14065 * sysdeps/x86/cpu-features-offsets.sym
14066 (rtld_global_ro_offsetof): Removed.
14067 (CPU_FEATURES_SIZE): Likewise.
14068 (CPUID_OFFSET): Likewise.
14069 (CPUID_SIZE): Likewise.
14070 (CPUID_EAX_OFFSET): Likewise.
14071 (CPUID_EBX_OFFSET): Likewise.
14072 (CPUID_ECX_OFFSET): Likewise.
14073 (CPUID_EDX_OFFSET): Likewise.
14074 (FAMILY_OFFSET): Likewise.
14075 (MODEL_OFFSET): Likewise.
14076 (FEATURE_OFFSET): Likewise.
14077 (FEATURE_SIZ): Likewise.
14078 (COMMON_CPUID_INDEX_1): Likewise.
14079 (COMMON_CPUID_INDEX_7): Likewise.
14080 (FEATURE_INDEX_1): Likewise.
14081 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14082
14083 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14084
14085 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14086 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14087 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14088 (install-locales): Depend on install-locale-archive.
14089 (install-locale-archive): Define.
14090 (install-locale-files): Define.
14091 (build-one-locale): Define macro.
14092 * manual/install.texi (Running make install): Document.
14093 * manual/INSTALL: Regenerate.
14094
14095 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14096
14097 * benchtests/scripts/compare_strings.py: Import traceback.
14098 (parse_file): Pretty-print error.
14099
14100 * NEWS: Mention the change.
14101 * elf/dl-tunables.list: Rename tune namespace to cpu.
14102 * sysdeps/powerpc/dl-tunables.list: Likewise.
14103 * sysdeps/x86/dl-tunables.list: Likewise.
14104 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14105 cpu.name.
14106 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14107 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14108 * manual/README.tunables: Likewise.
14109 * manual/tunables.texi: Likewise.
14110 * sysdeps/powerpc/cpu-features.c: Likewise.
14111 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14112 (init_cpu_features): Likewise.
14113 * sysdeps/x86/cpu-features.c: Likewise.
14114 * sysdeps/x86/cpu-features.h: Likewise.
14115 * sysdeps/x86/cpu-tunables.c: Likewise.
14116 * sysdeps/x86_64/Makefile: Likewise.
14117 * sysdeps/x86/dl-cet.c: Likewise.
14118
14119 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14120
14121 [BZ #23479]
14122 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14123 [__mips_hard_float].
14124 (FE_UNDERFLOW): Likewise.
14125 (FE_OVERFLOW): Likewise.
14126 (FE_DIVBYZERO): Likewise.
14127 (FE_INVALID): Likewise.
14128 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14129 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14130 (FE_UPWARD): Likewise.
14131 (FE_DOWNWARD): Likewise.
14132 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14133 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14134 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14135 [__mips_hard_float].
14136 (FP_ROUNDMODE): Likewise.
14137 (FP_RND_NEAREST): Likewise.
14138 (FP_RND_ZERO): Likewise.
14139 (FP_RND_PINF): Likewise.
14140 (FP_RND_MINF): Likewise.
14141 (FP_EX_INVALID): Likewise.
14142 (FP_EX_OVERFLOW): Likewise.
14143 (FP_EX_UNDERFLOW): Likewise.
14144 (FP_EX_DIVZERO): Likewise.
14145 (FP_EX_INEXACT): Likewise.
14146 (FP_INIT_ROUNDMODE): Likewise.
14147 * sysdeps/mips/nofpu/fesetenv.c: New file.
14148 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14149
14150 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14151
14152 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14153 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14154 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14155 conditional on [FE_UPWARD].
14156
14157 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14158
14159 regex: fix memory leak in Gnulib
14160 Problem and fix reported by Assaf Gordon in:
14161 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14162 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14163 range_ends members too, as they are defined in 'struct
14164 re_charset_t' even if not _LIBC. This affects only Gnulib.
14165
14166 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14167
14168 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14169 ...
14170 (get_common_indices): This.
14171 (init_cpu_features): Updated.
14172
14173 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14174
14175 * sysdeps/generic/math-tests-snan-payload.h: New file.
14176 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14177 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14178 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14179 * sysdeps/generic/math-tests.h: Include
14180 <math-tests-snan-payload.h>.
14181 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14182 * sysdeps/hppa/math-tests.h: Remove file.
14183 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14184 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14185 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14186 Likewise.
14187
14188 * sysdeps/generic/math-tests-snan-cast.h: New file.
14189 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14190 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14191 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14192 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14193
14194 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14195
14196 * version.h (RELEASE): Set to "development".
14197 (VERSION): Set to "2.28.9000".
14198 * NEWS (2.29): New section.
14199
14200 * version.h (RELEASE): Set to "stable".
14201 (VERSION): Set to "2.28".
14202 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14203 * NEWS: Add the list of bugs fixed in 2.28.
14204
14205 * po/ca.po: Update to latest version.
14206 * po/cs.po: Likewise
14207 * po/da.po: Likewise
14208 * po/el.po: Likewise
14209 * po/eo.po: Likewise
14210 * po/es.po: Likewise
14211 * po/fi.po: Likewise
14212 * po/fr.po: Likewise
14213 * po/gl.po: Likewise
14214 * po/hu.po: Likewise
14215 * po/ia.po: Likewise
14216 * po/id.po: Likewise
14217 * po/it.po: Likewise
14218 * po/ja.po: Likewise
14219 * po/ko.po: Likewise
14220 * po/lt.po: Likewise
14221 * po/nb.po: Likewise
14222 * po/nl.po: Likewise
14223 * po/pt_BR.po: Likewise
14224 * po/ru.po: Likewise
14225 * po/rw.po: Likewise
14226 * po/sk.po: Likewise
14227 * po/sl.po: Likewise
14228 * po/tr.po: Likewise
14229 * po/zh_CN.po: Likewise
14230 * po/zh_TW.po: Likewise
14231
14232 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14233
14234 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14235 initialization...
14236 (init): ... before initializing libpthread.
14237
14238 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14239 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14240 (__mach_setup_tls): ... new function.
14241 (mach_setup_tls): New alias.
14242 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14243 __mach_setup_thread.
14244 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14245 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14246 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14247 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14248
14249 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14250
14251 * manual/install.texi: Update versions.
14252 * INSTALL: Regenerate.
14253
14254 * manual/contrib.texi (Contributors): Update contributions.
14255
14256 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14257
14258 * po/be.po: Update translations.
14259
14260 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14261
14262 * sysdeps/sh/libm-test-ulps: Update.
14263
14264 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14265
14266 * po/bg.po: Update translations.
14267 * po/de.po: Likewise.
14268 * po/hr.po: Likewise.
14269 * po/pt_BR.po: Likewise.
14270 * po/sv.po: Likewise.
14271 * po/vi.po: Likewise.
14272
14273 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14274
14275 [BZ #23467]
14276 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14277 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14278 (CFLAGS-tst-cet-property-1.o): New.
14279 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14280 ($(objpfx)tst-cet-property-2): Likewise.
14281 ($(objpfx)tst-cet-property-2.out): Likewise.
14282 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14283 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14284 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14285 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14286 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14287
14288 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14289
14290 [BZ #23458]
14291 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14292
14293 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14294
14295 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14296 __sbrk): Do not set attribute_hidden.
14297 * sysdeps/mach/hurd/not-errno.h: New file.
14298 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14299 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14300
14301 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14302
14303 * po/uk.po: Update translations.
14304 * po/cs.po: Likewise.
14305 * po/pl.po: Likewise.
14306
14307 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14308
14309 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14310 parse beyond the note end.
14311
14312 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14313
14314 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14315 kernel does not support OFD locks.
14316 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14317
14318 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14319
14320 * sysdeps/mach/hurd/Versions (libc): Make __access and
14321 __access_noerrno external so they can override the ld symbols.
14322 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14323 __writev, __open64, __access_noerrno extern so they can be overrided.
14324 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14325 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14326
14327 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14328
14329 * po/libc.pot: Regenerate.
14330
14331 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14332
14333 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14334
14335 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14336
14337 [BZ #23459]
14338 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14339 function.
14340 (init_cpu_features): Call get_extended_indices for both Intel
14341 and AMD CPUs.
14342 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14343 Remove "for AMD" comment.
14344
14345 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14346
14347 [BZ # 23456]
14348 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14349 COMMON_CPUID_INDEX_80000001.
14350
14351 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14352
14353 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14354 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14355
14356 2018-07-26 Florian Weimer <fweimer@redhat.com>
14357
14358 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14359 aliases for symbols not in the implementation namespace.
14360
14361 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14362
14363 [BZ #23393]
14364 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14365 lowercase in LATIN script.
14366 * localedata/Makefile (test-input): Add en_US.UTF-8.
14367 * localedata/en_US.UTF-8.in: New file.
14368 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14369 and restore old tests.
14370 * posix/tst-regexloc.c (do_test): Add back range expression test.
14371
14372 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14373
14374 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14375
14376 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14377
14378 * nptl/threads.h: Move to ...
14379 * sysdeps/nptl/threads.h: ... here.
14380 * sysdeps/hurd/stdc-predef.h: New file.
14381
14382 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14383
14384 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14385 tst-cet-setcontext-1 if CET is enabled.
14386 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14387 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14388
14389 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14390
14391 * include/threads.h: Move to ...
14392 * sysdeps/nptl/threads.h: ... here.
14393 * sysdeps/htl/threads.h: New file.
14394 * conform/Makefile (linknamespace-libs-ISO11): Use
14395 static-thread-library instead of linking libpthread.
14396 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14397
14398 2018-07-25 Florian Weimer <fweimer@redhat.com>
14399
14400 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14401 nanoseconds into seconds.
14402 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14403 (do_test): Likewise.
14404 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14405 (do_test): Likewise. Avoid nanosecond overflow and spurious
14406 timeouts due to system load.
14407 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14408 (child_wait): Increment it.
14409 (do_test): Wait as long as necessary until all expected threads
14410 have arrived.
14411
14412 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14413 H.J. Lu <hongjiu.lu@intel.com>
14414
14415 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14416 __ssp.
14417 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14418 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14419 (__push___start_context): New.
14420 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14421 <asm/prctl.h>.
14422 (__getcontext): Record the current shadow stack base. Save the
14423 caller's shadow stack pointer and base.
14424 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14425 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14426 (__push___start_context): New prototype.
14427 (__makecontext): Call __push___start_context to allocate a new
14428 shadow stack, push __start_context onto the new stack as well
14429 as the new shadow stack.
14430 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14431 <asm/prctl.h>.
14432 (__setcontext): Restore the target shadow stack.
14433 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14434 <asm/prctl.h>.
14435 (__swapcontext): Record the current shadow stack base. Save
14436 the caller's shadow stack pointer and base. Restore the target
14437 shadow stack.
14438 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14439 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14440 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14441
14442 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14443
14444 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14445 tst-setcontext8 and tst-setcontext9.
14446 * stdlib/tst-setcontext6.c: New file.
14447 * stdlib/tst-setcontext7.c: Likewise.
14448 * stdlib/tst-setcontext8.c: Likewise.
14449 * stdlib/tst-setcontext9.c: Likewise.
14450
14451 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14452
14453 * stdlib/Makefile ((tests): Add tst-setcontext5.
14454 * stdlib/tst-setcontext5.c: New file.
14455
14456 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14457
14458 * stdlib/Makefile (tests): Add tst-setcontext4.
14459 * stdlib/tst-setcontext4.c: New file.
14460
14461 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14462
14463 * stdlib/Makefile (tests): Add tst-swapcontext1.
14464 * stdlib/tst-swapcontext1.c: New test.
14465
14466 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14467
14468 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14469 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14470 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14471 and tst-cet-legacy-4c.
14472 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14473 and tst-cet-legacy-mod-4.
14474 (CFLAGS-tst-cet-legacy-2.c): New.
14475 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14476 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14477 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14478 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14479 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14480 ($(objpfx)tst-cet-legacy-1): Likewise.
14481 ($(objpfx)tst-cet-legacy-2): Likewise.
14482 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14483 ($(objpfx)tst-cet-legacy-2a): Likewise.
14484 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14485 ($(objpfx)tst-cet-legacy-4): Likewise.
14486 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14487 ($(objpfx)tst-cet-legacy-4a): Likewise.
14488 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14489 (tst-cet-legacy-4a-ENV): Likewise.
14490 ($(objpfx)tst-cet-legacy-4b): Likewise.
14491 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14492 (tst-cet-legacy-4b-ENV): Likewise.
14493 ($(objpfx)tst-cet-legacy-4c): Likewise.
14494 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14495 (tst-cet-legacy-4c-ENV): Likewise.
14496 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14497 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14498 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14499 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14500 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14501 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14502 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14503 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14504 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14505 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14506 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14507
14508 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14509
14510 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14511 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14512 with ssp_base.
14513 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14514 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14515 with ssp_base.
14516
14517 2018-07-25 Andreas Schwab <schwab@suse.de>
14518
14519 [BZ #23442]
14520 * locale/weightwc.h (findidx): Handle the case where usrc is a
14521 prefix of cp but one character too short.
14522
14523 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14524
14525 * NEWS: Add ISO C threads addition.
14526
14527 2018-07-24 Florian Weimer <fweimer@redhat.com>
14528
14529 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14530 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14531 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14532 4.13.
14533
14534 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14535
14536 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14537 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14538 <sys/prctl.h> and <asm/prctl.h>.
14539 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14540 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14541 and <asm/prctl.h>.
14542 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14543 ARCH_CET_LEGACY_BITMAP.
14544 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14545 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14546 * sysdeps/x86/libc-start.c: Include <startup.h>.
14547
14548 2018-07-24 Florian Weimer <fweimer@redhat.com>
14549
14550 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14551 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14552
14553 2018-07-24 Rical Jasan <rj@2c3t.io>
14554 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14555 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14556
14557 [BZ #14092]
14558 * manual/debug.texi: Update adjacent chapter name.
14559 * manual/probes.texi: Likewise.
14560 * manual/threads.texi (ISO C Threads): New section.
14561 (POSIX Threads): Convert to a section.
14562
14563 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14564 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14565
14566 [BZ# 14092]
14567 * nptl/Makefile (tests): Add new test files.
14568 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14569 * nptl/tst-cnd-basic.c: Likewise.
14570 * nptl/tst-cnd-broadcast.c: Likewise.
14571 * nptl/tst-cnd-timedwait.c: Likewise.
14572 * nptl/tst-mtx-basic.c: Likewise.
14573 * nptl/tst-mtx-recursive.c: Likewise.
14574 * nptl/tst-mtx-timedlock.c: Likewise.
14575 * nptl/tst-mtx-trylock.c: Likewise.
14576 * nptl/tst-thrd-basic.c: Likewise.
14577 * nptl/tst-thrd-detach.c: Likewise.
14578 * nptl/tst-thrd-sleep.c: Likewise.
14579 * nptl/tst-tss-basic.c: Likewise.
14580
14581 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14582
14583 [BZ #14092]
14584 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14585 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14586 symbols.
14587 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14588 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14589 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14590 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14592 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14593 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14596 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14597 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14600 Likewise.
14601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14602 Likewise.
14603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14604 Likewise.
14605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14606 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14611 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14615 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14616 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14617 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14618 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14619 Likewise.
14620 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14624 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14625 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14632 ikewise.
14633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14635 Likewise.
14636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14637 Likewise.
14638 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14646
14647 [BZ #14092]
14648 * conform/data/threads.h-data (thread_local): New macro.
14649 (TSS_DTOR_ITERATIONS): Likewise.
14650 (tss_t): New type.
14651 (tss_dtor_t): Likewise.
14652 (tss_create): New function.
14653 (tss_get): Likewise.
14654 (tss_set): Likewise.
14655 (tss_delete): Likewise.
14656 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14657 tss_get, and tss_set objects.
14658 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14659 * nptl/tss_create.c: New file.
14660 * nptl/tss_delete.c: Likewise.
14661 * nptl/tss_get.c: Likewise.
14662 * nptl/tss_set.c: Likewise.
14663 * sysdeps/nptl/threads.h (thread_local): New define.
14664 (TSS_DTOR_ITERATIONS): Likewise.
14665 (tss_t): New typedef.
14666 (tss_dtor_t): Likewise.
14667 (tss_create): New prototype.
14668 (tss_get): Likewise.
14669 (tss_set): Likewise.
14670 (tss_delete): Likewise.
14671
14672 [BZ #14092]
14673 * conform/data/threads.h-data (cnd_t): New type.
14674 (cnd_init): New function.
14675 (cnd_signal): Likewise.
14676 (cnd_broadcast): Likewise.
14677 (cnd_wait): Likewise.
14678 (cnd_timedwait): Likewise.
14679 (cnd_destroy): Likewise.
14680 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14681 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14682 object.
14683 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14684 * nptl/cnd_broadcast.c: New file.
14685 * nptl/cnd_destroy.c: Likewise.
14686 * nptl/cnd_init.c: Likewise.
14687 * nptl/cnd_signal.c: Likewise.
14688 * nptl/cnd_timedwait.c: Likewise.
14689 * nptl/cnd_wait.c: Likewise.
14690 * sysdeps/nptl/threads.h (cnd_t): New type.
14691 (cnd_init): New prototype.
14692 (cnd_signa): Likewise.
14693 (cnd_broadcast): Likewise.
14694 (cnd_wait): Likewise.
14695 (cnd_timedwait): Likewise.
14696 (cnd_destroy): Likewise.
14697
14698 [BZ #14092]
14699 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14700 (once_flag): New type.
14701 (call_once): New function.
14702 * nptl/Makefile (libpthread-routines): Add call_once object.
14703 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14704 * nptl/call_once.c: New file.
14705 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14706 (once_flag): New type.
14707 (call_once): New prototype.
14708
14709 [BZ #14092]
14710 * conform/data/threads.h-data (mtx_plain): New constant.
14711 (mtx_recursive): Likewise.
14712 (mtx_timed): Likewise.
14713 (mtx_t): New type.
14714 (mtx_init): New function.
14715 (mtx_lock): Likewise.
14716 (mtx_timedlock): Likewise.
14717 (mtx_trylock): Likewise.
14718 (mtx_unlock): Likewise.
14719 (mtx_destroy): Likewise.
14720 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14721 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14722 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14723 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14724 * nptl/mtx_destroy.c: New file.
14725 * nptl/mtx_init.c: Likewise.
14726 * nptl/mtx_lock.c: Likewise.
14727 * nptl/mtx_timedlock.c: Likewise.
14728 * nptl/mtx_trylock.c: Likewise.
14729 * nptl/mtx_unlock.c: Likewise.
14730 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14731 (mtx_recursive): Likewise.
14732 (mtx_timed): Likewise.
14733 (mtx_t): New type.
14734 (mtx_init): New prototype.
14735 (mtx_lock): Likewise.
14736 (mtx_timedlock): Likewise.
14737 (mtx_trylock): Likewise.
14738 (mtx_unlock): Likewise.
14739 (mtx_destroy): Likewise.
14740
14741 [BZ #14092]
14742 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14743 (linknamespace-libs-ISO11): Add libpthread.a.
14744 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14745 functions.
14746 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14747 * nptl/Makefile (headers): Add threads.h.
14748 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14749 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14750 thrd_yield.
14751 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14752 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14753 thrd_join, thrd_sleep, and thrd_yield symbols.
14754 * nptl/descr.h (struct pthread): Add c11 field.
14755 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14756 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14757 routine with expected function prototype.
14758 (__pthread_create_2_1): Add C11 threads check based on attribute
14759 value.
14760 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14761 * nptl/thrd_create.c: New file.
14762 * nptl/thrd_current.c: Likewise.
14763 * nptl/thrd_detach.c: Likewise.
14764 * nptl/thrd_equal.c: Likewise.
14765 * nptl/thrd_exit.c: Likewise.
14766 * nptl/thrd_join.c: Likewise.
14767 * nptl/thrd_priv.h: Likewise.
14768 * nptl/thrd_sleep.c: Likewise.
14769 * nptl/thrd_yield.c: Likewise.
14770 * include/threads.h: Likewise.
14771
14772 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14773
14774 * bits/indirect-return.h: New file.
14775 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14776 * sysdeps/x86/bits/indirect-return.h: Likewise.
14777 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14778 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14779 (swapcontext): Add __INDIRECT_RETURN.
14780 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14781 (prepare_test_buffer): Use it.
14782
14783 2018-07-24 Andreas Schwab <schwab@suse.de>
14784
14785 [BZ #23448]
14786 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14787 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14788
14789 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14790
14791 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14792 Redefine if shadow stack is enabled.
14793 (SYSCALL_ERROR_LABEL): Likewise.
14794 (__vfork): Pop shadow stack and jump back to to caller directly
14795 when shadow stack is in use.
14796 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14797 Redefine if shadow stack is enabled.
14798 (SYSCALL_ERROR_LABEL): Likewise.
14799 (__vfork): Pop shadow stack and jump back to to caller directly
14800 when shadow stack is in use.
14801
14802 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14803
14804 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14805 enabled.
14806 (foo): Likewise.
14807 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14808 (foo): Likewise.
14809
14810 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14811
14812 * scripts/build-many-glibcs.py (Context.checkout): Default
14813 binutils version to 2.31 branch.
14814
14815 2018-07-20 Zong Li <zong@andestech.com>
14816
14817 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14818 URL of gcc's tarball.
14819
14820 2018-07-20 Florian Weimer <fweimer@redhat.com>
14821
14822 [BZ #23396]
14823 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14824 not compare an extra byte after the end of the weights.
14825
14826 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14827
14828 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14829 to 1.
14830 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14831 hidden prototypes.
14832 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14833 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14834 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14835 list of libraries whose stack executability is expected.
14836 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14837 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14838 variable.
14839 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14840 libc.so libpthread.so.
14841
14842 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14843
14844 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14845 SOCK_NONBLOCK.
14846 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14847 and SOCK_NONBLOCK.
14848 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14849 implement __pipe2.
14850 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14851
14852 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14853
14854 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14855 library to improve command line parsing.
14856 (__main__): make schema file as optional parameter (--schema),
14857 defaulting to benchtests/scripts/benchout.schema.json.
14858 (main): move out of the parsing stuff to __main_  and leave it
14859 only as caller of main comparison functions.
14860
14861 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14862
14863 * NEWS: Add a note for Intel CET status.
14864 * manual/install.texi: Likewise.
14865 * INSTALL: Regenerated.
14866
14867 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14868
14869 [BZ #23140]
14870 * localedata/locales/oc_FR (mon): Rename to...
14871 (alt_mon): This, then update October (typo fix).
14872 (mon): New content (genitive case, month names preceded by
14873 "de" or "d’").
14874
14875 [BZ #23422]
14876 * localedata/locales/oc_FR (abday): Update all items.
14877 (day): Update Wednesday and Saturday (typo fixes).
14878 (abmon): Update all items, except May.
14879 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14880 (LC_IDENTIFICATION): Bump the revision number and date.
14881 Keep the "category" entries in alphabetic order.
14882 (LC_ADDRESS): Remove no longer needed comment.
14883 (LC_COLLATE): Use “copy "ca_ES"”.
14884 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14885 "name_mrs".
14886
14887 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14888
14889 * grp/tst_fgetgrent.c: Include <unistd.h>.
14890 (main): Use mkstemp instead of tmpnam.
14891 * io/test-utime.c (main): Likewise.
14892 * posix/annexc.c (macrofile): Change to modifiable array.
14893 (main): Remove macrofile here.
14894 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14895 macrofile here.
14896 (check_header): Do not remove macrofile here.
14897 * posix/bug-getopt1.c: Include <stdlib.h>.
14898 (do_test): Use mkstemp instead of tmpnam.
14899 * posix/bug-getopt2.c: Include <stdlib.h>.
14900 (do_test): Use mkstemp instead of tmpnam.
14901 * posix/bug-getopt3.c: Include <stdlib.h>.
14902 (do_test): Use mkstemp instead of tmpnam.
14903 * posix/bug-getopt4.c: Include <stdlib.h>.
14904 (do_test): Use mkstemp instead of tmpnam.
14905 * posix/bug-getopt5.c: Include <stdlib.h>.
14906 (do_test): Use mkstemp instead of tmpnam.
14907 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14908 (main): Use mkstemp instead of tmpnam.
14909 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14910 (main): Use mkstemp instead of tmpnam.
14911 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14912 (main): use mkstemp instead of tmpnam.
14913 * stdlib/isomac.c (macrofile): Change to modifiable array.
14914 (main): Remove macrofile here.
14915 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14916 macrofile here.
14917 (check_header): Do not remove macrofile here.
14918
14919 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14920
14921 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14922 glibc.tune.x86_shstk.
14923
14924 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14925
14926 * NEWS: Mention --enable-cet.
14927 * manual/install.texi: Document --enable-cet.
14928 * INSTALL: Regenerated.
14929
14930 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14931
14932 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14933 Add _CET_NOTRACK before indirect jump to jump table.
14934
14935 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14936
14937 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14938 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14939 to jump table.
14940
14941 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14942
14943 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14944 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14945 to jump table.
14946
14947 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14948
14949 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14950 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14951 to jump table.
14952
14953 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14954
14955 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14956 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14957 to jump table.
14958
14959 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14960
14961 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14962 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14963 to jump table.
14964 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14965
14966 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14967
14968 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14969 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14970 to jump table.
14971
14972 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14973
14974 * sysdeps/i386/i686/multiarch/memset-sse2.S
14975 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14976 to jump table.
14977
14978 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14979
14980 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14981 indirect jump to jump table.
14982
14983 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14984
14985 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14986 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14987 to jump table.
14988 (MEMCPY): Likewise.
14989
14990 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14991
14992 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14993 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14994 to jump table.
14995 (MEMCPY): Likewise.
14996
14997 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14998
14999 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15000 _CET_NOTRACK before indirect jump to jump table.
15001
15002 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15003
15004 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
15005 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15006 to jump table.
15007
15008 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15009
15010 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
15011 indirect jump to jump table.
15012
15013 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
15014
15015 [BZ #22241]
15016 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
15017 (LOCALES): Likewise.
15018 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
15019 * localedata/locales/sah_RU: New file.
15020 * localedata/sah_RU.UTF-8.in: New file.
15021
15022 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15023
15024 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
15025 "sysdep.h".
15026 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15027 _CET_ENDBR to indirect jump targets and adjust jump destination
15028 for _CET_ENDBR.
15029 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
15030 "sysdep.h".
15031 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15032 _CET_ENDBR to indirect jump targets and adjust jump destination
15033 for _CET_ENDBR.
15034 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
15035 "sysdep.h".
15036 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
15037 _CET_ENDBR to indirect jump targets and adjust jump destination
15038 for _CET_ENDBR.
15039
15040 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15041
15042 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15043 _CET_ENDBR.
15044
15045 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15046
15047 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15048 _CET_ENDBR.
15049 (_dl_tlsdesc_undefweak): Likewise.
15050 (_dl_tlsdesc_dynamic): Likewise.
15051 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15052 (_dl_tlsdesc_resolve_rel): Likewise.
15053 (_dl_tlsdesc_resolve_rela): Likewise.
15054 (_dl_tlsdesc_resolve_hold): Likewise.
15055 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15056 (_dl_tlsdesc_undefweak): Likewise.
15057 (_dl_tlsdesc_dynamic): Likewise.
15058 (_dl_tlsdesc_resolve_rela): Likewise.
15059 (_dl_tlsdesc_resolve_hold): Likewise.
15060
15061 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15062
15063 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15064 (_fini): Likewise.
15065 * sysdeps/x86_64/crti.S (_init): Likewise.
15066 (_fini): Likewise.
15067
15068 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
15069
15070 [BZ #23140]
15071 * localedata/locales/os_RU (mon): Rename to...
15072 (alt_mon): This.
15073 (mon): Import from CLDR (genitive case).
15074
15075 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15076
15077 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15078 cet-tunables.h> when CET is enabled.
15079
15080 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15081
15082 [BZ #21598]
15083 * configure.ac: Add --enable-cet.
15084 * configure: Regenerated.
15085 * elf/Makefille (all-built-dso): Add a comment.
15086 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15087 Include <dl-prop.h>.
15088 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15089 segment.
15090 * elf/dl-open.c: Include <dl-prop.h>.
15091 (dl_open_worker): Call _dl_open_check.
15092 * elf/rtld.c: Include <dl-prop.h>.
15093 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15094 _rtld_main_check.
15095 * sysdeps/generic/dl-prop.h: New file.
15096 * sysdeps/i386/dl-cet.c: Likewise.
15097 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15098 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15099 * sysdeps/x86/cet-tunables.h: Likewise.
15100 * sysdeps/x86/check-cet.awk: Likewise.
15101 * sysdeps/x86/configure: Likewise.
15102 * sysdeps/x86/configure.ac: Likewise.
15103 * sysdeps/x86/dl-cet.c: Likewise.
15104 * sysdeps/x86/dl-procruntime.c: Likewise.
15105 * sysdeps/x86/dl-prop.h: Likewise.
15106 * sysdeps/x86/libc-start.h: Likewise.
15107 * sysdeps/x86/link_map.h: Likewise.
15108 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15109 _CET_ENDBR.
15110 (_dl_runtime_profile): Likewise.
15111 (_dl_runtime_resolve_shstk): New.
15112 (_dl_runtime_profile_shstk): Likewise.
15113 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15114 if CET is enabled.
15115 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15116 (CFLAGS-.os): Likewise.
15117 (CFLAGS-.op): Likewise.
15118 (CFLAGS-.oS): Likewise.
15119 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15120 is enabled.
15121 (tests-special): Add $(objpfx)check-cet.out.
15122 (cet-built-dso): New.
15123 (+$(cet-built-dso:=.note)): Likewise.
15124 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15125 ($(objpfx)check-cet.out): New.
15126 (generated): Add check-cet.out.
15127 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15128 <cet-tunables.h>.
15129 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15130 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15131 (init_cpu_features): Call get_cet_status to check CET status
15132 and update dl_x86_feature_1 with CET status. Call
15133 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15134 (set_x86_shstk). Disable and lock CET in libc.a.
15135 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15136 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15137 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15138 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15139 (_CET_ENDBR): Define if not defined.
15140 (ENTRY): Add _CET_ENDBR.
15141 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15142 x86_shstk.
15143 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15144 _CET_ENDBR.
15145 (_dl_runtime_profile): Likewise.
15146
15147 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15148
15149 [BZ #21895]
15150 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15151 restore r2 on longjmp.
15152 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15153 test list.
15154 Added rules to build test tst-setjmp-bug21895-static.
15155 Added module setjmp-bug21895 and rules to build a shared object from it.
15156 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15157 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15158
15159 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15160
15161 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15162 * benchtests/bench-strstr.c: Likewise.
15163 * string/memmem.c (FASTSEARCH): Define.
15164 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15165 Add support for FASTSEARCH.
15166 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15167 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15168 (FASTSEARCH): Define.
15169 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15170 * string/test-strstr.c: Likewise.
15171
15172 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15173
15174 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15175 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15176
15177 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15178 H.J. Lu <hongjiu.lu@intel.com>
15179
15180 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15181 (__longjmp): Restore shadow stack pointer if shadow stack is
15182 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15183 isn't defined for __longjmp_cancel.
15184 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15185 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15186 and SHADOW_STACK_POINTER_OFFSET is defined.
15187 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15188 (setjmp): Save shadow stack pointer if shadow stack is enabled
15189 and SHADOW_STACK_POINTER_OFFSET is defined.
15190 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15191 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15192 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15193 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15194 <jmp_buf-ssp.h>.
15195 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15196 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15197 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15198 Remove jmp_buf-ssp.sym.
15199 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15200 <jmp_buf-ssp.h>.
15201 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15202 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15203 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15204 jmp_buf-ssp.sym.
15205 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15206 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15207 (__longjmp): Restore shadow stack pointer if shadow stack is
15208 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15209 isn't defined for __longjmp_cancel.
15210 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15211 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15212 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15213
15214 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15215
15216 [BZ #22563]
15217 * nptl/pthread_create.c: Include <tls-setup.h>.
15218 (__pthread_create_2_1): Call tls_setup_tcbhead.
15219 * sysdeps/generic/tls-setup.h: New file.
15220 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15221 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15222 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15223 Likewise.
15224 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15225 to feature_1.
15226 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15227 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15228 (X86_FEATURE_1_SHSTK): Likewise.
15229 (CET_ENABLED): Likewise.
15230 (IBT_ENABLED): Likewise.
15231 (SHSTK_ENABLED): Likewise.
15232
15233 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15234
15235 [BZ #23208]
15236 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15237 (LOCALES): Likewise.
15238 * localedata/dsb_DE.UTF-8.in: New file.
15239 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15240
15241 2018-07-12 Florian Weimer <fweimer@redhat.com>
15242
15243 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15244 __mprotect, not mprotect.
15245
15246 2018-07-11 Florian Weimer <fweimer@redhat.com>
15247
15248 * io/Makefile (headers): Add bits/statx.h.
15249
15250 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15251
15252 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15253 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15254 and headers.
15255 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15256 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15257 for utf8_gen.py
15258
15259 2018-07-10 Florian Weimer <fweimer@redhat.com>
15260
15261 * io/Makefile (routines): Add statx.
15262 (tests-internal): Add tst-statx.
15263 * io/Versions (GLIBC_2.28): Export statx.
15264 * io/bits/statx.h: New file.
15265 * io/sys/stat.h [__USE_GNU]: Include it.
15266 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15267 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15268 Define.
15269 * io/statx.c: New file.
15270 * io/statx_generic.: Likewise.
15271 * io/tst-statx.: Likewise.
15272 * include/bits/statx.h: Likewise.
15273 * sysdeps/unix/sysv/linux/kernel-features.h
15274 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15275 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15276 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15277 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15278 Undefine.
15279 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15280 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15281 * sysdeps/unix/sysv/linux/statx.c: New file.
15282 * manual/filesys.texi: Note that statx is undocumented.
15283 * sysdeps/**/libc*.abilist: Update.
15284
15285 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15286
15287 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15288 a kernel issue which lead to test failure in some cases.
15289
15290 2018-07-10 Florian Weimer <fweimer@redhat.com>
15291
15292 [BZ #23036]
15293 * posix/regexec.c (check_node_accept_bytes): When comparing
15294 weights, do not compare an extra byte after the end of the
15295 weights.
15296
15297 2018-07-10 Florian Weimer <fweimer@redhat.com>
15298
15299 * libio/readline.c: Fix copyright year.
15300 * libio/tst-readline.c Likewise.
15301 * nss/tst-nss-files-hosts-getent.c: Likewise.
15302
15303 2018-07-06 Florian Weimer <fweimer@redhat.com>
15304
15305 [BZ #18991]
15306 * nss/nss_files/files-XXX.c (internal_getent): Use
15307 __libc_readline_unlocked. Seek back to the start of the line if
15308 parsing failes with ERANGE.
15309 (get_contents_ret, get_contents): Remove.
15310 * nss/tst-nss-files-hosts-getent.c: New file.
15311 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15312 (tst-nss-files-hosts-getent): Link with -ldl.
15313
15314 2018-07-06 Florian Weimer <fweimer@redhat.com>
15315
15316 * include/stdio.h (__libc_readline_unlocked): Declare.
15317 (__ftello64, __fseeko64): Declare aliases.
15318 * libio/readline.c: New file.
15319 * libio/tst-readline.c: Likewise.
15320 (routines): Add readline.
15321 (tests-internal): Add tst-readlime.
15322 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15323 __libc_readline_unlocked.
15324 * libio/fseeko.c (__fseeko): Rename from fseeko.
15325 (fseeko): Add alias.
15326 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15327 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15328 (fseeko64): Add alias.
15329 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15330 * libio/ftello64.c (__ftello64): Rename from ftello64.
15331 (ftello64): Add alias.
15332
15333 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15334
15335 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15336 HWCAP_ATOMICS.
15337
15338 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15339
15340 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15341 Use dl_hwcap without masking.
15342 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15343 Remove HWCAP_CPUID.
15344
15345 2018-07-06 Florian Weimer <fweimer@redhat.com>
15346
15347 * conform/conformtest.pl (checknamespace): Escape literal braces
15348 in regular expressions.
15349
15350 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15351
15352 * sysdeps/x86/cpu-features.c (get_common_indeces):
15353 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15354 * sysdeps/x86/cpu-features.c (init_cpu_features):
15355 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15356
15357 2018-07-05 Florian Weimer <fweimer@redhat.com>
15358
15359 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15360 protector.
15361 (CFLAGS-elf-init.oS): Likewise.
15362
15363 2018-07-05 Florian Weimer <fweimer@redhat.com>
15364 Carlos O'Donell <carlos@redhat.com>
15365
15366 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15367 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15368 with stack protector enabled because there is no risk of infinite
15369 recursion.
15370
15371 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15372
15373 [BZ #19818]
15374 [BZ #23307]
15375 * libc-abis (ABSOLUTE): New ABI.
15376 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15377 * NEWS: Mention the new ABI.
15378
15379 2018-07-05 Florian Weimer <fweimer@redhat.com>
15380
15381 [BZ # 17662]
15382 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15383 (RENAME_WHITEOUT): Define.
15384 [__USE_GNU] (renameat2): Declare.
15385 * stdio-common/Makefile (routines): Add renameat2.
15386 (tests): Add tst-renameat2.
15387 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15388 * stdio-common/renameat2.c: New file.
15389 * stdio-common/tst-renameat2.c: Likewise.
15390 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15391 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15392 undocumented.
15393 * sysdeps/unix/sysv/linux/kernel-features.h
15394 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15395 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15396 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15397 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15398 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15399 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15400 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15401 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15402 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15403 * include/stdio.h (__renameat): Add alias for renameat.
15404 * stdio-common/renameat.c (__renameat): Rename from renameat.
15405 Add hidden definition and alias.
15406 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15407 * sysdeps/mach/hurd/renameat.c: Likewise.
15408 * sysdeps/**/libc*.abilist: Add renameat2.
15409
15410 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15411
15412 * posix/bug-regex33.c: Fix build after regex sync.
15413
15414 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15415
15416 [BZ #23164]
15417 * localedata/tst-langinfo-setlocale.c: New file.
15418 * localedata/tst-langinfo-setlocale-static.c: New file.
15419 * localedata/tst-langinfo-newlocale.c: New file.
15420 * localedata/tst-langinfo-newlocale-static.c: New file.
15421 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15422 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15423 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15424 (tests-static): Remove tst-langinfo-static. Add
15425 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15426 (tests-special): Remove $(objpfx)tst-langinfo.out,
15427 $(objpfx)tst-langinfo-static.out. Add
15428 $(objpfx)tst-langinfo-setlocale.out,
15429 $(objpfx)tst-langinfo-newlocale.out,
15430 $(objpfx)tst-langinfo-setlocale-static.out,
15431 $(objpfx)tst-langinfo-newlocale-static.out.
15432 ($(objpfx)tst-langinfo.out): Remove.
15433 ($(objpfx)tst-langinfo-static.out): Remove.
15434 ($(objpfx)tst-langinfo-newlocale.out): New target.
15435 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15436 (test-xfail-tst-langinfo-newlocale-static): Add.
15437 ($(objpfx)tst-langinfo-setlocale.out): New target.
15438 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15439 * localedata/tst-langinfo.c: Call test_locale.
15440 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15441 data.
15442
15443 2018-07-04 Florian Weimer <fweimer@redhat.com>
15444
15445 testrun.sh: Implement --tool=strace, --tool=valgrind
15446 * Makefile (testrun-script): Define variable.
15447 (testrun.sh): Use variable.
15448 * manual/install.texi (Tools for Compilation): make 4.0 or later
15449 is required.
15450 * configure.ac: Check for make 4.0 or later.
15451 * INSTALL: Regenerate.
15452 * configure: Likewise.
15453
15454 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15455
15456 [BZ #23233]
15457 [BZ #21163]
15458 [BZ #18986]
15459 [BZ #13762]
15460 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15461 * posix/PCRE.tests: Remove invalid test.
15462 * posix/bug-regex28.c: Fix expected values for used syntax.
15463 * posix/bug-regex37.c: New file.
15464 * posix/bug-regex38.c: Likewise.
15465 * posix/regcomp.c: Sync with gnulib.
15466 * posix/regex.c: Likewise.
15467 * posix/regex.h: Likewise.
15468 * posix/regex_internal.c: Likewise.
15469 * posix/regex_internal.h: Likewise.
15470 * posix/regexec.c: Likewise.
15471
15472 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15473
15474 [BZ #23308]
15475 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15476 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15477 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15478 * localedata/unicode-gen/PropList.txt: likewise.
15479 * localedata/unicode-gen/UnicodeData.txt: likewise.
15480 * localedata/charmaps/UTF-8: Regenerate.
15481 * localedata/locales/i18n_ctype: likewise.
15482 * localedata/locales/tr_TR: likewise.
15483 * localedata/locales/translit_circle: likewise.
15484 * localedata/locales/translit_cjk_compat: likewise.
15485 * localedata/locales/translit_combining: likewise.
15486 * localedata/locales/translit_compat: likewise.
15487 * localedata/locales/translit_font: likewise.
15488 * localedata/locales/translit_fraction: likewise.
15489
15490 2018-07-03 Florian Weimer <fweimer@redhat.com>
15491
15492 [BZ #23363]
15493 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15494 * stdio-common/tst-printf.sh: Adjust expected output.
15495 * LICENSES: Update.
15496
15497 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15498
15499 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15500 symbol.
15501
15502 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15503
15504 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15505 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15506 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15507 * stdio-common/tst-printfsz-islongdouble.c: New file.
15508 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15509 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15510 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15511 [subdir == stdio-common] (tests-internal): Add
15512 test-printf-size-ieee128, and test-printf-size-ibm128.
15513 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15514 (CFLAGS-test-printf-size-ibm128.c): New variables.
15515 [subdir == stdio-common] (tests-special): Add
15516 $(objpfx)test-printf-size-ieee128.out and
15517 $(objpfx)test-printf-size-ibm128.out.
15518 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15519 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15520 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15521 __printf_sizeieee128.
15522 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15523 New file.
15524 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15525 Likewise.
15526 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15527 Likewise.
15528
15529 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15530
15531 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15532 (exp2f_inline): Likewise.
15533 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15534 (__math_uflowf): Likewise.
15535 (__math_may_uflowf): Likewise.
15536 (__math_divzerof): Likewise.
15537 (__math_invalidf): Likewise.
15538 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15539 (__math_oflowf): Likewise.
15540 (__math_uflowf): Likewise.
15541 (__math_may_uflowf): Likewise.
15542 (__math_divzerof): Likewise.
15543 (__math_invalidf): Likewise.
15544
15545 2018-06-29 DJ Delorie <dj@redhat.com>
15546 Carlos O'Donell <carlos@redhat.com>
15547
15548 [BZ #23329]
15549 * include/libc-symbols.h: Comment the freeres framework.
15550 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15551 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15552 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15553 * dlfcn/dlerror.c: Include libc-symbols.h
15554 (__dlerror_main_freeres): New function.
15555 * dlfcn/dlfreeres.c: New file.
15556 * dlfcn/sdlfreeres.c: New file.
15557 * include/dlfcn.h: Declare __dlerror_main_freeres.
15558 * malloc/set-freeres.c: Declare __libdl_freeres, and
15559 __libpthread_freeres.
15560 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15561 the releavant libraries are loaded.
15562 * malloc/thread-freeres.c: Add comments.
15563 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15564 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15565 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15566 (__free_stacks): Rename to...
15567 (free_stacks): ...this. Mark static.
15568 (queue_stack): Call free_stacks.
15569 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15570 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15571 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15572 ptr_freeres element from struct.
15573 (pthread_functions): Remove .ptr_freeres from struct initializer.
15574 [SHARED] (nptl_freeres): Remove.
15575 * nptl/nptlfreeres.c: New file.
15576 * nptl/pthreadP.h
15577 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15578 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15579 attribute_hidden.
15580 (__free_stacks): Rename to...
15581 (__nptl_stacks_freeres): ...this.
15582 (__shm_directory_freeres): Declare.
15583 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15584 (__nptl_unwind_freeres): ...this.
15585 * resolv/res-close.c: Add comment.
15586 * resolv/resolv_conf.c: Include libc-symbols.h.
15587 * string/strerror_l.c: Include libc-symbols.h.
15588 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15589 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15590 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15591 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15592
15593 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15594
15595 * stdlib/tst-strfmon_l.c: Add tests for long double.
15596
15597 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15598
15599 [BZ #23208]
15600 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15601 * localedata/locales/dsb_DE: New file.
15602
15603 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15604
15605 [BZ #23140]
15606 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15607 genitive case).
15608 (alt_mon): New entry, import from CLDR (nominative case).
15609
15610 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15611
15612 [BZ #22996]
15613 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15614
15615 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15616
15617 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15618 Use vector registers.
15619
15620 * sysdeps/aarch64/multiarch/memmove_falkor.S
15621 (__memcpy_falkor): Use vector registers.
15622
15623 2018-06-29 Martin Sebor <msebor@redhat.com>
15624
15625 * manual/stdio.texi (Customizing Printf): Mention interaction
15626 with GCC built-ins.
15627
15628 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15629
15630 [BZ #23307]
15631 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15632 `st_value' is 0 if `st_shndx' is SHN_ABS.
15633 * elf/tst-absolute-zero.c: New file.
15634 * elf/tst-absolute-zero-lib.c: New file.
15635 * elf/tst-absolute-zero-lib.lds: New file.
15636 * elf/Makefile (tests): Add `tst-absolute-zero'.
15637 (modules-names): Add `tst-absolute-zero-lib'.
15638 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15639 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15640 ($(objpfx)tst-absolute-zero: New dependency.
15641
15642 2018-06-29 Zack Weinberg <zackw@panix.com>
15643
15644 * configure.ac: New command-line option --disable-crypt.
15645 Force --disable-nss-crypt when --disable-crypt is given, with a
15646 warning if it was explicitly enabled.
15647 * configure: Regenerate.
15648 * config.make.in: New boolean substitution variable $(build-crypt).
15649 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15650 when $(build-crypt).
15651 * manual/install.texi: Document --disable-crypt.
15652 * INSTALL: Regenerate.
15653
15654 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15655 which is never set.
15656 * conform/Makefile: Only include libcrypt.a in
15657 linknamespace-libs-xsi and linknamespace-libs-XPG4
15658 when $(build-crypt).
15659 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15660 USE_CRYPT to 1 when $(build-crypt).
15661 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15662 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15663 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15664
15665 2018-06-29 Zack Weinberg <zackw@panix.com>
15666
15667 * crypt/crypt.h, posix/unistd.h: Update comments and
15668 prototypes for crypt and crypt_r.
15669
15670 * manual/crypt.texi (Cryptographic Functions): New initial
15671 exposition.
15672 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15673 (Unpredictable Bytes): Improve initial exposition. Clarify error
15674 behavior of getentropy and getrandom.
15675 * manual/examples/genpass.c: Generate a salt using getentropy
15676 instead of the current time. Use hash $5$ (SHA-2-256).
15677 * manual/examples/testpass.c: Demonstrate validation against
15678 hashes generated with three different one-way functions.
15679
15680 * manual/intro.texi: crypt.texi does not need an overview
15681 anymore.
15682
15683 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15684 * manual/terminal.texi: Consistently refer to "passphrases"
15685 * instead of "passwords", and to the "user database" instead
15686 * of the "password database".
15687 * manual/users.texi: Similarly. Add notes about how actual
15688 passphrase hashes are now stored in the shadow database.
15689 Remove 20-year-old junk todo note.
15690
15691 2018-06-29 Zack Weinberg <zackw@panix.com>
15692
15693 * manual/crypt.texi: Use a normal top-level @node declaration.
15694 Move most of the introductory text to the 'crypt' section.
15695 Move the example programs below the @deftypefun for 'crypt_r'.
15696 Move the 'getpass' section...
15697 * manual/terminal.texi: ...here.
15698
15699 2018-06-29 Zack Weinberg <zackw@panix.com>
15700 Florian Weimer <fweimer@redhat.com>
15701
15702 * posix/unistd.h: Do not declare encrypt.
15703 (_XOPEN_CRYPT): Remove macro definition.
15704 (crypt): Declare only for _USE_MISC.
15705 * stdlib/stdlib.h: Do not declare setkey.
15706 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15707 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15708
15709 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15710 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15711 into compat symbols. Don't define initial_perm if it's not
15712 going to be used.
15713 * crypt/cert.c: Link explicitly with the expected versions for
15714 setkey and encrypt. If they are not available at all, mark
15715 the test as unsupported.
15716
15717 * sunrpc/des_crypt.c: Unconditionally block linkage with
15718 cbc_crypt and ecb_crypt for new binaries.
15719 * sunrpc/des_soft.c: Unconditionally block linkage with
15720 des_setparity for new binaries.
15721
15722 * manual/crypt.texi: Remove the entire "DES Encryption"
15723 section. Also remove the paragraph talking about FIPS 140-2
15724 from the introduction.
15725 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15726 of libgcrypt for "real" encryption, not DES.
15727 * manual/conf.texi (Constants for Sysconf): Mention that
15728 _XOPEN_CRYPT is no longer impelemented.
15729
15730 * conform/data/unistd.h-data: Remove crypt function declaration.
15731
15732 2018-06-29 Florian Weimer <fweimer@redhat.com>
15733
15734 [BZ #23351]
15735 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15736 (disallow_malloc_check): Remove variable.
15737 (__malloc_check_init): Adjust.
15738 (malloc_set_state): Update comment.
15739 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15740 declarations.
15741
15742 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15743
15744 [BZ #23140]
15745 * localedata/locales/ast_ES (mon): Rename to...
15746 (alt_mon): This.
15747 (mon): Import from CLDR (genitive case).
15748
15749 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15750 Jakub Sitnicki <jkbs@redhat.com>
15751
15752 [BZ #21812]
15753 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15754 on NLM_F_DUMP_INTR.
15755
15756 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15757
15758 * manual/llio.texi: Remove spurious space.
15759
15760 2018-06-28 Florian Weimer <fweimer@redhat.com>
15761
15762 [BZ #23349]
15763 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15764 _STRUCT_TIMESPEC.
15765
15766 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15767
15768 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15769 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15770 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15771 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15772 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15773 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15774 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15775
15776 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15777
15778 [BZ #23266]
15779 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15780 Copy and null-terminate entries that are not terminated, in
15781 addition to empty ones.
15782
15783 2018-06-27 Florian Weimer <fweimer@redhat.com>
15784
15785 [BZ #18023]
15786 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15787 (extend_alloca_account): Remove.
15788 * manual/stdio.texi (Variable Arguments Output): Update comment.
15789
15790 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15791
15792 * nptl/sockperf.c: Remove file.
15793
15794 2018-06-27 Florian Weimer <fweimer@redhat.com>
15795
15796 [BZ #18023]
15797 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15798 scratch_buffer instead of extend_alloca.
15799
15800 2018-06-27 Florian Weimer <fweimer@redhat.com>
15801
15802 [BZ #18023]
15803 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15804 scratch_buffer instead of extend_alloca. Update comments.
15805
15806 2018-06-27 Florian Weimer <fweimer@redhat.com>
15807
15808 [BZ #18023]
15809 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15810 instead of extend_alloca.
15811
15812 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15813
15814 [BZ #13888]
15815 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15816 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15817 /tmp.
15818 * scripts/test-installation.pl: Put temporary files in build
15819 directory, not /tmp.
15820 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15821 (CFLAGS-bug4.c): Likewise.
15822 (CFLAGS-bug5.c): Likewise.
15823 (CFLAGS-test-fseek.c): Likewise.
15824 (CFLAGS-test-popen.c): Likewise.
15825 (CFLAGS-test_rdwr.c): Likewise.
15826 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15827 /tmp.
15828 * stdio-common/bug4.c (main): Likewise.
15829 * stdio-common/bug5.c (main): Likewise.
15830 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15831 * stdio-common/test-popen.c (do_test): Likewise.
15832 * stdio-common/test_rdwr.c (main): Likewise.
15833
15834 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15835
15836 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15837 (sem_open): Set sem.newsem.pad to zero for valgrind.
15838
15839 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15840
15841 [BZ #20251]
15842 * NEWS: Mention fcntl64 addition.
15843 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15844 * login/utmp_file.c: Likewise.
15845 * sysdeps/posix/fdopendir.c: Likewise.
15846 * sysdeps/posix/opendir.c: Likewise.
15847 * sysdeps/unix/pt-fcntl.c: Likewise.
15848 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15849 __fcntl64_nocancel_adjusted): New prototype.
15850 (__fcntl_nocancel_adjusted): Remove prototype.
15851 * io/Makefile (routines): Add fcntl64.
15852 (CFLAGS-fcntl64.c): New rule.
15853 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15854 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15855 * io/fcntl.h (fcntl64): Add prototype and redirect if
15856 __USE_FILE_OFFSET64 is defined.
15857 * io/fcntl64.c: New file.
15858 * manual/llio.text: Add a note for which commands fcntl acts a
15859 cancellation point.
15860 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15861 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15862 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15863 New symbols.
15864 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15865 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15866 non-LFS case.
15867 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15868 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15869 to __fcntl64_nocancel.
15870 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15871 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15872 to __fcntl64_nocancel.
15873 * sysdeps/generic/not-cancel.h: Likewise.
15874 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15875 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15876 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15877 (fcntl64): New symbol.
15878 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15879 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15880 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15883 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15884 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15885 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15886 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15887 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15888 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15889 fcntl64): Likewise.
15890 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15891 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15892 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15893 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15894 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15895 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15896 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15897 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15898 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15899 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15900 Likewise.
15901 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15902 Likewise.
15903 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15904 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15905 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15906
15907 2018-06-26 Florian Weimer <fweimer@redhat.com>
15908
15909 Run thread shutdown functions in an explicit order.
15910 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15911 definition.
15912 (__libc_thread_freeres): Call thread shutdown functions
15913 explicitly.
15914 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15915 * include/string.h (__strerror_thread_freeres): Declare.
15916 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15917 arena_thread_freeres. No longer static. Remove thread shutdown
15918 hook registration.
15919 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15920 Declare.
15921 * resolv/res-close.c (__res_thread_freeres): Renamed from
15922 res_thread_freeres. No longer static. Remove thread shutdown
15923 hook registration.
15924 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15925 * resolv/resolv_conf.c (freeres): Remove incorrect section
15926 attribute and use libc_freeres_fn.
15927 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15928 strerror_thread_freeres. No longer static. Remove thread
15929 shutdown hook registration.
15930 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15931 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15932 shutdown hook registration.
15933 * Makerules (shlib.lds): Do not provide section boundary symbols
15934 for __libc_thread_subfreeres.
15935 * manual/memory.texi (Basic Allocation): Update comment.
15936
15937 2018-06-26 Florian Weimer <fweimer@redhat.com>
15938
15939 Remove always-defined _RPC_THREAD_SAFE_ macro.
15940 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15941 Do not define _RPC_THREAD_SAFE_.
15942 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15943 conditional.
15944 * sunrpc/clnt_perr.c: Likewise.
15945 * sunrpc/clnt_raw.c: Likewise.
15946 * sunrpc/clnt_simp.c: Likewise.
15947 * sunrpc/key_call.c: Likewise.
15948 * sunrpc/rpc_common.c: Likewise.
15949 * sunrpc/rpc_main.c: Likewise.
15950 * sunrpc/rpc_thread.c: Likewise.
15951 * sunrpc/svc.c: Likewise.
15952 * sunrpc/svc_raw.c: Likewise.
15953 * sunrpc/svc_simple.c: Likewise.
15954 * sumrpc/svcauth_des.c: Likewise.
15955
15956 2018-06-26 Florian Weimer <fweimer@redhat.com>
15957
15958 * libio/Makefile (tests-internal): Add tst-vtables,
15959 tst-vtables-interposed.
15960 * libio/tst-vtables.c: New file.
15961 * libio/tst-vtables-common.c: Likewise.
15962 * libio/tst-vtables-interposed.c: Likewise.
15963
15964 2018-06-26 Florian Weimer <fweimer@redhat.com>
15965
15966 * support/support_test_main.c (support_test_main): Only call
15967 setvbuf if not disables.
15968 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15969 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15970
15971 2018-06-26 Florian Weimer <fweimer@redhat.com>
15972
15973 [BZ #23313]
15974 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15975
15976 2018-06-25 Florian Weimer <fweimer@redhat.com>
15977
15978 [BZ #18023]
15979 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15980 Use struct scratch_buffer instead of extend_alloca.
15981
15982 2018-06-25 Florian Weimer <fweimer@redhat.com>
15983
15984 [BZ #18023]
15985 * nss/getent.c (initgroups_keys): Use dynarray instead of
15986 extend_alloca.
15987
15988 2018-06-25 Florian Weimer <fweimer@redhat.com>
15989
15990 [BZ #18023]
15991 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15992 Use struct scratch_buffer instead of extend_alloca.
15993
15994 2018-06-25 Florian Weimer <fweimer@redhat.com>
15995
15996 [BZ #18023]
15997 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15998 back to malloc directly, without stack allocations.
15999
16000 2018-06-25 Florian Weimer <fweimer@redhat.com>
16001
16002 [BZ #18023]
16003 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
16004 of extend_alloca.
16005
16006 2018-06-25 Florian Weimer <fweimer@redhat.com>
16007
16008 [BZ #18023]
16009 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
16010 of extend_alloca.
16011 * nscd/hstcache.c (addhstbyX): Likewise.
16012 * nscd/pwdcache.c (addpwbyX): Likewise.
16013 * nscd/servicescache.c (addservbyX): Likewise.
16014
16015 2018-06-25 Florian Weimer <fweimer@redhat.com>
16016
16017 [BZ #18023]
16018 * nscd/connections.c (read_cmdline): New function.
16019 (restart): Use it. Update comment.
16020
16021 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
16022
16023 [BZ #23140]
16024 * localedata/locales/csb_PL (mon): Rename to...
16025 (alt_mon): This.
16026 (abmon): Rename to...
16027 (ab_alt_mon): This.
16028 (mon): Add with proper genitive forms, copy from Wikipedia.
16029 (abmon): Likewise.
16030
16031 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
16032
16033 [BZ #19485]
16034 * localedata/locales/csb_PL (mon): Fix typos:
16035 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
16036 (yesstr): Add, value is "jo".
16037 (nostr): Add, value is "nié".
16038
16039 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16040
16041 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
16042 all log1p and significand functions on m680x0.
16043 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
16044 of s_significand.c..
16045 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16046 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16047 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16048 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16049 s_log1p.c and include it..
16050
16051 2018-06-21 Vincent Chen <vincentc@andestech.com>
16052
16053 * elf/elf.h (R_NDS32_NONE): New define.
16054 (R_NDS32_32_RELA): Likewise.
16055 (R_NDS32_COPY): Likewise.
16056 (R_NDS32_GLOB_DAT): Likewise.
16057 (R_NDS32_JUMP_SLOT): Likewise.
16058 (R_NDS32_RELATIVE): Likewise.
16059 (R_NDS32_TLS_TPOFF): Likewise.
16060 (R_NDS32_TLS_DESC): Likewise.
16061
16062 2018-06-21 Mark Wielaard <mark@klomp.org>
16063
16064 * elf/elf.h (R_BPF_MAP_FD): Removed.
16065 (R_BPF_64_64, R_BPF_64_32): New.
16066
16067 2018-06-21 Florian Weimer <fweimer@redhat.com>
16068
16069 [BZ #23253]
16070 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16071 Renamed from libc_feholdsetround_ctx.
16072 (default_libc_feresetround_ctx): Renamed from
16073 libc_feresetround_ctx.
16074 (default_libc_feholdsetround_noex_ctx): Renamed from
16075 libc_feholdsetround_noex_ctx.
16076 (default_libc_feresetround_noex_ctx): Renamed from
16077 libc_feresetround_noex_ctx.
16078 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16079 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16080 forwardning to the old implementations under the new names.
16081 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16082 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16083 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16084 (libc_feresetround_ctx): Forward to default implements for i386
16085 and MATH_SET_BOTH_ROUNDING_MODES.
16086 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16087 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16088
16089 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16090
16091 * string/tst-cmp.c: Include <libc-diag.h>.
16092 (strncmp_max): Disable -Wstringop-overflow= around call to
16093 strncmp.
16094 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16095 strncasecmp.
16096
16097 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16098 (main): Disable -Wunused-value around call to strpbrk.
16099 * string/bug-strspn1.c: Include <libc-diag.h>.
16100 (main): Disable -Wunused-value around call to strspn.
16101
16102 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16103 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16104
16105 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16106 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16107
16108 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16109
16110 * math/Makefile (libm-calls): Move s_significandF to...
16111 (gen-libm-calls): ... here.
16112 * math/s_significand_template.c: New file.
16113 * math/s_significand.c: Removed.
16114 * math/s_significandf.c: Removed.
16115 * math/s_significandl.c: Removed.
16116 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16117 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16118
16119 * math/e_exp2_template.c (declare_mgen_finite_alias,
16120 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16121 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16122 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16123
16124 2018-06-20 Florian Weimer <fweimer@redhat.com>
16125
16126 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16127
16128 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16129
16130 [BZ #23280]
16131 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16132 floating-point number to strtod functions rather than possibly
16133 negating result of those functions.
16134 * stdio-common/tst-scanf-round.c: New file.
16135 * stdio-common/Makefile (tests): Add tst-scanf-round.
16136 ($(objpfx)tst-scanf-round): Depend on $(libm).
16137
16138 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16139
16140 * sysdeps/mach/hurd/localplt.data: Move to...
16141 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16142 R_386_GLOB_DAT like on Linux i386.
16143
16144 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16145
16146 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16147 (SHM_STAT_ANY): New macro.
16148 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16149 (SHM_STAT_ANY): Likewise.
16150 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16151 (SHM_STAT_ANY): Likewise.
16152 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16153 (SHM_STAT_ANY): Likewise.
16154 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16155 (SHM_STAT_ANY): Likewise.
16156 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16157 (SHM_STAT_ANY): Likewise.
16158 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16159 (SHM_STAT_ANY): Likewise.
16160 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16161 (SHM_STAT_ANY): Likewise.
16162 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16163 (SHM_STAT_ANY): Likewise.
16164 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16165 (SHM_STAT_ANY): Likewise.
16166 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16167 (SHM_STAT_ANY): Likewise.
16168 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16169 (SHM_STAT_ANY): Likewise.
16170
16171 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16172 (SEM_STAT_ANY): New macro.
16173 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16174 (SEM_STAT_ANY): Likewise.
16175 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16176 (SEM_STAT_ANY): Likewise.
16177 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16178 (SEM_STAT_ANY): Likewise.
16179 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16180 (SEM_STAT_ANY): Likewise.
16181 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16182 (SEM_STAT_ANY): Likewise.
16183 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16184 (SEM_STAT_ANY): Likewise.
16185 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16186 (SEM_STAT_ANY): Likewise.
16187 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16188 (SEM_STAT_ANY): Likewise.
16189 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16190 (SEM_STAT_ANY): Likewise.
16191
16192 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16193 (MSG_STAT_ANY): New macro.
16194 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16195 (MSG_STAT_ANY): Likewise.
16196 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16197 (MSG_STAT_ANY): Likewise.
16198 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16199 (MSG_STAT_ANY): Likewise.
16200 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16201 (MSG_STAT_ANY): Likewise.
16202 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16203 (MSG_STAT_ANY): Likewise.
16204 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16205 (MSG_STAT_ANY): Likewise.
16206 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16207 (MSG_STAT_ANY): Likewise.
16208 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16209 (MSG_STAT_ANY): Likewise.
16210 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16211 (MSG_STAT_ANY): Likewise.
16212
16213 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16214 (MAP_TYPE): Change value to 0x2b.
16215
16216 2018-06-18 Florian Weimer <fweimer@redhat.com>
16217
16218 [BZ #15722]
16219 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16220 socket with SOCK_CLOEXEC.
16221
16222 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16223
16224 [BZ #23303]
16225 * sysdeps/powerpc/powerpc64/le/Makefile
16226 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16227 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16228 (gnulib-tests): Also add $(f128-loader-link) for
16229 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16230
16231 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16232
16233 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16234 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16235 of sendfile.
16236 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16237 (sendfile64): New strong alias.
16238 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16239 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16240 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16241 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16242 attribute.
16243 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16244 ___pthread_get_cleanup_stack.
16245 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16246 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16247 * mach/shortcut.awk: Make syscall stubs include
16248 <mach-shortcuts-hidden.h> and add hidden definition.
16249 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16250 (__mach_msg): Add hidden prototype.
16251 * mach/msg.c: Include <mach.h>.
16252 (__mach_msg): Add hidden definition.
16253 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16254 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16255 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16256 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16257 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16258 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16259 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16260 prototype and definition.
16261 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16262 hidden target for _hurd_self_sigstate.
16263
16264 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16265
16266 [BZ #23007]
16267 * stdlib/tst-strtod-nan-sign-main.c: New file.
16268 * stdlib/tst-strtod-nan-sign.c: Likewise.
16269 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16270 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16271 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16272 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16273 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16274
16275 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16276
16277 [BZ #23007]
16278 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16279 appropriate sign.
16280
16281 2018-06-14 Florian Weimer <fweimer@redhat.com>
16282
16283 [BZ #23290]
16284 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16285 that the result stays within the ISO-8859-1 range.
16286 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16287 characters are defined in IBM273.
16288
16289 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16290
16291 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16292 __mach_task_self): Remove attribute_hidden.
16293
16294 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16295
16296 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16297 ignore -Wrestrict for one test.
16298
16299 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16300 Szabolcs Nagy <szabolcs.nagy@arm.com>
16301
16302 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16303
16304 2018-06-14 Florian Weimer <fweimer@redhat.com>
16305
16306 * scripts/update-abilist.sh: Accept empty list of files to patch.
16307
16308 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16309
16310 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16311 test-xfail-check-abi-libmachuser): Add.
16312 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16313 __libc_read and __libc_write to __read and __write.
16314 * sysdeps/hurd/include/hurd/port.h: New file.
16315 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16316 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16317 __thread_switch, __evc_wait): Move declarations to...
16318 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16319 attribute_hidden.
16320 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16321 use PLT to call _hurd_self_sigstate.
16322
16323 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16324
16325 [BZ #23279]
16326 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16327 MAX_EXP as overflowing.
16328 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16329 overflow flag.
16330 (round_str): Output also whether result overflows in each rounding
16331 mode.
16332 * stdlib/tst-strtod-round-data: Add more tests.
16333 * stdlib/tst-strtod-round-data.h: Regenerated.
16334 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16335 (TEST): Handle extra arguments for overflow flags.
16336 (struct test_overflow): New type.
16337 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16338 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16339 (test_in_one_mode): Take argument with overflow information.
16340 (do_test): Update calls to test_in_one_mode.
16341
16342 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16343
16344 * elf/dl-load (_dl_dst_substitute): Correct comment.
16345 (_dl_dst_count): Likewise.
16346
16347 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16348 lll_futex_timed_wait.
16349
16350 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16351
16352 [BZ #23277]
16353 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16354 attribute.
16355 * math/test-nan-const.c: New file.
16356 * math/Makefile (tests): Add test-nan-const.
16357 (CFLAGS-test-nan-const.c): New variable.
16358
16359 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16360
16361 * benchtests/scripts/compare_strings.py (process_results): Add
16362 funcs argument. Compare only functions which are selected.
16363 (main): Check if base function is among selected functions.
16364 Pass selected functions to process_results.
16365 (__main__): Add -f/--functions argument.
16366
16367 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16368 Hongbo Zhang <hongbo.zhang@linaro.org>
16369
16370 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16371 __memcpy_falkor for phecda core.
16372 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16373 __memmove_falkor for phecda core.
16374 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16375 __memset_falkor for phecda core.
16376 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16377 for phecda core.
16378 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16379 macro to identify phecda core.
16380
16381 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16382 Andreas Schwab <schwab@suse.de>
16383 Dmitry V. Levin <ldv@altlinux.org>
16384 Florian Weimer <fweimer@redhat.com>
16385
16386 [BZ #23102]
16387 [BZ #21942]
16388 [BZ #18018]
16389 [BZ #23259]
16390 CVE-2011-0536
16391 * elf/dl-dst.h: Remove DL_DST_COUNT.
16392 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16393 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16394 (is_dst): Comment. Support ELF gABI.
16395 (_dl_dst_count): Comment. Simplify and count DSTs.
16396 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16397 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16398 locals.
16399
16400 2018-06-12 Zack Weinberg <zackw@panix.com>
16401
16402 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16403 * sysdeps/unix/sysv/linux/dl-sysdep.c
16404 Include not-cancel.h. Use __close_nocancel instead of __close,
16405 __open64_nocancel instead of __open, __read_nocancel instead of
16406 __libc_read, and __write_nocancel instead of __libc_write.
16407
16408 * csu/check_fds.c (check_one_fd)
16409 * sysdeps/posix/fdopendir.c (__fdopendir)
16410 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16411 instead of __fcntl and/or __libc_fcntl.
16412
16413 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16414 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16415 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16416 Use __open64_nocancel instead of __open_nocancel.
16417
16418 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16419 hidden_proto declarations to the end and issue them if either
16420 IS_IN(libc) or IS_IN(rtld).
16421 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16422 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16423 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16424 read_nocancel, waitpid_nocancel, write_nocancel.
16425
16426 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16427 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16428 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16429
16430 * nptl/pt-fcntl.c: New file.
16431 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16432 (libpthread-routines): Add pt-fcntl.
16433 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16434 (__libc_fcntl): Remove attribute_hidden.
16435 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16436 __fcntl_nocancel_adjusted, not fcntl_common.
16437 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16438 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16439 to fcntl_nocancel.c.
16440 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16443 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16444
16445 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16446 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16447 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16448 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16449 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16450 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16451 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16452 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16453 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16454 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16455 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16456 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16457 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16458 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16459 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16460 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16461 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16462 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16463 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16464 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16465
16466 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16467 libpthread-routines.
16468 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16469 defines nothing.
16470
16471 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16472 __libc_read, and __write instead of __libc_write. Define
16473 __open64 in addition to __open.
16474
16475 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16476
16477 [BZ #23250]
16478 [BZ #10686]
16479 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16480 to _private_tm[3] and add __glibc_reserved2.
16481 Add _Static_assert of offset of __private_ss == 0x30.
16482 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16483 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16484
16485 2018-06-12 Florian Weimer <fweimer@redhat.com>
16486
16487 x86: Make strncmp usable from rtld.
16488 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16489 __strncmp_ia32 if in libc (and not in rtld).
16490 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16491 strncmp if not in libc (and not to __strncmp_sse2).
16492
16493 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16494
16495 [BZ #23140]
16496 * localedata/locales/gd_GB (mon): Rename to...
16497 (alt_mon): This.
16498 (mon): Import from CLDR (genitive case).
16499 * localedata/locales/hsb_DE (mon): Rename to...
16500 (alt_mon): This.
16501 (mon): Import from CLDR (genitive case).
16502 * localedata/locales/wa_BE (mon): Rename to...
16503 (alt_mon): This.
16504 (mon): Add, fill with the proper genitive forms, but CLDR data
16505 is incomplete; completed according to the comments in this file.
16506 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16507
16508 * localedata/locales/wa_BE (country_name): Reword
16509 "Beljike" -> "Beldjike".
16510
16511 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16512
16513 [BZ #23272]
16514 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16515 cases of non-finite arguments.
16516 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16517
16518 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16519
16520 [BZ #23174]
16521 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16522
16523 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16524
16525 [BZ #23264]
16526 * include/unistd.h (__execvpex): New prototype.
16527 * posix/Makefile (tests): Add tst-spawn4.
16528 (tests-internal): Add tst-spawn4-compat.
16529 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16530 * posix/tst-spawn4-compat.c: New file.
16531 * posix/tst-spawn4.c: Likewise.
16532 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16533 binaries as shell scripts.
16534 * sysdeps/posix/spawni.c (__spawni): Likewise.
16535
16536 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16537
16538 [BZ #23145]
16539 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16540 ($(all-built-dso:=.dynsym): New target.
16541 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16542 ($(objpfx)check-initfini.out): New target.
16543 (generated): Add check-initfini.out.
16544 * scripts/check-initfini.awk: New file.
16545 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16546 (_fini): Likewise.
16547 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16548 (_fini): Likewise.
16549 * sysdeps/arm/crti.S (_init): Mark as hidden.
16550 (_fini): Likewise.
16551 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16552 (_fini): Likewise.
16553 * sysdeps/i386/crti.S (_init): Mark as hidden.
16554 (_fini): Likewise.
16555 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16556 (_fini): Likewise.
16557 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16558 (_fini): Likewise.
16559 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16560 (_fini): Likewise.
16561 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16562 (_fini): Likewise.
16563 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16564 (_fini): Likewise.
16565 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16566 (_fini): Likewise.
16567 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16568 (_fini): Likewise.
16569 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16570 (_fini): Likewise.
16571 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16572 (_fini): Likewise.
16573 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16574 (_fini): Likewise.
16575 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16576 (_fini): Likewise.
16577 * sysdeps/sh/crti.S (_init): Mark as hidden.
16578 (_fini): Likewise.
16579 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16580 (_fini): Likewise.
16581 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16582 (_fini): Likewise.
16583
16584 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16585
16586 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16587 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16588 and TF redirection to KFtype and KF only when the default
16589 long double type is not the IEEE 128-bit floating point type.
16590
16591 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16592
16593 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16594 macro.
16595 (HWCAP_USCAT): Likewise.
16596 (HWCAP_ILRCPC): Likewise.
16597 (HWCAP_FLAGM): Likewise.
16598 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16599 Increase to 28.
16600 (_dl_aarch64_cap_flags): Add new flag names.
16601
16602 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16603 (MAP_FIXED_NOREPLACE): New macro.
16604 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16605 (MAP_FIXED_NOREPLACE): Likewise.
16606 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16607 (MAP_FIXED_NOREPLACE): Likewise.
16608 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16609 (MAP_FIXED_NOREPLACE): Likewise.
16610 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16611 (MAP_FIXED_NOREPLACE): Likewise.
16612 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16613 (MAP_FIXED_NOREPLACE): Likewise.
16614 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16615 (MAP_FIXED_NOREPLACE): Likewise.
16616 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16617 (MAP_FIXED_NOREPLACE): Likewise.
16618 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16619 (MAP_FIXED_NOREPLACE): Likewise.
16620 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16621 (MAP_FIXED_NOREPLACE): Likewise.
16622 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16623 (MAP_FIXED_NOREPLACE): Likewise.
16624 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16625 (MAP_FIXED_NOREPLACE): Likewise.
16626 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16627 (MAP_FIXED_NOREPLACE): Likewise.
16628 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16629 (MAP_FIXED_NOREPLACE): Likewise.
16630 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16631 (MAP_FIXED_NOREPLACE): Likewise.
16632
16633 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16634 version to 4.17.
16635
16636 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16637
16638 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16639 version to 4.17
16640
16641 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16642
16643 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16644 int.
16645 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16646
16647 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16648
16649 * benchtests/scripts/compare_string.py: (process_results) Catch
16650 exception in non-existent base_func and catch exception in
16651 non-existent attribute.
16652 (parse_file) Catch exception if input file does not exist.
16653
16654 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16655
16656 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16657 options to avoid diff calculation and omit header, respectively.
16658 (main): process --no-diff and --no-header
16659
16660 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16661 H.J. Lu <hongjiu.lu@intel.com>
16662
16663 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16664 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16665 wcsncmp-sse2.
16666 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16667 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16668 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16669 and __wcsncmp_sse2.
16670 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16671 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16672 AVX unaligned load is fast and vzeroupper is preferred.
16673 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16674 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16675 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16676 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16677 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16678 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16679 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16680 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16681 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16682 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16683 is undefined.
16684
16685 2018-06-01 Florian Weimer <fweimer@redhat.com>
16686
16687 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16688 configuring with --disable-multi-arch, building with
16689 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16690 Haswell-era CPU.
16691
16692 2018-06-01 Florian Weimer <fweimer@redhat.com>
16693
16694 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16695 results from building with “-march=x86-64 -mtune=generic
16696 -mfpmath=sse” and running on a Haswell-era CPU.
16697
16698 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16699
16700 [BZ #18473]
16701 * soft-fp/sqrttf2.c: Remove file.
16702 * soft-fp/sqrtdf2.c: Move to ....
16703 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16704 <shlib-compat.h>.
16705 (__sqrtdf2): Make conditional on
16706 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16707 symbol.
16708 * soft-fp/sqrtsf2.c: Move to ....
16709 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16710 <shlib-compat.h>.
16711 (__sqrtsf2): Make conditional on
16712 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16713 symbol.
16714 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16715 (gcc-double-routines): Remove sqrtdf2.
16716 (gcc-quad-routines): Remove sqrttf2.
16717 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16718 Do not filter out sqrtsf2 and sqrtdf2.
16719 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16720 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16721
16722 2018-06-01 Florian Weimer <fweimer@redhat.com>
16723
16724 * sysdeps/generic/libcidn.abilist: Remove file.
16725
16726 2018-06-01 Florian Weimer <fweimer@redhat.com>
16727
16728 [BZ #23236]
16729 * libio/strfile.h (struct _IO_str_fields): Rename members to
16730 discourage their use and add comment.
16731 (_IO_STR_DYNAMIC): Remove unused macro.
16732 * libio/strops.c (_IO_str_init_static_internal): Do not use
16733 callback pointers. Call malloc and free.
16734 (_IO_str_overflow): Do not use callback pointers. Call malloc
16735 and free.
16736 (enlarge_userbuf): Likewise.
16737 (_IO_str_finish): Call free.
16738 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16739 _allocate_buffer_unused.
16740 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16741 and free.
16742 (enlarge_userbuf): Likewise.
16743 (_IO_wstr_finish): Call free.
16744 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16745 _allocate_buffer_unused, _free_buffer_unused.
16746 * libio/memstream.c (__open_memstream): Likewise.
16747 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16748 * libio/wmemstream.c (open_wmemstream): Likewise.
16749
16750 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16751
16752 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16753 AMD Ryzen 7 1800X.
16754
16755 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16756
16757 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16758 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16759 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16760 New file.
16761 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16762 Likewise.
16763 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16764
16765 2018-05-29 Florian Weimer <fweimer@redhat.com>
16766
16767 * support/Makefile (libsupport-routines): Add
16768 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16769 xpthread_barrierattr_setpshared.
16770 * support/xpthread_barrierattr_destroy.c: New file.
16771 * support/xpthread_barrierattr_init.c: Likewise.
16772 * support/xpthread_barrierattr_setpshared.c: Likewise.
16773
16774 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16775
16776 [BZ #23206]
16777 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16778 _r_debug and update DT_DEBUG for debugger.
16779
16780 2018-05-29 Florian Weimer <fweimer@redhat.com>
16781
16782 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16783 (tst-strtod5i.out): Likewise.
16784
16785 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16786
16787 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16788 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16789 (sparc64-quad-routines): New variable. Moved from ....
16790 [$(subdir) = soft-fp] (sysdep_routines): Add
16791 $(sparc64-quad-routines). Moved from ....
16792 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16793 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16794 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16795 moved from ....
16796 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16797 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16798 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16799 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16800 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16801 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16802 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16803 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16804 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16805 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16806 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16807 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16808 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16809 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16810 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16811 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16812 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16813 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16814 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16815 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16816 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16817 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16818 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16819 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16820 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16821 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16822 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16823 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16824 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16825 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16826 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16827 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16828 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16829 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16830 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16831 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16832 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16833 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16834 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16835 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16836 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16837 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16838 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16839 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16840 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16841 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16842 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16843 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16844 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16845 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16846 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16847 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16848 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16849 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16850 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16851 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16852 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16853 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16854
16855 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16856 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16857 (sparc32-quad-routines): New variable. Moved from ....
16858 [$(subdir) = soft-fp] (sysdep_routines): Add
16859 $(sparc32-quad-routines). Moved from ....
16860 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16861 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16862 moved from ....
16863 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16864 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16865 * sysdeps/sparc/sparc32/q_add.c: ... here.
16866 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16867 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16868 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16869 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16870 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16871 * sysdeps/sparc/sparc32/q_div.c: ... here.
16872 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16873 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16874 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16875 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16876 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16877 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16878 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16879 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16880 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16881 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16882 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16883 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16884 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16885 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16886 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16887 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16888 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16889 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16890 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16891 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16892 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16893 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16894 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16895 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16896 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16897 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16898 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16899 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16900 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16901 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16902 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16903 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16904 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16905 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16906 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16907 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16908 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16909 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16910 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16911 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16912 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16913 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16914 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16915 * sysdeps/sparc/sparc32/q_util.c: ... here.
16916 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16917 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16918 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16919 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16920
16921 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16922 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16923
16924 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16925 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16926 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16927 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16928
16929 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16930
16931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16932 powerpc/soft-fp.
16933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16934 Likewise.
16935 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16936 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16937
16938 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16939
16940 [BZ #23171]
16941 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16942 double version.
16943
16944 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16945
16946 * sysdeps/sh/Implies: Remove sh/soft-fp.
16947 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16948 * sysdeps/sh/sfp-machine.h: ... here.
16949
16950 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16951
16952 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16953 (__mempcpy_erms): Skip zero length.
16954 (__memmove_erms): Likewise.
16955 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16956 (__memset_erms): Likewise.
16957
16958 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16959
16960 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16961 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16962 Add functions moved from ....
16963 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16964 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16965 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16966 from ....
16967 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16968 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16969 * sysdeps/alpha/e_sqrtl.c: ... here.
16970 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16971 * sysdeps/alpha/local-soft-fp.h: ... here.
16972 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16973 * sysdeps/alpha/ots_add.c: ... here.
16974 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16975 * sysdeps/alpha/ots_cmp.c: ... here.
16976 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16977 * sysdeps/alpha/ots_cmpe.c: ... here.
16978 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16979 * sysdeps/alpha/ots_cvtqux.c: ... here.
16980 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16981 * sysdeps/alpha/ots_cvtqx.c: ... here.
16982 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16983 * sysdeps/alpha/ots_cvttx.c: ... here.
16984 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16985 * sysdeps/alpha/ots_cvtxq.c: ... here.
16986 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16987 * sysdeps/alpha/ots_cvtxt.c: ... here.
16988 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16989 * sysdeps/alpha/ots_div.c: ... here.
16990 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16991 * sysdeps/alpha/ots_mul.c: ... here.
16992 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16993 * sysdeps/alpha/ots_nintxq.c: ... here.
16994 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16995 * sysdeps/alpha/ots_sub.c: ... here.
16996 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16997 * sysdeps/alpha/sfp-machine.h: ... here.
16998
16999 2018-05-23 Florian Weimer <fweimer@redhat.com>
17000
17001 [BZ #19728]
17002 [BZ #19729]
17003 [BZ #22247]
17004 CVE-2016-6261
17005 CVE-2016-6263
17006 CVE-2017-14062
17007 Switch to extern IDNA implementation (libidn2).
17008 * libidn: Remove subdirectory.
17009 * LICENSES: Do not mention licensing conditions for the removed
17010 libidn code.
17011 * config.h.in (HAVE_LIBIDN): Remove.
17012 * include/dlfcn.h (__libc_dlopen): Update comment.
17013 * include/idna.h: Remove file.
17014 * inet/Makefile (routines): Add idna.
17015 (tests-static, tests-internal): Add tst-idna_name_classify.
17016 (LOCALES): Generate locales for tests.
17017 (tst-idna_name_classify.out): Depend on generated locales.
17018 * inet/idna_name_classify.c: New file.
17019 * inet/tst-idna_name_classify.c: Likewise.
17020 * inet/net-internal.h (__idna_to_dns_encoding)
17021 (__idna_from_dns_encoding): Declare.
17022 * inet/net-internal.h (enum idna_name_classification): Define.
17023 (__idna_name_classify): Declare.
17024 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
17025 __idna_from_dns_encoding.
17026 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
17027 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
17028 name as a fallback in case of encoding errors.
17029 (getnameinfo): Use DEPRECATED_NI_IDN.
17030 * inet/idna.c: New file.
17031 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
17032 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
17033 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
17034 (modules-names): Add tst-no-libidn2.
17035 (extra-test-objs): Add tst-no-libidn2.os.
17036 (LDFLAGS-tst-no-libidn2.so): Set soname.
17037 (LOCALES): Set, and generate locales.
17038 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
17039 (tst-resolv-ai_idn-latin1): Likewise.
17040 (tst-resolv-ai_idn-nolibidn2): Likewise.
17041 (tst-resolv-ai_idn.out): Depend on locales.
17042 (tst-resolv-ai_idn-latin1.out): Depend on locales.
17043 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
17044 tst-no-libidn2.so.
17045 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17046 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17047 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17048 * resolv/tst-resolv-ai_idn.c: New file.
17049 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17050 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17051 * resolv/tst-no-libidn2.c: Likewise.
17052 * support/support_format_addrinfo.c (format_ai_flags): Do not
17053 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17054 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17055 (gaih_inet): Call __idna_to_dns_encoding and
17056 __idna_from_dns_encoding, and use the original (punycode) name if
17057 __idna_from_dns_encoding fails due to an encoding error.
17058 (getaddrinfo): Use DEPRECATED_AI_IDN.
17059 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17060 * sysdeps/unix/inet/configure: Remove file.
17061 * sysdeps/unix/inet/configure.ac: Likewise.
17062
17063 2018-05-23 Florian Weimer <fweimer@redhat.com>
17064
17065 Implement allocate_once.
17066 * include/allocate_once.h: New file.
17067 * misc/allocate_once.c: Likewise.
17068 * misc/tst-allocate_once.c: Likewise.
17069 * misc/Makefile (routines): Add allocate_once.
17070 (tests-internal): Add tst-allocate_once.
17071 (generated): Add tst-allocate_once.mtrace,
17072 tst-allocate_once-mem.out.
17073 (tests-special): Add tst-allocate_once-mem.out.
17074 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17075 (tst-allocate_once-mem.out): Call mtrace.
17076 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17077
17078 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17079
17080 [BZ #23196]
17081 * string/test-memcpy.c (do_test1): New function.
17082 (test_main): Call it.
17083
17084 2018-05-23 Andreas Schwab <schwab@suse.de>
17085
17086 [BZ #23196]
17087 CVE-2018-11237
17088 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17089 (L(preloop_large)): Save initial destination pointer in %r11 and
17090 use it instead of %rax after the loop.
17091 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17092
17093 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17094
17095 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17096 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17097 -I../soft-fp. Moved from ....
17098 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17099 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17100 * sysdeps/aarch64/e_sqrtl.c: ... here.
17101 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17102 * sysdeps/aarch64/sfp-machine.h: ... here.
17103
17104 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17105 -Wmaybe-uninitialized around access to fq[0].
17106 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17107 Likewise.
17108
17109 [BZ #18471]
17110 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17111 aliases for non-libc case of versioned symbols.
17112 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17113 (llseek): Define as compat symbol if
17114 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17115 with link warning.
17116 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17117 Make into a compat symbol, disabled for minimum symbol version
17118 GLIBC_2.28 and later.
17119 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17120
17121 2018-05-22 Florian Weimer <fweimer@redhat.com>
17122
17123 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17124 not add -mpreferred-stack-boundary=4.
17125 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17126 (stack-align-test-flags): Likewise.
17127 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17128 Likewise.
17129 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17130 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17131 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17132 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17133 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17134 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17135 (CFLAGS-tst-align2.c): Likewise.
17136
17137 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17138
17139 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17140 (index_arch_Prefer_FSRM): Likewise.
17141 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17142 Also check Prefer_FSRM.
17143 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17144 Also return OPTIMIZE (erms) for Prefer_FSRM.
17145
17146 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17147
17148 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17149 (index_cpu_FSRM): Likewise.
17150 (reg_FSRM): Likewise.
17151
17152 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17153
17154 * math/gen-tgmath-tests.py: Import sys.
17155 (Tests.__init__): Initialize macros_seen.
17156 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17157 if requested to do so for this macro.
17158 (Tests.add_all_tests): Take argument for macro for which to
17159 generate tests.
17160 (Tests.check_macro_list): New function.
17161 (main): Handle check-list argument and argument specifying macro
17162 for which to generate tests.
17163 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17164 [PYTHON] (tgmath3-macro-tests): Likewise.
17165 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17166 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17167 not test-tgmath3.c.
17168 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17169 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17170 to CFLAGS.
17171 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17172 [PYTHON] ($(foreach
17173 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17174 rule.
17175 [PYTHON] (tests-special): Add
17176 $(objpfx)test-tgmath3-macro-list.out.
17177 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17178
17179 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17180 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17181 later.
17182
17183 [BZ #22639]
17184 * time/tzset.c (SECSPERDAY): Cast to time_t.
17185 * time/tst-y2039.c: New file.
17186 * time/Makefile (tests): Add tst-y2039.
17187
17188 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17189
17190 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17191 (PREFETCH_ONE_SET): Remove duplicate line.
17192
17193 2018-05-17 Florian Weimer <fweimer@redhat.com>
17194
17195 * sysdeps/generic/math-type-macros-double.h: Include
17196 <math-nan-payload-double.h> after <libm-alias-double.h>.
17197 * sysdeps/generic/math-type-macros-float.h: Include
17198 <math-nan-payload-float.h> after <libm-alias-float.h>.
17199 * sysdeps/generic/math-type-macros-float128.h: Include
17200 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17201 * sysdeps/generic/math-type-macros-ldouble.h: Include
17202 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17203
17204 2018-05-17 Andreas Schwab <schwab@suse.de>
17205
17206 * resolv/res_send.c (__res_context_send): Don't set errno when
17207 returing error after malloc failure.
17208
17209 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17210
17211 * nptl/allocatestack.c (allocate_stack): Remove the
17212 !__ASSUME_PRIVATE_FUTEX paths.
17213 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17214 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17215 Likewise.
17216 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17217 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17218 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17219 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17220 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17221 !__ASSUME_PRIVATE_FUTEX path.
17222 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17223 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17224 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17225 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17226 !__ASSUME_PRIVATE_FUTEX macros.
17227 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17228 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17229 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17230 * sysdeps/unix/sysv/linux/kernel-features.h
17231 (__ASSUME_PRIVATE_FUTEX): Removed.
17232
17233 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17234
17235 * math/Makefile (libm-narrow-fns): Add div.
17236 (libm-test-funcs-narrow): Likewise.
17237 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17238 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17239 * math/gen-auto-libm-tests.c (test_functions): Add div.
17240 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17241 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17242 (NARROW_DIV_TRIVIAL): Likewise.
17243 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17244 macro.
17245 (__ddivl): Likewise.
17246 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17247 ddiv.
17248 (CFLAGS-nldbl-ddiv.c): New variable.
17249 (CFLAGS-nldbl-fdiv.c): Likewise.
17250 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17251 __nldbl_ddivl.
17252 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17253 prototype.
17254 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17255 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17256 * math/auto-libm-test-in: Add tests of div.
17257 * math/auto-libm-test-out-narrow-div: New generated file.
17258 * math/libm-test-narrow-div.inc: New file.
17259 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17260 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17261 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17262 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17263 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17264 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17265 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17266 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17267 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17268 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17269 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17270 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17271 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17272 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17273 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17274 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17275 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17276 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17277 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17278 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17279 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17280 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17281 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17282 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17283 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17284 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17285 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17286 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17287 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17288 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17289 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17290 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17291 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17295 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17296 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17297 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17298 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17299 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17300 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17301 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17302 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17303
17304 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17305
17306 [BZ #23178]
17307 * nscd/nscd-client.h (sendfileall): Remove prototype.
17308 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17309 (handle_request): Use writeall instead of sendfileall.
17310 * nscd/aicache.c (addhstaiX): Likewise.
17311 * nscd/grpcache.c (cache_addgr): Likewise.
17312 * nscd/hstcache.c (cache_addhst): Likewise.
17313 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17314 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17315 * nscd/pwdcache.c (cache_addpw): Likewise.
17316 * nscd/servicescache.c (cache_addserv): Likewise.
17317 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17318 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17319 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17320 Remove define.
17321
17322 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17323
17324 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17325 Include <string/strncat.c>.
17326 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17327 alias.
17328 (__GI___strncat): New hidden alias.
17329
17330 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17331
17332 * sysdeps/mips/mips32/libm-test-ulps: Update.
17333 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17334
17335 2018-05-16 Florian Weimer <fweimer@redhat.com>
17336
17337 * support/Makefile (libsupport-routines): Add support_quote_blob,
17338 support_test_compare_blob.
17339 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17340 * support/check.h (TEST_COMPARE_BLOB): Define.
17341 (support_test_compare_blob): Declare.
17342 * support/support.h (support_quote_blob): Declare.
17343 * support/support_quote_blob.c: New file.
17344 * support/support_test_compare_blob.c: Likewise.
17345 * support/tst-support_quote_blob.c: Likewise.
17346 * support/tst-test_compare_blob.c: Likewise.
17347
17348 2018-05-16 Florian Weimer <fweimer@redhat.com>
17349
17350 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17351 of <strtod_nan_double.h>.
17352 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17353 instead of SET_MANTISSA.
17354 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17355 of include <strtod_nan_float.h>.
17356 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17357 instead of <strtod_nan_ldouble.h>.
17358 * stdlib/strtod_nan_double.h: Move to ...
17359 * sysdeps/generic/math-nan-payload-double.h: ... here.
17360 (FLOAT): Remove definition.
17361 (SET_MANTISSA): Rename to ...
17362 (SET_NAN_PAYLOAD): ... this.
17363 * stdlib/strtod_nan_float.h: Move to ...
17364 * sysdeps/generic/math-nan-payload-float.h: ... here.
17365 (FLOAT): Remove definition.
17366 (SET_MANTISSA): Rename to ...
17367 (SET_NAN_PAYLOAD): ... this.
17368 * sysdeps/generic/math-type-macros-double.h: Include
17369 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17370 instead of <math-svid-compat.h>.
17371 * sysdeps/generic/math-type-macros-float.h: Include
17372 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17373 instead of <math-svid-compat.h>.
17374 * sysdeps/generic/math-type-macros-float128.h: Include
17375 <math-nan-payload-float128.h>.
17376 * sysdeps/generic/math-type-macros-ldouble.h: Include
17377 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17378 instead of <math-svid-compat.h>.
17379 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17380 check for definition.
17381 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17382 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17383 Include <ieee754_float128.h>.
17384 (FLOAT): Remove definition.
17385 (SET_MANTISSA): Rename to ...
17386 (SET_NAN_PAYLOAD): ... this.
17387 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17388 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17389 Do not include <float128_private.h>.
17390 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17391 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17392 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17393 (FLOAT): Remove definition.
17394 (SET_MANTISSA): Rename to ...
17395 (SET_NAN_PAYLOAD): ... this.
17396 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17397 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17398 (FLOAT): Remove definition.
17399 (SET_MANTISSA): Rename to ...
17400 (SET_NAN_PAYLOAD): ... this.
17401 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17402 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17403 (FLOAT): Remove definition.
17404 (SET_MANTISSA): Rename to ...
17405 (SET_NAN_PAYLOAD): ... this.
17406 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17407 of "../stdlib/strtod_nan_double.h".
17408 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17409 of "../stdlib/strtod_nan_float.h".
17410 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17411 instead of "../stdlib/strtod_nan_ldouble.h".
17412 * manual/arith.texi (Parsing of Floats): Adjust comment.
17413
17414 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17415
17416 * math/Makefile (libm-narrow-fns): Add mul.
17417 (libm-test-funcs-narrow): Likewise.
17418 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17419 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17420 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17421 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17422 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17423 (NARROW_MUL_TRIVIAL): Likewise.
17424 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17425 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17426 macro.
17427 (__dmull): Likewise.
17428 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17429 dmul.
17430 (CFLAGS-nldbl-dmul.c): New variable.
17431 (CFLAGS-nldbl-fmul.c): Likewise.
17432 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17433 __nldbl_dmull.
17434 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17435 prototype.
17436 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17437 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17438 * math/auto-libm-test-in: Add tests of mul.
17439 * math/auto-libm-test-out-narrow-mul: New generated file.
17440 * math/libm-test-narrow-mul.inc: New file.
17441 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17442 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17443 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17444 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17445 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17446 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17447 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17448 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17449 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17450 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17451 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17452 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17453 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17454 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17455 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17456 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17457 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17458 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17459 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17460 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17461 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17462 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17463 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17464 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17465 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17466 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17467 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17468 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17469 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17470 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17471 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17472 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17477 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17478 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17479 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17480 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17481 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17482 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17483 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17484 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17485
17486 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17487
17488 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17489 with *%eax in call.
17490
17491 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17492
17493 * sysdeps/i386/ldsodefs.h: Removed.
17494 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17495 * sysdeps/x86/ldsodefs.h: This.
17496 (La_i86_regs): New.
17497 (La_i86_retval): Likewise.
17498 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17499 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17500
17501 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17502
17503 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17504 unnecessary testl.
17505
17506 2018-05-13 Alan Modra <amodra@gmail.com>
17507
17508 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17509 R_PARISC_TLS_DTPOFF32 reloc addend.
17510
17511 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17512
17513 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17514 * math/math.h: Restrict the prototype definition for the functions
17515 issignaling(_Float128) and iszero(_Float128); and template
17516 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17517 __HAVE_FLOAT128_UNLIKE_LDBL.
17518 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17519 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17520 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17521 __f128() constants; define the type _Float128 as long double;
17522 and reuse long double in __CFLOAT128.
17523
17524 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17525
17526 * sysdeps/generic/math_private.h: Do not include
17527 <math-barriers.h>.
17528 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17529 <math_private.h>.
17530 * math/fromfp.h: Include <math-barriers.h>.
17531 * math/math-narrow.h: Likewise.
17532 * math/s_nextafter.c: Likewise.
17533 * math/s_nexttowardf.c: Likewise.
17534 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17535 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17536 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17537 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17538 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17539 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17540 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17541 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17542 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17543 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17544 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17545 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17546 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17547 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17548 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17549 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17550 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17551 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17552 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17553 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17554 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17555 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17556 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17557 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17558 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17559 * sysdeps/ieee754/k_standardl.c: Likewise.
17560 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17561 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17562 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17563 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17564 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17565 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17566 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17567 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17568 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17569 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17570 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17571 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17572 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17573 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17574 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17575 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17576 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17577 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17578 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17579 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17580 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17581 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17582
17583 2018-05-11 Florian Weimer <fweimer@redhat.com>
17584
17585 Use 64-bit epoch values in the time zone file parser.
17586 * include/time.h (internal_time_t): Define.
17587 (__tzfile_compute): Use it.
17588 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17589 member.
17590 (transitions): Switch to internal_time_t.
17591 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17592 types.
17593 (__tzfile_compute): Use internal_time_t for timer argument. Check
17594 for truncation before calling __offtime.
17595
17596 2018-05-11 Florian Weimer <fweimer@redhat.com>
17597
17598 [BZ #23166]
17599 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17600 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17601 Likewise.
17602 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17603 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17604 export without --enable-obsolete-rpc.
17605 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17606 symbol. This should not have been exported, ever.
17607
17608 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17609
17610 [BZ #23152]
17611 * localedata/locales/gd_GB (abmon): Fix typo in May:
17612 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17613
17614 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17615
17616 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17617 Use multiple registers to copy data in loop tail.
17618
17619 * sysdeps/aarch64/multiarch/memmove_falkor.S
17620 (__memmove_falkor): Use multiple registers to move data in
17621 loop tail.
17622
17623 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17624
17625 * math/math-underflow.h: New file.
17626 * sysdeps/generic/math_private.h: Do not include <float.h>.
17627 (fabs_tg): Remove macro. Moved to math-underflow.h.
17628 (min_of_type_f): Likewise.
17629 (min_of_type_): Likewise.
17630 (min_of_type_l): Likewise.
17631 (min_of_type_f128): Likewise.
17632 (min_of_type): Likewise.
17633 (math_check_force_underflow): Likewise.
17634 (math_check_force_underflow_nonneg): Likewise.
17635 (math_check_force_underflow_complex): Likewise.
17636 * math/e_exp2_template.c: Include <math-underflow.h>.
17637 * math/k_casinh_template.c: Likewise.
17638 * math/s_catan_template.c: Likewise.
17639 * math/s_catanh_template.c: Likewise.
17640 * math/s_ccosh_template.c: Likewise.
17641 * math/s_cexp_template.c: Likewise.
17642 * math/s_clog10_template.c: Likewise.
17643 * math/s_clog_template.c: Likewise.
17644 * math/s_csin_template.c: Likewise.
17645 * math/s_csinh_template.c: Likewise.
17646 * math/s_csqrt_template.c: Likewise.
17647 * math/s_ctan_template.c: Likewise.
17648 * math/s_ctanh_template.c: Likewise.
17649 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17650 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17651 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17652 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17653 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17654 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17655 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17656 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17657 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17658 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17659 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17660 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17661 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17662 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17663 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17664 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17665 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17666 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17667 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17668 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17669 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17670 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17671 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17672 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17673 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17674 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17675 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17676 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17677 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17678 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17679 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17680 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17681 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17682 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17683 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17684 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17685 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17686 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17687 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17688 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17689 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17690 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17691 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17692 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17693 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17694 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17695 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17696 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17697 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17698 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17699 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17700 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17701 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17702 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17703 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17704 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17705 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17706 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17707 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17708 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17709 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17710 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17711 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17712 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17713 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17714 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17715 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17716 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17717 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17718 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17719 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17720 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17721 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17722 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17723 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17724 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17725 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17726 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17727 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17728 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17729 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17730 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17731 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17732 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17733
17734 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17735
17736 * sysdeps/generic/math-barriers.h: New file.
17737 * sysdeps/generic/math_private.h [!math_opt_barrier]
17738 (math_opt_barrier): Move to math-barriers.h.
17739 [!math_opt_barrier] (math_force_eval): Likewise.
17740 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17741 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17742 math-barriers.h.
17743 (math_force_eval): Likewise.
17744 * sysdeps/alpha/fpu/math-barriers.h: New file.
17745 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17746 math-barriers.h.
17747 (math_force_eval): Likewise.
17748 * sysdeps/x86/fpu/math-barriers.h: New file.
17749 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17750 math-barriers.h.
17751 (math_force_eval): Likewise.
17752 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17753 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17754 multiple-include guard for rename.
17755 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17756 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17757 math-barriers.h.
17758 (math_force_eval): Likewise.
17759
17760 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17761
17762 [BZ #22786]
17763 CVE-2018-11236
17764 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17765 computation.
17766 * stdlib/Makefile (test-bz22786): New test.
17767 * stdlib/test-bz22786.c: New test.
17768
17769 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17770
17771 * include/math-narrow-eval.h: New file. Contents moved from ....
17772 * sysdeps/generic/math_private.h: ... here.
17773 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17774 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17775 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17776 * stdlib/strtod_l.c: Likewise.
17777 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17778 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17779 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17780 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17781 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17782 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17783 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17784 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17785 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17786 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17787 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17788 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17789 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17790 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17791 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17792 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17793 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17794 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17795 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17796 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17797 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17798 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17799 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17800 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17801 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17802 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17803 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17804 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17805 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17806
17807 2018-05-08 Andreas Schwab <schwab@suse.de>
17808
17809 * sysdeps/nptl/internaltypes.h: Fix comment.
17810
17811 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17812
17813 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17814 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17815 hidden.
17816
17817 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17818
17819 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17820 of I into loop header.
17821 * benchtests/bench-memmove-walk.c
17822 (test_main): Likewise.
17823
17824 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17825
17826 Revert:
17827 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17828 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17829
17830 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17831
17832 [BZ #20419]
17833 * elf/dl-load.c (open_verify): Fix stack overflow.
17834 * elf/Makefile (tst-big-note): New test.
17835 * elf/tst-big-note-lib.S: New.
17836 * elf/tst-big-note.c: New.
17837
17838 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17839
17840 * scripts/abilist.awk: Ignore absolute symbols.
17841 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17842 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17843 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17844 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17845 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17846 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17847 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17848 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17849 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17850 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17851 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17852 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17853 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17860 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17861 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17872 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17873 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17874 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17875 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17876 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17878 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17879 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17880 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17881 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17882 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17883 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17884 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17885 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17886 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17887 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17889 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17890 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17891 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17892 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17895 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17902 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17903 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17911 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17912 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17915 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17916 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17923 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17924 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17925 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17926 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17929 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17933 Likewise.
17934 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17943 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17947 Likewise.
17948 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17960 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17961 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17964 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17965 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17967 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17968 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17970 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17971 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17972 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17973 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17974 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17975 Likewise.
17976 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17977 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17978 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17979 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17980 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17981 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17982 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17983 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17984 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17992 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17995 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17996 Likewise.
17997 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17998 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17999 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
18000 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18001 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
18003 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
18005 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
18006 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
18007 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18008 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
18009 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18011 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
18012 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
18013 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
18014 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
18015 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18016 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
18017 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
18018 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18019 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
18020 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
18021 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
18022 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
18025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
18026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
18028 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
18029 Likewise.
18030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
18033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
18034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
18035 Likewise.
18036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
18037 Likewise.
18038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
18040 Likewise.
18041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
18042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18043 Likewise.
18044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18045 Likewise.
18046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18049 Likewise.
18050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18051 Likewise.
18052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18053 Likewise.
18054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18057 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18058 Likewise.
18059 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18061 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18063 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18065 Likewise.
18066 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18068 Likewise.
18069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18070 Likewise.
18071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18072 Likewise.
18073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18074 Likewise.
18075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18076 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18078 Likewise.
18079 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18080 Likewise.
18081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18082 Likewise.
18083 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18084 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18085 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18086 Likewise.
18087 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18088 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18089 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18090 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18091 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18092 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18093 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18094 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18095 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18096 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18097 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18098 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18099 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18100 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18101 Likewise.
18102 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18103 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18104 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18105 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18106 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18107 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18108 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18109 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18110 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18111 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18112 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18113 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18114 Likewise.
18115 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18116 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18117 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18120 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18121 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18122 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18123 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18124 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18125 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18126 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18127 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18128 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18129 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18130 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18131 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18132 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18133 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18134 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18135 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18136 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18137 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18138 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18139 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18140 Likewise.
18141 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18142 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18143 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18144 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18145 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18146 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18147 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18148 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18149 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18150 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18151 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18152 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18153 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18154 Likewise.
18155 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18156 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18157 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18158 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18159 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18160 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18161 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18162 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18163 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18164 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18165 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18166 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18167 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18168 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18169 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18170 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18171 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18172 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18173 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18174 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18175 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18176 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18177 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18178 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18179 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18180 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18181 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18182 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18183 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18184 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18185 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18186 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18187 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18188 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18189 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18190 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18191 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18192 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18193
18194 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18195
18196 [BZ #23137]
18197 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18198 Use atomic_load_acquire to load __tid.
18199
18200 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18201
18202 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18203 Restore the pointer into %rdx, after syscall and use %rdx,
18204 instead of %rsi, to restore context.
18205
18206 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18207
18208 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18209 Pop the pointer into %rdx after syscall and use %rdx, instead
18210 of %rsi, to restore context.
18211
18212 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18213
18214 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18215 handlers after setjmp.
18216 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18217 defined.
18218 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18219 <libc-pointer-arith.h>.
18220 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18221 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18222 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18223 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18224 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18225 * sysdeps/x86/__longjmp_cancel.S: New file.
18226 * sysdeps/x86/longjmp.c: Likewise.
18227 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18228
18229 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18230
18231 * NEWS: Add ustat.h deprecation entry.
18232 * bits/ustat.h: Remove file.
18233 * misc/sys/ustat.h: Likewise.
18234 * misc/ustat.h: Likewise.
18235 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18236 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18237 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18238 compatibility mode.
18239 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18240 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18241 generic Linux implementation.
18242
18243 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18244
18245 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18246 * math/w_expl_compat.c: Likewise.
18247 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18248
18249 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18250
18251 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18252
18253 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18254
18255 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18256 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18257 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18258 Remove.
18259 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18261 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18262 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18263 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18264 and SYSCALL_LL64.
18265
18266 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18267
18268 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18269
18270 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18271 * math/w_asin_template.c: Likewise.
18272 * math/w_atanh_template.c: Likewise.
18273
18274 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18275
18276 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18277 to powerpc/powerpc64/be for big-endian.
18278 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18279 little-endian.
18280
18281 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18282 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18283 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18284 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18285 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18286 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18287 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18288 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18289 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18290 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18291 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18292 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18293 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18294 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18295 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18296 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18297 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18298 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18299 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18300 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18301 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18302 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18303 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18304 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18305 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18306 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18307 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18308 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18309 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18310 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18311 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18312 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18313
18314 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18315 adjusted to imply powerpc64 and older processors on powerpc64/be.
18316 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18317 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18318 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18319 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18320 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18321 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18322 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18323 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18324 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18325 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18326 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18327 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18328 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18329 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18330 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18331 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18332 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18333 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18334 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18335 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18336 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18337 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18338 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18339 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18340 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18341 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18342 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18343 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18344 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18345 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18346 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18347
18348 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18349 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18350 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18351 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18352
18353 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18354 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18355 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18356 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18357
18358 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18359 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18360 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18361 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18362 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18363 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18364 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18365 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18366 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18367 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18368 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18369
18370 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18371 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18372 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18373 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18374 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18375 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18376 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18377 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18378 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18379 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18380 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18381
18382 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18383 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18384 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18385 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18386 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18387 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18388 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18389 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18390 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18391 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18392 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18393 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18394
18395 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18396 and adjusted to imply olders processors.
18397 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18398 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18399 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18400 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18401 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18402 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18403 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18404 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18405 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18406 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18407 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18408
18409 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18410 powerpc64/le.
18411 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18412 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18413
18414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18415 powerpc64le.
18416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18418
18419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18420 powerpc64/be.
18421 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18424
18425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18426 powerpc64 and adjusted.
18427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18430 Likewise.
18431
18432 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18433
18434 * sysdeps/tile: Remove.
18435 * sysdeps/unix/sysv/linux/tile: Likewise.
18436 * README (tilegx-*-linux-gnu): Remove from list of supported
18437 configurations.
18438 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18439 contribution of support for generic Linux kernel syscall
18440 interface.
18441 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18442 tilegx configurations.
18443 (Config.install_linux_headers): Do not handle tile.
18444 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18445 in comment.
18446 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18447 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18448 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18449 conditional undefine and redefine.
18450 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18451 in comment.
18452 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18453 conditional undefine and redefine.
18454
18455 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18456
18457 * signal/tst-sigaction.c: New file to test BZ #23069.
18458 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18459
18460 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18461
18462 [BZ #22766]
18463 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18464 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18465 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18466 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18467
18468 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18469
18470 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18471 _DIRENT_MATCHES_DIRENT64 is not defined.
18472 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18473 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18474 is defined.
18475 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18476 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18477
18478 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18479
18480 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18481 version to GCC 8 branch.
18482
18483 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18484
18485 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18486 (check_no_hidden): Use type of original function when declaring
18487 alias.
18488
18489 * sysdeps/unix/sysv/linux/sys/ptrace.h
18490 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18491 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18492 (struct __ptrace_seccomp_metadata): New type.
18493 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18494 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18495 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18496 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18497 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18498 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18499 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18500 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18501 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18502 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18503 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18504 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18505 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18506 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18507 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18508 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18509
18510 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18511
18512 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18513 defined.
18514 * dirent/versionsort.c (versionsort): Likewise.
18515 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18516 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18517 * dirent/versionsort64.c (versionsort64): Likewise.
18518 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18519 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18520 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18521 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18522 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18523 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18524 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18525 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18526 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18527 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18530 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18531 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18532
18533 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18534
18535 * elf/elf.h (NT_PPC_PKEY): New macro.
18536
18537 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18538
18539 [BZ #23094]
18540 * localedata/locales/hr_HR: fix thousands_sep and
18541 mon_thousands_sep
18542
18543 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18544
18545 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18546 (XTABS): Define to TAB3.
18547
18548 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18549
18550 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18551
18552 * dirent/scandir-tail-common.c: New file.
18553 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18554 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18555 * dirent/scandir.c: Use scandir-tail-common.c.
18556 * dirent/scandirat.c: Likewise.
18557 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18558 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18559 if _DIRENT_MATCHES_DIRENT64 is defined.
18560 * dirent/scandirat64.c (scandirat64): Likewise.
18561 * include/dirent.h (__scandir_tail): Only define iff
18562 _DIRENT_MATCHES_DIRENT64 is not defined.
18563 (__scandir64_tail): Define regardless.
18564 (__scandirat, scandirat64): Remove libc_hidden_proto.
18565 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18566 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18568 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18569 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18570 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18571 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18572
18573 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18574
18575 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18576 New macro.
18577 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18578 Increase to 24.
18579 (_dl_aarch64_cap_flags): Add asimdfhm.
18580
18581 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18582
18583 * sysdeps/nios2/libm-test-ulps: Update.
18584
18585 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18586
18587 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18588 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18589
18590 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18591 requirements.
18592 (_DIRENT_MATCHES_DIRENT64): Undef
18593 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18594 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18595 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18596 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18597 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18598 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18599 use getdents64 syscalls as base.
18600 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18601 symbol if required.
18602 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18603 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18604 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18605 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18606 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18607 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18608 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18609 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18610 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18611 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18612 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18613
18614 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18615
18616 * scripts/test_printers_common.py (init_test): Disable lock elision.
18617
18618 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18619
18620 * math/test-tgmath.c (count_double, count_float,
18621 count_ldouble, count_cdouble, count_cfloat,
18622 count_cldouble): Use volatile int.
18623
18624 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18625
18626 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18627 (conformtest-xfail-conds): Add i386-gnu.
18628 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18629 i386-gnu.
18630 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18631 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18632 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18633 msqid_ds.msg_lrpid): Likewise.
18634 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18635 Likewise.
18636 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18637 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18638 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18639 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18640 unsigned int.
18641 (struct statvfs64): Likewise.
18642 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18643 Likewise.
18644 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18645 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18646 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18647 instead of wait_queue.
18648 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18649 instead of vm_area_struct.
18650 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18651 struct sched_param definition to it.
18652 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18653 * bits/types/struct_sched_param.h: New file.
18654 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18655 <bits/types/struct_sched_param.h> instead of <sched.h>.
18656 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18657 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18658 generic version but include <bits/pthreadtypes.h> to make struct
18659 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18660 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18661 non-compliant.
18662 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18663 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18664 [__USE_XOPEN] (OFDEL): New macro.
18665 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18666 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18667 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18668 prototypes.
18669 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18670 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18671 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18672 non-compliant.
18673 * sysdeps/i386/sys/ucontext.h: Likewise.
18674 * sysdeps/m68k/sys/ucontext.h: Likewise.
18675 * sysdeps/mips/sys/ucontext.h: Likewise.
18676 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18677 * sysdeps/mach/hurd/i386/Makefile
18678 (test-xfail-POSIX/fcntl.h/conform): Add.
18679 (test-xfail-POSIX/signal.h/conform): Add.
18680 (test-xfail-POSIX/semaphore.h/conform): Add.
18681 (test-xfail-POSIX/regex.h/conform): Add.
18682 (test-xfail-POSIX/aio.h/conform): Add.
18683 (test-xfail-POSIX/mqueue.h/conform): Add.
18684 (test-xfail-POSIX/sys/types.h/conform): Add.
18685 (test-xfail-UNIX98/fcntl.h/conform): Add.
18686 (test-xfail-UNIX98/netdb.h/conform): Add.
18687 (test-xfail-UNIX98/signal.h/conform): Add.
18688 (test-xfail-UNIX98/semaphore.h/conform): Add.
18689 (test-xfail-UNIX98/regex.h/conform): Add.
18690 (test-xfail-UNIX98/aio.h/conform): Add.
18691 (test-xfail-UNIX98/ftw.h/conform): Add.
18692 (test-xfail-UNIX98/mqueue.h/conform): Add.
18693 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18694 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18695 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18696 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18697 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18698 (test-xfail-UNIX98/sys/types.h/conform): Add.
18699 (test-xfail-UNIX98/stdlib.h/conform): Add.
18700 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18701 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18702 (test-xfail-POSIX2008/netdb.h/conform): Add.
18703 (test-xfail-POSIX2008/signal.h/conform): Add.
18704 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18705 (test-xfail-POSIX2008/regex.h/conform): Add.
18706 (test-xfail-POSIX2008/aio.h/conform): Add.
18707 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18708 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18709 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18710 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18711 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18712 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18713 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18714 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18715 (test-xfail-XOPEN2K/signal.h/conform): Add.
18716 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18717 (test-xfail-XOPEN2K/regex.h/conform): Add.
18718 (test-xfail-XOPEN2K/aio.h/conform): Add.
18719 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18720 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18721 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18722 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18723 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18724 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18725 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18726 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18727 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18728 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18729 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18730 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18731 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18732 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18733 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18734 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18735 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18736 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18737 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18738 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18739 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18740 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18741 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18742 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18743 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18744 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18745 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18746 i386-gnu.
18747 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18748 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18749
18750 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18751
18752 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18753 --enable-obsolete for powerpc-linux-gnuspe.
18754
18755 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18756
18757 * conform/data/sys/un.h-data: Allow sun_ prefix.
18758 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18759 prototypes.
18760 * sysdeps/mach/include/mach.h: Likewise.
18761 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18762 * sysdeps/mach/include/mach_error.h: Likewise.
18763
18764 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18765
18766 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18767 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18768 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18769 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18770
18771 2018-04-16 Andreas Schwab <schwab@suse.de>
18772
18773 [BZ #19527]
18774 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18775
18776 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18777
18778 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18779 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18780
18781 2018-04-12 DJ Delorie <dj@redhat.com>
18782
18783 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18784 version to 4.16.
18785
18786 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18787
18788 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18789 (struct kernel_sigaction): Use the same definition on 31bit as is used
18790 on 64bit.
18791
18792 2018-04-09 Florian Weimer <fweimer@redhat.com>
18793
18794 [BZ #23037]
18795 * resolv/res_send.c (send_dg): Use designated initializers instead
18796 of assignment to zero-initialize other fields of struct mmsghdr.
18797
18798 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18799
18800 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18801 __READDIR_ALIAS): Undefine after usage.
18802 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18803 __READDIR_R_ALIAS): Likewise.
18804 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18805 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18806 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18807 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18808 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18809 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18810 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18811 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18812 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18813 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18814 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18815 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18816 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18817 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18818 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18819 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18820 * sysdeps/unix/sysv/linux/readdir.c: New file.
18821 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18822 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18823 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18824
18825 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18826
18827 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18828
18829 * manual/charset.texi (Converting a Character): Fix typo.
18830
18831 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18832
18833 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18834
18835 * sysdeps/arm/libm-test-ulps: Update.
18836
18837 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18838 as base implementation.
18839 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18840 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18841 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18842 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18843 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18844 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18845 remove unrequired definitions and update comments.
18846 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18847 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18848 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18849 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18850 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18851 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18852 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18853 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18854 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18855 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18856 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18857 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18858 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18859 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18860 and RESET_SA_RESTORER hooks.
18861
18862 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18863
18864 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18865
18866 2018-04-05 Florian Weimer <fweimer@redhat.com>
18867
18868 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18869 integer overflow, memory leak on error, and indeterminate errno
18870 value. Add a null wide character to terminate the result string.
18871 * manual/charset.texi (Converting a Character): Mention embedded
18872 null bytes in the mbrtowc input string. Explain what happens in
18873 the -2 result case. Do not claim that mbrtowc is simple or
18874 obvious to use. Adjust the description of the code example. Use
18875 @code, not @var, for concrete variables.
18876
18877 2018-04-05 Florian Weimer <fweimer@redhat.com>
18878
18879 * manual/examples/mbstouwcs.c: New file.
18880 * manual/charset.texi (Converting a Character): Include it.
18881
18882 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18883
18884 * include/dirent.h (dirfd): Add hidden proto.
18885 * dirent/dirfd.c (dirfd): Add hidden def.
18886 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18887 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18888
18889 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18890
18891 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18892 sin, cos and sincos to 1 ULP.
18893
18894 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18895
18896 [BZ #19818]
18897 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18898 symbols.
18899 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18900 * elf/tst-absolute-sym.c: New file.
18901 * elf/tst-absolute-sym-lib.c: New file.
18902 * elf/tst-absolute-sym-lib.lds: New file.
18903 * elf/Makefile (tests): Add `tst-absolute-sym'.
18904 (modules-names): Add `tst-absolute-sym-lib'.
18905 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18906 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18907 ($(objpfx)tst-absolute-sym): New dependency.
18908
18909 [BZ #19818]
18910 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18911 parameter.
18912 (SYMBOL_ADDRESS): New macro.
18913 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18914 SYMBOL_ADDRESS for symbol address calculation.
18915 * elf/dl-runtime.c (_dl_fixup): Likewise.
18916 (_dl_profile_fixup): Likewise.
18917 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18918 * elf/rtld.c (dl_main): Likewise.
18919 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18920 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18921 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18922 (elf_machine_rela): Likewise.
18923 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18924 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18925 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18926 (elf_machine_rela): Likewise.
18927 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18928 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18929 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18930 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18931 Likewise.
18932 (elf_machine_reloc): Likewise.
18933 (elf_machine_got_rel): Likewise.
18934 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18935 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18936 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18937 Likewise.
18938 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18939 Likewise.
18940 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18941 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18942 Likewise.
18943 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18944 Likewise.
18945 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18946 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18947 Likewise.
18948 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18949 Likewise.
18950 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18951 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18952
18953 2018-04-04 Zack Weinberg <zackw@panix.com>
18954
18955 * sysdeps/generic/internal-signals.h: Include signal.h,
18956 sigsetops.h, and stdbool.h.
18957 (__libc_signal_block_all): Actually block all signals.
18958 (__libc_signal_block_app): Likewise.
18959 (__libc_signal_restore_set): Actually restore the signal mask.
18960
18961 2018-04-04 Florian Weimer <fweimer@redhat.com>
18962
18963 inet: Actually build and run tst-deadline.
18964 * inet/Makefile (tests-internal): Add tst-deadline and do not
18965 overwrite the variable.
18966 (tests-static-internal): Remove variable.
18967
18968 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18969
18970 [BZ #22947]
18971 * bits/uio-ext.h (RWF_APPEND): New.
18972 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18973 * manual/llio.texi: Document RWF_APPEND.
18974 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18975 (RWF_SUPPORTED): Add RWF_APPEND.
18976
18977 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18978
18979 [BZ #22391]
18980 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18981 check for internal nptl signals.
18982 * nptl/sigaction.c (__sigaction): Likewise.
18983 * signal/sigaddset.c (sigaddset): Likewise.
18984 * signal/sigdelset.c (sigdelset): Likewise.
18985 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18986 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18987 value.
18988 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18989 to filter out internal nptl signals.
18990 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18991 also check realtime signals using standard macros.
18992 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18993 __is_internal_signal, __libc_signal_block_all,
18994 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18995 * sysdeps/nptl/sigfillset.c: Remove file.
18996 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18997 Change return to bool.
18998 (__clear_internal_signals): Remove SIGTIMER clean since it is
18999 equal to SIGCANEL on Linux.
19000 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
19001 signal set was constructed using standard functions.
19002
19003 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19004
19005 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
19006 ifname is too long.
19007 * hurd/hurdsig.c (interrupted_reply_port_location): Use
19008 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
19009 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
19010 hidden def.
19011 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
19012 * signal/sigaddset.c: Include <sigsetopts.h>.
19013 * signal/sigdelset.c: Likewise.
19014
19015 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19016
19017 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
19018 (__cos): Likewise.
19019 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
19020 logic as sin and cos.
19021
19022 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19023
19024 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
19025 inputs. Return correct sign.
19026 (do_sincos): Remove small input check before do_sin, let do_sin set
19027 the sign.
19028 (__sin): Likewise.
19029 (__cos): Likewise.
19030
19031 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19032
19033 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
19034 (do_cos_slow): Likewise.
19035 (do_sin_slow): Likewise.
19036 (reduce_and_compute): Likewise.
19037 (slow): Likewise.
19038 (slow1): Likewise.
19039 (slow2): Likewise.
19040 (sloww): Likewise.
19041 (sloww1): Likewise.
19042 (sloww2): Likewise.
19043 (bslow): Likewise.
19044 (bslow1): Likewise.
19045 (bslow2): Likewise.
19046 (cslow2): Likewise.
19047
19048 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19049
19050 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19051 (do_cos): Remove corp parameter and calculations.
19052 (do_sin): Likewise.
19053 (do_sincos): Remove cor variable.
19054 (__sin): Use do_sincos for huge inputs.
19055 (__cos): Likewise.
19056 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19057 (reduce_and_compute_sincos): Remove unused function.
19058
19059 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19060
19061 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19062 reduce_sincos, improve accuracy to 136 bits.
19063 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19064 (__sin): Use improved reduction and simplified do_sincos calculation.
19065 (__cos): Likewise.
19066 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19067
19068 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19069
19070 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19071 (do_sincos_2): Likewise.
19072 (__sin): Remove middle range reduction case.
19073 (__cos): Likewise.
19074 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19075 reduction case.
19076
19077 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19078
19079 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19080 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19081 inputs.
19082 (__cos): Likewise.
19083 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19084
19085 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19086
19087 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19088 version to 4.16
19089
19090 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19091
19092 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19093 Remove definitions.
19094 (opendir_oflags): Use O_DIRECTORY regardless.
19095 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19096 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19097
19098 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19099
19100 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19101 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19102 macros.
19103 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19104 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19105 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19106 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19107 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19108 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19109
19110 * htl/Makefile: Bump licence to LGPL 2.1+.
19111 * htl/alloca_cutoff.c: Likewise.
19112 * htl/cthreads-compat.c: Likewise.
19113 * htl/lockfile.c: Likewise.
19114 * htl/pt-alloc.c: Likewise.
19115 * htl/pt-cancel.c: Likewise.
19116 * htl/pt-cleanup.c: Likewise.
19117 * htl/pt-create.c: Likewise.
19118 * htl/pt-dealloc.c: Likewise.
19119 * htl/pt-detach.c: Likewise.
19120 * htl/pt-exit.c: Likewise.
19121 * htl/pt-getattr.c: Likewise.
19122 * htl/pt-initialize.c: Likewise.
19123 * htl/pt-internal.h: Likewise.
19124 * htl/pt-join.c: Likewise.
19125 * htl/pt-self.c: Likewise.
19126 * htl/pt-setcancelstate.c: Likewise.
19127 * htl/pt-setcanceltype.c: Likewise.
19128 * htl/pt-sigmask.c: Likewise.
19129 * htl/pt-spin-inlines.c: Likewise.
19130 * htl/pt-testcancel.c: Likewise.
19131 * htl/pt-yield.c: Likewise.
19132 * htl/tests/test-1.c: Likewise.
19133 * htl/tests/test-10.c: Likewise.
19134 * htl/tests/test-11.c: Likewise.
19135 * htl/tests/test-12.c: Likewise.
19136 * htl/tests/test-13.c: Likewise.
19137 * htl/tests/test-14.c: Likewise.
19138 * htl/tests/test-15.c: Likewise.
19139 * htl/tests/test-16.c: Likewise.
19140 * htl/tests/test-17.c: Likewise.
19141 * htl/tests/test-2.c: Likewise.
19142 * htl/tests/test-3.c: Likewise.
19143 * htl/tests/test-4.c: Likewise.
19144 * htl/tests/test-5.c: Likewise.
19145 * htl/tests/test-6.c: Likewise.
19146 * htl/tests/test-7.c: Likewise.
19147 * htl/tests/test-8.c: Likewise.
19148 * htl/tests/test-9.c: Likewise.
19149 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19150 * sysdeps/htl/bits/cancelation.h: Likewise.
19151 * sysdeps/htl/bits/pthread-np.h: Likewise.
19152 * sysdeps/htl/bits/pthread.h: Likewise.
19153 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19154 * sysdeps/htl/bits/semaphore.h: Likewise.
19155 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19156 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19157 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19158 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19159 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19160 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19161 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19162 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19163 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19164 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19165 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19166 * sysdeps/htl/old_pt-atfork.c: Likewise.
19167 * sysdeps/htl/pt-atfork.c: Likewise.
19168 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19169 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19170 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19171 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19172 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19173 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19174 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19175 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19176 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19177 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19178 * sysdeps/htl/pt-attr-init.c: Likewise.
19179 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19180 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19181 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19182 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19183 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19184 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19185 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19186 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19187 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19188 * sysdeps/htl/pt-attr.c: Likewise.
19189 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19190 * sysdeps/htl/pt-barrier-init.c: Likewise.
19191 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19192 * sysdeps/htl/pt-barrier.c: Likewise.
19193 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19194 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19195 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19196 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19197 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19198 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19199 * sysdeps/htl/pt-cond-init.c: Likewise.
19200 * sysdeps/htl/pt-cond-signal.c: Likewise.
19201 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19202 * sysdeps/htl/pt-cond-wait.c: Likewise.
19203 * sysdeps/htl/pt-cond.c: Likewise.
19204 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19205 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19206 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19207 * sysdeps/htl/pt-condattr-init.c: Likewise.
19208 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19209 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19210 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19211 * sysdeps/htl/pt-equal.c: Likewise.
19212 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19213 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19214 * sysdeps/htl/pt-getschedparam.c: Likewise.
19215 * sysdeps/htl/pt-getspecific.c: Likewise.
19216 * sysdeps/htl/pt-init-specific.c: Likewise.
19217 * sysdeps/htl/pt-key-create.c: Likewise.
19218 * sysdeps/htl/pt-key-delete.c: Likewise.
19219 * sysdeps/htl/pt-key.h: Likewise.
19220 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19221 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19222 * sysdeps/htl/pt-mutex-init.c: Likewise.
19223 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19224 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19225 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19226 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19227 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19228 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19229 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19230 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19231 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19232 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19233 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19234 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19235 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19236 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19237 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19238 * sysdeps/htl/pt-mutexattr.c: Likewise.
19239 * sysdeps/htl/pt-once.c: Likewise.
19240 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19241 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19242 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19243 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19244 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19245 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19246 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19247 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19248 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19249 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19250 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19251 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19252 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19253 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19254 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19255 * sysdeps/htl/pt-setschedparam.c: Likewise.
19256 * sysdeps/htl/pt-setschedprio.c: Likewise.
19257 * sysdeps/htl/pt-setspecific.c: Likewise.
19258 * sysdeps/htl/pt-spin.c: Likewise.
19259 * sysdeps/htl/pt-startup.c: Likewise.
19260 * sysdeps/htl/pthread.h: Likewise.
19261 * sysdeps/htl/sem-close.c: Likewise.
19262 * sysdeps/htl/sem-destroy.c: Likewise.
19263 * sysdeps/htl/sem-getvalue.c: Likewise.
19264 * sysdeps/htl/sem-init.c: Likewise.
19265 * sysdeps/htl/sem-open.c: Likewise.
19266 * sysdeps/htl/sem-post.c: Likewise.
19267 * sysdeps/htl/sem-timedwait.c: Likewise.
19268 * sysdeps/htl/sem-trywait.c: Likewise.
19269 * sysdeps/htl/sem-unlink.c: Likewise.
19270 * sysdeps/htl/sem-wait.c: Likewise.
19271 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19272 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19273 * sysdeps/mach/htl/pt-block.c: Likewise.
19274 * sysdeps/mach/htl/pt-spin.c: Likewise.
19275 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19276 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19277 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19278 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19279 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19280 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19281 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19282 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19283 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19284 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19285 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19286 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19287 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19288 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19289 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19290 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19291 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19292 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19293 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19294 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19295 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19296 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19297 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19298 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19299 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19300 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19301 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19302 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19303 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19304 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19305 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19306 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19307 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19308 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19309 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19310 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19311 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19312 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19313 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19314 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19315 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19316 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19317 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19318
19319 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19320 * README: Remove the mention of out-of-tree patches needed for
19321 GNU/Hurd.
19322
19323 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19324 (UTIME_NOW, UTIME_OMIT): Define macros.
19325
19326 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19327 instead of pthread_detach.
19328 (__cthread_fork): Call __pthread_create instead of pthread_create.
19329 (__cthread_keycreate): Call __pthread_key_create instead of
19330 pthread_key_create.
19331 (__cthread_getspecific): Call __pthread_getspecific instead of
19332 pthread_getspecific.
19333 (__cthread_setspecific): Call __pthread_setspecific instead of
19334 pthread_setspecific.
19335 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19336 __pthread_mutex_unlock instead of pthread_mutex_lock and
19337 pthread_mutex_unlock.
19338 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19339 ___pthread_get_cleanup_stack.
19340 (__pthread_get_cleanup_stack): New strong alias.
19341 * htl/pt-create.c: Include <pthreadP.h>.
19342 (entry_point): Call __pthread_exit instead of pthread_exit.
19343 (pthread_create): Rename to __pthread_create.
19344 (pthread_create): New strong alias.
19345 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19346 (pthread_detach): New strong alias.
19347 (__pthread_detach): Call __pthread_cond_broadcast instead of
19348 pthread_cond_broadcast.
19349 * htl/pt-exit.c: Include <pthreadP.h>.
19350 (__pthread_exit): Call __pthread_setcancelstate and
19351 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19352 __pthread_get_cleanup_stack.
19353 * htl/pt-testcancel.c: Include <pthreadP.h>.
19354 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19355 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19356 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19357 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19358 pthread_attr_getstacksize.
19359 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19360 Rename to __pthread_attr_getstackaddr.
19361 (pthread_attr_getstackaddr): New strong alias.
19362 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19363 Rename to __pthread_attr_getstacksize.
19364 (pthread_attr_getstacksize): New strong alias.
19365 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19366 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19367 (pthread_attr_setstack): New strong alias.
19368 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19369 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19370 pthread_attr_getstacksize, pthread_attr_setstacksize and
19371 pthread_attr_setstackaddr.
19372 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19373 Rename to __pthread_attr_setstackaddr.
19374 (pthread_attr_setstackaddr): New strong alias.
19375 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19376 Rename to __pthread_attr_setstacksize.
19377 (pthread_attr_setstacksize): New strong alias.
19378 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19379 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19380 pthread_exit.
19381 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19382 (__pthread_key_create): New hidden def.
19383 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19384 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19385 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19386 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19387 __pthread_setspecific, __pthread_setcancelstate,
19388 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19389 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19390 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19391 declarations.
19392 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19393 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19394 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19395 (pthread_attr_setstackaddr): New strong alias.
19396 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19397 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19398 (pthread_attr_setstacksize): New strong alias.
19399 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19400 (call_exit): Call __pthread_exit instead of pthread_exit.
19401 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19402 (_pthread_mutex_init): New hidden definition.
19403 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19404 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19405 instead of pthread_attr_init and pthread_attr_setstack.
19406
19407 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19408 __vm_deallocate instead of vm_allocate and vm_deallocate.
19409 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19410 setenv.
19411 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19412 of geteuid.
19413 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19414 strdup.
19415 * hurd/siginfo.c: Include <libioP.h>.
19416 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19417 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19418 munmap.
19419 * mach/devstream.c: Include <libioP.h>.
19420 (dealloc_ref): Call __mach_port_deallocate instead of
19421 mach_port_deallocate.
19422 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19423 Call __mach_port_deallocate instead of mach_port_deallocate.
19424 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19425 pathconf.
19426 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19427 munmap.
19428 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19429 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19430 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19431 of munmap.
19432 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19433 of close.
19434 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19435 instead of sysconf.
19436 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19437 __clock_gettime instead of clock_gettime.
19438 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19439 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19440 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19441 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19442 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19443 tcgetattr.
19444 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19445 __clock_gettime and __nanosleep instead of clock_gettime and
19446 nanosleep.
19447 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19448 __hurd_catch_signal.
19449 (hurd_catch_signal): New strong alias.
19450 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19451 __hurd_catch_signal instead of hurd_catch_signal.
19452 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19453 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19454 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19455 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19456 (_hurd_thread_sigstate): Add hidden def.
19457 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19458 mutex_unlock.
19459 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19460 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19461 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19462 __hurd_file_name_path_lookup.
19463 (hurd_file_name_path_lookup): New strong alias.
19464 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19465 hurd_file_name_path_lookup.
19466 * mach/errstring.c (mach_error_type): Add hidden def.
19467 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19468 * mach/mutex-init.c (__mutex_init): Add hidden def.
19469 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19470 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19471 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19472 * sysdeps/mach/hurd/getcwd.c
19473 (_hurd_canonicalize_directory_name_internal): Rename to
19474 __hurd_canonicalize_directory_name_internal.
19475 (_hurd_canonicalize_directory_name_internal): New strong alias.
19476 (__canonicalize_directory_name_internal, __getcwd): Call
19477 __hurd_canonicalize_directory_name_internal instead of
19478 _hurd_canonicalize_directory_name_internal.
19479 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19480 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19481 hidden defs.
19482 * sysdeps/hurd/include/hurd.h: New file.
19483 * sysdeps/hurd/include/hurd/fd.h: New file.
19484 * sysdeps/hurd/include/hurd/signal.h: New file.
19485 * sysdeps/mach/include/lock-intern.h: New file.
19486 * sysdeps/mach/include/mach.h: New file.
19487 * sysdeps/mach/include/mach/mig_support.h: New file.
19488 * sysdeps/mach/include/mach_error.h: New file.
19489 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19490 prototype.
19491 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19492 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19493 _HEADER_H_HIDDEN_DEF macro.
19494 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19495 _hurd_fd_error_signal): Add hidden prototype.
19496 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19497 hidden def.
19498 * libio/iolibio.h (_IO_puts): New hidden prototype.
19499 * libio/ioputs.c (_IO_puts): New hidden def.
19500 * sysdeps/mach/hurd/localplt.data: New file.
19501
19502 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19503 Amos Jeffries <squid3@treenet.co.nz>
19504 David Michael <fedora.dm0@gmail.com>
19505 Marco Gerards <marco@gnu.org>
19506 Marcus Brinkmann <marcus@gnu.org>
19507 Neal H. Walfield <neal@gnu.org>
19508 Pino Toscano <toscano.pino@tiscali.it>
19509 Richard Braun <rbraun@sceen.net>
19510 Roland McGrath <roland@gnu.org>
19511 Samuel Thibault <samuel.thibault@ens-lyon.org>
19512 Thomas DiModica <ricinwich@yahoo.com>
19513 Thomas Schwinge <tschwinge@gnu.org>
19514
19515 * htl: New directory.
19516 * sysdeps/htl: New directory.
19517 * sysdeps/hurd/htl: New directory.
19518 * sysdeps/i386/htl: New directory.
19519 * sysdeps/mach/htl: New directory.
19520 * sysdeps/mach/hurd/htl: New directory.
19521 * sysdeps/mach/hurd/i386/htl: New directory.
19522 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19523 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19524 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19525
19526 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19527
19528 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19529 signals in thread created for runing timers.
19530
19531 2018-04-01 Florian Weimer <fweimer@redhat.com>
19532
19533 * support/support_format_addrinfo.c (support_format_addrinfo):
19534 Include unknown error number in formatted result.
19535
19536 2018-03-29 Florian Weimer <fweimer@redhat.com>
19537
19538 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19539 capture SIGBUS.
19540
19541 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19542
19543 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19544 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19545 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19546 (__ASSUME_CLONE_BACKWARDS): Define.
19547
19548 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19549
19550 [BZ #23024]
19551 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19552 early when linux sentinel value is set.
19553
19554 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19555
19556 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19557
19558 2018-03-27 Andreas Schwab <schwab@suse.de>
19559
19560 [BZ #23005]
19561 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19562 allocation of private copy of nsaddr_list fails.
19563
19564 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19565
19566 [BZ #16552]
19567 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19568 * sysdeps/unix/sysv/linux/umount.c: ... here.
19569 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19570 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19571 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19572 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19574 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19575 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19576
19577 2018-03-26 Andreas Schwab <schwab@suse.de>
19578
19579 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19580 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19581 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19582 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19583 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19584 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19585 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19586 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19587 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19588 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19589 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19590 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19591 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19592 (R_RISCV_NUM): Define.
19593
19594 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19595
19596 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19597 TLS declaration of errno.
19598 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19599 __libc_setup_tls.
19600 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19601 (ARCH_SETUP_TLS): Likewise.
19602 * sysdeps/mach/hurd/libc-start.h: New file copied from
19603 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19604 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19605 instead of __libc_setup_tls.
19606 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19607 __libc_setup_tls before initializing libpthread and running _hurd_init
19608 which starts the signal thread.
19609 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19610 Declare function.
19611 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19612
19613 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19614
19615 [BZ #22998]
19616 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19617 after it is defined.
19618
19619 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19620 Max Horn <max@quendi.de>
19621
19622 [BZ #22644]
19623 CVE-2017-18269
19624 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19625 branch conditions.
19626 * string/test-memmove.c (do_test2): New testcase.
19627
19628 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19629
19630 * sysdeps/generic/frame.h: Remove file.
19631 * sysdeps/arm/frame.h: Likewise.
19632 * sysdeps/hppa/frame.h: Likewise.
19633 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19634 macro.
19635 (GET_FRAME): Likewise.
19636 (GET_STACK): Likewise.
19637 (CALL_SIGHANDLER): Likewise.
19638 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19639 Likewise.
19640 (GET_FRAME): Likewise.
19641 (GET_STACK): Likewise.
19642 (CALL_SIGHANDLER): Likewise.
19643 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19644 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19645 (GET_FRAME): Likewise.
19646 (GET_STACK): Likewise.
19647 (CALL_SIGHANDLER): Likewise.
19648 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19649 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19650 (GET_FRAME): Likewise.
19651 (GET_STACK): Likewise.
19652 (ADVANCE_STACK_FRAME): Likewise.
19653 (CALL_SIGHANDLER): Likewise.
19654 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19655 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19656 (GET_FRAME): Likewise.
19657 (GET_STACK): Likewise.
19658 (CALL_SIGHANDLER): Likewise.
19659 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19660 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19661 (GET_FRAME): Likewise.
19662 (GET_STACK): Likewise.
19663 (CALL_SIGHANDLER): Likewise.
19664 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19665 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19666 (GET_FRAME): Likewise.
19667 (GET_STACK): Likewise.
19668 (CALL_SIGHANDLER): Likewise.
19669 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19670 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19671 (GET_FRAME): Likewise.
19672 (GET_STACK): Likewise.
19673 (CALL_SIGHANDLER): Likewise.
19674 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19675 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19676 (GET_FRAME): Likewise.
19677 (GET_STACK): Likewise.
19678 (CALL_SIGHANDLER): Likewise.
19679 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19680 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19681 (GET_FRAME): Likewise.
19682 (GET_STACK): Likewise.
19683 (CALL_SIGHANDLER): Likewise.
19684 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19685 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19686 (GET_FRAME): Likewise.
19687 (GET_STACK): Likewise.
19688 (CALL_SIGHANDLER): Likewise.
19689 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19690 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19691 (GET_FRAME): Likewise.
19692 (GET_STACK): Likewise.
19693 (CALL_SIGHANDLER): Likewise.
19694 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19695 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19696 (GET_FRAME): Likewise.
19697 (GET_STACK): Likewise.
19698 (CALL_SIGHANDLER): Likewise.
19699 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19700 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19701 (FIRST_FRAME_POINTER): Likewise.
19702 (ADVANCE_STACK_FRAME): Likewise.
19703 (GET_STACK): Likewise.
19704 (GET_FRAME): Likewise.
19705 (CALL_SIGHANDLER): Likewise.
19706 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19707 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19708 (ADVANCE_STACK_FRAME): Likewise.
19709 (GET_STACK): Likewise.
19710 (GET_FRAME): Likewise.
19711 (CALL_SIGHANDLER): Likewise.
19712 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19713 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19714 (GET_FRAME): Likewise.
19715 (GET_STACK): Likewise.
19716 (CALL_SIGHANDLER): Likewise.
19717 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19718 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19719 (GET_FRAME): Likewise.
19720 (GET_STACK): Likewise.
19721 (CALL_SIGHANDLER): Likewise.
19722
19723 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19724
19725 * sysdeps/x86_64/backtrace.c: Move to ....
19726 * debug/backtrace.c: ... here.
19727 * sysdeps/aarch64/backtrace.c: Remove file.
19728 * sysdeps/alpha/backtrace.c: Likewise.
19729 * sysdeps/hppa/backtrace.c: Likewise.
19730 * sysdeps/ia64/backtrace.c: Likewise.
19731 * sysdeps/mips/backtrace.c: Likewise.
19732 * sysdeps/nios2/backtrace.c: Likewise.
19733 * sysdeps/riscv/backtrace.c: Likewise.
19734 * sysdeps/sh/backtrace.c: Likewise.
19735 * sysdeps/tile/backtrace.c: Likewise.
19736
19737 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19738
19739 [BZ #22987]
19740 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19741 function.
19742 (fdimf): Likewise.
19743 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19744
19745 [BZ #17343]
19746 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19747 possibly overflowing computations.
19748
19749 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19750
19751 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19752 values from Linux-specific section now that it is in the GNU section.
19753 * sysdeps/gnu/errlist.c: Regenerate.
19754
19755 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19756
19757 * math/Makefile (libm-narrow-fns): Add sub.
19758 (libm-test-funcs-narrow): Likewise.
19759 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19760 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19761 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19762 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19763 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19764 (NARROW_SUB_TRIVIAL): Likewise.
19765 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19766 macro.
19767 (__dsubl): Likewise.
19768 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19769 dsub.
19770 (CFLAGS-nldbl-dsub.c): New variable.
19771 (CFLAGS-nldbl-fsub.c): Likewise.
19772 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19773 __nldbl_dsubl.
19774 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19775 prototype.
19776 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19777 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19778 * math/auto-libm-test-in: Add tests of sub.
19779 * math/auto-libm-test-out-narrow-sub: New generated file.
19780 * math/libm-test-narrow-sub.inc: New file.
19781 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19782 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19783 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19784 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19785 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19786 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19787 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19788 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19789 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19790 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19791 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19792 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19793 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19794 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19795 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19796 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19797 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19798 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19799 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19800 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19801 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19802 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19803 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19804 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19805 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19806 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19807 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19808 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19809 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19810 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19811 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19812 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19817 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19818 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19819 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19820 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19821 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19822 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19823 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19824 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19825 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19826 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19827
19828 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19829
19830 [BZ #20079]
19831 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19832
19833 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19834
19835 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19836
19837 2018-03-18 Richard Braun <rbraun@sceen.net>
19838
19839 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19840 thread reference.
19841
19842 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19843
19844 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19845 (__libc_cleanup_fct): Define function.
19846 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19847 __libc_cleanup_end): Rewrite implementation using
19848 __attribute__ ((__cleanup__)).
19849 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19850 * hurd/Makefile (routines): Add hurdlock.
19851 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19852 interface.
19853 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19854 * hurd/hurdpid.c: Include <lowlevellock.h>
19855 (_S_msg_proc_newids): Use lll_wait to synchronize.
19856 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19857 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19858 * mach/Makefile (lock-headers): Remove machine-lock.h.
19859 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19860 <machine-lock.h>.
19861 (__spin_lock_t): New type.
19862 (__SPIN_LOCK_INITIALIZER): New macro.
19863 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19864 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19865 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19866 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19867 (__mutex_init): Initialize with lll.
19868 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19869 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19870 needing lll.
19871 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19872 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19873 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19874 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19875 (__setpgid): Use lll for synchronization.
19876 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19877 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19878 instead of <cthreads.h>.
19879 (_IO_lock_inexpensive): New macro
19880 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19881 (__libc_lock_self0): New declaration.
19882 (__libc_lock_owner_self): New macro.
19883 (__libc_key_t): Remove type.
19884 (_LIBC_LOCK_INITIALIZER): New macro.
19885 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19886 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19887 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19888 __libc_lock_define_initialized_recursive,
19889 __rtld_lock_define_initialized_recursive,
19890 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19891 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19892 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19893 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19894 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19895 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19896 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19897 New macros.
19898 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19899 * hurd/hurdlock.c: New file.
19900 * hurd/hurdlock.h: New file.
19901 * mach/lowlevellock.h: New file
19902
19903 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19904
19905 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19906 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19907 when opening a symlink with O_NOFOLLOW.
19908 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19909 path when flags contains O_NOFOLLOW.
19910 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19911 if flags contains O_DIRECTORY and the result is a directory.
19912 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19913 oneself when the pointer given in D is nul (as set by ext2fs).
19914 * sysdeps/mach/hurd/mlockall.c: New file.
19915 * sysdeps/mach/hurd/munlockall.c: New file.
19916
19917 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19918
19919 * hurd/hurdsig.c: Include <pthread.h>.
19920 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19921 get the signal thread stack layout.
19922 * hurd/Makefile (headers): Remove threadvar.h.
19923 (inline-headers): Remove threadvar.h.
19924 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19925 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19926 __hurd_threadvar_max, __hurd_errno_location.
19927 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19928 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19929 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19930 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19931 unless TLS is not initialized yet, in which case we do not need a
19932 critical section yet anyway.
19933 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19934 <machine-sp.h>.
19935 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19936 declarations.
19937 (__hurd_threadvar_index): Remove enum.
19938 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19939 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19940 inlines.
19941 (__hurd_reply_port0): New variable declaration.
19942 (__hurd_local_reply_port): New macro.
19943 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19944 (interrupted_reply_port_location): Add thread_t parameter. Use it
19945 with THREAD_TCB to access thread-local variables.
19946 (_hurdsig_abort_rpcs): Pass ss->thread to
19947 interrupted_reply_port_location.
19948 (_hurd_internal_post_signal): Likewise.
19949 (_hurdsig_init): Use presence of cthread_fork instead of
19950 __hurd_threadvar_stack_mask to start signal thread by hand.
19951 Remove signal thread threadvar initialization.
19952 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19953 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19954 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19955 of threadvar.
19956 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19957 __libc_lock_self0.
19958 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19959 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19960 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19961 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19962 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19963 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19964 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19965 define variables.
19966 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19967 <hurd/threadvar.h>.
19968 [IS_IN(rtld)] (rtld_errno): New variable.
19969 [IS_IN(rtld)] (__errno_location): New weak function.
19970 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19971 * sysdeps/mach/hurd/errno.c: Remove file.
19972 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19973 (__fork): Remove THREADVAR_SPACE macro and its use.
19974 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19975 variable.
19976 (init): Do not initialize threadvar.
19977 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19978 symbol.
19979 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19980 __hurd_local_reply_port instead of threadvar.
19981 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19982 _hurd_sigstate fields.
19983 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19984 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19985 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19986 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19987 instead of threadvar.
19988 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19989 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19990 (use_threadvar, global_reply_port): Remove variables.
19991 (__hurd_reply_port0): New variable.
19992 (__mig_get_reply_port): Use __hurd_local_reply_port and
19993 __hurd_reply_port0 instead of threadvar.
19994 (__mig_dealloc_reply_port): Likewise.
19995 (__mig_init): Do not initialize threadvar.
19996 * sysdeps/mach/hurd/profil.c: Fix comment.
19997 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19998 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19999 cthread_keycreate, cthread_getspecific, cthread_setspecific to
20000 __cthread_fork, __cthread_detach, __pthread_getattr_np,
20001 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
20002 __cthread_setspecific.
20003 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
20004 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
20005 __cthread_t instead of cthread_fork, cthread_detach,
20006 pthread_getattr_np, pthread_attr_getstack.
20007 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
20008 __cthread_keycreate.
20009 (cthread_getspecific): Rename to __cthread_getspecific.
20010 (cthread_setspecific): Rename to __cthread_setspecific.
20011 (__libc_getspecific): Use __cthread_getspecific instead of
20012 cthread_getspecific.
20013 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
20014 __cthread_keycreate instead of cthread_keycreate.
20015 (__libc_setspecific): Use __cthread_setspecific instead of
20016 cthread_setspecific.
20017 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
20018 Likewise.
20019 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
20020 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
20021 testing whether it is defined.
20022
20023 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
20024
20025 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
20026 Define macro.
20027 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
20028 * sysdeps/mach/i386/thread_state.h
20029 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
20030 i386_THREAD_STATE.
20031 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
20032 i386_THREAD_STATE.
20033 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
20034
20035 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
20036 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
20037
20038 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
20039 macros.
20040 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
20041 descriptor instead of creating a new one.
20042 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
20043
20044 * mach/setup-thread.c: Include <ldsodefs.h>.
20045 (__mach_setup_thread): Call _dl_allocate_tls, pass
20046 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20047 MACHINE_THREAD_STATE_FLAVOR, before getting
20048 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20049 MACHINE_THREAD_STATE_FLAVOR with the result.
20050 * hurd/hurdfault.c (_hurdsig_fault_init): Call
20051 MACHINE_THREAD_STATE_FIX_NEW.
20052 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20053 too. Add original thread parameter.
20054
20055 2018-03-16 Joseph Myers <joseph@codesourcery.com>
20056
20057 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20058 Remove inline function.
20059
20060 * sysdeps/i386/fpu/libm-test-ulps: Update.
20061 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20062
20063 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20064
20065 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20066 commit.
20067
20068 2018-03-15 Joseph Myers <joseph@codesourcery.com>
20069
20070 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20071 (__sincos_code): Remove define and undefine.
20072 [__FAST_MATH__] (__sincos): Remove inline function.
20073 [__FAST_MATH__] (__sincosf): Remove inline function.
20074 [__FAST_MATH__] (__sincosl): Remove inline function.
20075 (__atan2l): Remove inline functions.
20076 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20077 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20078 function.
20079 (floor): Remove inline function.
20080 (ceil): Likewise.
20081 [__FAST_MATH__] (__ldexp_code): Remove macro.
20082 [__FAST_MATH__] (ldexp): Remove inline function.
20083 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20084 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20085 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20086 [__USE_ISOC99] (__lrint_code): Remove macro.
20087 [__USE_ISOC99] (__llrint_code): Likewise.
20088 [__USE_ISOC99] (lrintf): Remove inline function.
20089 [__USE_ISOC99] (lrint): Likewise.
20090 [__USE_ISOC99] (lrintl): Likewise.
20091 [__USE_ISOC99] (llrint): Likewise.
20092 [__USE_ISOC99] (llrintf): Likewise.
20093 [__USE_ISOC99] (llrintl): Likewise.
20094
20095 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20096
20097 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20098 (__ieee754_sqrtf): Remove.
20099 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20100 (__ieee754_sqrtf): Remove.
20101 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20102 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20103 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20104 (__ieee754_sqrtf): Remove.
20105 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20106 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20107 (sqrtf): Remove.
20108 (sqrtl): Remove.
20109 (__ieee754_sqrt): Remove.
20110 (__ieee754_sqrtf): Remove.
20111 (__ieee754_sqrtl): Remove.
20112 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20113 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20114 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20115 (__ieee754_sqrtf): Remove.
20116 (__ieee754_sqrtl): Remove.
20117
20118 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20119
20120 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20121 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20122 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20123 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20124 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20125 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20126 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20127 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20128 Likewise.
20129 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20130 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20131 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20132 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20133 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20134 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20135 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20136 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20137 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20138 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20139 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20140 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20141 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20142 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20143 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20144 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20145 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20146 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20147 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20148 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20149 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20150 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20151 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20152 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20153 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20154 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20155 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20156 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20157 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20158 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20159 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20160 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20161 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20162 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20163 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20164 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20165 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20166 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20167 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20168 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20169
20170 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20171
20172 * include/math.h (sqrt): Declare with asm redirect.
20173 (sqrtf): Likewise.
20174 (sqrtl): Likewise.
20175 (sqrtf128): Likewise.
20176 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20177 nonlib and libnldbl with -fmath-errno.
20178 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20179 * math/w_sqrt_template.c: Likewise.
20180 * math/w_sqrtf_compat.c: Likewise.
20181 * math/w_sqrtl_compat.c: Likewise.
20182 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20183 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20184 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20185 complex.h.
20186
20187 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20188
20189 * benchtests/Makefile: Define _ISOMAC.
20190 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20191 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20192 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20193 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20194 * benchtests/bench-timing.h: Define attribute_hidden.
20195
20196 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20197
20198 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20199 mov + lsr.
20200
20201 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20202
20203 [BZ #22963]
20204 * localedata/locales/cs_CZ (mon): Rename to...
20205 (alt_mon): This.
20206 (mon): Import from CLDR (genitive case).
20207
20208 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20209
20210 [BZ #22937]
20211 * localedata/locales/el_CY (abmon): Rename to...
20212 (ab_alt_mon): This.
20213 (abmon): Import from CLDR (abbreviated genitive case).
20214 * localedata/locales/el_GR (abmon): Rename to...
20215 (ab_alt_mon): This.
20216 (abmon): Import from CLDR (abbreviated genitive case).
20217
20218 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20219
20220 [BZ #22932]
20221 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20222
20223 2018-03-15 Robert Buj <robert.buj@gmail.com>
20224
20225 [BZ #22848]
20226 * localedata/locales/ca_ES (abmon): Rename to...
20227 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20228 (mon): Rename to...
20229 (alt_mon): This.
20230 (abmon): Import from CLDR (genitive case, month names preceded by
20231 "de" or "d’").
20232 (mon): Likewise.
20233 (abday): Synchronize with CLDR.
20234 (d_t_fmt): Likewise.
20235 (d_fmt): Likewise.
20236 (am_pm): Likewise.
20237
20238 (LC_TIME): Improve indentation.
20239 (LC_TELEPHONE): Likewise.
20240 (LC_NAME): Likewise.
20241 (LC_ADDRESS): Likewise.
20242
20243 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20244
20245 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20246 (lrintf): Remove definitions used only with old GCC.
20247 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20248 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20249 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20250 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20251 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20252 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20253 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20254 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20255 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20256 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20257 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20258 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20259 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20260 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20261 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20262 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20263 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20264 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20265 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20266 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20267 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20268 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20269 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20270 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20271 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20272 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20273 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20274 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20275
20276 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20277
20278 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20279 instruction to unbreak builds with binutils 2.26 and older.
20280
20281 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20282
20283 * sysdeps/aarch64/strncmp.S (count): New macro.
20284 (strncmp): Store misaligned length in SRC1 in COUNT.
20285 (mutual_align): Adjust.
20286 (misaligned8): Load dword at a time when it is safe.
20287
20288 2018-03-12 Zack Weinberg <zackw@panix.com>
20289
20290 [BZ #1190]
20291 [BZ #19476]
20292 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20293 if the _IO_EOF_SEEN bit is already set; update commentary.
20294 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20295 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20296
20297 * support/support_openpty.c, support/tty.h: New files.
20298 * support/Makefile (libsupport-routines): Add support_openpty.
20299
20300 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20301 New test cases.
20302 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20303 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20304
20305 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20306
20307 * po/pt_BR.po: Update translations.
20308
20309 2018-03-12 David Michael <fedora.dm0@gmail.com>
20310
20311 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20312 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20313 get a port to the startup server.
20314
20315 2018-03-11 Zack Weinberg <zackw@panix.com>
20316
20317 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20318 before nldbl-compat.h.
20319
20320 2018-03-10 Zack Weinberg <zackw@panix.com>
20321
20322 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20323 math.h or math_private.h.
20324
20325 * sysdeps/alpha/fpu/s_isnan.c
20326 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20327 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20328 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20329 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20330 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20331 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20332 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20333 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20334 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20335 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20336 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20337 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20338 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20339 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20340 Include math_private.h.
20341
20342 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20343 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20344 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20345 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20346 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20347 * sysdeps/powerpc/power7/fpu/s_logb.c:
20348 Include math.h and math_private.h.
20349
20350 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20351 uses of $at in .set noat / .set at.
20352
20353 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20354
20355 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20356 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20357 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20358 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20359 Likewise.
20360
20361 2018-03-09 Florian Weimer <fweimer@redhat.com>
20362
20363 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20364 in comment.
20365
20366 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20367
20368 [BZ #22919]
20369 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20370 Add nop before __startcontext, add explaining comments.
20371
20372 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20373
20374 [BZ #22926]
20375 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20376 empty for __SPE__.
20377 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20378 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20379 Do not build hardware transactional code for __SPE__.
20380 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20381 (__lll_trylock_elision): Likewise.
20382 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20383 (__lll_unlock_elision): Likewise.
20384
20385 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20386 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20387 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20388 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20389 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20390 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20391 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20392 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20393 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20394 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20395 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20396 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20397 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20398 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20399 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20400 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20401 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20402 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20403 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20404 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20405 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20406 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20407 (__ASSUME_CLONE_BACKWARDS): Define.
20408 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20409 __clone2 if __NR_clone2 is defined.
20410 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20411 (__ASSUME_CLONE_BACKWARDS): Likewise.
20412 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20413 (__ASSUME_CLONE_BACKWARDS): Likewise.
20414 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20415 (__ASSUME_CLONE2): Likewise.
20416 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20417 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20418 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20419 variants and the define architecture can use.
20420 (__ASSUME_CLONE_DEFAULT): Define as default.
20421 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20422 (__ASSUME_CLONE_BACKWARDS): Likewise.
20423 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20424 (__ASSUME_CLONE_BACKWARDS): Likewise.
20425 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20426 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20427
20428 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20429
20430 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20431
20432 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20433 time.
20434
20435 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20436 (do_test_limit): Likewise.
20437
20438 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20439 for every implementation.
20440 (do_test): Likewise.
20441
20442 * benchtests/bench-strncmp.c: Convert output to json.
20443
20444 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20445
20446 * io/futimens.c: Add missing start-of-file descriptive comment.
20447 * io/utime.c: Likewise.
20448 * misc/futimesat.c: Likewise.
20449 * misc/utimes.c: Likewise.
20450 * sysdeps/mach/hurd/futimesat.c: Likewise.
20451 * sysdeps/mach/hurd/utimes.c: Likewise.
20452 * sysdeps/posix/utime.c: Likewise.
20453 * sysdeps/posix/utimes.c: Likewise.
20454 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20455 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20456 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20457 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20458
20459 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20460
20461 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20462 hurd_futimes.
20463 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20464 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20465 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20466 (__futimens): Move implementation to...
20467 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20468 utime_tvalue_from_tspec): ... new helper functions.
20469 (hurd_futimens): New function.
20470 * sysdeps/mach/hurd/futimesat.c: New file.
20471 * sysdeps/mach/hurd/utimensat.c: New file.
20472
20473 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20474
20475 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20476 UTIME_OMIT): New macros.
20477 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20478 before reverting to converting time spec to time value and calling
20479 __file_utimes.
20480 * sysdeps/mach/hurd/utime-helper.c: New file.
20481 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20482 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20483 reverting to utime_tvalue_from_tval and __file_utimes.
20484 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20485 (__lutimes): Just call hurd_futimens after lookup.
20486 * sysdeps/mach/hurd/utimes.c: Likewise.
20487
20488 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20489
20490 * bits/sigaction.h: Add include guard.
20491 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20492 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20493 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20494 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20495 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20496 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20497 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20498 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20499 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20500
20501 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20502
20503 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20504 -Wmaybe-uninitialized for -Os.
20505 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20506 this disabling.
20507
20508 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20509
20510 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20511 __INO_T_MATCHES_INO64_T is defined.
20512 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20513 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20514 of definition.
20515 * dirent/alphasort64.c: Likewise.
20516 * dirent/scandir.c: Likewise.
20517 * dirent/scandir64-tail.c: Likewise.
20518 * dirent/scandir64.c: Likewise.
20519 * dirent/scandirat.c: Likewise.
20520 * dirent/scandirat64.c: Likewise.
20521 * dirent/versionsort.c: Likewise.
20522 * dirent/versionsort64.c: Likewise.
20523 * include/dirent.h: Likewise.
20524
20525 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20526 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20527 for socketpair endpoint.
20528 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20529 WRITE_BUFFER_SIZE as buffer size for sending socket.
20530 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20531 issue on system where send is implemented with sendto syscall.
20532 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20533 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20534 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20535 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20536
20537 [BZ #21269]
20538 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20539 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20540 sa_restorer for vDSO case.
20541 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20542
20543 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20544
20545 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20546 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20547 * hurd/hurd/ioctl.h: Include <mach/port.h>
20548 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20549 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20550 <mach/mach_types.h> and <mach/message.h>.
20551 (headers): Move mach/param.h to bits/mach/param.h.
20552 * sysdeps/mach/i386/mach/param.h: Move file to ...
20553 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20554 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20555 of <mach/param.h>.
20556 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20557 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20558 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20559 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20560 trivial, for C++ conformity.
20561 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20562 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20563 Process mig output through $(migheadersed).
20564 * hurd/Makefile (migheadersed): Define variable.
20565 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20566 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20567 headers.
20568 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20569 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20570 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20571 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20572 <bits/types/sigset_t.h>.
20573 [!defined __USE_GNU]: Do not #error out.
20574 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20575 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20576 Include <stddef.h> and <bits/types/sigset_t.h>
20577 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20578 instead of sighandler_t.
20579 * stdlib/errno.h (error_t): Move definition to...
20580 * bits/types/error_t.h: ... new header.
20581 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20582 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20583 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20584 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20585 * hurd/hurd.h: Include <bits/types/error_t.h>
20586 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20587 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20588 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20589 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20590 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20591 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20592 * sysdeps/mach/hurd/futimens.c: New file.
20593
20594 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20595
20596 [BZ #22918]
20597 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20598 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20599 * nscd/gai.c (__nss_hosts_database): Readd definition.
20600 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20601 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20602 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20603
20604 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20605
20606 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20607 (ifunc_one): Likewise.
20608
20609 2018-03-01 DJ Delorie <dj@delorie.com>
20610
20611 [BZ #22342]
20612 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20613 key value.
20614
20615 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20616
20617 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20618 `match_pid' parameter.
20619 (td_ta_thr_iter): Update accordingly.
20620
20621 2018-03-01 Florian Weimer <fweimer@redhat.com>
20622
20623 * nptl/Makefile (install-lib-ldscripts): Remove.
20624 (install): Remove rule.
20625 ($(inst_libdir)/libpthread.so): Likewise.
20626
20627 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20628
20629 [BZ #22896]
20630 * localedata/locales/an_ES: update month and day names,
20631 improve d_fmt, improve postal_fmt, add country_post,
20632 add country_isbn
20633
20634 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20635
20636 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20637 Ukrainian instead of Bulgarian.
20638
20639 2018-03-01 Florian Weimer <fweimer@redhat.com>
20640
20641 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20642 reference.
20643
20644 2018-03-01 Florian Weimer <fweimer@redhat.com>
20645
20646 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20647 * nptl/Makefile (routines): Add pthread_atfork.
20648 (static-only-routines): Set to pthread_atfork.
20649 (libpthread-routines): Remove pthread_atfork.
20650 (libpthread-static-only-routines): Remove.
20651 (install): Update comment.
20652 (libpthread.so): Do not install libpthread_nonshared.a.
20653 (tests): Do not link with libpthread_nonshared.a.
20654 (generated): Remove libpthread_nonshared.a.
20655 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20656 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20657 with libpthread_nonshared.a.
20658
20659 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20660
20661 [BZ #22902]
20662 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20663 (libc_feholdexcept_setroundf128): New macro.
20664 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20665
20666 [BZ #15105]
20667 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20668 libc_hidden_def.
20669 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20670 * include/inttypes.h: New file.
20671
20672 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20673
20674 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20675 -Os in two more places.
20676
20677 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20678
20679 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20680 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20681 be sorted correctly at the moment because of a bug.
20682
20683 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20684
20685 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20686 treat ñ as a primary different character, sync the collation
20687 for Spanish with CLDR.
20688 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20689 * localedata/Makefile: Add new test files.
20690 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20691 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20692 collation order.
20693 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20694 * localedata/am_ET.UTF-8.in: New test file.
20695 * localedata/az_AZ.UTF-8.in: Likewise.
20696 * localedata/be_BY.UTF-8.in: Likewise.
20697 * localedata/ber_DZ.UTF-8.in: Likewise.
20698 * localedata/ber_MA.UTF-8.in: Likewise.
20699 * localedata/bg_BG.UTF-8.in: Likewise.
20700 * localedata/br_FR.UTF-8.in: Likewise.
20701 * localedata/cmn_TW.UTF-8.in: Likewise.
20702 * localedata/crh_UA.UTF-8.in: Likewise.
20703 * localedata/csb_PL.UTF-8.in: Likewise.
20704 * localedata/cv_RU.UTF-8.in: Likewise.
20705 * localedata/cy_GB.UTF-8.in: Likewise.
20706 * localedata/dz_BT.UTF-8.in: Likewise.
20707 * localedata/eo.UTF-8.in: Likewise.
20708 * localedata/es_ES.UTF-8.in: Likewise.
20709 * localedata/fa_IR.UTF-8.in: Likewise.
20710 * localedata/fi_FI.UTF-8.in: Likewise.
20711 * localedata/fil_PH.UTF-8.in: Likewise.
20712 * localedata/fur_IT.UTF-8.in: Likewise.
20713 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20714 * localedata/ha_NG.UTF-8.in: Likewise.
20715 * localedata/ig_NG.UTF-8.in: Likewise.
20716 * localedata/ik_CA.UTF-8.in: Likewise.
20717 * localedata/kk_KZ.UTF-8.in: Likewise.
20718 * localedata/ku_TR.UTF-8.in: Likewise.
20719 * localedata/ky_KG.UTF-8.in: Likewise.
20720 * localedata/ln_CD.UTF-8.in: Likewise.
20721 * localedata/mi_NZ.UTF-8.in: Likewise.
20722 * localedata/ml_IN.UTF-8.in: Likewise.
20723 * localedata/mn_MN.UTF-8.in: Likewise.
20724 * localedata/mr_IN.UTF-8.in: Likewise.
20725 * localedata/mt_MT.UTF-8.in: Likewise.
20726 * localedata/nb_NO.UTF-8.in: Likewise.
20727 * localedata/om_KE.UTF-8.in: Likewise.
20728 * localedata/os_RU.UTF-8.in: Likewise.
20729 * localedata/ps_AF.UTF-8.in: Likewise.
20730 * localedata/ro_RO.UTF-8.in: Likewise.
20731 * localedata/ru_RU.UTF-8.in: Likewise.
20732 * localedata/sc_IT.UTF-8.in: Likewise.
20733 * localedata/se_NO.UTF-8.in: Likewise.
20734 * localedata/sq_AL.UTF-8.in: Likewise.
20735 * localedata/sv_SE.UTF-8.in: Likewise.
20736 * localedata/szl_PL.UTF-8.in: Likewise.
20737 * localedata/tg_TJ.UTF-8.in: Likewise.
20738 * localedata/tk_TM.UTF-8.in: Likewise.
20739 * localedata/tt_RU.UTF-8.in: Likewise.
20740 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20741 * localedata/ug_CN.UTF-8.in: Likewise.
20742 * localedata/uz_UZ.UTF-8.in: Likewise.
20743 * localedata/vi_VN.UTF-8.in: Likewise.
20744 * localedata/yi_US.UTF-8.in: Likewise.
20745 * localedata/yo_NG.UTF-8.in: Likewise.
20746 * localedata/zh_CN.UTF-8.in: Likewise.
20747 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20748 file and fix bugs in the collation.
20749 * localedata/locales/az_AZ: Likewise.
20750 * localedata/locales/be_BY: Likewise.
20751 * localedata/locales/ber_DZ: Likewise.
20752 * localedata/locales/ber_MA: Likewise.
20753 * localedata/locales/bg_BG: Likewise.
20754 * localedata/locales/br_FR: Likewise.
20755 * localedata/locales/br_FR@euro: Likewise.
20756 * localedata/locales/ca_ES: Likewise.
20757 * localedata/locales/cns11643_stroke: Likewise.
20758 * localedata/locales/crh_UA: Likewise.
20759 * localedata/locales/cs_CZ: Likewise.
20760 * localedata/locales/csb_PL: Likewise.
20761 * localedata/locales/cv_RU: Likewise.
20762 * localedata/locales/cy_GB: Likewise.
20763 * localedata/locales/da_DK: Likewise.
20764 * localedata/locales/dz_BT: Likewise.
20765 * localedata/locales/en_CA: Likewise.
20766 * localedata/locales/eo: Likewise.
20767 * localedata/locales/es_CU: Likewise.
20768 * localedata/locales/es_EC: Likewise.
20769 * localedata/locales/es_ES: Likewise.
20770 * localedata/locales/es_US: Likewise.
20771 * localedata/locales/et_EE: Likewise.
20772 * localedata/locales/fa_IR: Likewise.
20773 * localedata/locales/fi_FI: Likewise.
20774 * localedata/locales/fil_PH: Likewise.
20775 * localedata/locales/fur_IT: Likewise.
20776 * localedata/locales/gez_ER@abegede: Likewise.
20777 * localedata/locales/ha_NG: Likewise.
20778 * localedata/locales/hr_HR: Likewise.
20779 * localedata/locales/hsb_DE: Likewise.
20780 * localedata/locales/hu_HU: Likewise.
20781 * localedata/locales/ig_NG: Likewise.
20782 * localedata/locales/ik_CA: Likewise.
20783 * localedata/locales/is_IS: Likewise.
20784 * localedata/locales/iso14651_t1_pinyin: Likewise.
20785 * localedata/locales/kk_KZ: Likewise.
20786 * localedata/locales/ku_TR: Likewise.
20787 * localedata/locales/ky_KG: Likewise.
20788 * localedata/locales/ln_CD: Likewise.
20789 * localedata/locales/lt_LT: Likewise.
20790 * localedata/locales/lv_LV: Likewise.
20791 * localedata/locales/mi_NZ: Likewise.
20792 * localedata/locales/ml_IN: Likewise.
20793 * localedata/locales/mn_MN: Likewise.
20794 * localedata/locales/mr_IN: Likewise.
20795 * localedata/locales/mt_MT: Likewise.
20796 * localedata/locales/nb_NO: Likewise.
20797 * localedata/locales/om_KE: Likewise.
20798 * localedata/locales/os_RU: Likewise.
20799 * localedata/locales/pl_PL: Likewise.
20800 * localedata/locales/ps_AF: Likewise.
20801 * localedata/locales/ro_RO: Likewise.
20802 * localedata/locales/ru_RU: Likewise.
20803 * localedata/locales/ru_UA: Likewise.
20804 * localedata/locales/sc_IT: Likewise.
20805 * localedata/locales/se_NO: Likewise.
20806 * localedata/locales/si_LK: Likewise.
20807 * localedata/locales/sq_AL: Likewise.
20808 * localedata/locales/sv_FI: Likewise.
20809 * localedata/locales/sv_FI@euro: Likewise.
20810 * localedata/locales/sv_SE: Likewise.
20811 * localedata/locales/szl_PL: Likewise.
20812 * localedata/locales/tg_TJ: Likewise.
20813 * localedata/locales/ti_ER: Likewise.
20814 * localedata/locales/tk_TM: Likewise.
20815 * localedata/locales/tl_PH: Likewise.
20816 * localedata/locales/tr_TR: Likewise.
20817 * localedata/locales/tt_RU: Likewise.
20818 * localedata/locales/tt_RU@iqtelif: Likewise.
20819 * localedata/locales/ug_CN: Likewise.
20820 * localedata/locales/uk_UA: Likewise.
20821 * localedata/locales/uz_UZ: Likewise.
20822 * localedata/locales/uz_UZ@cyrillic: Likewise.
20823 * localedata/locales/vi_VN: Likewise.
20824 * localedata/locales/yi_US: Likewise.
20825 * localedata/locales/yo_NG: Likewise.
20826
20827 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20828
20829 * gen-locales.mk: Make test files which contain @ modifiers in their
20830 name work.
20831 * localedata/gen-locale.sh: Likewise.
20832
20833 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20834
20835 * posix/tst-fnmatch.input: Fix results for range expressions
20836 for non C locales.
20837 * posix/tst-regexloc.c: Do not use a range expression for
20838 de_DE.ISO-8859-1 locale.
20839
20840 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20841
20842 * posix/bug-regex5.c: Fix test case because with the new
20843 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20844 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20845 file.
20846
20847 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20848
20849 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20850 downloaded from ISO, the collation order of @-. and space has changed.
20851 Therefore, this test file needed to be adapted.
20852 * localedata/fr_CA.UTF-8.in: Likewise.
20853 * localedata/fr_FR.UTF-8.in: Likewise.
20854 * localedata/uk_UA.UTF-8.in: Likewise.
20855
20856 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20857
20858 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20859 order of ȥ in the new iso14651_t1_common file.
20860 * localedata/pl_PL.UTF-8.in: Likewise.
20861
20862 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20863
20864 * localedata/locales/iso14651_t1_common: Add sections for various
20865 scripts to the iso14651_t1_common file.
20866
20867 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20868
20869 * localedata/locales/iso14651_t1_common: Use the code point of a
20870 character in the fourth collation level instead of IGNORE for all
20871 entries which have IGNORE on all 4 levels.
20872
20873 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20874
20875 * localedata/locales/iso14651_t1_common: Add some convenient collation
20876 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20877 rules similar to those in CLDR.
20878
20879 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20880
20881 * localedata/locales/iso14651_t1_common: The new version of this
20882 file downloaded from ISO contained several syntax errors which
20883 are fixed by this patch.
20884
20885 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20886
20887 * localedata/locales/iso14651_t1_common: replace all <U.....>
20888 with <U000.....> because glibc understands only 4 digit or 8 digit
20889
20890 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20891
20892 * localedata/locales/iso14651_t1_common: Necessary changes
20893 to make the file downloaded from ISO usable by glibc.
20894
20895 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20896
20897 [BZ #14095]
20898 * localedata/locales/iso14651_t1_common: Update file to
20899 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20900
20901 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20902
20903 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20904 of <nptl/pthreadP.h>
20905 (thread_attr_compare): Move function to...
20906 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20907 * sysdeps/nptl/timer_routines.h: ... new header.
20908 * sysdeps/mach/hurd/gai_misc.h: New file.
20909
20910 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20911
20912 * string/strcoll_l.c: Include <libc-diag.h>.
20913 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20914 declarations of seq1 and seq2.
20915
20916 [BZ #15105]
20917 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20918 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20919
20920 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20921
20922 [BZ #22433]
20923 [BZ #22807]
20924 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20925 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20926 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20927 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20928 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20929 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20930
20931 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20932
20933 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20934 macros used in __ptrace_request.
20935
20936 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20937
20938 [BZ #22792]
20939 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20940 to $(CC).
20941 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20942 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20943 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20944 <tcb-offsets.h>.
20945
20946 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20947
20948 [BZ #15105]
20949 * ctype/ctype.c (tolower): Use libc_hidden_def.
20950 (toupper): Likewise.
20951 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20952 [!_ISOMAC] (toupper): Likewise.
20953
20954 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20955
20956 * localedata/Makefile: Remove --quiet argument when
20957 installing locales
20958
20959 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20960
20961 [BZ #17438]
20962 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20963 in d_fmt.
20964 * localedata/locales/pt_PT (LC_TIME): likewise
20965
20966 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20967
20968 [BZ #22646]
20969 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20970 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20971 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20972
20973 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20974
20975 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20976
20977 * nptl/Makefile (routines): Remove unregister-atfork.
20978 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20979 (fork_handler_alloc): Remove function.
20980 (fork_handlers, fork_handler_init): New variables.
20981 (__fork_lock): Rename to atfork_lock.
20982 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20983 to use a dynamic array to add/remove atfork handlers.
20984 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20985 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20986 Remove declaration.
20987 (fork_handler): Remove next, refcntr, and need_signal member.
20988 (__run_fork_handler_type): New enum.
20989 (__run_fork_handlers): New prototype.
20990 * nptl/register-atfork.c: Remove file.
20991 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20992
20993 * sysdeps/nptl/nptl-signals.h: Move to ...
20994 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20995 comments.
20996 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20997 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20998 unnecessary check for SIGTIMER.
20999 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
21000 remove unnecessary removal of SIGTIMER.
21001 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
21002 include-signals.h rename.
21003 * nptl/pthreadP.h: Likewise.
21004 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
21005 __is_internal_signal instead of __nptl_is_internal_signal.
21006
21007 2018-02-22 Andrew Waterman <andrew@sifive.com>
21008
21009 [BZ # 22884]
21010 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
21011 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
21012 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
21013 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
21014
21015 2018-02-22 DJ Delorie <dj@delorie.com>
21016
21017 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
21018
21019 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
21020
21021 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
21022 do_misaligned, not misaligned8.
21023
21024 2018-02-22 Steve Ellcey <sellcey@cavium.com>
21025
21026 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21027 Add memcpy_thunderx2.
21028 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
21029 Increment to 4.
21030 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
21031 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
21032 and IS_THUNDERX2PA checks.
21033 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
21034 Use macro to set name appropriately.
21035 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
21036 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
21037 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
21038 New macro.
21039 (IS_THUNDERX2): New macro.
21040
21041 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
21042
21043 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21044
21045 2018-02-21 Zack Weinberg <zackw@panix.com>
21046
21047 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21048 Define here, unconditionally.
21049 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21050 * libio/libioP.h: Remove #if 0 blocks.
21051 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21052 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21053 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21054
21055 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21056 Assume weak_alias is always defined.
21057
21058 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21059 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21060 Remove #if 0 and #ifdef TODO blocks.
21061 Assume text_set_element is always defined.
21062
21063 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21064 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21065 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21066
21067 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21068 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21069 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21070 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21071 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21072 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21073 Reformat bit flags for _flags field to make occupancy clearer.
21074 Update commentary.
21075 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21076 Keep definitions consistent with those in libio/libio.h.
21077
21078 * libio/libio.h (_IO_file_flags): Remove macro.
21079 All uses changed to _flags.
21080
21081 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21082 (__HAVE_COLUMN, _IO_BE): Don't define.
21083 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21084 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21085 * libio/libioP.h (EOF): Don't define.
21086 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21087 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21088 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21089 testing _IO_UNIFIED_JUMPTABLES.
21090
21091 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21092 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21093 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21094 (_IO_size_t): Delete; all uses changed to size_t.
21095 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21096 (_IO_off_t): Delete; all uses changed to off_t.
21097 (_IO_off64_t): Delete; all uses changed to off64_t.
21098 (_IO_pid_t): Delete; all uses changed to pid_t.
21099 (_IO_uid_t): Delete; all uses changed to uid_t.
21100 (_IO_wint_t): Delete; all uses changed to wint_t.
21101 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21102 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21103 (_IO_cookie_io_functions_t): Delete; all uses changed to
21104 cookie_io_functions_t.
21105 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21106 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21107 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21108 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21109
21110 * libio/iofopncook.c: Remove unnecessary forward declarations.
21111 * libio/iolibio.h: Correct outdated commentary.
21112 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21113 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21114 Remove unnecessary casts.
21115 * stdio-common/getline.c: Use _IO_getdelim directly.
21116 Don't redefine ssize_t.
21117 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21118 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21119 Remove outdated comments.
21120 * stdio-common/vfscanf.c: Don't redefine va_list.
21121
21122 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21123 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21124 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21125 which are always true, and __cplusplus, which is always false.
21126
21127 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21128
21129 [BZ #15105]
21130 [BZ #19463]
21131 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21132 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21133 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21134 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21135 libc_hidden_proto.
21136 [!_ISOMAC] (putc_unlocked): Likewise.
21137 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21138 define inline if [__USE_EXTERN_INLINES].
21139 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21140 putc_unlocked.
21141
21142 [BZ #15105]
21143 [BZ #19463]
21144 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21145 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21146 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21147 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21148 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21149 getc_unlocked.
21150 * time/tzfile.c (__tzfile_read): Likewise.
21151
21152 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21153
21154 [BZ #22517]
21155 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21156
21157 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21158
21159 * io/fcntl.h: Fix a typo in a comment.
21160
21161 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21162
21163 [BZ #22862]
21164 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21165 define _DEFAULT_SOURCE.
21166 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21167
21168 2018-02-21 Florian Weimer <fweimer@redhat.com>
21169
21170 [BZ #20890]
21171 * elf/cache.c (save_cache): Call fsync on temporary file before
21172 renaming it.
21173 (save_aux_cache): Call fdatasync on temporary file before renaming
21174 it.
21175
21176 2018-02-21 Florian Weimer <fweimer@redhat.com>
21177
21178 [BZ #22787]
21179 * include/caller.h: Remove file.
21180 * elf/dl-caller.c: Likewise.
21181 * elf/Makefile (dl-routines): Remove dl-caller.
21182 (shared-only-routines): Do not add dl-caller.
21183 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21184 __check_caller.
21185 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21186 member.
21187 (dl_open_worker): Do not call __check_caller.
21188 (_dl_open): Do not set caller_dl_open member.
21189 * elf/rtld.c (_rtld_global_ro): Do not initialize
21190 _dl_check_caller member.
21191 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21192 _dl_check_caller member.
21193 (_dl_check_caller): Remove declaration.
21194 * sysdeps/unix/sysv/linux/dl-execstack.c
21195 (_dl_make_stack_executable): Do not call __check_caller.
21196
21197 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21198
21199 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21200 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21201
21202 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21203
21204 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21205 description.
21206
21207 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21208
21209 [BZ #16335]
21210 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21211 of 199606L, 200112L, and 200809L.
21212 (_XOPEN_SOURCE): Document special values of 600 and 700.
21213 (_ISOC11_SOURCE): Document macro.
21214 (_ATFILE_SOURCE): Likewise.
21215 (_FORTIFY_SOURCE): Likewise.
21216
21217 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21218
21219 [BZ #15105]
21220 [BZ #19463]
21221 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21222 and define as weak alias of __ferror_unlocked. Use
21223 libc_hidden_weak.
21224 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21225 libc_hidden_proto.
21226 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21227 function if [__USE_EXTERN_INLINES].
21228 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21229 ferror_unlocked.
21230
21231 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21232
21233 [BZ #6889]
21234 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21235
21236 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21237
21238 [BZ #22818]
21239 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21240 the GLIBC_2.1 version.
21241
21242 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21243
21244 [BZ #21508]
21245 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21246 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21247 intl/tst-gettext-de.po from po/de.po by removing the
21248 POT-Creation-Date line.
21249 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21250 ../po/de.po.
21251 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21252 ../po/de.po.
21253
21254 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21255
21256 * mach/Makefile (headers): Add mach/param.h.
21257 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21258 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21259 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21260 (__ptsname_r): Move implementation to...
21261 (__ptsname_internal): ... new function. Add filling the STP
21262 structure.
21263
21264 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21265
21266 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21267 idouble to 1 ULP.
21268
21269 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21270
21271 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21272 syntax.
21273
21274 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21275
21276 * nptl/Makefile (tst-mutex8-ENV): Delete.
21277 * nptl/tst-mutex8.c (check_type):
21278 Add runtime check if mutex will be elided.
21279
21280 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21281
21282 [BZ #20980]
21283 [BZ #21234]
21284 * manual/install.texi (Configuring and compiling): Describe
21285 passing CC and CFLAGS on configure command line, not as
21286 environment variables. Use @code markup on those variables.
21287 Specify what options go in CC and what go in CFLAGS. Note the
21288 requirement to compile with optimization.
21289 * INSTALL: Regenerated.
21290
21291 [BZ #18124]
21292 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21293 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21294 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21295 __sigprocmask instead of sigprocmask.
21296 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21297 Likewise.
21298 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21299 __sigsetjmp and sigprocmask.
21300
21301 [BZ #15105]
21302 * include/argz.h (argz_next): Use libc_hidden_proto.
21303 (__argz_next): Likewise.
21304 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21305 (argz_next): Use libc_hidden_weak.
21306
21307 [BZ #15105]
21308 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21309 libc_hidden_proto.
21310 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21311 libc_hidden_def.
21312
21313 [BZ #15105]
21314 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21315 libc_hidden_proto.
21316 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21317
21318 [BZ #15105]
21319 [BZ #19463]
21320 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21321 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21322 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21323 (__feof_unlocked): New declaration, and inline function if
21324 [__USE_EXTERN_INLINES].
21325 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21326 instead of feof_unlocked.
21327 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21328 * nss/nsswitch.c (nss_parse_file): Likewise.
21329 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21330 Likewise.
21331 * time/getdate.c (__getdate_r): Likewise.
21332 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21333 Define as macro to call __feof_unlocked.
21334
21335 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21336
21337 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21338
21339 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21340
21341 * math/Makefile: Remove mpexp.c and mplog.c
21342 * sysdeps/i386/fpu/mpexp.c: Delete file.
21343 * sysdeps/i386/fpu/mplog.c: Likewise.
21344 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21345 * sysdeps/ia64/fpu/mplog.c: Likewise.
21346 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21347 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21348 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21349 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21350 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21351 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21352 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21353 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21354 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21355 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21356 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21357 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21358 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21359 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21360 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21361 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21362
21363 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21364
21365 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21366
21367 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21368
21369 * sysdeps/sh/libm-test-ulps: Update.
21370
21371 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21372
21373 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21374 idouble to 1 ULP.
21375
21376 2018-02-12 Zack Weinberg <zackw@panix.com>
21377
21378 [BZ #19239]
21379 * posix/sys/types.h: Don't include sys/sysmacros.h.
21380 * misc/sys/sysmacros.h: Remove the conditional deprecation
21381 warnings for the macros defined by this header.
21382
21383 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21384
21385 * manual/probes.texi: Remove slowexp probes.
21386 * math/Makefile: Remove slowexp.
21387 * sysdeps/generic/math_private.h (__slowexp): Remove.
21388 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21389 document error bounds.
21390 * sysdeps/i386/fpu/slowexp.c: Remove.
21391 * sysdeps/ia64/fpu/slowexp.c: Remove.
21392 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21393 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21394 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21395 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21396 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21397 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21398 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21399 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21400 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21401 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21402 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21403
21404 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21405
21406 [BZ #13932]
21407 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21408 * benchtests/pow-inputs: Update comment for slow path cases.
21409 * manual/probes.texi (slowpow_p10): Delete removed probe.
21410 (slowpow_p10): Likewise.
21411 * math/Makefile: Remove halfulp.c and slowpow.c.
21412 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21413 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21414 (__halfulp): Remove.
21415 (__slowpow): Remove.
21416 * sysdeps/i386/fpu/halfulp.c: Delete file.
21417 * sysdeps/i386/fpu/slowpow.c: Likewise.
21418 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21419 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21420 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21421 improve comments and add error analysis.
21422 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21423 (power1): Remove function:
21424 (log1): Remove error argument, add error analysis.
21425 (my_log2): Remove function.
21426 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21427 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21428 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21429 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21430 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21431 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21432 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21433 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21434 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21435 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21436 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21437 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21438 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21439 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21440
21441 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21442
21443 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21444 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21445
21446 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21447
21448 [BZ #22433]
21449 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21450 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21451 and PTRACE_SETHBPREGS.
21452
21453 2018-02-10 Zack Weinberg <zackw@panix.com>
21454
21455 [BZ #22830]
21456 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21457 correctly.
21458 * malloc/tst-malloc-stats-cancellation.c: New test case.
21459 * malloc/Makefile: Add new test case.
21460
21461 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21462
21463 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21464
21465 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21466
21467 * math/Makefile (libm-narrow-fns): Add add.
21468 (libm-test-funcs-narrow): Likewise.
21469 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21470 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21471 * math/gen-auto-libm-tests.c (test_functions): Add add.
21472 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21473 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21474 (NARROW_ADD_TRIVIAL): Likewise.
21475 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21476 macro.
21477 (__daddl): Likewise.
21478 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21479 dadd.
21480 (CFLAGS-nldbl-dadd.c): New variable.
21481 (CFLAGS-nldbl-fadd.c): Likewise.
21482 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21483 __nldbl_daddl.
21484 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21485 prototype.
21486 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21487 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21488 * math/auto-libm-test-in: Add tests of add.
21489 * math/auto-libm-test-out-narrow-add: New generated file.
21490 * math/libm-test-narrow-add.inc: New file.
21491 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21492 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21493 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21494 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21495 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21496 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21497 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21498 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21499 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21500 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21501 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21502 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21503 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21504 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21505 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21506 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21507 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21508 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21509 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21510 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21511 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21512 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21513 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21514 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21515 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21516 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21517 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21518 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21519 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21520 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21521 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21522 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21527 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21528 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21529 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21530 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21531 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21532 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21533 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21534 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21535 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21536 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21537
21538 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21539 (f128-pairs): New variable.
21540 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21541 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21542 to CFLAGS.
21543 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21544 Also make tests add $(f128-loader-link) to gnulib-tests.
21545
21546 2018-02-09 DJ Delorie <dj@redhat.com>
21547
21548 [BZ #22827]
21549 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21550 64-bit ELF type for 64-bit ELF objects.
21551
21552 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21553
21554 * math/libm-test-driver.c (snan_tests_arg): New variable.
21555 * math/libm-test-support.h (snan_tests_arg): New declaration.
21556 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21557
21558 * math/Makefile (test-type-pairs): New variable.
21559 (test-type-pairs-f64xf128-yes): Likewise.
21560 (tests): Add test-narrow-macros.
21561 (libm-test-funcs-narrow): New variable.
21562 (libm-test-c-narrow): Likewise.
21563 (generated): Add $(libm-test-c-narrow).
21564 (libm-tests-base-narrow): New variable.
21565 (libm-tests-narrow): Likewise.
21566 (libm-tests): Add $(libm-tests-narrow).
21567 (libm-tests-for-type): Handle $(libm-tests-narrow).
21568 (libm-test-c-narrow-obj): New variable.
21569 ($(libm-test-c-narrow-obj)): New rule.
21570 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21571 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21572 $(o-iterator) to set dependencies and CFLAGS.
21573 * math/gen-auto-libm-tests.c: Document use for narrowing
21574 functions.
21575 (output_for_one_input_case): Take argument NARROW.
21576 (generate_output): Likewise. Update call to
21577 output_for_one_input_case.
21578 (main): Take --narrow option. Update call to generate_output.
21579 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21580 (apply_lit): Update call to _apply_lit.
21581 (apply_arglit): New function.
21582 (parse_args): Handle "a" arguments.
21583 (parse_auto_input): Handle format names using ":".
21584 * math/README.libm-test: Document "a" parameter type.
21585 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21586 (ARG_TYPE_TRUE_MIN): Likewise.
21587 (ARG_TYPE_MAX): Likwise.
21588 (ARG_MIN_EXP): Likewise.
21589 (ARG_MAX_EXP): Likewise.
21590 (ARG_MANT_DIG): Likewise.
21591 (TEST_COND_arg_ibm128): Likewise.
21592 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21593 (TEST_COND_arg_fmt): New macro.
21594 (init_max_error): Update prototype.
21595 * math/libm-test-support.c (test_ibm128): New variable.
21596 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21597 instead of using [TEST_COND_ibm128] conditional.
21598 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21599 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21600 [TEST_NARROW] (TEST_MSG): New definition.
21601 (arg_plus_zero): New macro.
21602 (arg_minus_zero): Likewise.
21603 (arg_plus_infty): Likewise.
21604 (arg_minus_infty): Likewise.
21605 (arg_qnan_value_pl): Likewise.
21606 (arg_qnan_value): Likewise.
21607 (arg_snan_value_pl): Likewise.
21608 (arg_snan_value): Likewise.
21609 (arg_max_value): Likewise.
21610 (arg_min_value): Likewise.
21611 (arg_min_subnorm_value): Likewise.
21612 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21613 (RUN_TEST_LOOP_aa_f): New macro.
21614 (TEST_SUFF): New macro.
21615 (TEST_SUFF_STR): Likewise.
21616 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21617 (TEST_COND_any_ibm128): New macro.
21618 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21619 this_func. Update call to init_max_error.
21620 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21621 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21622 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21623 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21624 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21625 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21626 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21627 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21628 * math/test-math-vector.h (TEST_NARROW): Likewise.
21629 * math/test-arg-double.h: New file.
21630 * math/test-arg-float128.h: Likewise.
21631 * math/test-arg-float32x.h: Likewise.
21632 * math/test-arg-float64.h: Likewise.
21633 * math/test-arg-float64x.h: Likewise.
21634 * math/test-arg-ldouble.h: Likewise.
21635 * math/test-math-narrow.h: Likewise.
21636 * math/test-narrow-macros.c: Likewise.
21637 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21638 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21639 test-narrow-macros-ldbl-64.
21640 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21641
21642 * math/bits/mathcalls-narrow.h: New file.
21643 * include/bits/mathcalls-narrow.h: Likewise.
21644 * math/math-narrow.h: Likewise.
21645 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21646 (__MATHCALL_NARROW_ARGS_2): Likewise.
21647 (__MATHCALL_NARROW_ARGS_3): Likewise.
21648 (__MATHCALL_NARROW_NORMAL): Likewise.
21649 (__MATHCALL_NARROW_REDIR): Likewise.
21650 (__MATHCALL_NARROW): Likewise.
21651 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21652 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21653 defined.
21654 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21655 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21656 (libm-narrow-fns): New variable.
21657 (libm-narrow-types-basic): Likewise.
21658 (libm-narrow-types-ldouble-yes): Likewise.
21659 (libm-narrow-types-float128-yes): Likewise.
21660 (libm-narrow-types-float128-alias-yes): Likewise.
21661 (libm-narrow-types): Likewise.
21662 (libm-routines): Add narrowing functions.
21663 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21664 (libc_feholdexcept_setroundf128): New macro.
21665 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21666 * sysdeps/ieee754/float128/float128_private.h: Include
21667 <math/math-narrow.h>.
21668 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21669 Undefine and redefine.
21670 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21671 (libm_alias_float_ldouble): Undefine and redefine.
21672 (libm_alias_double_ldouble): Likewise.
21673
21674 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21675
21676 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21677
21678 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21679 FPCR/FPSR.
21680
21681 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21682
21683 * manual/creature.texi: Convert references to gcc.info to gcc.
21684 * manual/stdio.texi: Likewise.
21685 * manual/string.texi: Likewise.
21686
21687 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21688
21689 [BZ #17979]
21690 * posix/bits/types.h (__int_least8_t): New typedef.
21691 (__uint_least8_t): Likewise.
21692 (__int_least16_t): Likewise.
21693 (__uint_least16_t): Likewise.
21694 (__int_least32_t): Likewise.
21695 (__uint_least32_t): Likewise.
21696 (__int_least64_t): Likewise.
21697 (__uint_least64_t): Likewise.
21698 * sysdeps/generic/stdint.h (int_least8_t): Define using
21699 __int_least8_t.
21700 (int_least16_t): Define using __int_least16_t.
21701 (int_least32_t): Define using __int_least32_t.
21702 (int_least64_t): Define using __int_least64_t.
21703 (uint_least8_t): Define using __uint_least8_t.
21704 (uint_least16_t): Define using __uint_least16_t.
21705 (uint_least32_t): Define using __uint_least32_t.
21706 (uint_least64_t): Define using __uint_least64_t.
21707 * wcsmbs/uchar.h: Include <bits/types.h>.
21708 (char16_t): Define using __uint_least16_t conditional only on
21709 [!__USE_ISOCXX11].
21710 (char32_t): Define using __uint_least32_t conditional only on
21711 [!__USE_ISOCXX11].
21712 * wcsmbs/test-char-types.c: New file.
21713 * wcsmbs/Makefile (tests): Add test-char-types.
21714
21715 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21716 version to 4.0.1.
21717
21718 2018-02-07 Zack Weinberg <zackw@panix.com>
21719
21720 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21721 Delete all contents except for definitions of _G_HAVE_MMAP and
21722 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21723 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21724 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21725 change as above.
21726
21727 * libio/libio.h: Don't include bits/_G_config.h here.
21728 Include stddef.h with __need_wchar_t defined. Include
21729 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21730 Define _IO_iconv_t here, directly.
21731 Don't define _IO_HAVE_ST_BLKSIZE.
21732 * libio/libioP.h: Include _G_config.h here. Move include of
21733 shlib-compat.h up with rest of includes. Simplify conditionals
21734 controlling definition of _IO_JUMPS_OFFSET.
21735
21736 * csu/init.c: Remove always-true #if around entire file.
21737 Don't include stdio.h. Set _IO_stdin_used to hardwired
21738 constant 0x20001, and update commentary.
21739 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21740 Replace all uses of _G_va_list with __gnuc_va_list.
21741 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21742 instead of #if _IO_HAVE_ST_BLKSIZE.
21743 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21744 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21745 not #ifdef.
21746
21747 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21748 multiple-include guard to match.
21749 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21750 into this file.
21751 Remove preprocessor conditionals that are always true and/or
21752 redundant to other preprocessor conditionals in the same nest.
21753 Include shlib-compat.h unconditionally.
21754 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21755 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21756 defined after including stdio.h.
21757 Use __BEGIN_DECLS/__END_DECLS.
21758
21759 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21760 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21761 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21762
21763 2018-02-07 Zack Weinberg <zackw@panix.com>
21764
21765 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21766 New single-type headers split from _G_config.h.
21767 * libio/bits/types/cookie_io_functions_t.h
21768 * libio/bits/types/struct_FILE.h
21769 New single-type headers split from libio.h.
21770
21771 * libio/Makefile: Install the above new headers. Don't install
21772 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21773 bits/libio-ldbl.h.
21774 * libio/_G_config.h, libio/libio.h: Delete file.
21775
21776 * libio/bits/libio.h: Remove improper-inclusion guard.
21777 Include stdio.h and don't repeat anything that it does.
21778 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21779 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21780 __io_read_fn as cookie_read_function_t,
21781 __io_write_fn as cookie_write_function_t,
21782 __io_seek_fn as cookie_seek_function_t,
21783 __io_close_fn as cookie_close_function_t,
21784 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21785 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21786 here, in the "compatibility defines" section. Remove an #if 0
21787 block. Use the "body" macros from bits/types/struct_FILE.h to
21788 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21789 and _IO_ferror_unlocked.
21790 Move prototypes of __uflow and __overflow...
21791
21792 * libio/stdio.h: ...here. Don't include bits/libio.h.
21793 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21794 directly from stdarg.h. Include bits/types/__fpos_t.h,
21795 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21796 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21797 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21798 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21799 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21800 __ssize_t, not _IO_ssize_t. Unconditionally define
21801 BUFSIZ as 8192 and EOF as (-1).
21802
21803 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21804 macros from bits/types/struct_FILE.h instead of _IO_* macros
21805 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21806 instead of _IO_ssize_t.
21807 * libio/bits/stdio2.h: Similarly.
21808
21809 * libio/iolibio.h: Add multiple-include guard.
21810 Include bits/libio.h after stdio.h.
21811 * libio/libioP.h: Add multiple-include guard.
21812 Include stdio.h and bits/libio.h before iolibio.h.
21813
21814 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21815 * include/bits/types/cookie_io_functions_t.h
21816 * include/bits/types/struct_FILE.h: New wrappers.
21817
21818 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21819 Get definitions of _G_fpos_t and _G_fpos64_t from
21820 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21821 respectively. Remove improper-inclusion guards.
21822
21823 * conform/data/stdio.h-data: Update expectations of va_list.
21824 * scripts/check-installed-headers.sh: Remove special case for
21825 libio.h and _G_config.h.
21826
21827 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21828
21829 [BZ #15105]
21830 [BZ #19463]
21831 * include/sys/sysmacros.h [!_ISOMAC]
21832 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21833 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21834 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21835 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21836 libc_hidden_proto.
21837 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21838 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21839 Likewise.
21840 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21841 Undefine and redefine to add use __gnu_dev_ prefix.
21842 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21843 Likewise.
21844 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21845 and define as hidden inline function.
21846 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21847 Likewise.
21848 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21849 Likewise.
21850 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21851 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21852 (gnu_dev_minor): Likewise.
21853 (gnu_dev_makedev): Likewise.
21854 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21855 makedev.
21856 * posix/wordexp.c (exec_comm_child): Likewise.
21857 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21858 instead of minor and __gnu_dev_major instead of major.
21859 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21860 __gnu_dev_major instead of major.
21861 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21862 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21863 instead of gnu_dev_minor.
21864 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21865 (SLAVE_P): Likewise.
21866 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21867 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21868 instead of major.
21869
21870 [BZ #21313]
21871 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21872 in another place.
21873 * locale/weightwc.h (findidx): Likewise.
21874
21875 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21876
21877 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21878 (slowlog_inexact): Likewise
21879 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21880 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21881
21882 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21883
21884 [BZ #22797]
21885 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21886 missing second underscore to parameter name.
21887
21888 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21889
21890 [BZ #14508]
21891 [BZ #15512]
21892 [BZ #17082]
21893 [BZ #20530]
21894 * bits/byteswap.h: Update file comment. Do not include
21895 <bits/byteswap-16.h>.
21896 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21897 constant.
21898 (__bswap_16): Define as inline function.
21899 (__bswap_constant_32): Reformat definition.
21900 (__bswap_32): Always define as inline function, not macro, using
21901 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21902 otherwise __bswap_constant_32.
21903 (__bswap_constant_64): Reformat definition. Do not use
21904 __extension__ here.
21905 (__bswap_64): Always define as inline function, not macro. Use
21906 __extension__ on function definition. Use __builtin_bswap64 if
21907 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21908 * string/test-endian-file-scope.c: New file.
21909 * string/test-endian-sign-conversion.c: Likewise.
21910 * string/Makefile (headers): Remove bits/byteswap-16.h.
21911 (tests): Add test-endian-file-scope and
21912 test-endian-sign-conversion.
21913 (CFLAGS-test-endian-sign-conversion.c): New variable.
21914 * bits/byteswap-16.h: Remove file.
21915 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21916 * sysdeps/ia64/bits/byteswap.h: Likewise.
21917 * sysdeps/m68k/bits/byteswap.h: Likewise.
21918 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21919 * sysdeps/s390/bits/byteswap.h: Likewise.
21920 * sysdeps/tile/bits/byteswap.h: Likewise.
21921 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21922 * sysdeps/x86/bits/byteswap.h: Likewise.
21923
21924 [BZ #17721]
21925 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21926 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21927 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21928 199901L] (__restrict): Define to restrict.
21929
21930 [BZ #19667]
21931 * string/testcopy.c: Include <support/support.h>. Do not include
21932 <malloc.h>. Use <support/test-driver.c>.
21933 (main): Rename to do_test. Make static. Use xmalloc instead of
21934 malloc.
21935
21936 [BZ #13575]
21937 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21938 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21939 (SSIZE_MAX): Define to INT_MAX.
21940 * posix/test-ssize-max.c: New file.
21941 * posix/Makefile (tests): Add test-ssize-max.
21942
21943 [BZ #19668]
21944 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21945 <support/support.h>. Do not include <malloc.h>.
21946 (query_auxv): Use xmalloc instead of malloc.
21947
21948 [BZ #14553]
21949 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21950 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21951 instead of loff_t.
21952
21953 2018-02-06 Florian Weimer <fweimer@redhat.com>
21954
21955 [BZ #18023]
21956 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21957 Use scratch_buffer instead of extend_alloca.
21958
21959 2018-02-06 Zack Weinberg <zackw@panix.com>
21960
21961 * libio/stdio.h: Don't define getc or putc as macros.
21962 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21963 not _IO_getc and _IO_putc.
21964
21965 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21966 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21967
21968 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21969
21970 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21971 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21972
21973 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21974
21975 [BZ #14890]
21976 * elf/elf.h (NT_PRFPREG): New macro.
21977 (NT_S390_VXRS_LOW): Likewise.
21978 (NT_S390_VXRS_HIGH): Likewise.
21979 (NT_S390_GS_CB): Likewise.
21980 (NT_S390_GS_BC): Likewise.
21981 (NT_S390_RI_CB): Likewise.
21982
21983 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21984 (MAP_SYNC): New macro.
21985 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21986 Likewise.
21987 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21988 (MAP_SYNC): Likewise.
21989 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21990 (MAP_SYNC): Likewise.
21991 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21992 (MAP_SYNC): Likewise.
21993 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21994 (MAP_SYNC): Likewise.
21995 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21996 (MAP_SYNC): Likewise.
21997 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21998 (MAP_SYNC): Likewise.
21999 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
22000 Likewise.
22001 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
22002 Likewise.
22003
22004 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
22005 (MAP_SHARED_VALIDATE): New macro.
22006 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
22007 (MAP_SHARED_VALIDATE): Likewise.
22008
22009 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22010
22011 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
22012 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
22013 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
22014
22015 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22016
22017 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
22018 (DT_NUM): Updated to 35.
22019
22020 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22021
22022 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
22023 __builtin_expect with __glibc_likely and __glibc_unlikely.
22024 (elf_machine_rela): Likewise.
22025 (elf_machine_lazy_rel): Likewise.
22026
22027 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22028
22029 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
22030 __builtin_expect with __glibc_likely and __glibc_unlikely.
22031 (elf_machine_lazy_rel): Likewise.
22032
22033 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22034
22035 [BZ #22638]
22036 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
22037 SHARED.
22038 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
22039
22040 2018-02-05 Andreas Schwab <schwab@suse.de>
22041
22042 [BZ #22761]
22043 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
22044 string.
22045
22046 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
22047
22048 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22049 not check against PTHREAD_STACK_MIN.
22050
22051 2018-02-02 Sean McKean <smckean83@gmail.com>
22052
22053 [BZ #22735]
22054 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22055
22056 2018-02-02 Florian Weimer <fweimer@redhat.com>
22057
22058 [BZ #22753]
22059 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22060 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22061 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22062 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22063 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22064 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22065 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22066 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22067 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22068 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22069 * misc/tst-preadvwritev2.c (do_test): Call it.
22070 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22071
22072 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22073
22074 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22075
22076 * benchtests/bench-memcmp.c: Print json instead of plain text.
22077
22078 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22079 every test run.
22080
22081 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22082
22083 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22084 version to 4.15.
22085 (s390_sthyi): New syscall.
22086
22087 * sysdeps/generic/ldbl-classify-compat.h: New file.
22088 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22089 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22090 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22091 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22092 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22093 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22094 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22095 <ldbl-classify-compat.h>.
22096 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22097 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22098 <ldbl-classify-compat.h>.
22099 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22100 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22101 <ldbl-classify-compat.h>.
22102 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22103 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22104 <ldbl-classify-compat.h>.
22105 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22106 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22107 <ldbl-classify-compat.h>.
22108 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22109 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22110 <ldbl-classify-compat.h>.
22111 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22112 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22113 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22114 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22115 * sysdeps/microblaze/math_private.h: Likewise.
22116 * sysdeps/nios2/math_private.h: Likewise.
22117 * sysdeps/sh/math_private.h: Likewise.
22118
22119 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22120 * sysdeps/m68k/coldfire/math_private.h: ... here.
22121 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22122 * sysdeps/tile/math_private.h: Likewise.
22123 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22124 Remove macro.
22125 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22126 Likewise.
22127
22128 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22129 Remove macro.
22130 (libc_fetestexcept): Likewise.
22131 (libc_feupdateenv_test): Likewise.
22132 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22133 (libc_fetestexcept): Likewise.
22134 (libc_feupdateenv_test): Likewise.
22135 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22136 (libc_fetestexcept): Likewise.
22137 (libc_feupdateenv_test): Likewise.
22138 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22139 (libc_fetestexcept): Likewise.
22140 (libc_feupdateenv_test): Likewise.
22141
22142 * sysdeps/generic/math_private.h
22143 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22144 New inline function.
22145 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22146 Likewise.
22147
22148 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22149 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22150 * sysdeps/generic/math_private.h
22151 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22152 inline function.
22153 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22154 Likewise.
22155 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22156 Likewise.
22157 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22158 Likewise.
22159 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22160 Likewise.
22161 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22162 Likewise.
22163 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22164 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22165 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22166 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22167 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22168 (__fegetenv): Likewise.
22169 (fesetenv): Likewise.
22170 (__fesetenv): Likewise.
22171 (feupdateenv): Likewise.
22172 (__feupdateenv): Likewise.
22173 (fegetround): Likewise.
22174 (__fegetround): Likewise.
22175 (fesetround): Likewise.
22176 (__fesetround): Likewise.
22177
22178 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22179 (feraiseexcept): New macro.
22180 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22181 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22182 Remove macro.
22183 (__feraiseexcept): Likewise.
22184 (feclearexcept): Likewise.
22185 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22186 (__feraiseexcept): Likewise.
22187 (feclearexcept): Likewise.
22188 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22189 (__feraiseexcept): Likewise.
22190 (feclearexcept): Likewise.
22191 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22192 (__feraiseexcept): Likewise.
22193 (feclearexcept): Likewise.
22194 (fetestexcept): Likewise.
22195
22196 * sysdeps/m68k/coldfire/math-tests.h: New file.
22197
22198 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22199 * sysdeps/m68k/bits/fenv.h: ... here.
22200 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22201 not define.
22202 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22203 Likewise.
22204 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22205 Likewise.
22206 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22207 Likewise.
22208 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22209 Likewise.
22210 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22211 Define to 0.
22212 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22213 (__FE_UNDEFINED): New enum constant.
22214 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22215 Do not define.
22216 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22217 Likewise.
22218 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22219 Likewise.
22220 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22221 to match generic bits/fenv.h.
22222 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22223 Do not define.
22224
22225 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22226 packed on bits.
22227 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22228 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22229 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22230 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22231
22232 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22233 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22234 Joseph Myers <joseph@codesourcery.com>
22235
22236 [BZ #21314]
22237 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22238 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22239 computation using c.
22240 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22241 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22242 computation using c.
22243
22244 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22245
22246 * version.h (RELEASE): Set to "development".
22247 (VERSION): Set to "2.27.9000".
22248 * NEWS (2.28): New section.
22249
22250 * version.h (RELEASE): Set to "stable".
22251 (VERSION): Set to "2.27".
22252 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22253
22254 * NEWS: Add the list of bugs fixed in 2.27.
22255
22256 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22257
22258 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22259 against PTHREAD_STACK_MIN.
22260
22261 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22262
22263 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22264 New entries.
22265 (Rafał Lużyński, Andreas Schwab): Update.
22266
22267 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22268
22269 [BZ #10871]
22270 * NEWS: List the languages which actually use the alternative
22271 months feature in this release. Also explain that "alt_mon" and
22272 "ab_alt_mon" are optional.
22273
22274 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22275
22276 [BZ #22765]
22277 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22278
22279 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22280
22281 * manual/install.texi (Tools for Compilation): Update the newest
22282 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22283 * INSTALL: Regenerated.
22284
22285 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22286
22287 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22288 instead of __builtin_expect.
22289
22290 2018-01-30 Florian Weimer <fweimer@redhat.com>
22291
22292 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22293 data.
22294 * nss/tst-nss-getpwent.c (do_test): Likewise.
22295
22296 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22297
22298 [BZ #10871]
22299 * localedata/locales/hr_HR (mon): Rename to...
22300 (alt_mon): This.
22301 (mon): Import from CLDR (genitive case).
22302 (d_t_fmt): Update the comment.
22303
22304 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22305
22306 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22307 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22308 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22309
22310 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22311
22312 * mach/Versions: Fix version when __mach_host_self_ was added.
22313 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22314 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22315 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22316 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22317 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22318 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22319 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22320 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22321 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22322 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22323 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22324 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22325 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22326 || to respect codestyle.
22327 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22328 (do_test_bz20181): Rename accordingly.
22329 * malloc/malloc.c: Include <assert.h>.
22330 (assert): Do not define.
22331 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22332 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22333 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22334 * sysdeps/mach/hurd/hp-timing.h: New file.
22335 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22336
22337 2018-01-29 Darius Rad <darius@bluespec.com>
22338
22339 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22340
22341 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22342
22343 * sysdeps/init_array/crti.S (.section .init_array): Add
22344 PREINIT_FUNCTION when defined.
22345 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22346 * config.h.in: Regenerate.
22347 * manual/platform.texi: Add RISC-V documenation for
22348 __riscv_flush_icache.
22349 * sysdeps/riscv/__longjmp.S: New file.
22350 * sysdeps/riscv/backtrace.c: Likewise.
22351 * sysdeps/riscv/bits/endian.h: Likewise.
22352 * sysdeps/riscv/bits/setjmp.h: Likewise.
22353 * sysdeps/riscv/bits/wordsize.h: Likewise.
22354 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22355 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22356 * sysdeps/riscv/dl-trampoline.S: Likewise.
22357 * sysdeps/riscv/gccframe.h: Likewise.
22358 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22359 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22360 * sysdeps/riscv/machine-gmon.h: Likewise.
22361 * sysdeps/riscv/memusage.h: Likewise.
22362 * sysdeps/riscv/setjmp.S: Likewise.
22363 * sysdeps/riscv/sys/asm.h: Likewise.
22364 * sysdeps/riscv/tls-macros.h: Likewise.
22365 * sysdeps/riscv/dl-tls.h: New file.
22366 * sysdeps/riscv/libc-tls.c: Likewise.
22367 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22368 * sysdeps/riscv/nptl/tls.h: Likewise.
22369 * sysdeps/riscv/stackinfo.h: Likewise.
22370 * sysdeps/riscv/bits/fenv.h: New file.
22371 * sysdeps/riscv/e_sqrtl.c: Likewise.
22372 * sysdeps/riscv/fpu_control.h: Likewise.
22373 * sysdeps/riscv/math-tests.h: Likewise.
22374 * sysdeps/riscv/nofpu/Implies: Likewise.
22375 * sysdeps/riscv/sfp-machine.h: Likewise.
22376 * sysdeps/riscv/tininess.h: Likewise.
22377 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22378 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22379 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22380 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22381 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22382 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22383 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22384 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22385 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22386 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22387 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22388 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22389 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22390 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22391 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22392 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22393 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22394 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22395 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22396 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22397 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22398 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22399 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22400 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22401 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22402 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22403 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22404 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22405 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22406 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22407 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22408 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22409 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22410 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22411 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22412 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22413 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22414 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22415 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22416 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22417 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22418 * sysdeps/riscv/rvf/math_private.h: Likewise.
22419 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22420 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22421 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22422 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22423 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22424 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22425 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22426 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22427 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22428 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22429 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22430 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22431 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22432 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22433 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22434 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22435 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22436 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22437 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22438 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22439 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22440 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22441 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22442 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22443 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22444 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22445 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22446 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22447 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22448 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22449 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22450 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22451 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22452 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22453 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22454 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22455 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22456 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22457 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22458 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22459 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22460 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22461 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22462 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22463 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22464 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22465 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22466 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22467 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22468 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22469 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22470 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22471 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22472 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22473 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22474 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22475 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22476 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22477 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22478 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22479 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22480 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22481 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22482 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22483 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22484 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22485 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22486 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22487 * sysdeps/riscv/Implies: New file.
22488 * sysdeps/riscv/Makefile: Likewise.
22489 * sysdeps/riscv/configure: Likewise.
22490 * sysdeps/riscv/configure.ac: Likewise.
22491 * sysdeps/riscv/nptl/Makefile: Likewise.
22492 * sysdeps/riscv/preconfigure: Likewise.
22493 * sysdeps/riscv/rv64/Implies-after: Likewise.
22494 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22495 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22496 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22497 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22498 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22499 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22500 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22501 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22502 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22503 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22504 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22505 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22506 (Config): Likewise.
22507
22508 2018-01-29 Florian Weimer <fweimer@redhat.com>
22509
22510 [BZ #22701]
22511 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22512 libnsl_hidden_proto.
22513 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22514 libnsl_hidden_proto.
22515 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22516 * nis/Makefile (libnsl-routines): Add nss-default only for
22517 build-obsolete-nsl.
22518 * nis/nis_defaults.c (__nis_default_ttl): Add
22519 libnsl_hidden_nolink_def.
22520 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22521 declaration.
22522 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22523 * nis/ypclnt.c (yp_maplist): Likewise.
22524
22525 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22526
22527 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22528 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22529
22530 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22531
22532 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22533 clean -dxfq for git updates when replacing sources.
22534
22535 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22536 --disable-libcilkrts unconditionally, not just for the final GCC
22537 build for Hurd.
22538
22539 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22540 version to 4.15.
22541
22542 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22543
22544 [BZ #10871]
22545 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22546 case).
22547
22548 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22549
22550 [BZ #10871]
22551 * localedata/locales/be_BY (mon): Rename to...
22552 (alt_mon): This, then synchronize with CLDR (nominative case).
22553 (abmon): Rename to...
22554 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22555 (mon): Import from CLDR (genitive case).
22556 (abmon): Likewise.
22557 * localedata/locales/be_BY@latin (mon): Rename to...
22558 (alt_mon): This.
22559 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22560
22561 * localedata/locales/be_BY@latin (lang_name): Reworded to
22562 "biełaruskaja mova".
22563
22564 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22565
22566 [BZ #10871]
22567 * localedata/locales/el_CY (mon): Renamed to...
22568 (alt_mon): This.
22569 (mon): Import from CLDR (genitive case).
22570 * localedata/locales/el_GR: Likewise.
22571
22572 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22573
22574 [BZ #10871]
22575 * localedata/locales/ru_RU (mon): Rename to...
22576 (alt_mon): This.
22577 (abmon): Rename to...
22578 (ab_alt_mon): This.
22579 (mon): Import from CLDR (genitive case).
22580 (abmon): Copy from the old content except the 5th month which is
22581 now in the genitive case, even when abbreviated.
22582 * localedata/locales/ru_UA: Likewise.
22583 * time/tst-strptime.c (day_tests): Add an actual example of
22584 a difference between %b and %Ob in Russian.
22585
22586 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22587
22588 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22589 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22590 a `c' variable.
22591 * resolv/res-close.c: Include <stdlib.h>.
22592 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22593 <sys/wait.h>, <time.h>, <sys/uio.h>.
22594 (NOT_CANCEL_H): Add inclusion guard.
22595 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22596 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22597 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22598 return 0.
22599 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22600 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22601 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22602 instead of void *.
22603 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22604 timer_ptr2id to cast struct timer_node * to void *.
22605 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22606 --disable-libcilkrts to gcc configure.
22607 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22608 and make them the default for now.
22609 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22610 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22611 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22612 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22613 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22614 MACH_IPC_COMPAT.
22615 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22616 __task_terminate would ever return successfully.
22617 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22618 to global scope.
22619 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22620 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22621 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22622 critical section to make code simpler and avoid warning.
22623 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22624 critical section to make code simpler and avoid warning.
22625 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22626 const char * instead of char *.
22627 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22628 __hurd_file_name_split, hurd_file_name_split,
22629 __hurd_directory_name_split, hurd_directory_name_split,
22630 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22631 hurd_file_name_path_lookup): Make lookup function parameter take a
22632 const char *name instead of char *name.
22633 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22634 __hurd_directory_name_split): Likewise.
22635 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22636 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22637 * sysdeps/mach/hurd/check_native.c: New file.
22638 * sysdeps/mach/hurd/check_pf.c: New file.
22639 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22640 (__freeifaddrs): Define macro to freeifaddrs.
22641 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22642 * sysdeps/mach/libmachuser.abilist: New file.
22643 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22644 (do_test_bz20181): Rename accordingly.
22645 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22646 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22647 <sys/mount.h>.
22648 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22649 version only if __USE_EXTERN_INLINES is defined.
22650 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22651 __hurd_sockfail): Likewise.
22652 (_hurd_fd_get): Always declare functions, and provide inline versions
22653 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22654 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22655 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22656 _hurd_port_set): Always declare functions, and provide inline versions
22657 only if __USE_EXTERN_INLINES and _LIBC are defined and
22658 IS_IN(libc).
22659 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22660 _hurd_critical_section_unlock): Likewise.
22661 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22662 * __hurd_threadvar_location): Likewise.
22663 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22664 _hurd_userlink_clear): Likewise.
22665 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22666 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22667 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22668 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22669 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22670 __spin_lock_locked): Likewise.
22671 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22672 __spin_lock_locked): Likewise.
22673 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22674 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22675 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22676 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22677 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22678 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22679 _POSIX_NO_TRUNC): Define to 0.
22680 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22681 check size against PTHREAD_STACK_MIN.
22682 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22683 IS_IN(libpthread)]: Include <sigsetops.h>.
22684 * mach/Makefile (user-interfaces): Add mach/gnumach.
22685 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22686 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22687 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22688 instead of invalid -1.
22689 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22690 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22691 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22692 <net/ppp_defs.h>.
22693
22694 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22695
22696 * hurd/fcntl-internal.h: New file.
22697
22698 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22699
22700 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22701
22702 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22703
22704 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22705
22706 [BZ #22701]
22707 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22708 Build only shared objects.
22709
22710 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22711
22712 * README: Update for hppa.
22713
22714 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22715
22716 * sysdeps/sparc/fpu/libm-test-ulps: Update
22717 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22718
22719 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22720
22721 Revert:
22722
22723 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22724
22725 [BZ #22563]
22726 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22727 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22728 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22729 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22730 to feature_1.
22731
22732 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22733
22734 [BZ #22563]
22735 * bits/types/__cancel_jmp_buf_tag.h: New file.
22736 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22737 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22738 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22739 * nptl/Makefile (headers): Add
22740 bits/types/__cancel_jmp_buf_tag.h.
22741 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22742 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22743 * sysdeps/nptl/pthread.h: Include
22744 <bits/types/__cancel_jmp_buf_tag.h>.
22745 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22746 __cancel_jmp_buf.
22747 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22748
22749 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22750
22751 [BZ #10871]
22752 * localedata/locales/uk_UA (mon): Renamed to...
22753 (alt_mon): This.
22754 (alt_digits): "0" removed and then renamed to...
22755 (mon): This.
22756 (date_fmt): Definition changed not to use the alternative
22757 digits hack.
22758
22759 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22760
22761 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22762 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22763 * elf/elf.h (EF_RISCV_RVC): New define.
22764 (EF_RISCV_FLOAT_ABI): Likewise.
22765 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22766 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22767 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22768 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22769 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22770 define.
22771 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22772
22773 2018-01-25 Andreas Schwab <schwab@suse.de>
22774
22775 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22776 single quotes.
22777 * sysdeps/gnu/configure: Regenerate.
22778 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22779 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22781 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22782 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22783 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22784 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22785 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22786
22787 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22788
22789 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22790 URL, and run autoconf, make it the default for now.
22791
22792 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22793
22794 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22795 soft-float ColdFire configuration.
22796
22797 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22798 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22799 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22800
22801 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22802 MicroBlaze file.
22803
22804 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22805 ....
22806 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22807 ... here.
22808 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22809 New file.
22810
22811 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22812 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22813 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22814 file.
22815
22816 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22817
22818 [BZ #22742]
22819 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22820 Rename to __reserved and add comment.
22821 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22822 Rename to __reserved.
22823
22824 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22825
22826 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22827 i686-gnu configurations.
22828 (Context.run_builds): Include mig, gnumach and hurd in components
22829 considered.
22830 (Context.checkout): Add mig, gnumach and hurd to components.
22831 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22832 hurd.
22833 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22834 (Config.build): Install gnumach headers, build mig and install
22835 hurd headers for 'gnu' OS.
22836 (Config.install_gnumach_headers): New function.
22837 (Config.install_hurd_headers): Likewise.
22838 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22839 when building for 'gnu' OS.
22840
22841 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22842
22843 * manual/tunables.texi (Hardware Capability Tunables): Fix
22844 spelling.
22845
22846 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22847
22848 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22849 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22850 (ALTMON_11, ALTMON_12): Improve documentation.
22851 * manual/time.texi (strftime): Likewise.
22852
22853 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22854
22855 [BZ #10871]
22856 * localedata/locales/pl_PL: Alternative month names added,
22857 primary month names are genitive now.
22858 * time/tst-strptime.c (day_tests): Actually use a genitive case
22859 of a month name in Polish language.
22860
22861 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22862
22863 [BZ #10871]
22864 * manual/locale.texi: Document ALTMON_1..12 constants for
22865 nl_langinfo. Specify when to use ALTMON instead of MON.
22866 * manual/time.texi (strftime, strptime): Document GNU extension
22867 permitting O modifier with %B and %b. Specify when to use
22868 %OB instead of %B.
22869
22870 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22871
22872 [BZ #10871]
22873 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22874 names, define them as the same as abbreviated month names explicitly.
22875 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22876 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22877 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22878 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22879 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22880 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22881 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22882 _NL_WABALTMON_12): New enum constants.
22883 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22884 wab_alt_mon, and ab_alt_mon_defined members.
22885 (time_output): Output ab_alt_mon and wab_alt_mon members.
22886 (time_read): Read them, initialize them as copies of abmon and wabmon
22887 respectively if they are missing, initialize ab_alt_mon_defined.
22888 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22889 * locale/programs/locfile-kw.h: Regenerate.
22890 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22891 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22892 and ru_RU.UTF-8.
22893 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22894 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22895 (__strftime_internal): Handle %Ob and %Oh formats.
22896 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22897 (__strptime_internal): Handle %Ob and %Oh formats.
22898 * time/tst-strptime.c (day_tests): Add more tests to parse different
22899 forms of month names including the new %Ob format specifier.
22900
22901 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22902
22903 [BZ #10871]
22904 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22905 define them as the same as primary full month names explicitly.
22906 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22907 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22908 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22909 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22910 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22911 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22912 _NL_WALTMON_12): New enum constants.
22913 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22914 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22915 macros.
22916 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22917 walt_mon, and alt_mon_defined members.
22918 (time_output): Output alt_mon and walt_mon members.
22919 (time_read): Read them, initialize them as copies of mon and wmon
22920 respectively if they are missing, initialize alt_mon_defined.
22921 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22922 * locale/programs/locfile-kw.h: Regenerate.
22923 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22924 * localedata/tst-langinfo.c (map): Add tests for the new constants
22925 ALTMON_1 .. ALTMON_12.
22926 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22927 and pl_PL.UTF-8.
22928 * time/strftime_l.c (f_altmonth): New macro.
22929 (__strftime_internal): Handle %OB format.
22930 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22931 (__strptime_internal): Handle %OB format.
22932 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22933 of month names including the new %OB format specifier.
22934
22935 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22936
22937 [BZ #22685]
22938 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22939 from ABORT_TRANSACTION.
22940 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22941 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22942 ABORT_TRANSACTION_IMPL): Likewise.
22943 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22944 Linux code, but remove the code that aborts transactions.
22945
22946 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22947
22948 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22949
22950 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22951
22952 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22953 in date: "2004-14-09" should be "2004-09-14".
22954 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22955 "2003-15-09" should be "2003-09-15".
22956
22957 2018-01-18 Arjun Shankar <arjun@redhat.com>
22958
22959 [BZ #22343]
22960 [BZ #22774]
22961 CVE-2018-6485
22962 CVE-2018-6551
22963 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22964 after padding.
22965 (_int_memalign): check for integer overflow before calling
22966 _int_malloc.
22967 * malloc/tst-malloc-too-large.c: New test.
22968 * malloc/Makefile: Add tst-malloc-too-large.
22969
22970 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22971
22972 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22973 in date: "2017-24-07" should be "2017-07-24".
22974 * localedata/locales/mai_IN: Likewise.
22975 * localedata/locales/mai_NP: Likewise.
22976
22977 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22978
22979 * po/ru.po: Update translations.
22980
22981 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22982
22983 [BZ #22719]
22984 * sysdeps/hppa/backtrace.c: New file.
22985
22986 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22987
22988 [BZ #22715]
22989 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22990 align La_x86_64_retval to VEC_SIZE.
22991
22992 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22993
22994 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22995 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22996
22997 2018-01-16 Florian Weimer <fweimer@redhat.com>
22998
22999 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
23000 Move tst-thread-exit-clobber ...
23001 [$(CXX)] (tests-unsupported): ... to here.
23002
23003 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23004
23005 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
23006 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
23007 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23008 (_dl_aarch64_cap_flags): Update.
23009 (_DL_HWCAP_COUNT): Update.
23010
23011 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23012
23013 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
23014 (_DL_HWCAP_LAST): Remove.
23015 (_DL_HWCAP_COUNT): Move to ...
23016 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23017 (_DL_HWCAP_COUNT): ... here.
23018
23019 2018-01-16 Florian Weimer <fweimer@redhat.com>
23020
23021 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
23022 mode with GNU extensions.
23023
23024 2018-01-15 Alan Hayward <alan.hayward@arm.com>
23025
23026 * elf/elf.h (NT_ARM_SVE): Define.
23027
23028 2018-01-15 Florian Weimer <fweimer@redhat.com>
23029
23030 [BZ #22636]
23031 * nptl/tst-minstack-throw.cc: New file.
23032 * nptl/Makefile (tests): Add tst-minstack-throw.
23033 (LDLIBS-tst-minstack-throw): Link with libstdc++.
23034 [!CXX] (tests-unsupported): Add tst-minstack-throw.
23035
23036 2018-01-15 Joseph Myers <joseph@codesourcery.com>
23037
23038 * scripts/build-many-glibcs.py (Context.checkout): Default
23039 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
23040 version to 1.1.0.
23041
23042 2018-01-13 Carlos O'Donell <carlos@redhat.com>
23043
23044 [BZ #22707]
23045 * elf/elf.h (DF_1_STUB): Define.
23046 (DF_1_PIE): Define.
23047
23048 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23049
23050 [BZ #22697]
23051 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23052 Do not add 0.5 to integer or out-of-range arguments.
23053
23054 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23055
23056 * po/bg.po: Update translations.
23057 * po/cs.po: Likewise.
23058 * po/de.po: Likewise.
23059 * po/ko.po: Likewise.
23060 * po/pl.po: Likewise.
23061 * po/sv.po: Likewise.
23062 * po/uk.po: Likewise.
23063 * po/vi.po: Likewise.
23064
23065 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23066
23067 * aarch64/start.S (_start): Use __wrap_main.
23068 (__wrap_main): New local symbol.
23069
23070 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23071
23072 [BZ #22679]
23073 CVE-2018-1000001
23074 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23075 generic_getcwd if the path returned by getcwd syscall is not absolute.
23076 * io/tst-getcwd-abspath.c: New test.
23077 * io/Makefile (tests): Add tst-getcwd-abspath.
23078
23079 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23080
23081 * malloc/malloc.c (malloc_consolidate): Add size check.
23082
23083 2018-01-12 Florian Weimer <fweimer@redhat.com>
23084
23085 * support/write_message.c (write_message): Preserve errno.
23086 * support/check.c (print_failure): Likewise.
23087 * support/support_test_verify_impl.c (support_test_verify_impl):
23088 Likewise.
23089 * support/support_test_compare_failure.c
23090 (support_test_compare_failure): Likewise.
23091
23092 2018-01-12 Florian Weimer <fweimer@redhat.com>
23093
23094 [BZ #22701]
23095 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23096 Prevent installation of libnsl.so.
23097 (libnsl-inhibit-o): Do not build (or install) static libraries.
23098
23099 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23100
23101 [BZ #22657]
23102 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23103 before the day number which may produce a double space.
23104 (date_fmt): Likewise.
23105
23106 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23107
23108 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23109 instead of fegetenv.
23110
23111 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23112
23113 [BZ #22702]
23114 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23115 comment to say exceptions are discarded.
23116 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23117 __fegetenv.
23118 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23119 be enabled.
23120
23121 2018-01-11 Florian Weimer <fweimer@redhat.com>
23122
23123 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23124 and error message.
23125
23126 2018-01-11 Florian Weimer <fweimer@redhat.com>
23127
23128 [BZ #22636]
23129 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23130 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23131
23132 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23133
23134 [BZ #22693]
23135 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23136 negative arguments in test for NaN or infinity argument.
23137
23138 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23139
23140 * po/libc.pot: Regenerate.
23141
23142 2018-01-10 Florian Weimer <fweimer@redhat.com>
23143
23144 [BZ #22636]
23145 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23146 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23147
23148 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23149
23150 * hurd/hurd/fd.h: Include <fcntl.h>
23151 (__hurd_at_flags): New function.
23152 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23153 with call to __hurd_at_flags.
23154 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23155 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23156 __faccessat
23157 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23158 (__access_noerrno): Use __faccessat_common instead of access_common.
23159 (__access): Likewise.
23160 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23161 with a call to __faccessat.
23162 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23163 (__faccessat_common): ... this. Move implementation of __access into it when
23164 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23165 reauthenticate_cwdir_at helper to implement AT mechanism.
23166 (__faccessat_noerrno): New function, just calls __faccessat_common.
23167 (__faccessat): New function, just calls __faccessat_common.
23168 (faccessat): Define weak alias.
23169
23170 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23171
23172 [BZ #22691]
23173 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23174 (CFLAGS-s_fmaxmagl.c): New variable.
23175 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23176
23177 [BZ #22690]
23178 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23179 long int for arguments of possibly overflowing addition or
23180 subtraction.
23181 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23182
23183 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23184
23185 [BZ #22688]
23186 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23187 (CFLAGS-e_remainderl.c): New variable.
23188
23189 [BZ #22687]
23190 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23191 variable.
23192 (CFLAGS-s_cacoshl.c): Likewise.
23193 (CFLAGS-s_casinhl.c): Likewise.
23194 (CFLAGS-s_catanl.c): Likewise.
23195 (CFLAGS-s_catanhl.c): Likewise.
23196 (CFLAGS-s_cexpl.c): Likewise.
23197 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23198 (CFLAGS-s_csinhl.c): Likewise.
23199 (CFLAGS-s_clogl.c): Likewise.
23200 (CFLAGS-s_clog10l.c): Likewise.
23201 (CFLAGS-s_csinl.c): Likewise.
23202 (CFLAGS-s_csqrtl.c): Likewise.
23203
23204 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23205 2017-01-09 Svante Signell <svante.signell@gmail.com>
23206
23207 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23208 (_hurd_exec_paths): New function.
23209 * hurd/hurd.h (_hurd_exec): Deprecate function.
23210 (_hurd_exec_paths): Declare function.
23211 * hurd/Versions: Export _hurd_exec_paths.
23212 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23213 (__execve): Use __getcwd to build absolute path, and use
23214 _hurd_exec_paths instead of _hurd_exec.
23215 * sysdeps/mach/hurd/spawni.c: Likewise.
23216 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23217 _hurd_exec.
23218
23219 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23220
23221 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23222 test instead of failing in case of ENOENT returned by posix_openpt.
23223
23224 2018-01-08 Florian Weimer <fweimer@redhat.com>
23225
23226 resolv: Support binary labels in test framework.
23227 * support/resolv_test.c (struct to_be_freed): Remove.
23228 (struct compressed_name): New.
23229 (allocate_compressed_name, ascii_tolower)
23230 (compare_compressed_name): New functions.
23231 (struct resolv_response_builder): Update type of
23232 compression_offsets for use with tsearch. Rempve to_be_freed.
23233 (response_push_pointer_to_free): Remove function.
23234 (resolv_response_add_name): Rewrite using struct compressed_name
23235 and tsearch instead of hsearch_r.
23236 (response_builder_allocate): Remove initialization of
23237 compression_offsets.
23238 (response_builder_free): Update for removal of to_be_freed. Use
23239 tdestroy instead of hdestroy_r.
23240 * resolv/Makefile (tests): Add tst-resolv-binary.
23241 (tst-resolv-binary): Link with -lresolv -lpthread.
23242
23243 2018-01-08 Florian Weimer <fweimer@redhat.com>
23244
23245 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23246 time. Pass positive flag instead of negative flag to
23247 support_test_compare_failure.
23248 (support_test_compare_failure): Change negative parameter to
23249 positive.
23250 * support/support_test_compare_failure.c (report)
23251 (support_test_compare_failure): Likewise.
23252 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23253 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23254
23255 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23256
23257 [BZ #22637]
23258 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23259 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23260 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23261 stacksize.
23262 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23263
23264 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23265
23266 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23267 Add s_sincosf-sse2 and s_sincosf-fma.
23268 (CFLAGS-s_sincosf-fma.c): New.
23269 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23270 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23271 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23272 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23273 __sincosf is defined.
23274
23275 2018-01-08 Florian Weimer <fweimer@redhat.com>
23276
23277 * nptl/tst-thread-exit-clobber.cc: New file.
23278 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23279 C++11 mode.
23280 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23281 (tests): Add tst-thread-exit-clobber.
23282 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23283
23284 2018-01-08 Florian Weimer <fweimer@redhat.com>
23285
23286 * support/check.h (support_static_assert): Define.
23287 (TEST_COMPARE): Use it.
23288
23289 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23290
23291 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23292 [!__RLIM_T_MATCHES_RLIM64_T]
23293 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23294 __getrlimit64. Add libc_hidden_weak.
23295
23296 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23297
23298 * elf/elf.h (R_RISCV_NONE): New define.
23299 (R_RISCV_32): Likewise.
23300 (R_RISCV_64): Likewise.
23301 (R_RISCV_RELATIVE): Likewise.
23302 (R_RISCV_COPY): Likewise.
23303 (R_RISCV_JUMP_SLOT): Likewise.
23304 (R_RISCV_TLS_DTPMOD32): Likewise.
23305 (R_RISCV_TLS_DTPMOD64): Likewise.
23306 (R_RISCV_TLS_DTPREL32): Likewise.
23307 (R_RISCV_TLS_DTPREL64): Likewise.
23308 (R_RISCV_TLS_TPREL32): Likewise.
23309 (R_RISCV_TLS_TPREL64): Likewise.
23310 * Makerules (make-link-multidir): Make directories before linking into
23311 them.
23312 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23313 define.
23314 (VDSO_HASH_LINUX_4_15): Likewise.
23315 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23316 in subdirectories of lib.
23317 * nptl/Makefile (/librt.so): Always depend on
23318 "$(shared-thread-library)".
23319
23320 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23321
23322 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23323 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23324 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23325 (___tls_get_addr).
23326 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23327 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23328 "-O2 -march=i686".
23329 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23330 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23331 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23332 * sysdeps/gnu/glob-lstat-compat.c: New file.
23333 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23334 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23335
23336 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23337
23338 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23339 Reserve 16 chars to reloc_addr before calling _itoa_word.
23340
23341 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23342
23343 [BZ #22678]
23344 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23345 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23346
23347 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23348 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23349
23350 * resource/tst-getrlimit.c: Add copyright header.
23351
23352 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23353 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23354
23355 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23356 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23357 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23358 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23359 instead.
23360 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23361 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23362 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23363 RLIM64_INFINITY): Fix values to match the kernel ones.
23364 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23365 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23366 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23367 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23368 getrlimit64@@GLIBC_2_27.
23369 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23370 and setrlimit64.
23371 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23372 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23373 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23374 setrlimit, getrlimit64 and setrlimit64.
23375
23376 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23377
23378 [BZ #22648]
23379 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23380 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23381
23382 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23383
23384 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23385 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23386 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23387
23388 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23389
23390 [BZ #15479]
23391 [BZ #22666]
23392 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23393 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23394
23395 [BZ #15479]
23396 [BZ #22665]
23397 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23398 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23399 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23400 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23401
23402 2018-01-04 Florian Weimer <fweimer@redhat.com>
23403
23404 [BZ #22667]
23405 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23406 Align the stack before calling exit.
23407 * stdlib/tst-makecontext-align.c: New file.
23408 * stdlib/Makefile (tests): Add tst-makecontext-align.
23409
23410 2018-01-04 Florian Weimer <fweimer@redhat.com>
23411
23412 Add support for calling dlvsym from libc.so.
23413 * include/dlfcn.h (__libc_dlvsym): Declare.
23414 * elf/Makefile (tests-static-internal): Add
23415 tst-libc_dlvsym-static.
23416 (tests-internal): Add tst-libc_dlvsym.
23417 (modules-names): Add tst-libc_dlvsym-dso.
23418 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23419 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23420 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23421 object tst-libc_dlvsym-dso.so needs to be built before running
23422 these tests.
23423 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23424 * elf/Versions: Export __libc_dlvsym.
23425 * elf/dl-libc.c (struct do_dlvsym_args): New.
23426 (do_dlvsym, __libc_dlvsym): New functions.
23427 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23428 (_dl_open_hook2): New variable.
23429 (__libc_register_dl_open_hook): Set it.
23430 * elf/tst-libc_dlvsym-dso.c: New file.
23431 * elf/tst-libc_dlvsym-static.c: Likewise.
23432 * elf/tst-libc_dlvsym.c: Likewise.
23433 * elf/tst-libc_dlvsym.h: Likewise.
23434
23435 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23436
23437 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23438 include <sys/mount.h>.
23439
23440 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23441
23442 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23443 Add __NO_MATH_ERRNO__ check.
23444
23445 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23446
23447 * sysdeps/mips/mips32/libm-test-ulps: Update.
23448 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23449
23450 2018-01-02 Florian Weimer <fweimer@redhat.com>
23451
23452 * misc/tst-pselect.c: Add copyright header.
23453
23454 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23455
23456 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23457 comment.
23458 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23459 comment.
23460 (settrlimit): Rename into setrlimit.
23461 (__sttrlimit): Rename into __setrlimit.
23462
23463 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23464 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23465 never defined in that case.
23466
23467 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23468
23469 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23470
23471 * sysdeps/arm/libm-test-ulps: Update.
23472
23473 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23474 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23475
23476 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23477
23478 * NEWS: Add cosf and sincosf to list of optimized functions.
23479
23480 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23481
23482 [BZ #22660]
23483 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23484 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23485 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23486 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23487
23488 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23489
23490 [BZ #22433]
23491 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23492
23493 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23494 making a copy of it.
23495
23496 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23497
23498 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23499 trailing whitespace removed.
23500 * scripts/config.guess: Update to version 2018-01-01.
23501 * scripts/config.sub: Update to version 2018-01-01.
23502 * scripts/move-if-change: Update from gnulib.
23503
23504 * NEWS: Update copyright dates.
23505 * catgets/gencat.c (print_version): Likewise.
23506 * csu/version.c (banner): Likewise.
23507 * debug/catchsegv.sh: Likewise.
23508 * debug/pcprofiledump.c (print_version): Likewise.
23509 * debug/xtrace.sh (do_version): Likewise.
23510 * elf/ldconfig.c (print_version): Likewise.
23511 * elf/ldd.bash.in: Likewise.
23512 * elf/pldd.c (print_version): Likewise.
23513 * elf/sotruss.sh: Likewise.
23514 * elf/sprof.c (print_version): Likewise.
23515 * iconv/iconv_prog.c (print_version): Likewise.
23516 * iconv/iconvconfig.c (print_version): Likewise.
23517 * locale/programs/locale.c (print_version): Likewise.
23518 * locale/programs/localedef.c (print_version): Likewise.
23519 * login/programs/pt_chown.c (print_version): Likewise.
23520 * malloc/memusage.sh (do_version): Likewise.
23521 * malloc/memusagestat.c (print_version): Likewise.
23522 * malloc/mtrace.pl: Likewise.
23523 * manual/libc.texinfo: Likewise.
23524 * nptl/version.c (banner): Likewise.
23525 * nscd/nscd.c (print_version): Likewise.
23526 * nss/getent.c (print_version): Likewise.
23527 * nss/makedb.c (print_version): Likewise.
23528 * posix/getconf.c (main): Likewise.
23529 * scripts/test-installation.pl: Likewise.
23530 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23531
23532 * All files with FSF copyright notices: Update copyright dates
23533 using scripts/update-copyrights.
23534 * locale/programs/charmap-kw.h: Regenerated.
23535 * locale/programs/locfile-kw.h: Likewise.
23536
23537 2017-12-31 Zack Weinberg <zackw@panix.com>
23538
23539 * libio/bits/libio-ldbl.h: Correct check for improper
23540 inclusion. Add own multiple include guard.
23541
23542 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23543 Dmitry V. Levin <ldv@altlinux.org>
23544
23545 [BZ #22625]
23546 CVE-2017-16997
23547 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23548 string token expansion. Check for NULL pointer or empty string possibly
23549 returned by expand_dynamic_string_token.
23550 (decompose_rpath): Check for empty path after dynamic string
23551 token expansion.
23552
23553 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23554
23555 [BZ #22433]
23556 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23557
23558 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23559 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23560 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23561 and PTRACE_SYSCALL.
23562 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23563 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23564 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23565 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23566 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23567 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23568
23569 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23570 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23571 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23572 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23573 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23574 bits/ptrace-shared.h.
23575 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23576 <bits/ptrace-shared.h>.
23577 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23578 __ptrace_peeksiginfo_flags, ptrace): Remove.
23579 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23580 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23581 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23582 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23583 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23584
23585 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23586
23587 [BZ #17804]
23588 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23589 end of the loop. Improve comments.
23590
23591 2017-12-29 Zack Weinberg <zackw@panix.com>
23592
23593 [BZ #22615]
23594 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23595 might be set on success.
23596
23597 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23598
23599 [BZ #22611]
23600 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23601 is unchanged on success.
23602
23603 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23604
23605 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23606 updated.
23607 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23608 expand_dynamic_string_token): Likewise.
23609 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23610 is_path argument.
23611
23612 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23613 contains ':'.
23614
23615 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23616 is set and name contains ':', and all code depending on these checks.
23617
23618 2017-12-24 Zack Weinberg <zackw@panix.com>
23619
23620 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23621 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23622 respectively.
23623 * libio/libio.h: Rename the original version of this file to
23624 libio/bits/libio.h. Error out if not included by stdio.h or the
23625 stub libio.h.
23626 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23627 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23628 if not included by bits/libio.h or the stub _G_config.h.
23629 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23630 sysdeps/unix/sysv/linux/bits. Error out if not included by
23631 bits/libio.h or the stub _G_config.h.
23632 * libio/stdio.h: Include bits/libio.h, not libio.h.
23633 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23634 well as libio.h and _G_config.h.
23635
23636 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23637 * libio/strfile.h, stdio-common/vfscanf.c
23638 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23639 Include stdio.h, not _G_config.h nor libio.h.
23640 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23641 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23642
23643 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23644
23645 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23646
23647 [BZ #22347]
23648 * stdlib/getrandom.c (getrandom): Fix comment.
23649 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23650
23651 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23652
23653 [BZ #21161]
23654 * manual/arith.texi (strtoul): Fix a typo.
23655
23656 [BZ #22596]
23657 * manual/arith.texi (finite): Fix the description of the return
23658 value.
23659
23660 2017-12-22 Eric Blake <ebb9@byu.net>
23661
23662 Avoid gcc warnings on cygwin
23663 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23664 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23665 Avoid unused variable.
23666
23667 2017-12-22 Florian Weimer <fweimer@redhat.com>
23668
23669 * io/Makefile (routines): Add copy_file_range.
23670 (tests): Add tst-copy_file_range.
23671 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23672 * io/Versions (GLIBC_2.27): Export copy_file_range.
23673 * io/copy_file_range-compat.c: New file.
23674 * io/copy_file_range.c: Likewise.
23675 * io/tst-copy_file_range-compat.c: Likewise.
23676 * io/tst-copy_file_range.c: Likewise.
23677 * manual/llio.texi (Copying File Data): New section.
23678 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23679 * support/Makefile (libsupport-routines): Add support-xfstat,
23680 xftruncate, xlseek.
23681 * support/support-xfstat.c: New file.
23682 * support/xftruncate.c: Likewise.
23683 * support/xlseek.c: Likewise.
23684 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23685 * sysdeps/unix/sysv/linux/**.abilist: Update.
23686 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23687
23688 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23689
23690 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23691 disable-multi-arch variant to aarch64-linux-gnu.
23692
23693 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23694
23695 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23696 trailing whitespace removed.
23697 * scripts/config.guess: Update to version 2017-12-17.
23698 * scripts/config.sub: Update to version 2017-11-23.
23699 * scripts/install-sh: Update to version 2017-09-23.17.
23700 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23701
23702 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23703
23704 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23705 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23706 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23707 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23708 * sysdeps/tile/crtn.S: Likewise.
23709 * sysdeps/tile/dl-start.S (_start): Likewise.
23710 * sysdeps/tile/dl-trampoline.S: Likewise.
23711 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23712 * sysdeps/tile/start.S (_start): Likewise.
23713 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23714 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23715 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23716 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23717 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23718 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23719 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23720
23721 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23722 comment.
23723 * sysdeps/tile/preconfigure: Remove tilegx folder.
23724 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23725 * sysdeps/tile/Implies: ... here.
23726 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23727 * sysdeps/tile/Makefile: ... here.
23728 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23729 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23730 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23731 * sysdeps/tile/bits/wordsize.h: ... here.
23732 * sysdeps/tile/tilegx/*: Move to ...
23733 * sysdeps/tile/*: ... here.
23734 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23735 * sysdeps/tile/tilegx32/Implies: ... here.
23736 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23737 * sysdeps/tile/tilegx64/Implies: ... here.
23738 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23739 to ...
23740 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23741 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23742 * sysdeps/unix/sysv/linux/tile/*: ... here.
23743 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23744 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23745 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23746 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23747
23748 * README: Remove tilepro-*-linux-gnu from supported architecture.
23749 * scripts/build-many-glibcs.py: Likewise.
23750 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23751 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23752 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23753 elf_machine_matches_host, elf_machine_dynamic,
23754 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23755 howto, elf_machine_rela): Likewise.
23756 * sysdeps/tile/dl-start.S (_start): Likewise.
23757 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23758 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23759 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23760 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23761 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23762 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23763 Likewise.
23764 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23765 * sysdeps/tile/preconfigure: Likewise.
23766 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23767 POINTER_CHK_GUARD): Likewise.
23768 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23769 * sysdeps/tile/start.S (_start): Likewise.
23770 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23771 Likewise.
23772 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23773 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23774 CMOVNEZ): Remove.
23775 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23776 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23777 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23778 Likewise.
23779 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23780 * sysdeps/tile/tilepro/Implies: Remove file.
23781 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23782 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23783 * sysdeps/tile/tilepro/memchr.c: Likewise.
23784 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23785 * sysdeps/tile/tilepro/memset.c: Likewise.
23786 * sysdeps/tile/tilepro/memusage.h: Likewise.
23787 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23788 * sysdeps/tile/tilepro/strchr.c: Likewise.
23789 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23790 * sysdeps/tile/tilepro/strlen.c: Likewise.
23791 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23792 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23793 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23794 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23795 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23796 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23797 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23798 Likewise.
23799 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23800 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23801 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23802 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23803 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23804 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23805 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23806 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23807 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23808 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23809 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23810 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23811 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23812 tilepro mention in comment.
23813
23814 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23815 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23816 * nptl/pthread_join_common.c: New file: common function used on
23817 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23818 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23819 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23820 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23821 (cleanup): Move definition to pthread_join_common.c.
23822 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23823 Remove superflous checks.
23824 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23825 Likewise.
23826
23827 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23828
23829 * sysdeps/aarch64/libm-test-ulps: Update.
23830
23831 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23832
23833 * sysdeps/aarch64/memset.S (MEMSET): Define.
23834
23835 2017-12-20 Florian Weimer <fweimer@redhat.com>
23836
23837 [BZ #22635]
23838 nptl: Provide full implementation of pthread_self in libc.so.
23839 * nptl/Makefile (routines): Add pthread_self.
23840 (libpthread-routines): Replace pthread_self with
23841 compat-pthread_self.
23842 * nptl/forward.c (pthread_self): Remove.
23843 * nptl/nptl-init.c (pthread_functions): Do not initialize
23844 ptr_pthread_self.
23845 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23846 * nptl/compat-pthread_self.c: New file.
23847 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23848 Remove ptr_pthread_self.
23849
23850 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23851
23852 * posix/regcomp.c: Fix spelling in comments.
23853 * posix/regex.h: Likewise.
23854 * posix/regex_internal.c: Likewise.
23855 * posix/regexec.c: Likewise.
23856
23857 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23858
23859 [BZ #22377]
23860 * math/Makefile [C++] (tests): Add test for iseqsig.
23861 * math/math.h [C++] (iseqsig): New implementation, which does
23862 not rely on __MATH_TG/__builtin_types_compatible_p.
23863 * math/test-math-iseqsig.cc: New file.
23864 * sysdeps/powerpc/powerpc64le/Makefile
23865 (CFLAGS-test-math-iseqsig.cc): New variable.
23866
23867 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23868
23869 * elf/dl-load.c (is_trusted_path): Remove.
23870 (fillin_rpath): Remove check_trusted argument and its use,
23871 all callers changed.
23872
23873 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23874
23875 [BZ #22630]
23876 * Makeconfig (link-pie-before-libc): Replace -pie with
23877 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23878 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23879 (tst-dlopen-aout-no-pie): New.
23880 (LDFLAGS-tst-prelink): Removed.
23881 (tst-prelink-no-pie): New.
23882 (LDFLAGS-tst-main1): Removed.
23883 (tst-main1-no-pie): New.
23884 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23885 (tst-gmon-no-pie): New.
23886
23887 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23888
23889 * manual/install.texi: Document that --enable-static-pie
23890 implies PIE.
23891 * INSTALL: Regenerated.
23892
23893 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23894
23895 [BZ #21309]
23896 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23897 unsigned.
23898
23899 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23900
23901 Revert:
23902
23903 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23904
23905 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23906
23907 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23908
23909 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23910 <errno.h>. Include "eexp.tbl".
23911 (half): New constant.
23912 (one): Likewise.
23913 (__ieee754_exp): Rewrite.
23914 (__slowexp): Remove prototype.
23915 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23916 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23917 * sysdeps/i386/fpu/slowexp.c: Likewise.
23918 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23919 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23920 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23921 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23922 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23923 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23924 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23925 comment.
23926 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23927 (CPPFLAGS-slowexp.c): Remove variable.
23928 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23929 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23930 (CFLAGS-slowexp-fma.c): Remove variable.
23931 (CFLAGS-slowexp-fma4.c): Likewise.
23932 (CFLAGS-slowexp-avx.c): Likewise.
23933 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23934 define as macro.
23935 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23936 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23937 * math/Makefile (type-double-routines): Remove slowexp.
23938 * manual/probes.texi (slowexp_p6): Remove.
23939 (slowexp_p32): Likewise.
23940
23941 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23942
23943 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23944 arithmetic.
23945
23946 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23947
23948 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23949
23950 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23951
23952 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23953
23954 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23955 <errno.h>. Include "eexp.tbl".
23956 (half): New constant.
23957 (one): Likewise.
23958 (__ieee754_exp): Rewrite.
23959 (__slowexp): Remove prototype.
23960 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23961 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23962 * sysdeps/i386/fpu/slowexp.c: Likewise.
23963 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23964 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23965 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23966 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23967 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23968 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23969 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23970 comment.
23971 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23972 (CPPFLAGS-slowexp.c): Remove variable.
23973 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23974 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23975 (CFLAGS-slowexp-fma.c): Remove variable.
23976 (CFLAGS-slowexp-fma4.c): Likewise.
23977 (CFLAGS-slowexp-avx.c): Likewise.
23978 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23979 define as macro.
23980 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23981 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23982 * math/Makefile (type-double-routines): Remove slowexp.
23983 * manual/probes.texi (slowexp_p6): Remove.
23984 (slowexp_p32): Likewise.
23985
23986 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23987 James Clarke <jrtc27@jrtc27.com>
23988
23989 [BZ #22603]
23990 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23991 addition.
23992
23993 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23994
23995 [BZ #22605]
23996 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23997 code.
23998
23999 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24000
24001 [BZ #22563]
24002 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24003 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
24004 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24005 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
24006 to feature_1.
24007
24008 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24009
24010 [BZ #22563]
24011 * bits/types/__cancel_jmp_buf_tag.h: New file.
24012 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
24013 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
24014 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
24015 * nptl/Makefile (headers): Add
24016 bits/types/__cancel_jmp_buf_tag.h.
24017 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
24018 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
24019 * sysdeps/nptl/pthread.h: Include
24020 <bits/types/__cancel_jmp_buf_tag.h>.
24021 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
24022 __cancel_jmp_buf.
24023 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
24024
24025 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24026
24027 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24028 --enable-static-pie variants to x86_64, x32 and i686.
24029
24030 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24031
24032 [BZ #22631]
24033 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
24034 argument for attrubutes. All callers changed.
24035 (__inline_mathop1): Likewise. All callers changed.
24036 (__inline_mathop): Likewise. All callers changed.
24037 [__USE_MISC] (scalbn): Use __inline_forward instead of
24038 __inline_forward_c.
24039 [__USE_ISOC99] (scalbln): Likewise.
24040 [__USE_ISOC99] (nearbyint): Likewise.
24041 [__USE_ISOC99] (lrint): Likewise.
24042 [__USE_MISC] (scalbnf): Likewise.
24043 [__USE_ISOC99] (scalblnf): Likewise.
24044 [__USE_ISOC99] (nearbyintf): Likewise.
24045 [__USE_ISOC99] (lrintf): Likewise.
24046 [__USE_MISC] (scalbnl): Likewise.
24047 [__USE_ISOC99] (scalblnl): Likewise.
24048 [__USE_ISOC99] (nearbyintl): Likewise.
24049 [__USE_ISOC99] (lrintl): Likewise.
24050 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24051 __inline_mathop and __m81_defun changed.
24052
24053 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24054 CPU or FPU for ARM hard-float configurations.
24055
24056 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24057
24058 * nptl/tst-attr3.c: Include <libc-diag.h>.
24059 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24060
24061 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24062
24063 * string/tester.c (test_strncat): Also disable -Warray-bounds
24064 warnings for two tests.
24065
24066 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24067
24068 [BZ #22614]
24069 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24070 $(cc-pie-default) == yes.
24071 * config.make.in (cc-pie-default): New.
24072 * configure.ac (libc_cv_pie_default): Renamed to ...
24073 (libc_cv_cc_pie_default): This.
24074 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24075 * configure: Regenerated.
24076
24077 2017-12-18 Florian Weimer <fweimer@redhat.com>
24078
24079 [BZ #20204]
24080 ld.so: Harden dl-libc/libdl hooks.
24081 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24082 (rtld_active): New function.
24083 * dlfcn/dladdr.c (__dladdr): Call it.
24084 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24085 * dlfcn/dlclose.c (__dlcose): Likewise.
24086 * dlfcn/dlerror.c (__dlerror): Likewise.
24087 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24088 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24089 * dlfcn/dlopen.c (__dlopen): Likewise.
24090 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24091 * dlfcn/dlsym.c (__dlsym): Likewise.
24092 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24093 * libio/vtables.c (_IO_vtable_check): Likewise.
24094 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24095 (__libc_dlclose): Likewise.
24096 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24097 assignment.
24098
24099 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24100
24101 [BZ #22446]
24102 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24103 buffers for readlink input and output.
24104
24105 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24106
24107 [BZ #22624]
24108 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24109 inhibit_stack_protector.
24110
24111 [BZ #22624]
24112 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24113 inhibit_stack_protector.
24114
24115 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24116
24117 [BZ #22627]
24118 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24119 code and invocation.
24120
24121 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24122
24123 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24124
24125 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24126
24127 [BZ #22505]
24128 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24129
24130 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24131
24132 * sysdeps/s390/fpu/libm-test-ulps: Update.
24133
24134 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24135
24136 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24137
24138 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24139
24140 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24141 constants to s_sincosf.h file.
24142 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24143 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24144 implementation.
24145 * sysdeps/ieee754/flt-32/s_sincosf.h:
24146 New file.
24147
24148 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24149
24150 [BZ #14681]
24151 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24152 before mtrace.
24153
24154 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24155
24156 [BZ #19574]
24157 * INSTALL: Regenerated.
24158 * Makeconfig (real-static-start-installed-name): New.
24159 (pic-default): Updated for --enable-static-pie.
24160 (pie-default): New for --enable-static-pie.
24161 (default-pie-ldflag): Likewise.
24162 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24163 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24164 Replace $(static-start-installed-name) with
24165 $(real-static-start-installed-name).
24166 (+prectorT): Updated for --enable-static-pie.
24167 (+postctorT): Likewise.
24168 (CFLAGS-.o): Add $(pie-default).
24169 (CFLAGS-.op): Likewise.
24170 * NEWS: Mention --enable-static-pie.
24171 * config.h.in (ENABLE_STATIC_PIE): New.
24172 * configure.ac (--enable-static-pie): New configure option.
24173 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24174 (have-static-pie): Likewise.
24175 Enable static PIE if linker supports --no-dynamic-linker.
24176 (ENABLE_STATIC_PIE): New AC_DEFINE.
24177 (enable-static-pie): New LIBC_CONFIG_VAR.
24178 * configure: Regenerated.
24179 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24180 gr$(start-installed-name) for --enable-static-pie.
24181 (extra-objs): Likewise.
24182 (install-lib): Likewise.
24183 (extra-objs): Add static-reloc.o and static-reloc.os
24184 ($(objpfx)$(start-installed-name)): Also depend on
24185 $(objpfx)static-reloc.o.
24186 ($(objpfx)r$(start-installed-name)): New.
24187 ($(objpfx)g$(start-installed-name)): Also depend on
24188 $(objpfx)static-reloc.os.
24189 ($(objpfx)gr$(start-installed-name)): New.
24190 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24191 in libc.a.
24192 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24193 initimage.
24194 * csu/static-reloc.c: New file.
24195 * elf/Makefile (routines): Add dl-reloc-static-pie.
24196 (elide-routines.os): Likewise.
24197 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24198 (tst-tls1-static-non-pie-no-pie): New.
24199 * elf/dl-reloc-static-pie.c: New file.
24200 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24201 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24202 STATIC_PIE_BOOTSTRAP.
24203 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24204 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24205 (tests-static): Likewise.
24206 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24207 (tst-gmon-static-no-pie): New.
24208 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24209 (CRT-tst-gmon-static-pie): Likewise.
24210 (tst-gmon-static-pie-ENV): Likewise.
24211 (tests-special): Likewise.
24212 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24213 (clean-tst-gmon-static-pie-data): Likewise.
24214 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24215 * gmon/tst-gmon-static-pie.c: New file.
24216 * manual/install.texi: Document --enable-static-pie.
24217 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24218 (_dl_get_dl_main_map): Likewise.
24219 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24220 * sysdeps/x86_64/configure.ac: Likewise.
24221 * sysdeps/i386/configure: Regenerated.
24222 * sysdeps/x86_64/configure: Likewise.
24223 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24224 (ASFLAGS-.op): Likewise.
24225
24226 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24227
24228 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24229 * posix/tst-mmap-offset.c (fname): Use /tmp.
24230 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24231
24232 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24233
24234 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24235
24236 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24237
24238 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24239 errno.
24240
24241 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24242
24243 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24244 --with-float=hard for arm-linux-gnueabihf configurations.
24245
24246 [BZ #14121]
24247 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24248 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24249 ($(mo-installed)): Use $(objpfx)%.mo.
24250 (realclean): Remove rule.
24251
24252 * po/Makefile (linguas): Remove rule and dependencies.
24253 (linguas.mo): Likewise.
24254 (.PHONY): Do not depend on linguas and linguas.mo.
24255 (podir): Remove variable.
24256 (pofiles): Likewise.
24257 [$(pofiles)] (%.po): Remove rule.
24258
24259 * sysdeps/sparc/sparc32/Makefile
24260 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24261 start-of-line whitespace in argument of echo.
24262 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24263 with whitespace. Generate __wrap_.udiv alias.
24264 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24265 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24266 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24267 * sysdeps/sparc/sparc32/urem.S: Likewise.
24268
24269 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24270
24271 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24272 for aligned inputs.
24273
24274 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24275
24276 * benchtests/bench-strcmp.c: Print output in JSON format.
24277
24278 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24279
24280 2017-12-14 Florian Weimer <fweimer@redhat.com>
24281
24282 [BZ #22607]
24283 CVE-2017-1000409
24284 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24285 the expanded path string.
24286
24287 2017-12-14 Florian Weimer <fweimer@redhat.com>
24288
24289 [BZ #22606]
24290 CVE-2017-1000408
24291 * elf/dl-load.c (system_dirs): Update comment.
24292 (nsystem_dirs_len): Use array_length.
24293 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24294
24295 2017-12-14 Florian Weimer <fweimer@redhat.com>
24296
24297 Simplify compiling most of support/ outside of glibc.
24298 * support/check_addrinfo.c: Include <string.h>.
24299 * support/check_dns_packet.c: Likewise.
24300 * support/check_hostent.c: Likewise.
24301 * support/support_can_chroot.c: Include <support/xunistd.h>.
24302 * support/support_format_addrinfo.c: Include <stdlib.h>
24303 * support/support_format_dns_packet.c: Include <stdbool.h>.
24304 * support/support_format_hostent.c: Include <stdlib.h>.
24305 * support/support_format_netent.c: Likewise.
24306 * support/support_write_string.c: Include <support/xunistd.h>.
24307 * support/xdlfcn.c: Include <stddef.h>.
24308
24309 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24310
24311 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24312
24313 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24314 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24315
24316 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24317 (sysdeps_routines): Add memset-niagara7.
24318 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24319 Likewise.
24320 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24321 file.
24322 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24323 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24324 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24325 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24326 Add niagara7 option.
24327 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24328 memset.
24329
24330 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24331 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24332 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24333 Likewise.
24334 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24335 New file.
24336 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24337 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24338 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24339 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24340 and __memmove_niagara7.
24341 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24342 Add niagara7 option.
24343 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24344 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24345 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24346 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24347 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24348
24349 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24350
24351 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24352 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24353 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24354 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24355
24356 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24357 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24358 _dl_sparc_cap_flags array.
24359 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24360
24361 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24362
24363 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24364 time whenever possible.
24365
24366 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24367
24368 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24369 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24370
24371 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24372
24373 * soft-fp/fmadf4.c: Move to ....
24374 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24375 * soft-fp/fmasf4.c: Move to ....
24376 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24377 * soft-fp/fmatf4.c: Move to ....
24378 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24379 * sysdeps/ieee754/soft-fp/Makefile: New file.
24380 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24381 * sysdeps/arm/preconfigure: Regenerated.
24382 * sysdeps/arm/nofpu/Implies: New file.
24383 * sysdeps/arm/s_fma.c: Remove file.
24384 * sysdeps/arm/s_fmaf.c: Likewise.
24385 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24386 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24387 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24388 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24389 * sysdeps/microblaze/s_fma.c: Remove file.
24390 * sysdeps/microblaze/s_fmaf.c: Likewise.
24391 * sysdeps/mips/mips32/nofpu/Implies: New file.
24392 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24393 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24394 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24395 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24396 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24397 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24398 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24399 implementation.
24400 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24401 * sysdeps/nios2/s_fma.c: Remove file.
24402 * sysdeps/nios2/s_fmaf.c: Likewise.
24403 * sysdeps/sh/nofpu/Implies: New file.
24404 * sysdeps/sh/s_fma.c: Remove file.
24405 * sysdeps/sh/s_fmaf.c: Likewise.
24406 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24407 * sysdeps/tile/s_fma.c: Remove file.
24408 * sysdeps/tile/s_fmaf.c: Likewise.
24409
24410 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24411
24412 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24413 Add s_cosf-sse2 and s_cosf-fma.
24414 (CFLAGS-s_cosf-fma.c): New.
24415 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24416 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24417 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24418
24419 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24420
24421 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24422
24423 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24424
24425 * libio/Makefile (tests): Add tst-bz22415.
24426 (tst-bz22415-ENV): New rule.
24427 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24428 (tests-special): Add tst-bz22415-mem.out.
24429 ($(objpfx)tst-bz22415-mem.out): New rule.
24430 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24431 in case of a successful seek operation.
24432 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24433 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24434 buffer is required.
24435 * libio/tst-bz22415.c: New test.
24436
24437 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24438
24439 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24440
24441 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24442 __IPC_64 to 0 to avoid IPC_64 being set.
24443
24444 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24445
24446 [BZ #22593]
24447 * math/bits/mathcalls.h (nextafter): Remove const.
24448 (nexttoward): Likewise.
24449
24450 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24451
24452 * configure.ac (--with-fp): Remove configure option.
24453 (with_fp_cond): New variable.
24454 (libc_cv_with_fp): New configure test. Use this variable instead
24455 of with_fp.
24456 * configure: Regenerated.
24457 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24458 * manual/install.texi (Configuring and compiling): Remove
24459 --without-fp.
24460 * INSTALL: Regenerated.
24461 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24462 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24463 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24464 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24465 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24466 use --without-fp to configure glibc.
24467
24468 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24469
24470 * manual/locale.texi (nl_langinfo): Fix a typo.
24471
24472 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24473
24474 [BZ #22588]
24475 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24476
24477 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24478
24479 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24480 (CFLAGS-argp-parse.c): Likewise.
24481 (CFLAGS-argp-fmtstream.c): Likewise.
24482 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24483 (CPPFLAGS-sha512-crypt.c): Likewise.
24484 (CPPFLAGS-md5-crypt.c): Likewise.
24485 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24486 (CFLAGS-stack_chk_fail_local.c): Likewise.
24487 (CFLAGS-backtrace.c): Likewise.
24488 (CFLAGS-sprintf_chk.c): Likewise.
24489 (CFLAGS-snprintf_chk.c): Likewise.
24490 (CFLAGS-vsprintf_chk.c): Likewise.
24491 (CFLAGS-vsnprintf_chk.c): Likewise.
24492 (CFLAGS-asprintf_chk.c): Likewise.
24493 (CFLAGS-vasprintf_chk.c): Likewise.
24494 (CFLAGS-obprintf_chk.c): Likewise.
24495 (CFLAGS-dprintf_chk.c): Likewise.
24496 (CFLAGS-vdprintf_chk.c): Likewise.
24497 (CFLAGS-printf_chk.c): Likewise.
24498 (CFLAGS-fprintf_chk.c): Likewise.
24499 (CFLAGS-vprintf_chk.c): Likewise.
24500 (CFLAGS-vfprintf_chk.c): Likewise.
24501 (CFLAGS-gets_chk.c): Likewise.
24502 (CFLAGS-fgets_chk.c): Likewise.
24503 (CFLAGS-fgets_u_chk.c): Likewise.
24504 (CFLAGS-fread_chk.c): Likewise.
24505 (CFLAGS-fread_u_chk.c): Likewise.
24506 (CFLAGS-swprintf_chk.c): Likewise.
24507 (CFLAGS-vswprintf_chk.c): Likewise.
24508 (CFLAGS-wprintf_chk.c): Likewise.
24509 (CFLAGS-fwprintf_chk.c): Likewise.
24510 (CFLAGS-vwprintf_chk.c): Likewise.
24511 (CFLAGS-vfwprintf_chk.c): Likewise.
24512 (CFLAGS-fgetws_chk.c): Likewise.
24513 (CFLAGS-fgetws_u_chk.c): Likewise.
24514 (CFLAGS-read_chk.c): Likewise.
24515 (CFLAGS-pread_chk.c): Likewise.
24516 (CFLAGS-pread64_chk.c): Likewise.
24517 (CFLAGS-recv_chk.c): Likewise.
24518 (CFLAGS-recvfrom_chk.c): Likewise.
24519 (CFLAGS-tst-longjmp_chk.c): Likewise.
24520 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24521 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24522 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24523 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24524 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24525 (CFLAGS-tst-chk1.c): Likewise.
24526 (CFLAGS-tst-chk2.c): Likewise.
24527 (CFLAGS-tst-chk3.c): Likewise.
24528 (CFLAGS-tst-chk4.cc): Likewise.
24529 (CFLAGS-tst-chk5.cc): Likewise.
24530 (CFLAGS-tst-chk6.cc): Likewise.
24531 (CFLAGS-tst-lfschk1.c): Likewise.
24532 (CFLAGS-tst-lfschk2.c): Likewise.
24533 (CFLAGS-tst-lfschk3.c): Likewise.
24534 (CFLAGS-tst-lfschk4.cc): Likewise.
24535 (CFLAGS-tst-lfschk5.cc): Likewise.
24536 (CFLAGS-tst-lfschk6.cc): Likewise.
24537 (CFLAGS-tst-ssp-1.c): Likewise.
24538 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24539 (CFLAGS-scandir64.c): Likewise.
24540 (CFLAGS-scandir-tail.c): Likewise.
24541 (CFLAGS-scandir64-tail.c): Likewise.
24542 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24543 (CFLAGS-dl-tunables.c): Likewise.
24544 (CFLAGS-dl-runtime.c): Likewise.
24545 (CFLAGS-dl-lookup.c): Likewise.
24546 (CFLAGS-dl-iterate-phdr.c): Likewise.
24547 (CFLAGS-vismain.c): Likewise.
24548 (CFLAGS-tst-linkall-static.c): Likewise.
24549 (CFLAGS-tst-linkall-static.c): Likewise.
24550 (CPPFLAGS-dl-load.c): Likewise.
24551 (CFLAGS-ldconfig.c): Likewise.
24552 (CFLAGS-dl-cache.c): Likewise.
24553 (CFLAGS-cache.c): Likewise.
24554 (CFLAGS-rtld.c): Likewise.
24555 (CFLAGS-multiload.c): Likewise.
24556 (CFLAGS-filtmod1.c): Likewise.
24557 (CFLAGS-tst-align.c): Likewise.
24558 (CFLAGS-tst-align2.c): Likewise.
24559 (CFLAGS-tst-alignmod.c): Likewise.
24560 (CFLAGS-tst-alignmod2.c): Likewise.
24561 (CPPFLAGS-tst-execstack.c): Likewise.
24562 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24563 (CFLAGS-tst-latepthreadmod.c): Likewise.
24564 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24565 (CFLAGS-getgrnam_r.c): Likewise.
24566 (CFLAGS-getgrent_r.c): Likewise.
24567 (CFLAGS-getgrent.c): Likewise.
24568 (CFLAGS-fgetgrent.c): Likewise.
24569 (CFLAGS-fgetgrent_r.c): Likewise.
24570 (CFLAGS-putgrent.c): Likewise.
24571 (CFLAGS-initgroups.c): Likewise.
24572 (CFLAGS-getgrgid.c): Likewise.
24573 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24574 (CFLAGS-getsgent.c): Likewise.
24575 (CFLAGS-fgetsgent.c): Likewise.
24576 (CFLAGS-fgetsgent_r.c): Likewise.
24577 (CFLAGS-putsgent.c): Likewise.
24578 (CFLAGS-getsgnam.c): Likewise.
24579 (CFLAGS-getsgnam_r.c): Likewise.
24580 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24581 (CFLAGS-iconv_charmap.c): Likewise.
24582 (CFLAGS-dummy-repertoire.c): Likewise.
24583 (CFLAGS-charmap.c): Likewise.
24584 (CFLAGS-linereader.c): Likewise.
24585 (CFLAGS-simple-hash.c): Likewise.
24586 (CFLAGS-gconv_conf.c): Likewise.
24587 (CFLAGS-iconvconfig.c): Likewise.
24588 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24589 (CFLAGS-gethstbyad.c): Likewise.
24590 (CFLAGS-gethstbynm_r.c): Likewise.
24591 (CFLAGS-gethstbynm.c): Likewise.
24592 (CFLAGS-gethstbynm2_r.c): Likewise.
24593 (CFLAGS-gethstbynm2.c): Likewise.
24594 (CFLAGS-gethstent_r.c): Likewise.
24595 (CFLAGS-gethstent.c): Likewise.
24596 (CFLAGS-rcmd.c): Likewise.
24597 (CFLAGS-getnetbynm_r.c): Likewise.
24598 (CFLAGS-getnetbynm.c): Likewise.
24599 (CFLAGS-getnetbyad_r.c): Likewise.
24600 (CFLAGS-getnetbyad.c): Likewise.
24601 (CFLAGS-getnetent_r.c): Likewise.
24602 (CFLAGS-getnetent.c): Likewise.
24603 (CFLAGS-getaliasent_r.c): Likewise.
24604 (CFLAGS-getaliasent.c): Likewise.
24605 (CFLAGS-getrpcent_r.c): Likewise.
24606 (CFLAGS-getrpcent.c): Likewise.
24607 (CFLAGS-getservent_r.c): Likewise.
24608 (CFLAGS-getservent.c): Likewise.
24609 (CFLAGS-getprtent_r.c): Likewise.
24610 (CFLAGS-getprtent.c): Likewise.
24611 (CFLAGS-either_ntoh.c): Likewise.
24612 (CFLAGS-either_hton.c): Likewise.
24613 (CFLAGS-getnetgrent.c): Likewise.
24614 (CFLAGS-getnetgrent_r.c): Likewise.
24615 (CFLAGS-tst-checks-posix.c): Likewise.
24616 (CFLAGS-tst-sockaddr.c): Likewise.
24617 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24618 (CFLAGS-tst-translit.c): Likewise.
24619 (CFLAGS-tst-gettext2.c): Likewise.
24620 (CFLAGS-tst-codeset.c): Likewise.
24621 (CFLAGS-tst-gettext3.c): Likewise.
24622 (CFLAGS-tst-gettext4.c): Likewise.
24623 (CFLAGS-tst-gettext5.c): Likewise.
24624 (CFLAGS-tst-gettext6.c): Likewise.
24625 * io/Makefile (CFLAGS-open.c): Likewise.
24626 (CFLAGS-open64.c): Likewise.
24627 (CFLAGS-creat.c): Likewise.
24628 (CFLAGS-creat64.c): Likewise.
24629 (CFLAGS-fcntl.c): Likewise.
24630 (CFLAGS-poll.c): Likewise.
24631 (CFLAGS-ppoll.c): Likewise.
24632 (CFLAGS-lockf.c): Likewise.
24633 (CFLAGS-statfs.c): Likewise.
24634 (CFLAGS-fstatfs.c): Likewise.
24635 (CFLAGS-statvfs.c): Likewise.
24636 (CFLAGS-fstatvfs.c): Likewise.
24637 (CFLAGS-fts.c): Likewise.
24638 (CFLAGS-fts64.c): Likewise.
24639 (CFLAGS-ftw.c): Likewise.
24640 (CFLAGS-ftw64.c): Likewise.
24641 (CFLAGS-lockf.c): Likewise.
24642 (CFLAGS-posix_fallocate.c): Likewise.
24643 (CFLAGS-posix_fallocate64.c): Likewise.
24644 (CFLAGS-fallocate.c): Likewise.
24645 (CFLAGS-fallocate64.c): Likewise.
24646 (CFLAGS-read.c): Likewise.
24647 (CFLAGS-write.c): Likewise.
24648 (CFLAGS-test-stat.c): Likewise.
24649 (CFLAGS-test-lfs.c): Likewise.
24650 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24651 (CFLAGS-fputc.c): Likewise.
24652 (CFLAGS-fputwc.c): Likewise.
24653 (CFLAGS-freopen64.c): Likewise.
24654 (CFLAGS-freopen.c): Likewise.
24655 (CFLAGS-fseek.c): Likewise.
24656 (CFLAGS-fseeko64.c): Likewise.
24657 (CFLAGS-fseeko.c): Likewise.
24658 (CFLAGS-ftello64.c): Likewise.
24659 (CFLAGS-ftello.c): Likewise.
24660 (CFLAGS-fwide.c): Likewise.
24661 (CFLAGS-genops.c): Likewise.
24662 (CFLAGS-getc.c): Likewise.
24663 (CFLAGS-getchar.c): Likewise.
24664 (CFLAGS-getwc.c): Likewise.
24665 (CFLAGS-getwchar.c): Likewise.
24666 (CFLAGS-iofclose.c): Likewise.
24667 (CFLAGS-iofflush.c): Likewise.
24668 (CFLAGS-iofgetpos64.c): Likewise.
24669 (CFLAGS-iofgetpos.c): Likewise.
24670 (CFLAGS-iofgets.c): Likewise.
24671 (CFLAGS-iofgetws.c): Likewise.
24672 (CFLAGS-iofputs.c): Likewise.
24673 (CFLAGS-iofputws.c): Likewise.
24674 (CFLAGS-iofread.c): Likewise.
24675 (CFLAGS-iofsetpos64.c): Likewise.
24676 (CFLAGS-iofsetpos.c): Likewise.
24677 (CFLAGS-ioftell.c): Likewise.
24678 (CFLAGS-iofwrite.c): Likewise.
24679 (CFLAGS-iogetdelim.c): Likewise.
24680 (CFLAGS-iogetline.c): Likewise.
24681 (CFLAGS-iogets.c): Likewise.
24682 (CFLAGS-iogetwline.c): Likewise.
24683 (CFLAGS-ioputs.c): Likewise.
24684 (CFLAGS-ioseekoff.c): Likewise.
24685 (CFLAGS-ioseekpos.c): Likewise.
24686 (CFLAGS-iosetbuffer.c): Likewise.
24687 (CFLAGS-iosetvbuf.c): Likewise.
24688 (CFLAGS-ioungetc.c): Likewise.
24689 (CFLAGS-ioungetwc.c): Likewise.
24690 (CFLAGS-oldfileops.c): Likewise.
24691 (CFLAGS-oldiofclose.c): Likewise.
24692 (CFLAGS-oldiofgetpos64.c): Likewise.
24693 (CFLAGS-oldiofgetpos.c): Likewise.
24694 (CFLAGS-oldiofsetpos64.c): Likewise.
24695 (CFLAGS-oldiofsetpos.c): Likewise.
24696 (CFLAGS-peekc.c): Likewise.
24697 (CFLAGS-putc.c): Likewise.
24698 (CFLAGS-putchar.c): Likewise.
24699 (CFLAGS-putwc.c): Likewise.
24700 (CFLAGS-putwchar.c): Likewise.
24701 (CFLAGS-rewind.c): Likewise.
24702 (CFLAGS-wfileops.c): Likewise.
24703 (CFLAGS-wgenops.c): Likewise.
24704 (CFLAGS-oldiofopen.c): Likewise.
24705 (CFLAGS-iofopen.c): Likewise.
24706 (CFLAGS-iofopen64.c): Likewise.
24707 (CFLAGS-oldtmpfile.c): Likewise.
24708 (CFLAGS-tst_putwc.c): Likewise.
24709 * locale/Makefile (CFLAGS-md5.c): Likewise.
24710 (CFLAGS-charmap.c): Likewise.
24711 (CFLAGS-locfile.c): Likewise.
24712 (CFLAGS-charmap-dir.c): Likewise.
24713 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24714 (CFLAGS-getpt.c): Likewise.
24715 (CFLAGS-pt_chown.c): Likewise.
24716 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24717 (CFLAGS-obstack.c): Likewise.
24718 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24719 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24720 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24721 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24722 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24723 (CFLAGS-test-tgmath.c): Likewise.
24724 (CFLAGS-test-tgmath2.c): Likewise.
24725 (CFLAGS-test-tgmath-ret.c): Likewise.
24726 (CFLAGS-test-powl.c): Likewise.
24727 (CFLAGS-test-snan.c): Likewise.
24728 (CFLAGS-test-signgam-finite.c): Likewise.
24729 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24730 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24731 (CFLAGS-test-signgam-uchar.c): Likewise.
24732 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24733 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24734 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24735 (CFLAGS-test-signgam-uint.c): Likewise.
24736 (CFLAGS-test-signgam-uint-init.c): Likewise.
24737 (CFLAGS-test-signgam-uint-static.c): Likewise.
24738 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24739 (CFLAGS-test-signgam-ullong.c): Likewise.
24740 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24741 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24742 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24743 (CFLAGS-test-math-cxx11.cc): Likewise.
24744 (CFLAGS-test-math-isinff.cc): Likewise.
24745 (CFLAGS-test-math-iszero.cc): Likewise.
24746 (CFLAGS-test-math-issignaling.cc): Likewise.
24747 (CFLAGS-test-math-iscanonical.cc): Likewise.
24748 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24749 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24750 (CFLAGS-test-flt-eval-method.c): Likewise.
24751 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24752 (CFLAGS-test-finite-macros.c): Likewise.
24753 * misc/Makefile (CFLAGS-select.c): Likewise.
24754 (CFLAGS-tsearch.c): Likewise.
24755 (CFLAGS-lsearch.c): Likewise.
24756 (CFLAGS-pselect.c): Likewise.
24757 (CFLAGS-readv.c): Likewise.
24758 (CFLAGS-writev.c): Likewise.
24759 (CFLAGS-preadv.c): Likewise.
24760 (CFLAGS-preadv64.c): Likewise.
24761 (CFLAGS-pwritev.c): Likewise.
24762 (CFLAGS-pwritev64.c): Likewise.
24763 (CFLAGS-preadv2.c): Likewise.
24764 (CFLAGS-preadv64v2.c): Likewise.
24765 (CFLAGS-pwritev2.c): Likewise.
24766 (CFLAGS-pwritev64v2.c): Likewise.
24767 (CFLAGS-usleep.c): Likewise.
24768 (CFLAGS-syslog.c): Likewise.
24769 (CFLAGS-error.c): Likewise.
24770 (CFLAGS-getpass.c): Likewise.
24771 (CFLAGS-mkstemp.c): Likewise.
24772 (CFLAGS-mkstemp64.c): Likewise.
24773 (CFLAGS-getsysstats.c): Likewise.
24774 (CFLAGS-getusershell.c): Likewise.
24775 (CFLAGS-err.c): Likewise.
24776 (CFLAGS-tst-tsearch.c): Likewise.
24777 (CFLAGS-msync.c): Likewise.
24778 (CFLAGS-fdatasync.c): Likewise.
24779 (CFLAGS-fsync.c): Likewise.
24780 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24781 (CFLAGS-unwind.c): Likewise.
24782 (CFLAGS-unwind-forcedunwind.c): Likewise.
24783 (CFLAGS-pthread_cancel.c): Likewise.
24784 (CFLAGS-pthread_setcancelstate.c): Likewise.
24785 (CFLAGS-pthread_setcanceltype.c): Likewise.
24786 (CFLAGS-cancellation.c): Likewise.
24787 (CFLAGS-libc-cancellation.c): Likewise.
24788 (CFLAGS-pthread_exit.c): Likewise.
24789 (CFLAGS-forward.c): Likewise.
24790 (CFLAGS-pthread_testcancel.c): Likewise.
24791 (CFLAGS-pthread_join.c): Likewise.
24792 (CFLAGS-pthread_timedjoin.c): Likewise.
24793 (CFLAGS-pthread_once.c): Likewise.
24794 (CFLAGS-pthread_cond_wait.c): Likewise.
24795 (CFLAGS-sem_wait.c): Likewise.
24796 (CFLAGS-sem_timedwait.c): Likewise.
24797 (CFLAGS-fcntl.c): Likewise.
24798 (CFLAGS-lockf.c): Likewise.
24799 (CFLAGS-pread.c): Likewise.
24800 (CFLAGS-pread64.c): Likewise.
24801 (CFLAGS-pwrite.c): Likewise.
24802 (CFLAGS-pwrite64.c): Likewise.
24803 (CFLAGS-wait.c): Likewise.
24804 (CFLAGS-waitpid.c): Likewise.
24805 (CFLAGS-sigwait.c): Likewise.
24806 (CFLAGS-msgrcv.c): Likewise.
24807 (CFLAGS-msgsnd.c): Likewise.
24808 (CFLAGS-tcdrain.c): Likewise.
24809 (CFLAGS-open.c): Likewise.
24810 (CFLAGS-open64.c): Likewise.
24811 (CFLAGS-pause.c): Likewise.
24812 (CFLAGS-recv.c): Likewise.
24813 (CFLAGS-send.c): Likewise.
24814 (CFLAGS-accept.c): Likewise.
24815 (CFLAGS-sendto.c): Likewise.
24816 (CFLAGS-connect.c): Likewise.
24817 (CFLAGS-recvfrom.c): Likewise.
24818 (CFLAGS-recvmsg.c): Likewise.
24819 (CFLAGS-sendmsg.c): Likewise.
24820 (CFLAGS-close.c): Likewise.
24821 (CFLAGS-read.c): Likewise.
24822 (CFLAGS-write.c): Likewise.
24823 (CFLAGS-nanosleep.c): Likewise.
24824 (CFLAGS-sigsuspend.c): Likewise.
24825 (CFLAGS-msync.c): Likewise.
24826 (CFLAGS-fdatasync.c): Likewise.
24827 (CFLAGS-fsync.c): Likewise.
24828 (CFLAGS-pt-system.c): Likewise.
24829 (CFLAGS-tst-cleanup2.c): Likewise.
24830 (CFLAGS-tst-cleanupx2.c): Likewise.
24831 (CFLAGS-flockfile.c): Likewise.
24832 (CFLAGS-ftrylockfile.c): Likewise.
24833 (CFLAGS-funlockfile.c): Likewise.
24834 (CFLAGS-tst-initializers1.c): Likewise.
24835 (CFLAGS-tst-initializers1-c89.c): Likewise.
24836 (CFLAGS-tst-initializers1-c99.c): Likewise.
24837 (CFLAGS-tst-initializers1-c11.c): Likewise.
24838 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24839 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24840 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24841 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24842 (CFLAGS-nscd_getgr_r.c): Likewise.
24843 (CFLAGS-nscd_gethst_r.c): Likewise.
24844 (CFLAGS-nscd_getai.c): Likewise.
24845 (CFLAGS-nscd_initgroups.c): Likewise.
24846 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24847 (CFLAGS-pause.c): Likewise.
24848 (CFLAGS-pread.c): Likewise.
24849 (CFLAGS-pread64.c): Likewise.
24850 (CFLAGS-pwrite.c): Likewise.
24851 (CFLAGS-pwrite64.c): Likewise.
24852 (CFLAGS-sleep.c): Likewise.
24853 (CFLAGS-wait.c): Likewise.
24854 (CFLAGS-waitid.c): Likewise.
24855 (CFLAGS-waitpid.c): Likewise.
24856 (CFLAGS-getopt.c): Likewise.
24857 (CFLAGS-wordexp.c): Likewise.
24858 (CFLAGS-sysconf.c): Likewise.
24859 (CFLAGS-pathconf.c): Likewise.
24860 (CFLAGS-fpathconf.c): Likewise.
24861 (CFLAGS-spawn.c): Likewise.
24862 (CFLAGS-spawnp.c): Likewise.
24863 (CFLAGS-spawni.c): Likewise.
24864 (CFLAGS-glob.c): Likewise.
24865 (CFLAGS-glob64.c): Likewise.
24866 (CFLAGS-getconf.c): Likewise.
24867 (CFLAGS-nanosleep.c): Likewise.
24868 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24869 (CFLAGS-getpwent.c): Likewise.
24870 (CFLAGS-getpw.c): Likewise.
24871 (CFLAGS-fgetpwent_r.c): Likewise.
24872 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24873 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24874 (CFLAGS-mq_timedreceive.c): Likewise.
24875 (CFLAGS-mq_timedsend.c): Likewise.
24876 (CFLAGS-clock_nanosleep.c): Likewise.
24877 (CFLAGS-librt-cancellation.c): Likewise.
24878 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24879 (CFLAGS-getspent.c): Likewise.
24880 (CFLAGS-fgetspent.c): Likewise.
24881 (CFLAGS-fgetspent_r.c): Likewise.
24882 (CFLAGS-putspent.c): Likewise.
24883 (CFLAGS-getspnam.c): Likewise.
24884 (CFLAGS-getspnam_r.c): Likewise.
24885 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24886 (CFLAGS-sigsuspend.c): Likewise.
24887 (CFLAGS-sigtimedwait.c): Likewise.
24888 (CFLAGS-sigwait.c): Likewise.
24889 (CFLAGS-sigwaitinfo.c): Likewise.
24890 (CFLAGS-sigreturn.c): Likewise.
24891 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24892 (CFLAGS-vfwprintf.c): Likewise.
24893 (CFLAGS-tmpfile.c): Likewise.
24894 (CFLAGS-tmpfile64.c): Likewise.
24895 (CFLAGS-tempname.c): Likewise.
24896 (CFLAGS-psignal.c): Likewise.
24897 (CFLAGS-vprintf.c): Likewise.
24898 (CFLAGS-cuserid.c): Likewise.
24899 (CFLAGS-errlist.c): Likewise.
24900 (CFLAGS-siglist.c): Likewise.
24901 (CFLAGS-scanf15.c): Likewise.
24902 (CFLAGS-scanf17.c): Likewise.
24903 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24904 (CFLAGS-msort.c): Likewise.
24905 (CFLAGS-qsort.c): Likewise.
24906 (CFLAGS-system.c): Likewise.
24907 (CFLAGS-fmtmsg.c): Likewise.
24908 (CFLAGS-strfmon.c): Likewise.
24909 (CFLAGS-strfmon_l.c): Likewise.
24910 (CFLAGS-strfromd.c): Likewise.
24911 (CFLAGS-strfromf.c): Likewise.
24912 (CFLAGS-strfroml.c): Likewise.
24913 (CFLAGS-tst-bsearch.c): Likewise.
24914 (CFLAGS-tst-qsort.c): Likewise.
24915 (CFLAGS-tst-makecontext2.c): Likewise.
24916 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24917 (CFLAGS-xnlm_prot.c): Likewise.
24918 (CFLAGS-xrstat.c): Likewise.
24919 (CFLAGS-xyppasswd.c): Likewise.
24920 (CFLAGS-xklm_prot.c): Likewise.
24921 (CFLAGS-xrex.c): Likewise.
24922 (CFLAGS-xsm_inter.c): Likewise.
24923 (CFLAGS-xmount.c): Likewise.
24924 (CFLAGS-xrusers.c): Likewise.
24925 (CFLAGS-xspray.c): Likewise.
24926 (CFLAGS-xnfs_prot.c): Likewise.
24927 (CFLAGS-xrquota.c): Likewise.
24928 (CFLAGS-xkey_prot.c): Likewise.
24929 (CFLAGS-auth_unix.c): Likewise.
24930 (CFLAGS-key_call.c): Likewise.
24931 (CFLAGS-pmap_rmt.c): Likewise.
24932 (CFLAGS-clnt_perr.c): Likewise.
24933 (CFLAGS-openchild.c): Likewise.
24934 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24935 (CFLAGS-msgsnd.c): Likewise.
24936 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24937 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24938 (CFLAGS-tzset.c): Likewise.
24939 (CFLAGS-getdate.c): Likewise.
24940 (CFLAGS-test_time.c): Likewise.
24941 (CPPFLAGS-tst-tzname.c): Likewise.
24942 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24943 (CFLAGS-zic.c): Likewise.
24944 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24945 (CFLAGS-wcswidth.c): Likewise.
24946 (CFLAGS-wcstol.c): Likewise.
24947 (CFLAGS-wcstoul.c): Likewise.
24948 (CFLAGS-wcstoll.c): Likewise.
24949 (CFLAGS-wcstoull.c): Likewise.
24950 (CFLAGS-wcstod.c): Likewise.
24951 (CFLAGS-wcstold.c): Likewise.
24952 (CFLAGS-wcstof128.c): Likewise.
24953 (CFLAGS-wcstof.c): Likewise.
24954 (CFLAGS-wcstol_l.c): Likewise.
24955 (CFLAGS-wcstoul_l.c): Likewise.
24956 (CFLAGS-wcstoll_l.c): Likewise.
24957 (CFLAGS-wcstoull_l.c): Likewise.
24958 (CFLAGS-wcstod_l.c): Likewise.
24959 (CFLAGS-wcstold_l.c): Likewise.
24960 (CFLAGS-wcstof128_l.c): Likewise.
24961 (CFLAGS-wcstof_l.c): Likewise.
24962 (CPPFLAGS-tst-wchar-h.c): Likewise.
24963 (CPPFLAGS-wcstold_l.c): Likewise.
24964
24965 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24966
24967 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24968
24969 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24970 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24971
24972 * manual/tunables.texi (Hardware Capability Tunables): Document
24973 glibc.tune.cached_memopt.
24974 * sysdeps/powerpc/cpu-features.c: New file.
24975 * sysdeps/powerpc/cpu-features.h: New file.
24976 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24977 _dl_powerpc_cpu_features.
24978 * sysdeps/powerpc/dl-tunables.list: New file.
24979 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24980 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24981 (INIT_ARCH): Initialize use_aligned_memopt.
24982 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24983 IS_IN(rtld))]: Restrict dl_platform_init availability and
24984 initialize CPU features used by tunables.
24985 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24986 Add memcpy-power8-cached.
24987 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24988 __memcpy_power8_cached.
24989 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24990 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24991 New file.
24992
24993 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24994
24995 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24996 (CFLAGS-noinl-tester.c): Likewise.
24997 (CFLAGS-tst-strlen.c): Likewise.
24998 (CFLAGS-stratcliff.c): Likewise.
24999 (CFLAGS-test-ffs.c): Likewise.
25000 (CFLAGS-tst-inlcall.c): Likewise.
25001 (CFLAGS-tst-xbzero-opt.c): Likewise.
25002 (CFLAGS-memcpy.c): Likewise.
25003 (CFLAGS-wordcopy.c): Likewise.
25004
25005 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
25006
25007 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
25008 Store r15 on stack and add cfi rule.
25009 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
25010 Likewise.
25011
25012 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
25013
25014 [BZ #22577]
25015 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
25016 call.
25017
25018 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25019
25020 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25021 Add s_sinf-sse2 and s_sinf-fma.
25022 (CFLAGS-s_sinf-fma.c): New.
25023 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
25024 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
25025 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
25026
25027 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25028
25029 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
25030
25031 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25032
25033 [BZ #22568]
25034 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
25035 part of result to imaginary part of argument if it is zero and the
25036 real part of the argument is not finite.
25037 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
25038 of result to real part of argument if it is zero and the imaginary
25039 part of the argument is not finite.
25040
25041 2017-12-07 Mike FABIAN <mfabian@redhat.com>
25042
25043 [BZ #22524]
25044 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
25045 and to the list of locales to be built for testing.
25046 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25047 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
25048 and build the collation rules upon that.
25049
25050 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25051
25052 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25053 * manual/math.texi (Mathematics): Document support for _Float32.
25054 * math/Makefile (test-types): Add float32.
25055 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25056 * stdlib/Versions (GLIBC_2.27): Likewise.
25057 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25058 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25059 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25060 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25061 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25062 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25063 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25064 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25065 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25066 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25067 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25068 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25069 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25070 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25071 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25072 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25073 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25074 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25075 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25076 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25077 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25078 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25079 Likewise.
25080 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25081 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25082 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25083 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25084 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25086 Likewise.
25087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25088 Likewise.
25089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25090 Likewise.
25091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25092 Likewise.
25093
25094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25095 Likewise.
25096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25097 Likewise.
25098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25099 Likewise.
25100 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25101 Likewise.
25102 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25103 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25104 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25105 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25106 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25107 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25108 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25109 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25110 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25111 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25112 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25113 Likewise.
25114 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25115 Likewise.
25116 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25117 Likewise.
25118 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25119 Likewise.
25120 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25121 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25122 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25123 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25124 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25125 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25126 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25127 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25128
25129 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25130
25131 * stdlib/strtof.c: Include <bits/floatn.h>
25132 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25133 and later undefine as macro. Define as weak alias if
25134 [!USE_WIDE_CHAR].
25135 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25136 and later undefine as macro. Define as weak alias if
25137 [USE_WIDE_CHAR].
25138 * stdlib/strtof_l.c: Include <bits/floatn.h>
25139 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25140 and later undefine as macro. Define as weak alias if
25141 [!USE_WIDE_CHAR].
25142 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25143 and later undefine as macro. Define as weak alias if
25144 [USE_WIDE_CHAR].
25145
25146 * stdlib/strfromf.c: Include <bits/floatn.h>.
25147 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25148 and later undefine as macro and define as weak alias.
25149
25150 * math/test-float32.h: New file.
25151
25152 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25153 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25154 (libm_alias_float_other_r): Create f32 alias.
25155 (libm_alias_float_r): Use semicolon before call to
25156 libm_alias_float_other_r.
25157
25158 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25159 second argument to libm_alias_float_other.
25160 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25161 second argument to libm_alias_float_other.
25162 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25163 argument to libm_alias_float_other.
25164
25165 [BZ #22561]
25166 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25167 real part of result for argument 0 + i * NaN.
25168 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25169 results for tests of 0 + i * NaN.
25170
25171 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25172
25173 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25174
25175 2017-12-06 David S. Miller <davem@davemloft.net>
25176
25177 * sysdeps/sparc/fpu/libm-test-ulps: Update
25178 exp_{downward,towardzero,upward} ulps.
25179
25180 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25181
25182 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25183 variables static.
25184
25185 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25186 (Y0_2D): Likewise.
25187 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25188 (Y0_2D): Likewise.
25189 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25190 (Y0_2D): Likewise.
25191 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25192 (Y0_2D): Likewise.
25193
25194 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25195
25196 [BZ #22515]
25197 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25198 and to the list of locales to be built for testing.
25199 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25200 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25201 and build the collation rules upon that.
25202
25203 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25204
25205 * NEWS: Add sinf to list of optimized functions.
25206
25207 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25208
25209 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25210 (__HAVE_FLOAT32X): Likewise.
25211 * manual/math.texi (Mathematics): Document support for _Float64
25212 and _Float32x.
25213 * math/Makefile (test-types): Add float64 and float32x.
25214 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25215 functions.
25216 * stdlib/Versions (GLIBC_2.27): Likewise.
25217 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25218 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25219 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25220 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25221 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25222 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25223 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25224 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25225 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25226 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25227 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25228 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25229 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25230 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25231 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25232 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25233 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25234 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25235 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25236 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25237 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25238 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25239 Likewise.
25240 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25241 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25242 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25243 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25244 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25246 Likewise.
25247 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25248 Likewise.
25249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25250 Likewise.
25251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25252 Likewise.
25253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25254 Likewise.
25255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25256 Likewise.
25257 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25258 Likewise.
25259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25260 Likewise.
25261 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25262 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25263 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25264 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25265 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25266 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25267 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25268 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25269 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25270 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25271 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25272 Likewise.
25273 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25274 Likewise.
25275 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25276 Likewise.
25277 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25278 Likewise.
25279 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25280 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25281 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25282 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25283 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25284 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25285 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25286 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25287
25288 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25289
25290 * bits/floatn-common.h: Include <bits/long-double.h>.
25291 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25292 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25293 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25294 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25295 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25296 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25297 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25298 (__builtin_huge_valf64): Use __builtin_huge_vall.
25299 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25300 (__builtin_inff64): Use __builtin_infl.
25301 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25302 (__builtin_nanf64): Use __builtin_nanl.
25303 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25304 (__builtin_nansf64): Use __builtin_nansl.
25305
25306 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25307 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25308 Carlos O'Donell <carlos@redhat.com>
25309
25310 * elf/dl-tunables.list: Add elision parameters.
25311 * manual/tunables.texi: Add entries about elision tunable.
25312 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25313 Add callback functions to dynamically enable/disable elision.
25314 Add multiple callbacks functions to set elision parameters.
25315 Deleted __libc_enable_secure check.
25316 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25317 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25318 * configure: Regenerated.
25319 * configure.ac: Option enable_lock_elision was deleted.
25320 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25321 * config.make.in: Remove references to enable_lock_elision.
25322 * manual/install.texi: Elision configure option was removed.
25323 * INSTALL: Regenerated to remove enable_lock_elision.
25324 * nptl/Makefile:
25325 Disable elision so it can verify error case for destroying a mutex.
25326 * sysdeps/powerpc/nptl/elide.h:
25327 Cleanup ENABLE_LOCK_ELISION check.
25328 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25329 * sysdeps/s390/configure: Regenerated.
25330 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25331 * nptl/tst-mutex8.c:
25332 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25333 * sysdeps/powerpc/powerpc32/sysdep.h:
25334 Deleted all ENABLE_LOCK_ELISION checks.
25335 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25336 * sysdeps/powerpc/sysdep.h: Likewise.
25337 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25338 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25339 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25340 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25341 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25342 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25343 enable-lock-elision.
25344
25345 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25346
25347 * stdlib/strtod.c: Include <bits/floatn.h>.
25348 (BUILD_DOUBLE): New macro.
25349 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25350 (strtof64): Define and later undefine as macro. Define as weak
25351 alias if [!USE_WIDE_CHAR].
25352 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25353 (wcstof64): Define and later undefine as macro. Define as weak
25354 alias if [USE_WIDE_CHAR].
25355 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25356 (strtof32x): Define and later undefine as macro. Define as weak
25357 alias if [!USE_WIDE_CHAR].
25358 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25359 (wcstof32x): Define and later undefine as macro. Define as weak
25360 alias if [USE_WIDE_CHAR].
25361 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25362 (BUILD_DOUBLE): New macro.
25363 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25364 (strtof64_l): Define and later undefine as macro. Define as weak
25365 alias if [!USE_WIDE_CHAR].
25366 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25367 (wcstof64_l): Define and later undefine as macro. Define as weak
25368 alias if [USE_WIDE_CHAR].
25369 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25370 (strtof32x_l): Define and later undefine as macro. Define as weak
25371 alias if [!USE_WIDE_CHAR].
25372 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25373 (wcstof32x_l): Define and later undefine as macro. Define as weak
25374 alias if [USE_WIDE_CHAR].
25375
25376 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25377
25378 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25379 (reduced): Use ones as double instead of integer.
25380
25381 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25382
25383 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25384
25385 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25386
25387 * stdlib/strfromd.c: Include <bits/floatn.h>.
25388 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25389 and later undefine as macro and define as weak alias.
25390 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25391 Likewise.
25392
25393 * math/test-float32x.h: New file.
25394 * math/test-float64.h: Likewise.
25395
25396 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25397 (libm_alias_double_other_r_f64): New macro.
25398 (libm_alias_double_other_r_f32x): Likewise.
25399 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25400 libm_alias_double_other_r_f32x.
25401 (libm_alias_double_r): Use semicolon before call to
25402 libm_alias_double_other_r.
25403 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25404 <bits/floatn.h>.
25405 (libm_alias_double_other_r_f64): New macro.
25406 (libm_alias_double_other_r_f32x): Likewise.
25407 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25408 libm_alias_double_other_r_f32x.
25409
25410 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25411
25412 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25413 int.
25414 (SINF_FUNC): Likewise. Replace floor with simple casts.
25415
25416 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25417
25418 [BZ #22517]
25419 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25420 and to the list of locales to be built for testing.
25421 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25422 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25423 and build the collation rules upon that.
25424
25425 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25426
25427 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25428 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25429 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25430 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25431 instead of __insn__xxx.
25432 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25433 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25434 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25435 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25436 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25437 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25438
25439 2017-12-05 Florian Weimer <fweimer@redhat.com>
25440
25441 Linux: Implement interfaces for memory protection keys
25442 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25443 xsignal, xsysconf.
25444 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25445 * support/xunistd.h (xsysconf): Declare.
25446 * support/xraise.c: New file.
25447 * support/xsigaction.c: Likewise.
25448 * support/xsignal.c: Likewise.
25449 * support/xsysconf.c: Likewise.
25450 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25451 pkey_set, pkey_get, pkey_mprotect.
25452 [misc] (tests): Add tst-pkey.
25453 (tst-pkey): Link with -lpthread.
25454 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25455 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25456 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25457 (PKEY_DISABLE_WRITE): Define.
25458 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25459 Declare.
25460 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25461 (SEGV_PKUERR): Add.
25462 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25463 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25464 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25465 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25466 Add.
25467 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25468 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25469 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25470 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25471 * sysdeps/unix/sysv/linux/**.abilist: Update.
25472
25473 2017-12-05 Florian Weimer <fweimer@redhat.com>
25474
25475 * support/tst-test_compare.c (subprocess): Use long long instead
25476 of long argument for consistent type width across 32-bit and
25477 64-bit architectures.
25478 (do_test): Adjust expected output.
25479
25480 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25481
25482 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25483 (cosf): Define using libm_alias_float.
25484 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25485 (fabsf): Define using libm_alias_float.
25486 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25487 (fmaf): Define using libm_alias_float.
25488 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25489 (rintf): Define using libm_alias_float.
25490 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25491 (sinf): Define using libm_alias_float.
25492 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25493 <libm-alias-float.h>.
25494 (modff): Define using libm_alias_float.
25495 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25496 <libm-alias-float.h>.
25497 (logbf): Define using libm_alias_float.
25498 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25499 <libm-alias-float.h>.
25500 (ceilf): Define using libm_alias_float.
25501 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25502 <libm-alias-float.h>.
25503 (copysignf): Define using libm_alias_float.
25504 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25505 <libm-alias-float.h>.
25506 (floorf): Define using libm_alias_float.
25507 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25508 <libm-alias-float.h>.
25509 (llrintf): Define using libm_alias_float.
25510 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25511 <libm-alias-float.h>.
25512 (llroundf): Define using libm_alias_float.
25513 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25514 <libm-alias-float.h>.
25515 (lrintf): Define using libm_alias_float.
25516 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25517 <libm-alias-float.h>.
25518 (lroundf): Define using libm_alias_float.
25519 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25520 <libm-alias-float.h>.
25521 (nearbyintf): Define using libm_alias_float.
25522 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25523 <libm-alias-float.h>.
25524 (rintf): Define using libm_alias_float.
25525 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25526 <libm-alias-float.h>.
25527 (roundf): Define using libm_alias_float.
25528 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25529 <libm-alias-float.h>.
25530 (truncf): Define using libm_alias_float.
25531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25532 Include <libm-alias-float.h>.
25533 (ceilf): Define using libm_alias_float.
25534 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25535 Include <libm-alias-float.h>.
25536 (copysignf): Define using libm_alias_float.
25537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25538 Include <libm-alias-float.h>.
25539 (floorf): Define using libm_alias_float.
25540 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25541 Include <libm-alias-float.h>.
25542 (llrintf): Define using libm_alias_float.
25543 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25544 Include <libm-alias-float.h>.
25545 (llroundf): Define using libm_alias_float.
25546 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25547 Include <libm-alias-float.h>.
25548 (logbf): Define using libm_alias_float.
25549 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25550 Include <libm-alias-float.h>.
25551 (lrintf): Define using libm_alias_float.
25552 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25553 Include <libm-alias-float.h>.
25554 (lroundf): Define using libm_alias_float.
25555 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25556 Include <libm-alias-float.h>.
25557 (modff): Define using libm_alias_float.
25558 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25559 Include <libm-alias-float.h>.
25560 (roundf): Define using libm_alias_float.
25561 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25562 Include <libm-alias-float.h>.
25563 (truncf): Define using libm_alias_float.
25564 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25565 <libm-alias-float.h>.
25566 (llrintf): Define using libm_alias_float.
25567 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25568 <libm-alias-float.h>.
25569 (llroundf): Define using libm_alias_float.
25570 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25571 <libm-alias-float.h>.
25572 (ceilf): Define using libm_alias_float.
25573 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25574 <libm-alias-float.h>.
25575 (floorf): Define using libm_alias_float.
25576 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25577 <libm-alias-float.h>.
25578 (llroundf): Define using libm_alias_float.
25579 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25580 <libm-alias-float.h>.
25581 (lroundf): Define using libm_alias_float.
25582 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25583 <libm-alias-float.h>.
25584 (roundf): Define using libm_alias_float.
25585 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25586 <libm-alias-float.h>.
25587 (truncf): Define using libm_alias_float.
25588 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25589 <libm-alias-float.h>.
25590 (copysignf): Define using libm_alias_float.
25591 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25592 <libm-alias-float.h>.
25593 (llrintf): Define using libm_alias_float.
25594 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25595 <libm-alias-float.h>.
25596 (llroundf): Define using libm_alias_float.
25597 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25598 <libm-alias-float.h>.
25599 (lrintf): Define using libm_alias_float.
25600 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25601 <libm-alias-float.h>.
25602 (lroundf): Define using libm_alias_float.
25603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25604 <libm-alias-float.h>.
25605 (ceilf): Define using libm_alias_float.
25606 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25607 <libm-alias-float.h>.
25608 (copysignf): Define using libm_alias_float.
25609 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25610 <libm-alias-float.h>.
25611 (cosf): Define using libm_alias_float.
25612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25613 <libm-alias-float.h>.
25614 (floorf): Define using libm_alias_float.
25615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25616 <libm-alias-float.h>.
25617 (llrintf): Define using libm_alias_float.
25618 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25619 <libm-alias-float.h>.
25620 (llroundf): Define using libm_alias_float.
25621 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25622 <libm-alias-float.h>.
25623 (logbf): Define using libm_alias_float.
25624 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25625 <libm-alias-float.h>.
25626 (modff): Define using libm_alias_float.
25627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25628 <libm-alias-float.h>.
25629 (roundf): Define using libm_alias_float.
25630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25631 <libm-alias-float.h>.
25632 (sinf): Define using libm_alias_float.
25633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25634 <libm-alias-float.h>.
25635 (truncf): Define using libm_alias_float.
25636 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25637 <libm-alias-float.h>.
25638 (ceilf): Define using libm_alias_float.
25639 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25640 <libm-alias-float.h>.
25641 (copysignf): Define using libm_alias_float.
25642 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25643 <libm-alias-float.h>.
25644 (floorf): Define using libm_alias_float.
25645 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25646 <libm-alias-float.h>.
25647 (llrintf): Define using libm_alias_float.
25648 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25649 <libm-alias-float.h>.
25650 (llroundf): Define using libm_alias_float.
25651 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25652 <libm-alias-float.h>.
25653 (nearbyintf): Define using libm_alias_float.
25654 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25655 <libm-alias-float.h>.
25656 (rintf): Define using libm_alias_float.
25657 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25658 <libm-alias-float.h>.
25659 (roundf): Define using libm_alias_float.
25660 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25661 <libm-alias-float.h>.
25662 (truncf): Define using libm_alias_float.
25663 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25664 <libm-alias-float.h>.
25665 (ceilf): Define using libm_alias_float.
25666 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25667 <libm-alias-float.h>.
25668 (floorf): Define using libm_alias_float.
25669 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25670 <libm-alias-float.h>.
25671 (llroundf): Define using libm_alias_float.
25672 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25673 <libm-alias-float.h>.
25674 (roundf): Define using libm_alias_float.
25675 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25676 <libm-alias-float.h>.
25677 (truncf): Define using libm_alias_float.
25678 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25679 <libm-alias-float.h>.
25680 (copysignf): Define using libm_alias_float.
25681 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25682 <libm-alias-float.h>.
25683 (llrintf): Define using libm_alias_float.
25684 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25685 <libm-alias-float.h>.
25686 (llroundf): Define using libm_alias_float.
25687 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25688 <libm-alias-float.h>.
25689 (cosf): Define using libm_alias_float.
25690 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25691 <libm-alias-float.h>.
25692 (llrintf): Define using libm_alias_float.
25693 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25694 <libm-alias-float.h>.
25695 (llroundf): Define using libm_alias_float.
25696 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25697 <libm-alias-float.h>.
25698 (sinf): Define using libm_alias_float.
25699
25700 2017-12-04 Florian Weimer <fweimer@redhat.com>
25701
25702 * support/check.h (TEST_COMPARE): Define.
25703 (support_test_compare_failure): Declare.
25704 * support/Makefile (libsupport-routines): Add
25705 support_test_compare_failure.
25706 (tests): Add tst-test_compare.
25707 * support /support_test_compare_failure.c: New file.
25708 * support/tst-test_compare.c: Likewise.
25709
25710 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25711
25712 [BZ #22527]
25713 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25714 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25715 available, this rewrite of the collation rules does reproduce
25716 the test file in the same order.
25717
25718 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25719
25720 [BZ #10580]
25721 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25722 digraphs in the month and day names. Using single code points for
25723 digraphs is deprecated. While there are dedicated Unicode
25724 codepoints, for the digraphs, these are included for backwards
25725 compatibility and modern texts use a sequence of Basic Latin
25726 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25727 This makes the month and day names agree exactly with CLDR now,
25728 CLDR does not use the single code points for the digraphs either.
25729
25730 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25731
25732 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25733
25734 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25735
25736 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25737 of floor.
25738
25739 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25740
25741 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25742 Define only for libc.so.
25743
25744 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25745
25746 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25747 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25748 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25749 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25750 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25751
25752 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25753
25754 [BZ #5997]
25755 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25756
25757 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25758
25759 [BZ libc/19170]
25760 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25761 PREINIT_FUNCTION_WEAK is nonzero.
25762 (gmon_initializer): New function. Put procedure label for it in
25763 .init_array section.
25764 (_init): Don't call PREINIT_FUNCTION.
25765 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25766 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25767 value when map argument is null.
25768
25769 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25770 depi instruction from PIC pc-relative sequence.
25771 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25772 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25773 (elf_machine_load_address): Likewise.
25774 (elf_machine_runtime_setup): Likewise.
25775
25776 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25777
25778 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25779 <libm-alias-double.h>.
25780 (logb): Define using libm_alias_double.
25781 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25782 <libm-alias-double.h>.
25783 (copysign): Define using libm_alias_double.
25784 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25785 <libm-alias-double.h>.
25786 (llrint): Define using libm_alias_double.
25787 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25788 <libm-alias-double.h>.
25789 (llround): Define using libm_alias_double.
25790 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25791 <libm-alias-double.h>.
25792 (lrint): Define using libm_alias_double.
25793 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25794 <libm-alias-double.h>.
25795 (lround): Define using libm_alias_double.
25796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25797 Include <libm-alias-double.h>.
25798 (copysign): Define using libm_alias_double.
25799 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25800 Include <libm-alias-double.h>.
25801 (llrint): Define using libm_alias_double.
25802 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25803 Include <libm-alias-double.h>.
25804 (llround): Define using libm_alias_double.
25805 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25806 <libm-alias-double.h>.
25807 (logb): Define using libm_alias_double.
25808 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25809 Include <libm-alias-double.h>.
25810 (lrint): Define using libm_alias_double.
25811 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25812 Include <libm-alias-double.h>.
25813 (lround): Define using libm_alias_double.
25814 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25815 <libm-alias-double.h>.
25816 (llrint): Define using libm_alias_double.
25817 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25818 <libm-alias-double.h>.
25819 (llround): Define using libm_alias_double.
25820 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25821 <libm-alias-double.h>.
25822 (llround): Define using libm_alias_double.
25823 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25824 <libm-alias-double.h>.
25825 (lround): Define using libm_alias_double.
25826 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25827 <libm-alias-double.h>.
25828 (copysign): Define using libm_alias_double.
25829 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25830 <libm-alias-double.h>.
25831 (llrint): Define using libm_alias_double.
25832 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25833 <libm-alias-double.h>.
25834 (llround): Define using libm_alias_double.
25835 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25836 <libm-alias-double.h>.
25837 (lrint): Define using libm_alias_double.
25838 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25839 <libm-alias-double.h>.
25840 (lround): Define using libm_alias_double.
25841 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25842 <libm-alias-double.h>.
25843 (copysign): Define using libm_alias_double.
25844 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25845 <libm-alias-double.h>.
25846 (llrint): Define using libm_alias_double.
25847 (lrint): Likewise.
25848 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25849 <libm-alias-double.h>.
25850 (llround): Define using libm_alias_double.
25851 (lround): Likewise.
25852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25853 <libm-alias-double.h>.
25854 (logb): Define using libm_alias_double.
25855 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25856 <libm-alias-double.h>.
25857 (copysign): Define using libm_alias_double.
25858 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25859 <libm-alias-double.h>.
25860 (llrint): Define using libm_alias_double.
25861 (lrint): Likewise.
25862 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25863 <libm-alias-double.h>.
25864 (llround): Define using libm_alias_double.
25865 (lround): Likewise.
25866 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25867 <libm-alias-double.h>.
25868 (llround): Define using libm_alias_double.
25869 (lround): Likewise.
25870 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25871 <libm-alias-double.h>.
25872 (copysign): Define using libm_alias_double.
25873 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25874 <libm-alias-double.h>.
25875 (llrint): Define using libm_alias_double.
25876 (lrint): Likewise.
25877 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25878 <libm-alias-double.h>.
25879 (llround): Define using libm_alias_double.
25880 (lround): Likewise.
25881 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25882 <libm-alias-double.h>.
25883 (llrint): Define using libm_alias_double.
25884 (lrint): Likewise.
25885 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25886 <libm-alias-double.h>.
25887 (llround): Define using libm_alias_double.
25888 (lround): Likewise.
25889
25890 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25891
25892 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25893 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25894 compat symbol based on llround.
25895
25896 * sysdeps/powerpc/power7/fpu/s_logb.c
25897 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25898 symbol based on __logb, not on logb.
25899 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25900 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25902 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25903
25904 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25905 (rint): Define using libm_alias_double.
25906 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25907 <libm-alias-double.h>.
25908 (modf): Define using libm_alias_double.
25909 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25910 <libm-alias-double.h>.
25911 (ceil): Define using libm_alias_double.
25912 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25913 <libm-alias-double.h>.
25914 (floor): Define using libm_alias_double.
25915 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25916 <libm-alias-double.h>.
25917 (nearbyint): Define using libm_alias_double.
25918 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25919 <libm-alias-double.h>.
25920 (rint): Define using libm_alias_double.
25921 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25922 <libm-alias-double.h>.
25923 (round): Define using libm_alias_double.
25924 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25925 <libm-alias-double.h>.
25926 (trunc): Define using libm_alias_double.
25927 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25928 <libm-alias-double.h>.
25929 (ceil): Define using libm_alias_double.
25930 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25931 Include <libm-alias-double.h>.
25932 (floor): Define using libm_alias_double.
25933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25934 <libm-alias-double.h>.
25935 (modf): Define using libm_alias_double.
25936 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25937 Include <libm-alias-double.h>.
25938 (round): Define using libm_alias_double.
25939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25940 Include <libm-alias-double.h>.
25941 (trunc): Define using libm_alias_double.
25942 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25943 <libm-alias-double.h>.
25944 (ceil): Define using libm_alias_double.
25945 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25946 <libm-alias-double.h>.
25947 (floor): Define using libm_alias_double.
25948 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25949 <libm-alias-double.h>.
25950 (round): Define using libm_alias_double.
25951 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25952 <libm-alias-double.h>.
25953 (trunc): Define using libm_alias_double.
25954 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25955 <libm-alias-double.h>.
25956 (ceil): Define using libm_alias_double.
25957 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25958 <libm-alias-double.h>.
25959 (floor): Define using libm_alias_double.
25960 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25961 <libm-alias-double.h>.
25962 (modf): Define using libm_alias_double.
25963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25964 <libm-alias-double.h>.
25965 (round): Define using libm_alias_double.
25966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25967 <libm-alias-double.h>.
25968 (trunc): Define using libm_alias_double.
25969 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25970 <libm-alias-double.h>.
25971 (ceil): Define using libm_alias_double.
25972 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25973 <libm-alias-double.h>.
25974 (floor): Define using libm_alias_double.
25975 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25976 <libm-alias-double.h>.
25977 (nearbyint): Define using libm_alias_double.
25978 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25979 <libm-alias-double.h>.
25980 (rint): Define using libm_alias_double.
25981 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25982 <libm-alias-double.h>.
25983 (round): Define using libm_alias_double.
25984 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25985 <libm-alias-double.h>.
25986 (trunc): Define using libm_alias_double.
25987 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25988 <libm-alias-double.h>.
25989 (ceil): Define using libm_alias_double.
25990 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25991 <libm-alias-double.h>.
25992 (floor): Define using libm_alias_double.
25993 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25994 <libm-alias-double.h>.
25995 (round): Define using libm_alias_double.
25996 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25997 <libm-alias-double.h>.
25998 (trunc): Define using libm_alias_double.
25999
26000 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
26001 (fabs): Define using libm_alias_double.
26002 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
26003 (fma): Define using libm_alias_double.
26004 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
26005 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
26006 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
26007 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
26008
26009 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26010
26011 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
26012
26013 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
26014 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
26015 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26016
26017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
26018 due redirect macro.
26019
26020 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
26021
26022 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
26023
26024 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26025
26026 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
26027 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
26028 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
26029 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
26030
26031 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26032 (libm-sysdep_routines): Add s_nearbyintf-generic and
26033 s_nearbyint-generic.
26034 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
26035 New file.
26036 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
26037 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
26038 Likewise.
26039 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
26040 Likewise.
26041 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
26042 file.
26043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26044 Likewise.
26045
26046 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26047 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26048 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26049 file.
26050 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26051 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26052 Likewise.
26053 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26054 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26055 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26056
26057 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26058 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26059 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26060 file.
26061 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26062 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26063 Likewise.
26064 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26065 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26066 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26067
26068 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26069 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26070 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26071 file.
26072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26073 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26074 Likewise.
26075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26076 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26077 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26078
26079 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26080 (sysdep_calls): New rule.
26081 (sysdep_routines): Use sysdep_calls as base.
26082 (libm-sysdep_routines): Add generic rule for symbols shared with
26083 libc. Add s_copysign-generic and s_copysign-generic objects.
26084 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26085 New file.
26086 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26087 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26088 Likewise.
26089 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26090 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26091 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26092
26093 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26094
26095 [BZ #22519]
26096 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26097 the list of locales to be built for testing.
26098 * localedata/is_IS.UTF-8.in: New file.
26099 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26100 on iso14651_t1.
26101
26102 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26103
26104 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26105 <libm-alias-float.h>.
26106 (fabsf): Define using libm_alias_float.
26107
26108 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26109
26110 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26111
26112 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26113
26114 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26115 <libm-alias-float.h>.
26116 (fabsf): Define using libm_alias_float.
26117 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26118 <libm-alias-float.h>.
26119 (lrintf): Define using libm_alias_float.
26120 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26121 <libm-alias-float.h>.
26122 (rintf): Define using libm_alias_float.
26123
26124 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26125 <libm-alias-double.h>.
26126 (fabs): Define using libm_alias_double.
26127 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26128 <libm-alias-double.h>.
26129 (lrint): Define using libm_alias_double.
26130 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26131 <libm-alias-double.h>.
26132 (rint): Define using libm_alias_double.
26133
26134 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26135 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26136 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26137 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26138 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26139 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26140 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26141 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26142 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26143 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26144 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26145 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26146 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26147 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26148 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26149 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26150 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26151 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26152 s_atan_template.c.
26153 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26154 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26155 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26156 s_ceil_template.c.
26157 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26158 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26159 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26160 s_cos_template.c.
26161 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26162 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26163 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26164 s_expm1_template.c.
26165 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26166 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26167 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26168 s_fabs_template.c.
26169 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26170 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26171 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26172 s_floor_template.c.
26173 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26174 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26175 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26176 s_frexp_template.c.
26177 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26178 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26179 s_lrint_template.c.
26180 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26181 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26182 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26183 s_modf_template.c.
26184 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26185 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26186 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26187 s_nearbyint_template.c.
26188 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26189 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26190 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26191 s_remquo_template.c.
26192 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26193 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26194 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26195 s_rint_template.c.
26196 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26197 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26198 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26199 s_sin_template.c.
26200 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26201 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26202 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26203 s_sincos_template.c.
26204 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26205 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26206 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26207 s_tan_template.c.
26208 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26209 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26210 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26211 s_tanh_template.c.
26212 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26213 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26214 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26215 s_trunc_template.c.
26216 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26217 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26218 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26219 s_atan.c instead of including s_atan.c.
26220 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26221 s_atanf.c instead of including s_atanf.c.
26222 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26223 s_atanl.c instead of including s_atanl.c.
26224 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26225 instead of s_atan.c.
26226 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26227 instead of s_atanf.c.
26228 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26229 instead of s_atanl.c.
26230
26231 * scripts/update-copyrights: Do not handle intl/plural.c
26232 specially.
26233
26234 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26235
26236 [BZ #22432]
26237 * configure.ac (BISON): Require to be present.
26238 * configure: Regenerated.
26239 * intl/Makefile (generated): Add plural.c.
26240 [$(BISON) != no]: Make code unconditional.
26241 (plural.c): Change rule to $(objpfx)plural.c.
26242 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26243 * intl/plural.c: Remove.
26244 * manual/install.texi (Tools for Compilation): Document bison as
26245 required.
26246 * INSTALL: Regenerated.
26247
26248 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26249
26250 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26251 <libm-alias-double.h>.
26252 (llrint): Define using libm_alias_double.
26253 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26254 <libm-alias-float.h>.
26255 (llrintf): Define using libm_alias_float.
26256 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26257 <libm-alias-ldouble.h>.
26258 (llrintl): Define using libm_alias_ldouble.
26259
26260 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26261 declare_mgen_alias instead of weak_alias.
26262 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26263 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26264 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26265
26266 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26267
26268 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26269 Add add_n-generic.
26270 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26271 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26272 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26273
26274 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26275 Add submul_1-generic.
26276 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26277 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26278 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26279
26280 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26281 Add addmul_1-generic.
26282 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26283 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26284 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26285
26286 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26287 Add sub_n-generic.
26288 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26289 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26290 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26291
26292 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26293 Add mul_1-generic.
26294 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26295 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26296 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26297
26298 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26299
26300 According to CLDR, collation rules for Serbian and Bosnian
26301 should be the same as for Croatian.
26302
26303 [BZ #22534]
26304 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26305 and to the list of locales to be built for testing.
26306 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26307 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26308 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26309 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26310
26311 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26312
26313 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26314 to make test case pass.
26315 * localedata/hr_HR.UTF-8.in: Add more test strings.
26316
26317 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26318
26319 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26320
26321 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26322
26323 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26324 the list of locales to built for testing.
26325 * localedata/hr_HR.UTF-8.in: New file.
26326
26327 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26328
26329 [BZ #10580]
26330 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26331 iso14651_t1.
26332 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26333 CLDR (except use ligatures for the digraphs, CLDR does not use
26334 the ligatures), add first_workday, some fixes in the date and time
26335 formats.
26336 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26337 for Đ and đ.
26338 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26339 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26340 Add int_p_cs_precedes and int_n_cs_precedes.
26341 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26342 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26343 LC_MONETARY now).
26344 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26345 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26346 name_miss.
26347 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26348 and lang_lib. Change postal_fmt.
26349
26350 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26351
26352 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26353 <setjmp.h>.
26354 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26355 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26356 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26357 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26358 * sysdeps/generic/setjmpP.h: New file.
26359 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26360 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26361 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26362 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26363 Add jmp_buf-ssp.sym.
26364 (tests): Add tst-saved_mask-1.
26365
26366 2017-11-30 Arjun Shankar <arjun@redhat.com>
26367
26368 [BZ #22375]
26369 CVE-2017-17426
26370 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26371 instead of request2size.
26372
26373 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26374
26375 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26376 (__lllrint): Remove alias.
26377 (lllrint): Likewise.
26378 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26379 (__lllrintf): Likewise.
26380 (lllrintf): Likewise.
26381
26382 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26383 <libm-alias-float.h>.
26384 (copysignf): Define using libm_alias_float.
26385 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26386 <libm-alias-float.h>.
26387 (fabsf): Define using libm_alias_float.
26388 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26389 Include <libm-alias-float.h>.
26390 (copysignf): Define using libm_alias_float.
26391 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26392 <libm-alias-float.h>.
26393 (fabsf): Define using libm_alias_float.
26394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26395 <libm-alias-float.h>.
26396 (fdimf): Define using libm_alias_float.
26397 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26398 <libm-alias-float.h>.
26399 (fmaf): Define using libm_alias_float.
26400 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26401 <libm-alias-float.h>.
26402 (llrintf): Define using libm_alias_float.
26403 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26404 Include <libm-alias-float.h>.
26405 (nearbyintf): Define using libm_alias_float.
26406 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26407 <libm-alias-float.h>.
26408 (rintf): Define using libm_alias_float.
26409 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26410 <libm-alias-float.h>.
26411 (llrintf): Define using libm_alias_float.
26412 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26413 <libm-alias-float.h>.
26414 (lrintf): Define using libm_alias_float.
26415 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26416 <libm-alias-float.h>.
26417 (nearbyintf): Define using libm_alias_float.
26418 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26419 <libm-alias-float.h>.
26420 (rintf): Define using libm_alias_float.
26421 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26422 <libm-alias-float.h>.
26423 (ceilf): Define using libm_alias_float.
26424 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26425 <libm-alias-float.h>.
26426 (floorf): Define using libm_alias_float.
26427 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26428 <libm-alias-float.h>.
26429 (fmaf): Define using libm_alias_float.
26430 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26431 <libm-alias-float.h>.
26432 (lrintf): Define using libm_alias_float.
26433 (llrintf): Likewise.
26434 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26435 <libm-alias-float.h>.
26436 (nearbyintf): Define using libm_alias_float.
26437 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26438 <libm-alias-float.h>.
26439 (rintf): Define using libm_alias_float.
26440 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26441 <libm-alias-float.h>.
26442 (truncf): Define using libm_alias_float.
26443 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26444 <libm-alias-float.h>.
26445 (copysignf): Define using libm_alias_float.
26446 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26447 <libm-alias-float.h>.
26448 (fabsf): Define using libm_alias_float.
26449 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26450 <libm-alias-float.h>.
26451 (lrintf): Define using libm_alias_float.
26452 (llrintf): Likewise.
26453 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26454 <libm-alias-float.h>.
26455 (nearbyintf): Define using libm_alias_float.
26456 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26457 <libm-alias-float.h>.
26458 (rintf): Define using libm_alias_float.
26459
26460 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26461
26462 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26463 <libm-alias-double.h>.
26464 (copysign): Define using libm_alias_double.
26465 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26466 <libm-alias-double.h>.
26467 (fabs): Define using libm_alias_double.
26468 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26469 Include <libm-alias-double.h>.
26470 (copysign): Define using libm_alias_double.
26471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26472 <libm-alias-double.h>.
26473 (fabs): Define using libm_alias_double.
26474 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26475 <libm-alias-double.h>.
26476 (fdim): Define using libm_alias_double.
26477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26478 <libm-alias-double.h>.
26479 (fma): Define using libm_alias_double.
26480 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26481 <libm-alias-double.h>.
26482 (llrint): Define using libm_alias_double.
26483 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26484 Include <libm-alias-double.h>.
26485 (nearbyint): Define using libm_alias_double.
26486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26487 <libm-alias-double.h>.
26488 (rint): Define using libm_alias_double.
26489 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26490 <libm-alias-double.h>.
26491 (fabs): Define using libm_alias_double.
26492 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26493 <libm-alias-double.h>.
26494 (llrint): Define using libm_alias_double.
26495 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26496 <libm-alias-double.h>.
26497 (nearbyint): Define using libm_alias_double.
26498 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26499 <libm-alias-double.h>.
26500 (rint): Define using libm_alias_double.
26501 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26502 <libm-alias-double.h>.
26503 (ceil): Define using libm_alias_double.
26504 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26505 <libm-alias-double.h>.
26506 (floor): Define using libm_alias_double.
26507 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26508 <libm-alias-double.h>.
26509 (fma): Define using libm_alias_double.
26510 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26511 <libm-alias-double.h>.
26512 (lrint): Define using libm_alias_double.
26513 (llrint): Likewise.
26514 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26515 <libm-alias-double.h>.
26516 (nearbyint): Define using libm_alias_double.
26517 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26518 <libm-alias-double.h>.
26519 (rint): Define using libm_alias_double.
26520 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26521 <libm-alias-double.h>.
26522 (trunc): Define using libm_alias_double.
26523 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26524 <libm-alias-double.h>.
26525 (copysign): Define using libm_alias_double.
26526 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26527 <libm-alias-double.h>.
26528 (fabs): Define using libm_alias_double.
26529 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26530 <libm-alias-double.h>.
26531 (lrint): Define using libm_alias_double.
26532 (llrint): Likewise.
26533 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26534 <libm-alias-double.h>.
26535 (nearbyint): Define using libm_alias_double.
26536 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26537 <libm-alias-double.h>.
26538 (rint): Define using libm_alias_double.
26539
26540 [BZ #22229]
26541 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26542 <math_ldbl_opt.h>.
26543 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26544
26545 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26546 SPARC --disable-multi-arch glibc variants.
26547
26548 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26549 <libm-alias-float.h>.
26550 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26551 if [SHARED].
26552 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26553 <libm-alias-float.h>.
26554 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26555 if [SHARED].
26556 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26557 <libm-alias-float.h>.
26558 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26559 if [SHARED].
26560 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26561 <libm-alias-float.h>.
26562 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26563 if [SHARED].
26564 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26565 <libm-alias-float.h>.
26566 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26567 if [SHARED].
26568 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26569 <libm-alias-float.h>.
26570 (ceilf): Define using libm_alias_float.
26571 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26572 <libm-alias-float.h>.
26573 (floorf): Define using libm_alias_float.
26574 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26575 <libm-alias-float.h>.
26576 (fmaf): Define using libm_alias_float.
26577 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26578 <libm-alias-float.h>.
26579 (nearbyintf): Define using libm_alias_float.
26580 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26581 <libm-alias-float.h>.
26582 (rintf): Define using libm_alias_float.
26583 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26584 <libm-alias-float.h>.
26585 (truncf): Define using libm_alias_float.
26586 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26587 (copysignf): Define using libm_alias_float.
26588 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26589 (cosf): Define using libm_alias_float.
26590 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26591 (fabsf): Define using libm_alias_float.
26592 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26593 (fmaxf): Define using libm_alias_float.
26594 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26595 (fminf): Define using libm_alias_float.
26596 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26597 (llrintf): Define using libm_alias_float.
26598 [!__ILP32__] (lrintf): Likewise.
26599 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26600 (sincosf): Define using libm_alias_float.
26601 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26602 (sinf): Define using libm_alias_float.
26603 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26604 (lrintf): Define using libm_alias_float.
26605
26606 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26607 <libm-alias-double.h>.
26608 (atan): Define using libm_alias_double.
26609 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26610 <libm-alias-double.h>.
26611 (ceil): Define using libm_alias_double.
26612 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26613 <libm-alias-double.h>.
26614 (floor): Define using libm_alias_double.
26615 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26616 <libm-alias-double.h>.
26617 (fma): Define using libm_alias_double.
26618 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26619 <libm-alias-double.h>.
26620 (nearbyint): Define using libm_alias_double.
26621 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26622 <libm-alias-double.h>.
26623 (rint): Define using libm_alias_double.
26624 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26625 <libm-alias-double.h>.
26626 (sin): Define using libm_alias_double.
26627 (cos): Likewise.
26628 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26629 <libm-alias-double.h>.
26630 (tan): Define using libm_alias_double.
26631 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26632 <libm-alias-double.h>.
26633 (trunc): Define using libm_alias_double.
26634 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26635 (copysign): Define using libm_alias_double.
26636 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26637 (fabs): Define using libm_alias_double.
26638 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26639 (fmax): Define using libm_alias_double.
26640 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26641 (fmin): Define using libm_alias_double.
26642 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26643 (llrint): Define using libm_alias_double.
26644 [!__ILP32__] (lrint): Likewise.
26645 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26646 (lrint): Define using libm_alias_double.
26647
26648 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26649
26650 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26651 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26652 objects.
26653 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26654 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26655 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26656 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26657 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26658 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26659
26660 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26661 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26662 objects.
26663 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26664 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26665 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26666 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26667 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26668 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26669
26670 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26671 (libm-sysdep_routines): Add s_nearbyint-generic and
26672 s_nearbyintf-generic objects.
26673 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26674 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26675 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26676 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26677 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26678 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26679
26680 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26681 Add s_finitef-generic and s_finite-generic objects.
26682 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26683 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26684 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26685 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26686 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26687 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26688
26689 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26690 Add s_isinff-generic and s_isinf-generic objects.
26691 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26692 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26693 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26694 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26695 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26696 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26697
26698 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26699 Add s_isnanf-generic and s_isnan-generic objects.
26700 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26701 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26702 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26703 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26704 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26705 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26706
26707 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26708 macro.
26709 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26710 rule.
26711 (sysdep_routines): Use sysdep_calls as base.
26712 (libm-sysdep_routines): Add generic rule for symbols shared with
26713 libc. Add s_signbit-generic and s_signbitf-generic objects.
26714 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26715 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26716 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26717 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26718 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26719 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26720
26721 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26722
26723 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26724 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26725 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26726 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26727 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26728 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26729 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26730 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26731 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26732 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26733 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26734 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26735 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26736 libm_alias_float_r.
26737 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26738 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26739 (logf): Likewise.
26740 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26741 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26742 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26743 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26744 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26745 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26746 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26747 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26748 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26749 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26750 libm_alias_float.
26751 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26752 (cosf): Likewise.
26753 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26754 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26755 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26756 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26757 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26758 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26759 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26760 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26761 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26762 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26763 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26764 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26765 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26766 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26767 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26768 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26769 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26770 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26771 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26772 libm_alias_float.
26773 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26774 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26775 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26776 * sysdeps/ia64/fpu/w_lgammaf_main.c
26777 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26778 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26779
26780 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26781 Alexandre Oliva <aoliva@redhat.com>
26782
26783 [BZ #17750]
26784 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26785 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26786 accents sorting.
26787 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26788 sorting.
26789 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26790 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26791 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26792 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26793 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26794 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26795 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26796 instead of “ifdef DIACRIT_BACKWARD”.
26797
26798 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26799
26800 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26801 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26802 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26803 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26804 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26805 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26806 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26807 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26808 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26809 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26810 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26811 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26812 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26813 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26814 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26815 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26816 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26817 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26818 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26819 ($(have-as-vis3) == yes): Remove conditional.
26820 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26821 Likewise.
26822 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26823 file.
26824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26825 file.
26826 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26827 file.
26828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26829 file.
26830 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26831 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26832 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26833 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26834 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26835 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26836 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26837 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26838
26839 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26840
26841 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26842 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26843 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26844 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26845 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26846 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26847 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26848 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26849 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26850 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26851 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26852 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26853 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26854 libm_alias_double_r.
26855 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26856 (log): Likewise.
26857 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26858 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26859 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26860 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26861 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26862 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26863 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26864 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26865 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26866 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26867 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26868 libm_alias_double.
26869 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26870 (cos): Likewise.
26871 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26872 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26873 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26874 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26875 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26876 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26877 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26878 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26879 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26880 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26881 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26882 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26883 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26884 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26885 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26886 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26887 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26888 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26889 libm_alias_double.
26890 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26891 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26892 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26893 * sysdeps/ia64/fpu/w_lgamma_main.c
26894 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26895 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26896
26897 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26898
26899 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26900 address of $global$ into %dp register earlier. Use pc-relative
26901 instruction sequence for PIC case.
26902
26903 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26904
26905 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26906 (asinhf): Define using libm_alias_float.
26907 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26908 (atanf): Define using libm_alias_float.
26909 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26910 (cbrtf): Define using libm_alias_float.
26911 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26912 (ceilf): Define using libm_alias_float.
26913 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26914 (copysignf): Define using libm_alias_float.
26915 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26916 (expm1f): Define using libm_alias_float.
26917 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26918 (fabsf): Define using libm_alias_float.
26919 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26920 (floorf): Define using libm_alias_float.
26921 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26922 (fmaxf): Define using libm_alias_float.
26923 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26924 (fminf): Define using libm_alias_float.
26925 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26926 (frexpf): Define using libm_alias_float.
26927 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26928 (llrintf): Define using libm_alias_float.
26929 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26930 (logbf): Define using libm_alias_float.
26931 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26932 (lrintf): Define using libm_alias_float.
26933 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26934 (nearbyintf): Define using libm_alias_float.
26935 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26936 (remquof): Define using libm_alias_float.
26937 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26938 (rintf): Define using libm_alias_float.
26939 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26940 (truncf): Define using libm_alias_float.
26941 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26942 <libm-alias-float.h>.
26943 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26944 if [SHARED].
26945 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26946 <libm-alias-float.h>.
26947 (expf): Define using libm_alias_float, or libm_alias_float_other
26948 if [SHARED].
26949 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26950 <libm-alias-float.h>.
26951 (log2f): Define using libm_alias_float, or libm_alias_float_other
26952 if [SHARED].
26953 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26954 <libm-alias-float.h>.
26955 (logf): Define using libm_alias_float, or libm_alias_float_other
26956 if [SHARED].
26957 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26958 <libm-alias-float.h>.
26959 (powf): Define using libm_alias_float, or libm_alias_float_other
26960 if [SHARED].
26961 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26962 <libm-alias-float.h>.
26963 (cosf): Define using libm_alias_float.
26964 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26965 <libm-alias-float.h>.
26966 (sincosf): Define using libm_alias_float.
26967 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26968 <libm-alias-float.h>.
26969 (sinf): Define using libm_alias_float.
26970 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26971 (fmaxf): Define using libm_alias_float.
26972 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26973 (fminf): Define using libm_alias_float.
26974 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26975 <libm-alias-float.h>.
26976 (fmaf): Define using libm_alias_float.
26977
26978 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26979 (asinh): Define using libm_alias_double.
26980 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26981 (atan): Define using libm_alias_double.
26982 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26983 (cbrt): Define using libm_alias_double.
26984 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26985 (ceil): Define using libm_alias_double.
26986 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26987 (copysign): Define using libm_alias_double.
26988 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26989 (expm1): Define using libm_alias_double.
26990 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26991 (fabs): Define using libm_alias_double.
26992 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26993 (fdim): Define using libm_alias_double.
26994 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26995 (floor): Define using libm_alias_double.
26996 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26997 (fmax): Define using libm_alias_double.
26998 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26999 (fmin): Define using libm_alias_double.
27000 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
27001 (frexp): Define using libm_alias_double.
27002 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
27003 (llrint): Define using libm_alias_double.
27004 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
27005 (logb): Define using libm_alias_double.
27006 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
27007 (lrint): Define using libm_alias_double.
27008 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
27009 (nearbyint): Define using libm_alias_double.
27010 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
27011 (remquo): Define using libm_alias_double.
27012 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
27013 (rint): Define using libm_alias_double.
27014 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
27015 (trunc): Define using libm_alias_double.
27016 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
27017 (fmax): Define using libm_alias_double.
27018 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
27019 (fmin): Define using libm_alias_double.
27020 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
27021 (fma): Define using libm_alias_double.
27022
27023 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
27024
27025 [BZ #22370]
27026 * elf/dl-hwcaps.c (ROUND): Removed.
27027 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
27028 and ELF_NOTE_NEXT_OFFSET.
27029 * elf/dl-load.c (ROUND): Removed.
27030 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27031 * elf/readelflib.c (ROUND): Removed.
27032 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27033 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
27034 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
27035 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
27036
27037 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27038
27039 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27040 [!__fmaf] (fmaf): Define using libm_alias_float.
27041
27042 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
27043 [!__fma] (fma): Define using libm_alias_double.
27044 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
27045
27046 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27047
27048 [BZ #22336]
27049 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
27050 and implement the collation rules for cs from CLDR on top of that.
27051 * Makefile: Add cs_CZ.UTF-8 to test-input.
27052 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27053
27054 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27055
27056 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27057
27058 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27059 Icarus Sparry <icarus.w.sparry@intel.com>
27060
27061 * benchtests/Makefile:Add BENCHSET to allow subsets of
27062 benchmarks to be run.
27063 * benchtests/README: Add documentation for: Running subsets of
27064 benchmarks.
27065
27066 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27067
27068 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27069 range of tests names.
27070
27071 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27072 result from property and remove "max", min" and "mean" from
27073 required properties based on benchtests/bench-skeleton.c.
27074
27075 2017-11-28 Florian Weimer <fweimer@redhat.com>
27076
27077 [BZ #20826]
27078 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27079 due to Internet requirement.
27080 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27081 tst-getaddrinfo5.
27082 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27083
27084 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27085
27086 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27087 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27088 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27089 (sysdep_routines): Add memset-ultra1.
27090 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27091 file.
27092 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27093 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27094 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27095 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27096 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27097 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27098 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27099 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27100
27101 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27102 file.
27103 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27104 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27105 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27106 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27107 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27108 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27109 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27110 macro.
27111 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27112 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27113 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27114 (sysdep_routines): Add memcpy-ultra1.
27115 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27116 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27117
27118 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27119
27120 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27121 (cfloat_versions): Take function argument without trailing 'f'.
27122 Call libm_alias_float_other.
27123 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27124 * sysdeps/alpha/fpu/cargf.c: Likewise.
27125 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27126 * sysdeps/alpha/fpu/conjf.c: Likewise.
27127 * sysdeps/alpha/fpu/crealf.c: Likewise.
27128 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27129 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27130 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27131 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27132 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27133 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27134 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27135 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27136 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27137 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27138 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27139 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27140 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27141 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27142 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27143 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27144 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27145 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27146 (clog10f): Use libm_alias_float_other.
27147 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27148 (ceilf): Define using libm_alias_float.
27149 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27150 (copysignf): Define using libm_alias_float.
27151 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27152 (fabsf): Define using libm_alias_float.
27153 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27154 (floorf): Define using libm_alias_float.
27155 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27156 (fmaxf): Define using libm_alias_float.
27157 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27158 (fminf): Define using libm_alias_float.
27159 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27160 (lrintf): Define using libm_alias_float.
27161 (llrintf): Likewise.
27162 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27163 (lroundf): Define using libm_alias_float.
27164 (llroundf): Likewise.
27165 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27166 (rintf): Define using libm_alias_float.
27167 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27168 (truncf): Define using libm_alias_float.
27169
27170 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27171 (ceilf): Define using libm_alias_float.
27172 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27173 (floorf): Define using libm_alias_float.
27174 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27175 (fmaf): Define using libm_alias_float.
27176 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27177 (fmaxf): Define using libm_alias_float.
27178 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27179 (fminf): Define using libm_alias_float.
27180 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27181 (llrintf): Define using libm_alias_float.
27182 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27183 (llroundf): Define using libm_alias_float.
27184 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27185 (lrintf): Define using libm_alias_float.
27186 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27187 (lroundf): Define using libm_alias_float.
27188 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27189 <libm-alias-float.h>.
27190 (nearbyintf): Define using libm_alias_float.
27191 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27192 (rintf): Define using libm_alias_float.
27193 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27194 (roundf): Define using libm_alias_float.
27195 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27196 (truncf): Define using libm_alias_float.
27197
27198 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27199 (ceil): Define using libm_alias_double.
27200 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27201 (copysign): Define using libm_alias_double.
27202 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27203 (fabs): Define using libm_alias_double.
27204 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27205 (floor): Define using libm_alias_double.
27206 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27207 (fmax): Define using libm_alias_double.
27208 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27209 (fmin): Define using libm_alias_double.
27210 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27211 (lrint): Define using libm_alias_double.
27212 (llrint): Likewise.
27213 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27214 (lround): Define using libm_alias_double.
27215 (llround): Likewise.
27216 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27217 (rint): Define using libm_alias_double.
27218 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27219 (trunc): Define using libm_alias_double.
27220
27221 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27222 (libm_alias_double_r): Add semicolon after weak_alias call.
27223
27224 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27225
27226 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27227 (ceil): Define using libm_alias_double.
27228 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27229 (floor): Define using libm_alias_double.
27230 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27231 (fma): Define using libm_alias_double.
27232 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27233 (fmax): Define using libm_alias_double.
27234 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27235 (fmin): Define using libm_alias_double.
27236 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27237 (llrint): Define using libm_alias_double.
27238 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27239 (llround): Define using libm_alias_double.
27240 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27241 (lrint): Define using libm_alias_double.
27242 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27243 (lround): Define using libm_alias_double.
27244 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27245 (nearbyint): Define using libm_alias_double.
27246 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27247 (rint): Define using libm_alias_double.
27248 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27249 (round): Define using libm_alias_double.
27250 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27251 (trunc): Define using libm_alias_double.
27252
27253 2017-11-27 Florian Weimer <fweimer@redhat.com>
27254
27255 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27256 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27257 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27258 (tests): Add tst-mlock2.
27259 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27260 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27261 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27262 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27263 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27264 for mlock. Document mlock2.
27265
27266 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27267
27268 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27269 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27270 Likewise.
27271 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27272 Likewise.
27273 * sysdeps/x86/Makeconfig: New file.
27274 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27275 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27276 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27277 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27278 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27279 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27280 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27281 Likewise.
27282 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27283 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27284 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27285 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27286 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27287 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27288 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27289 * manual/math.texi (Mathematics): Document support for _Float64x.
27290 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27291 * stdlib/Versions (GLIBC_2.27): Likewise.
27292 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27293 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27294 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27295 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27296 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27297 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27298 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27299 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27300 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27301 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27302 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27303 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27305 Likewise.
27306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27307 Likewise.
27308 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27309 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27310 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27311 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27312 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27313 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27314 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27315 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27316 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27317 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27318 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27319 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27320 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27321 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27322
27323 2017-11-27 Andreas Schwab <schwab@suse.de>
27324
27325 * elf/Makefile (dl-routines): Add dl-sort-maps.
27326 * elf/dl-sort-maps.c: New file.
27327 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27328 (_dl_sort_maps): Declare.
27329 * elf/dl-fini.c (_dl_sort_fini): Remove.
27330 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27331 * elf/dl-close.c (_dl_close_worker): Likewise.
27332 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27333 open-coding it.
27334 * elf/dl-open.c (dl_open_worker): Likewise.
27335
27336 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27337
27338 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27339 using libm_alias_float128.
27340 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27341 Likewise.
27342 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27343 Likewise.
27344 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27345 (setpayloadsigf128): Likewise.
27346 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27347 Likewise.
27348 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27349 Likewise.
27350
27351 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27352 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27353 -mfloat128 to CFLAGS.
27354 ($(foreach
27355 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27356 Likewise.
27357 (CFLAGS-libm-test-support-float64x.c): New variable.
27358 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27359 $(f128-loader-link) to gnulib-tests.
27360
27361 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27362 (libm_alias_float128_other_r): If
27363 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27364 alias.
27365 (libm_alias_float128_r): Add semicolon after weak_alias call.
27366 * sysdeps/generic/libm-alias-ldouble.h
27367 (libm_alias_ldouble_other_r_f128): New macro.
27368 (libm_alias_ldouble_other_r_f64x): Likewise.
27369 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27370 and libm_alias_ldouble_other_r_f64x.
27371 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27372 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27373 (libm_alias_ldouble_other_r_f128): New macro.
27374 (libm_alias_ldouble_other_r_f64x): Likewise.
27375 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27376 and libm_alias_ldouble_other_r_f64x.
27377
27378 * stdlib/strfroml.c: Always include <stdlib.h>.
27379 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27380 undefine as macro and define as weak alias.
27381 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27382 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27383 <stdlib.h>.
27384 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27385 Define and later undefine as macro and define as weak alias.
27386
27387 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27388 Define and later undefine as macro. Define as weak alias if
27389 [!USE_WIDE_CHAR].
27390 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27391 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27392 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27393 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27394 Define and later undefine as macro. Define as weak alias if
27395 [!USE_WIDE_CHAR].
27396 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27397 Define and later undefine as macro. Define as weak alias if
27398 [USE_WIDE_CHAR].
27399 * sysdeps/ieee754/float128/strtof128_l.c
27400 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27401 Define and later undefine as macro. Define as weak alias if
27402 [!USE_WIDE_CHAR].
27403 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27404 Define and later undefine as macro. Define as weak alias if
27405 [USE_WIDE_CHAR].
27406 * sysdeps/ieee754/ldbl-128/strtold_l.c
27407 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27408 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27409 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27410 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27411 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27412 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27413 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27414 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27415 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27416 * sysdeps/ieee754/ldbl-96/strtold_l.c
27417 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27418 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27419 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27420 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27421
27422 * math/test-float64x.h: New file.
27423 * math/Makefile (type-float64x-yes): New variable.
27424 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27425
27426 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27427 function-like macro.
27428 (min_of_type_): Likewise.
27429 (min_of_type_l): Likewise.
27430 (min_of_type_f128): Likewise.
27431 (min_of_type): Pass () as last argument of __MATH_TG.
27432
27433 * stdlib/tst-strtod-round-skeleton.c
27434 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27435 headers.
27436
27437 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27438 for combinations of long double with _Float64 and _Float64x.
27439
27440 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27441 (__DECL_SIMD_cosf32): Likewise.
27442 (__DECL_SIMD_cosf64): Likewise.
27443 (__DECL_SIMD_cosf32x): Likewise.
27444 (__DECL_SIMD_cosf64x): Likewise.
27445 (__DECL_SIMD_cosf128x): Likewise.
27446 (__DECL_SIMD_sinf16): Likewise.
27447 (__DECL_SIMD_sinf32): Likewise.
27448 (__DECL_SIMD_sinf64): Likewise.
27449 (__DECL_SIMD_sinf32x): Likewise.
27450 (__DECL_SIMD_sinf64x): Likewise.
27451 (__DECL_SIMD_sinf128x): Likewise.
27452 (__DECL_SIMD_sincosf16): Likewise.
27453 (__DECL_SIMD_sincosf32): Likewise.
27454 (__DECL_SIMD_sincosf64): Likewise.
27455 (__DECL_SIMD_sincosf32x): Likewise.
27456 (__DECL_SIMD_sincosf64x): Likewise.
27457 (__DECL_SIMD_sincosf128x): Likewise.
27458 (__DECL_SIMD_logf16): Likewise.
27459 (__DECL_SIMD_logf32): Likewise.
27460 (__DECL_SIMD_logf64): Likewise.
27461 (__DECL_SIMD_logf32x): Likewise.
27462 (__DECL_SIMD_logf64x): Likewise.
27463 (__DECL_SIMD_logf128x): Likewise.
27464 (__DECL_SIMD_expf16): Likewise.
27465 (__DECL_SIMD_expf32): Likewise.
27466 (__DECL_SIMD_expf64): Likewise.
27467 (__DECL_SIMD_expf32x): Likewise.
27468 (__DECL_SIMD_expf64x): Likewise.
27469 (__DECL_SIMD_expf128x): Likewise.
27470 (__DECL_SIMD_powf16): Likewise.
27471 (__DECL_SIMD_powf32): Likewise.
27472 (__DECL_SIMD_powf64): Likewise.
27473 (__DECL_SIMD_powf32x): Likewise.
27474 (__DECL_SIMD_powf64x): Likewise.
27475 (__DECL_SIMD_powf128x): Likewise.
27476
27477 * stdlib/Versions (libc): Move entries for wcstof128 and
27478 wcstof128_l to ....
27479 * wcsmbs/Versions (libc): ... here.
27480 Include <float128-abi.h>.
27481
27482 2017-11-24 Florian Weimer <fweimer@redhat.com>
27483
27484 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27485 bits/mman-shared.h.
27486 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27487 <bits/mman-shared.h>.
27488 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27489 to ...
27490 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27491 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27492 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27493 <bits/mman-shared.h>.
27494
27495 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27496
27497 [BZ #22457]
27498 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27499 posix_memalign/free.
27500 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27501
27502 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27503
27504 [BZ #22469]
27505 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27506 and implement the collation rules for pl from CLDR on top of that.
27507 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27508 of locales to be built for testing.
27509 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27510
27511 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27512
27513 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27514 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27515 libm_alias_ldouble_other.
27516 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27517 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27518 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27519 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27520 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27521 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27522 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27523 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27524 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27525 libm_alias_ldouble_r.
27526 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27527 libm_alias_ldouble_other.
27528 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27529 (log10l): Likewise.
27530 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27531 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27532 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27533 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27534 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27535 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27536 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27537 (atan2l): Likewise.
27538 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27539 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27540 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27541 libm_alias_ldouble.
27542 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27543 (cosl): Likewise.
27544 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27545 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27546 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27547 (expl): Likewise.
27548 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27549 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27550 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27551 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27552 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27553 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27554 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27555 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27556 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27557 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27558 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27559 libm_alias_ldouble.
27560 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27561 libm_alias_ldouble_other.
27562 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27563 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27564 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27565 libm_alias_ldouble.
27566 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27567 libm_alias_ldouble_other.
27568 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27569 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27570 * sysdeps/ia64/fpu/w_lgammal_main.c
27571 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27572 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27573
27574 2017-11-23 Florian Weimer <fweimer@redhat.com>
27575
27576 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27577 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27578 alike. Remove freeres marker.
27579 * malloc/arena.c (arena_thread_freeres): Call
27580 tcache_thread_shutdown.
27581
27582 2017-11-23 Florian Weimer <fweimer@redhat.com>
27583
27584 [BZ #22459]
27585 Export nscd hash function as __nss_hash.
27586 * include/nss.h (__nss_hash): Declare.
27587 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27588 symbol.
27589 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27590 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27591 of __nscd_hash.
27592 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27593 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27594 * nss/Makefiles (routines): Add nss_hash.
27595 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27596 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27597 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27598 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27599
27600 2017-11-23 Florian Weimer <fweimer@redhat.com>
27601
27602 [BZ #22478]
27603 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27604 Return error code, not -1.
27605 * signal/tst-sigwait-eintr.c: New file.
27606 * signal/Makefile (tests): Add tst-sigwait-eintr.
27607
27608 2017-11-23 Florian Weimer <fweimer@redhat.com>
27609
27610 Linux: Add memfd_create system call wrapper
27611 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27612 tst-memfd_create.
27613 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27614 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27615 [__USE_GNU] (memfd_create): Declare.
27616 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27617 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27618 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27619 * sysdeps/unix/sysv/linux/**.abilist: Update.
27620 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27621
27622 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27623
27624 * localedata/gen-locale.sh: Fix typo in variable name.
27625
27626 * resolv/res_debug.c (p_secstodate): Condition definition on
27627 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27628 directly as __p_secstodate, and as a compat symbol. Do not use
27629 libresolv_hidden_def.
27630 * resolv/resolv.h (p_secstodate): Remove macro and function
27631 declaration.
27632 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27633 using p_secstodate.
27634 * include/resolv.h (__p_secstodate): Do not use
27635 libresolv_hidden_proto.
27636 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27637 (tests-internal): ... here.
27638 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27639 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27640 and declare and use __p_secstodate and use compat_symbol_reference
27641 in that case.
27642 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27643 implementation returning 77.
27644
27645 [BZ #22463]
27646 * resolv/res_debug.c: Include <libc-diag.h>.
27647 (p_secstodate): Assert time_t at least as wide as u_long. On
27648 overflow, use integer seconds since the epoch as output, or use
27649 "<overflow>" as output and set errno to EOVERFLOW if integer
27650 seconds since the epoch would be 14 or more characters.
27651 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27652 for sprintf call.
27653 * resolv/tst-p_secstodate.c: New file.
27654 * resolv/Makefile (tests): Add tst-p_secstodate.
27655 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27656
27657 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27658 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27659 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27660
27661 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27662
27663 * posix/regcomp.c (init_word_char): Add comments.
27664
27665 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27666
27667 [BZ #22447]
27668 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27669 strlen to compute length of ut_user and set trailing NUL byte of
27670 result explicitly.
27671
27672 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27673
27674 [BZ #15537]
27675 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27676 using “copy "iso14651_t1"” and then implementing the
27677 collation rules for lv from CLDR on top of that.
27678 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27679 of locales to be built for testing.
27680 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27681 sorting.
27682
27683 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27684
27685 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27686 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27687 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27688 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27689 [__USE_MISC] (MADV_HWPOISON): New macro.
27690 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27691
27692 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27693
27694 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27695 -Wmissing-braces on GCC 4.9.
27696
27697 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27698
27699 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27700 * sysdeps/s390/s390-32/start.S (_start): Likewise
27701 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27702 (thread_start): Likewise.
27703 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27704 (thread_start): Likewise.
27705 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27706 (__makecontext_ret): Likewise.
27707 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27708 (__makecontext_ret): Likewise.
27709
27710 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27711
27712 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27713 __wcschrnul): Remove attribute_hidden.
27714
27715 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27716
27717 regex: don't assume uint64_t or uint32_t
27718 This avoids -Werror=overflow errors for 32-bit systems in
27719 the 64-bit case. Problem reported by Joseph Myers in:
27720 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27721 Also, when this code is used in Gnulib it ports to platforms
27722 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27723 them, and on some 32-bit compilers there is no uint64_t.
27724 Problem reported by Gianluigi Tiesi in:
27725 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27726 * posix/regcomp.c (init_word_char): Don't assume that the types
27727 uint64_t and uint32_t exist. Adapted from Gnulib patch
27728 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27729 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27730
27731 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27732
27733 * sysdeps/aarch64/memset-reg.h: New file.
27734 * sysdeps/aarch64/memset.S: Use it.
27735 (__memset): Rename to MEMSET macro.
27736 [ZVA_MACRO]: Use zva_macro.
27737 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27738 Add memset_generic and memset_falkor.
27739 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27740 (__libc_ifunc_impl_list): Add memset ifuncs.
27741 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27742 local variable zva_size.
27743 * sysdeps/aarch64/multiarch/memset.c: New file.
27744 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27745 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27746 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27747 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27748 (DCZID_DZP_MASK): New macro.
27749 (DCZID_BS_MASK): Likewise.
27750 (init_cpu_features): Read and set zva_size.
27751 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27752 (struct cpu_features): New member zva_size.
27753
27754 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27755 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27756 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27757
27758 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27759 backwards. Fix timing computation.
27760 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27761 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27762 on memset by N at a time. Fix timing computation.
27763
27764 2017-11-20 Florian Weimer <fweimer@redhat.com>
27765
27766 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27767 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27768
27769 2017-11-19 Florian Weimer <fweimer@redhat.com>
27770
27771 manual: Document mprotect
27772 * manual/memory.texi (Memory Protection): New section.
27773 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27774 documentation of PROT_* flags and reference the Memory Protection
27775 section instead.
27776
27777 2017-11-19 Florian Weimer <fweimer@redhat.com>
27778
27779 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27780 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27781 (Scatter-Gather): ... to here. Remove misleading comment.
27782
27783 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27784
27785 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27786 style.
27787
27788 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27789 when /proc/<pid>/setgroups does not exist.
27790
27791 2017-11-18 Florian Weimer <fweimer@redhat.com>
27792
27793 * sysdeps/unix/sysv/linux/tst-ttyname.c
27794 (become_root_in_mount_ns): Remove.
27795 (do_in_chroot_1): Call support_enter_mount_namespace.
27796 (do_in_chroot_2): Likewise.
27797 (do_test): Call support_become_root early.
27798
27799 2017-11-18 Florian Weimer <fweimer@redhat.com>
27800
27801 * support/namespace.h (support_enter_mount_namespace): Declare.
27802 * support/support_enter_mount_namespace.c: New file.
27803 * support/Makefile (libsupport-routines): Add
27804 support_enter_mount_namespace.
27805
27806 2017-11-18 Florian Weimer <fweimer@redhat.com>
27807
27808 * support/temp_file.c (support_create_temp_directory): Use
27809 test_dir and do not rely on the presence of the XXXXXX suffix.
27810 * support/temp_file.h (support_create_temp_directory): Update
27811 comment.
27812 * support/tst-xreadlink.c (do_test): Adjust.
27813 * support/support_chroot.c (support_chroot_create): Likewise.
27814
27815 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27816
27817 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27818 macro.
27819 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27820 htm-no-suspend.
27821
27822 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27823
27824 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27825 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27826 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27827 (ceill): Define using libm_alias_ldouble.
27828 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27829 <libm-alias-ldouble.h>.
27830 (copysignl): Define using libm_alias_ldouble.
27831 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27832 (fabsl): Define using libm_alias_ldouble.
27833 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27834 (floorl): Define using libm_alias_ldouble.
27835 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27836 (fmaxl): Define using libm_alias_ldouble.
27837 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27838 (fminl): Define using libm_alias_ldouble.
27839 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27840 (llrintl): Define using libm_alias_ldouble.
27841 (lrintl): Likewise.
27842 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27843 <libm-alias-ldouble.h>.
27844 (nearbyintl): Define using libm_alias_ldouble.
27845 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27846 (truncl): Define using libm_alias_ldouble.
27847 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27848 <libm-alias-ldouble.h>.
27849 (lrintl): Define using libm_alias_ldouble.
27850
27851 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27852 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27853 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27854 (asinhl): Define using libm_alias_ldouble.
27855 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27856 (atanl): Define using libm_alias_ldouble.
27857 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27858 (cbrtl): Define using libm_alias_ldouble.
27859 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27860 (ceill): Define using libm_alias_ldouble.
27861 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27862 (copysignl): Define using libm_alias_ldouble.
27863 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27864 (fabsl): Define using libm_alias_ldouble.
27865 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27866 (floorl): Define using libm_alias_ldouble.
27867 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27868 (fmaxl): Define using libm_alias_ldouble.
27869 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27870 (fminl): Define using libm_alias_ldouble.
27871 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27872 (frexpl): Define using libm_alias_ldouble.
27873 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27874 (llrintl): Define using libm_alias_ldouble.
27875 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27876 (logbl): Define using libm_alias_ldouble.
27877 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27878 (lrintl): Define using libm_alias_ldouble.
27879 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27880 (nearbyintl): Define using libm_alias_ldouble.
27881 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27882 (nextafterl): Define using libm_alias_ldouble.
27883 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27884 (remquol): Define using libm_alias_ldouble.
27885 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27886 (rintl): Define using libm_alias_ldouble.
27887 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27888 (truncl): Define using libm_alias_ldouble.
27889 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27890 (fmaxl): Define using libm_alias_ldouble.
27891 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27892 (fminl): Define using libm_alias_ldouble.
27893
27894 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27895 to C syntax instead of availability and properties of types.
27896 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27897 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27898 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27899 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27900 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27901 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27902
27903 2017-11-17 Florian Weimer <fweimer@redhat.com>
27904
27905 support_become_root: Enable file creation in namespaces.
27906 * support/support_become_root.c (setup_mapping): New function.
27907 (support_become_root): Call it.
27908
27909 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27910
27911 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27912 macro.
27913
27914 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27915
27916 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27917 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27918
27919 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27920
27921 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27922
27923 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27924 version to 4.14.
27925
27926 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27927
27928 * INSTALL: Fix botched up regeneration.
27929
27930 * NEWS: Update sourceare link to https.
27931 * configure.ac: Likewise.
27932 * crypt/md5test-giant.c: Likewise.
27933 * dlfcn/bug-atexit1.c: Likewise.
27934 * dlfcn/bug-atexit2.c: Likewise.
27935 * localedata/README: Likewise.
27936 * malloc/tst-mallocfork.c: Likewise.
27937 * manual/install.texi: Likewise.
27938 * nptl/tst-pthread-getattr.c: Likewise.
27939 * stdio-common/tst-fgets.c: Likewise.
27940 * stdio-common/tst-fwrite.c: Likewise.
27941 * sunrpc/Makefile: Likewise.
27942 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27943 * wcsmbs/tst-mbrtowc2.c: Likewise.
27944 * configure: Regenerate.
27945 * INSTALL: Regenerate.
27946
27947 2017-11-15 Martin Sebor <msebor@redhat.com>
27948
27949 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27950 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27951 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27952
27953 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27954
27955 [BZ #22145]
27956 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27957 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27958
27959 [BZ #22145]
27960 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27961 Defer is_pty check until end of the function.
27962 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27963
27964 [BZ #22145]
27965 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27966 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27967 (ttyname): Likewise.
27968 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27969 (__ttyname_r): Likewise.
27970
27971 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27972 int to bool.
27973
27974 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27975
27976 * manual/terminal.texi (Is It a Terminal):
27977 Mention ENODEV for ttyname and ttyname_r.
27978
27979 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27980
27981 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27982 constant and macro.
27983
27984 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27985 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27986 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27987 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27988 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27989 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27990
27991 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27992
27993 * signal/sigrelse.c (sigrelse): Optimize implementation.
27994
27995 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27996 (__sigpause): Rely on __sigsuspend to implement single thread
27997 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27998
27999 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28000
28001 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28002 kernel version to 4.14.
28003
28004 2017-11-15 Steve Ellcey <sellcey@cavium.com>
28005
28006 [BZ #22442]
28007 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
28008 Check if ifname is too long.
28009
28010 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28011
28012 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
28013
28014 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28015
28016 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
28017 was accidentally lost.
28018
28019 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28020
28021 * localedata/locales/az_IR: Add standard copyright header.
28022
28023 2017-11-15 Florian Weimer <fweimer@redhat.com>
28024
28025 [BZ #22439]
28026 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
28027 not just the top one. Output a new "subheaps" statistic.
28028
28029 2017-11-15 Florian Weimer <fweimer@redhat.com>
28030
28031 [BZ #22408]
28032 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
28033 under the per-arena lock.
28034 * malloc/Makefile (tests): Add tst-malloc_info.
28035 (tst-malloc_info): Link with libpthread.
28036 * malloc/tst-malloc_info.c: New file.
28037
28038 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28039
28040 [BZ #21660]
28041 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
28042 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
28043 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
28044 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
28045 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28046 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28047 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28048 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28049 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28050 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28051 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28052 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28053 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28054 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28055 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28056 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28057 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28058 (__floating_type): Likewise.
28059 (__real_integer_type): Likewise.
28060 (__complex_integer_type): Likewise.
28061 (__expr_is_real): Likewise.
28062 (__tgmath_real_type_sub): Likewise.
28063 (__tgmath_real_type): Likewise.
28064 (__tgmath_complex_type_sub): Likewise.
28065 (__tgmath_complex_type): Likewise.
28066 (__TGMATH_F128): Likewise.
28067 (__TGMATH_CF128): Likewise.
28068 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28069 new macros.
28070 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28071 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28072 Likewise.
28073 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28074 Likewise.
28075 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28076 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28077 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28078 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28079 Likewise.
28080 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28081 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28082 Likewise.
28083 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28084 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28085 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28086 Likewise.
28087 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28088 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28089 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28090 (cimag): Likewise.
28091 (creal): Likewise.
28092
28093 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28094
28095 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28096 for stpncpy calls for GCC 8.
28097 (test_strncat): Disable -Wstringop-truncation warning for strncat
28098 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28099 strncat call for GCC 7.
28100 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28101 calls for GCC 8.
28102 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28103 trailing NUL.
28104
28105 * string/bug-strncat1.c: Include <libc-diag.h>.
28106 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28107
28108 2017-11-13 Claude Paroz <claude@2xlibre.net>
28109
28110 [BZ #22387]
28111 * localedata/locales/aa_DJ: Improved readibility by replacing
28112 <Uxxxx> sequences in the ASCII printable range by their ASCII
28113 character equivalents.
28114 * localedata/locales/aa_ER: Likewise.
28115 * localedata/locales/aa_ER@saaho: Likewise.
28116 * localedata/locales/aa_ET: Likewise.
28117 * localedata/locales/af_ZA: Likewise.
28118 * localedata/locales/agr_PE: Likewise.
28119 * localedata/locales/ak_GH: Likewise.
28120 * localedata/locales/am_ET: Likewise.
28121 * localedata/locales/anp_IN: Likewise.
28122 * localedata/locales/ar_AE: Likewise.
28123 * localedata/locales/ar_BH: Likewise.
28124 * localedata/locales/ar_DZ: Likewise.
28125 * localedata/locales/ar_EG: Likewise.
28126 * localedata/locales/ar_IN: Likewise.
28127 * localedata/locales/ar_IQ: Likewise.
28128 * localedata/locales/ar_JO: Likewise.
28129 * localedata/locales/ar_KW: Likewise.
28130 * localedata/locales/ar_LB: Likewise.
28131 * localedata/locales/ar_LY: Likewise.
28132 * localedata/locales/ar_MA: Likewise.
28133 * localedata/locales/ar_OM: Likewise.
28134 * localedata/locales/ar_QA: Likewise.
28135 * localedata/locales/ar_SA: Likewise.
28136 * localedata/locales/ar_SD: Likewise.
28137 * localedata/locales/ar_SS: Likewise.
28138 * localedata/locales/ar_SY: Likewise.
28139 * localedata/locales/ar_TN: Likewise.
28140 * localedata/locales/ar_YE: Likewise.
28141 * localedata/locales/as_IN: Likewise.
28142 * localedata/locales/ast_ES: Likewise.
28143 * localedata/locales/ayc_PE: Likewise.
28144 * localedata/locales/az_AZ: Likewise.
28145 * localedata/locales/az_IR: Likewise.
28146 * localedata/locales/be_BY: Likewise.
28147 * localedata/locales/be_BY@latin: Likewise.
28148 * localedata/locales/bem_ZM: Likewise.
28149 * localedata/locales/ber_DZ: Likewise.
28150 * localedata/locales/ber_MA: Likewise.
28151 * localedata/locales/bg_BG: Likewise.
28152 * localedata/locales/bhb_IN: Likewise.
28153 * localedata/locales/bho_IN: Likewise.
28154 * localedata/locales/bi_VU: Likewise.
28155 * localedata/locales/bn_BD: Likewise.
28156 * localedata/locales/bn_IN: Likewise.
28157 * localedata/locales/bo_CN: Likewise.
28158 * localedata/locales/bo_IN: Likewise.
28159 * localedata/locales/br_FR: Likewise.
28160 * localedata/locales/brx_IN: Likewise.
28161 * localedata/locales/bs_BA: Likewise.
28162 * localedata/locales/byn_ER: Likewise.
28163 * localedata/locales/ca_AD: Likewise.
28164 * localedata/locales/ca_ES: Likewise.
28165 * localedata/locales/ca_FR: Likewise.
28166 * localedata/locales/ca_IT: Likewise.
28167 * localedata/locales/ce_RU: Likewise.
28168 * localedata/locales/chr_US: Likewise.
28169 * localedata/locales/cmn_TW: Likewise.
28170 * localedata/locales/crh_UA: Likewise.
28171 * localedata/locales/cs_CZ: Likewise.
28172 * localedata/locales/csb_PL: Likewise.
28173 * localedata/locales/cv_RU: Likewise.
28174 * localedata/locales/cy_GB: Likewise.
28175 * localedata/locales/da_DK: Likewise.
28176 * localedata/locales/de_AT: Likewise.
28177 * localedata/locales/de_BE: Likewise.
28178 * localedata/locales/de_CH: Likewise.
28179 * localedata/locales/de_DE: Likewise.
28180 * localedata/locales/de_IT: Likewise.
28181 * localedata/locales/de_LI: Likewise.
28182 * localedata/locales/de_LU: Likewise.
28183 * localedata/locales/doi_IN: Likewise.
28184 * localedata/locales/dv_MV: Likewise.
28185 * localedata/locales/dz_BT: Likewise.
28186 * localedata/locales/el_CY: Likewise.
28187 * localedata/locales/el_GR: Likewise.
28188 * localedata/locales/en_AG: Likewise.
28189 * localedata/locales/en_AU: Likewise.
28190 * localedata/locales/en_BW: Likewise.
28191 * localedata/locales/en_CA: Likewise.
28192 * localedata/locales/en_DK: Likewise.
28193 * localedata/locales/en_GB: Likewise.
28194 * localedata/locales/en_HK: Likewise.
28195 * localedata/locales/en_IE: Likewise.
28196 * localedata/locales/en_IL: Likewise.
28197 * localedata/locales/en_IN: Likewise.
28198 * localedata/locales/en_NG: Likewise.
28199 * localedata/locales/en_NZ: Likewise.
28200 * localedata/locales/en_PH: Likewise.
28201 * localedata/locales/en_SG: Likewise.
28202 * localedata/locales/en_US: Likewise.
28203 * localedata/locales/en_ZA: Likewise.
28204 * localedata/locales/en_ZM: Likewise.
28205 * localedata/locales/en_ZW: Likewise.
28206 * localedata/locales/eo: Likewise.
28207 * localedata/locales/es_AR: Likewise.
28208 * localedata/locales/es_BO: Likewise.
28209 * localedata/locales/es_CL: Likewise.
28210 * localedata/locales/es_CO: Likewise.
28211 * localedata/locales/es_CR: Likewise.
28212 * localedata/locales/es_CU: Likewise.
28213 * localedata/locales/es_DO: Likewise.
28214 * localedata/locales/es_EC: Likewise.
28215 * localedata/locales/es_ES: Likewise.
28216 * localedata/locales/es_GT: Likewise.
28217 * localedata/locales/es_HN: Likewise.
28218 * localedata/locales/es_MX: Likewise.
28219 * localedata/locales/es_NI: Likewise.
28220 * localedata/locales/es_PA: Likewise.
28221 * localedata/locales/es_PE: Likewise.
28222 * localedata/locales/es_PR: Likewise.
28223 * localedata/locales/es_PY: Likewise.
28224 * localedata/locales/es_SV: Likewise.
28225 * localedata/locales/es_US: Likewise.
28226 * localedata/locales/es_UY: Likewise.
28227 * localedata/locales/es_VE: Likewise.
28228 * localedata/locales/et_EE: Likewise.
28229 * localedata/locales/eu_ES: Likewise.
28230 * localedata/locales/eu_ES@euro: Likewise.
28231 * localedata/locales/fa_IR: Likewise.
28232 * localedata/locales/ff_SN: Likewise.
28233 * localedata/locales/fi_FI: Likewise.
28234 * localedata/locales/fil_PH: Likewise.
28235 * localedata/locales/fo_FO: Likewise.
28236 * localedata/locales/fr_BE: Likewise.
28237 * localedata/locales/fr_CA: Likewise.
28238 * localedata/locales/fr_CH: Likewise.
28239 * localedata/locales/fr_FR: Likewise.
28240 * localedata/locales/fr_LU: Likewise.
28241 * localedata/locales/fur_IT: Likewise.
28242 * localedata/locales/fy_DE: Likewise.
28243 * localedata/locales/fy_NL: Likewise.
28244 * localedata/locales/ga_IE: Likewise.
28245 * localedata/locales/gd_GB: Likewise.
28246 * localedata/locales/gez_ER: Likewise.
28247 * localedata/locales/gez_ET: Likewise.
28248 * localedata/locales/gl_ES: Likewise.
28249 * localedata/locales/gu_IN: Likewise.
28250 * localedata/locales/gv_GB: Likewise.
28251 * localedata/locales/ha_NG: Likewise.
28252 * localedata/locales/hak_TW: Likewise.
28253 * localedata/locales/he_IL: Likewise.
28254 * localedata/locales/hi_IN: Likewise.
28255 * localedata/locales/hif_FJ: Likewise.
28256 * localedata/locales/hne_IN: Likewise.
28257 * localedata/locales/hr_HR: Likewise.
28258 * localedata/locales/hsb_DE: Likewise.
28259 * localedata/locales/ht_HT: Likewise.
28260 * localedata/locales/hu_HU: Likewise.
28261 * localedata/locales/hy_AM: Likewise.
28262 * localedata/locales/i18n: Likewise.
28263 * localedata/locales/ia_FR: Likewise.
28264 * localedata/locales/id_ID: Likewise.
28265 * localedata/locales/ig_NG: Likewise.
28266 * localedata/locales/ik_CA: Likewise.
28267 * localedata/locales/is_IS: Likewise.
28268 * localedata/locales/it_CH: Likewise.
28269 * localedata/locales/it_IT: Likewise.
28270 * localedata/locales/iu_CA: Likewise.
28271 * localedata/locales/ja_JP: Likewise.
28272 * localedata/locales/ka_GE: Likewise.
28273 * localedata/locales/kk_KZ: Likewise.
28274 * localedata/locales/kl_GL: Likewise.
28275 * localedata/locales/kn_IN: Likewise.
28276 * localedata/locales/ko_KR: Likewise.
28277 * localedata/locales/kok_IN: Likewise.
28278 * localedata/locales/ks_IN: Likewise.
28279 * localedata/locales/ks_IN@devanagari: Likewise.
28280 * localedata/locales/ku_TR: Likewise.
28281 * localedata/locales/kw_GB: Likewise.
28282 * localedata/locales/ky_KG: Likewise.
28283 * localedata/locales/lb_LU: Likewise.
28284 * localedata/locales/lg_UG: Likewise.
28285 * localedata/locales/li_BE: Likewise.
28286 * localedata/locales/li_NL: Likewise.
28287 * localedata/locales/lij_IT: Likewise.
28288 * localedata/locales/ln_CD: Likewise.
28289 * localedata/locales/lo_LA: Likewise.
28290 * localedata/locales/lt_LT: Likewise.
28291 * localedata/locales/lv_LV: Likewise.
28292 * localedata/locales/lzh_TW: Likewise.
28293 * localedata/locales/mag_IN: Likewise.
28294 * localedata/locales/mai_IN: Likewise.
28295 * localedata/locales/mg_MG: Likewise.
28296 * localedata/locales/mhr_RU: Likewise.
28297 * localedata/locales/mi_NZ: Likewise.
28298 * localedata/locales/mk_MK: Likewise.
28299 * localedata/locales/ml_IN: Likewise.
28300 * localedata/locales/mn_MN: Likewise.
28301 * localedata/locales/mni_IN: Likewise.
28302 * localedata/locales/mr_IN: Likewise.
28303 * localedata/locales/ms_MY: Likewise.
28304 * localedata/locales/mt_MT: Likewise.
28305 * localedata/locales/my_MM: Likewise.
28306 * localedata/locales/nan_TW: Likewise.
28307 * localedata/locales/nan_TW@latin: Likewise.
28308 * localedata/locales/nb_NO: Likewise.
28309 * localedata/locales/nds_DE: Likewise.
28310 * localedata/locales/nds_NL: Likewise.
28311 * localedata/locales/ne_NP: Likewise.
28312 * localedata/locales/nhn_MX: Likewise.
28313 * localedata/locales/niu_NU: Likewise.
28314 * localedata/locales/niu_NZ: Likewise.
28315 * localedata/locales/nl_AW: Likewise.
28316 * localedata/locales/nl_BE: Likewise.
28317 * localedata/locales/nl_NL: Likewise.
28318 * localedata/locales/nn_NO: Likewise.
28319 * localedata/locales/nr_ZA: Likewise.
28320 * localedata/locales/nso_ZA: Likewise.
28321 * localedata/locales/oc_FR: Likewise.
28322 * localedata/locales/om_ET: Likewise.
28323 * localedata/locales/om_KE: Likewise.
28324 * localedata/locales/or_IN: Likewise.
28325 * localedata/locales/os_RU: Likewise.
28326 * localedata/locales/pa_IN: Likewise.
28327 * localedata/locales/pa_PK: Likewise.
28328 * localedata/locales/pap_AW: Likewise.
28329 * localedata/locales/pap_CW: Likewise.
28330 * localedata/locales/pl_PL: Likewise.
28331 * localedata/locales/ps_AF: Likewise.
28332 * localedata/locales/pt_BR: Likewise.
28333 * localedata/locales/pt_PT: Likewise.
28334 * localedata/locales/quz_PE: Likewise.
28335 * localedata/locales/raj_IN: Likewise.
28336 * localedata/locales/ro_RO: Likewise.
28337 * localedata/locales/ru_RU: Likewise.
28338 * localedata/locales/ru_UA: Likewise.
28339 * localedata/locales/rw_RW: Likewise.
28340 * localedata/locales/sa_IN: Likewise.
28341 * localedata/locales/sat_IN: Likewise.
28342 * localedata/locales/sc_IT: Likewise.
28343 * localedata/locales/sd_IN: Likewise.
28344 * localedata/locales/sd_IN@devanagari: Likewise.
28345 * localedata/locales/se_NO: Likewise.
28346 * localedata/locales/sgs_LT: Likewise.
28347 * localedata/locales/shs_CA: Likewise.
28348 * localedata/locales/si_LK: Likewise.
28349 * localedata/locales/sid_ET: Likewise.
28350 * localedata/locales/sk_SK: Likewise.
28351 * localedata/locales/sl_SI: Likewise.
28352 * localedata/locales/sm_WS: Likewise.
28353 * localedata/locales/so_DJ: Likewise.
28354 * localedata/locales/so_ET: Likewise.
28355 * localedata/locales/so_KE: Likewise.
28356 * localedata/locales/so_SO: Likewise.
28357 * localedata/locales/sq_AL: Likewise.
28358 * localedata/locales/sq_MK: Likewise.
28359 * localedata/locales/sr_ME: Likewise.
28360 * localedata/locales/sr_RS: Likewise.
28361 * localedata/locales/sr_RS@latin: Likewise.
28362 * localedata/locales/ss_ZA: Likewise.
28363 * localedata/locales/st_ZA: Likewise.
28364 * localedata/locales/sv_FI: Likewise.
28365 * localedata/locales/sv_SE: Likewise.
28366 * localedata/locales/sw_KE: Likewise.
28367 * localedata/locales/sw_TZ: Likewise.
28368 * localedata/locales/szl_PL: Likewise.
28369 * localedata/locales/ta_IN: Likewise.
28370 * localedata/locales/ta_LK: Likewise.
28371 * localedata/locales/tcy_IN: Likewise.
28372 * localedata/locales/te_IN: Likewise.
28373 * localedata/locales/tg_TJ: Likewise.
28374 * localedata/locales/th_TH: Likewise.
28375 * localedata/locales/the_NP: Likewise.
28376 * localedata/locales/ti_ER: Likewise.
28377 * localedata/locales/ti_ET: Likewise.
28378 * localedata/locales/tig_ER: Likewise.
28379 * localedata/locales/tk_TM: Likewise.
28380 * localedata/locales/tl_PH: Likewise.
28381 * localedata/locales/tn_ZA: Likewise.
28382 * localedata/locales/to_TO: Likewise.
28383 * localedata/locales/tpi_PG: Likewise.
28384 * localedata/locales/tr_CY: Likewise.
28385 * localedata/locales/tr_TR: Likewise.
28386 * localedata/locales/ts_ZA: Likewise.
28387 * localedata/locales/tt_RU: Likewise.
28388 * localedata/locales/tt_RU@iqtelif: Likewise.
28389 * localedata/locales/ug_CN: Likewise.
28390 * localedata/locales/uk_UA: Likewise.
28391 * localedata/locales/unm_US: Likewise.
28392 * localedata/locales/ur_IN: Likewise.
28393 * localedata/locales/ur_PK: Likewise.
28394 * localedata/locales/uz_UZ: Likewise.
28395 * localedata/locales/uz_UZ@cyrillic: Likewise.
28396 * localedata/locales/ve_ZA: Likewise.
28397 * localedata/locales/vi_VN: Likewise.
28398 * localedata/locales/wa_BE: Likewise.
28399 * localedata/locales/wae_CH: Likewise.
28400 * localedata/locales/wal_ET: Likewise.
28401 * localedata/locales/wo_SN: Likewise.
28402 * localedata/locales/xh_ZA: Likewise.
28403 * localedata/locales/yi_US: Likewise.
28404 * localedata/locales/yo_NG: Likewise.
28405 * localedata/locales/yue_HK: Likewise.
28406 * localedata/locales/yuw_PG: Likewise.
28407 * localedata/locales/zh_CN: Likewise.
28408 * localedata/locales/zh_HK: Likewise.
28409 * localedata/locales/zh_SG: Likewise.
28410 * localedata/locales/zh_TW: Likewise.
28411 * localedata/locales/zu_ZA: Likewise.
28412
28413 2017-11-13 Florian Weimer <fweimer@redhat.com>
28414
28415 * support/next_to_fault.h, support/next_to_fault.c: New files.
28416 * support/Makefile (libsupport-routines): Add next_to_fault.
28417 * resolv/tst-inet_pton.c (struct next_to_fault)
28418 (next_to_fault_allocate, next_to_fault_free): Remove.
28419 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28420
28421 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28422
28423 * elf/dl-support.c: Include <dl-procruntime.c>.
28424 * include/link.h: Include <link_map.h>.
28425 * sysdeps/generic/dl-procruntime.c: New file.
28426 * sysdeps/generic/link_map.h: Likewise.
28427 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28428 the writable ld.so namespace.
28429
28430 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28431
28432 timezone: pacify GCC -Wstringop-truncation
28433 Problem reported by Martin Sebor in:
28434 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28435 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28436
28437 2017-11-12 Florian Weimer <fweimer@redhat.com>
28438
28439 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28440 tst-xreadlink.
28441 (tests): Add tst-xreadlink.
28442 * support/support.h (xstrndup): Declare.
28443 * support/xunistd.h (xunlink, xreadlink): Declare.
28444 * support/temp_file.h (support_create_temp_directory): Declare.
28445 * support/temp_file.c (support_create_temp_directory): New function.
28446 * support/support_chroot.c (support_chroot_create): Use it.
28447 * support/xreadlink.c: New file.
28448 * support/xstrndup.c: Likewise.
28449 * support/xunlink.c: Likewise.
28450 * support/tst-xreadlink.c: Likewise.
28451
28452 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28453
28454 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28455
28456 2017-11-11 Florian Weimer <fweimer@redhat.com>
28457
28458 [BZ #22409]
28459 [BZ #22412]
28460 * resolv/res_comp.c (printable_string, binary_hnok)
28461 (binary_leading_dash): New functions.
28462 (res_hnok): Reimplement using these functions and ns_name_pton.
28463 (res_ownok): Likewise.
28464 (res_mailok): Reimplement using printable_string, ns_name_pton and
28465 binary_hnok.
28466 (res_dnok): Reimplement using printable_string and ns_name_pton.
28467 * resolv/tst-res_hnok.c (tests): Add additional tests.
28468 (LETTERDIGITS, PRINTABLE): Define.
28469 (do_test): Adjust one_char results.
28470
28471 2017-11-11 Florian Weimer <fweimer@redhat.com>
28472
28473 [BZ #22413]
28474 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28475 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28476
28477 2017-11-11 Florian Weimer <fweimer@redhat.com>
28478
28479 * resolv/tst-ns_name_pton.c: New file.
28480 * resolv/Makefile (tests): Add tst-ns_name_pton.
28481 (tst-ns_name_pton): Link against libresolv.
28482
28483 2017-11-11 Florian Weimer <fweimer@redhat.com>
28484
28485 * resolv/tst-res_hnok.c: New file.
28486 * resolv/Makefile (tests): Add tst-res_hnok.
28487 (tst-res_hnok): Link against libresolv.
28488
28489 2017-11-11 Florian Weimer <fweimer@redhat.com>
28490
28491 * resolv/tst-resolv-network.c: Use test framework instead explicit
28492 main function.
28493
28494 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28495
28496 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28497 <jmp_buf-macros.h>.
28498 [!_ISOMAC] (STR_HELPER): New.
28499 [!_ISOMAC] (STR): Likewise.
28500 [!_ISOMAC] (TEST_SIZE): Likewise.
28501 [!_ISOMAC] (TEST_ALIGN): Likewise.
28502 [!_ISOMAC] (TEST_OFFSET): Likewise.
28503 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28504 field offsets of jmp_buf as well as sigjmp_buf.
28505 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28506 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28507 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28508 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28509 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28510 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28511 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28512 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28513 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28514 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28515 Likewise.
28516 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28517 Likewise.
28518 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28519 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28520 Likewise.
28521 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28522 Likewise.
28523 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28524 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28525 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28526 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28527 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28528 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28529 Likewise.
28530 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28531 Likewise.
28532 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28533 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28534 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28535
28536 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28537
28538 * include/float.h
28539 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28540 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28541 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28542 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28543 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28544 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28545 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28546 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28547 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28548 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28549 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28550 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28551 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28552 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28553 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28554 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28555 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28556 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28557 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28558 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28559 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28560 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28561 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28562 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28563 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28564 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28565 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28566 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28567 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28568 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28569 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28570 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28571 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28572 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28573 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28574 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28575 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28576 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28577 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28578 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28579 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28580 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28581 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28582 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28583 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28584 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28585 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28586 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28587 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28588 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28589 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28590 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28591 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28592 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28593 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28594 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28595 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28596 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28597 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28598 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28599 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28600 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28601 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28602 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28603 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28604 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28605 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28606 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28607 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28608 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28609 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28610 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28611 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28612 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28613 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28614 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28615 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28616 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28617 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28618 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28619 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28620 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28621 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28622 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28623 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28624 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28625 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28626 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28627
28628 * stdlib/tst-strtod.h (F16): New macro.
28629 (F32): Likewise.
28630 (F64): Likewise.
28631 (F32X): Likewise.
28632 (F64X): Likewise.
28633 (F128X): Likewise.
28634 (IF_FLOAT16): Likewise.
28635 (IF_FLOAT32): Likewise.
28636 (IF_FLOAT64): Likewise.
28637 (IF_FLOAT32X): Likewise.
28638 (IF_FLOAT64X): Likewise.
28639 (IF_FLOAT128X): Likewise.
28640 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28641 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28642 (STRTOD_TEST_FOREACH): Likewise.
28643 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28644 (CHOOSE_f64): Likewise.
28645 (CHOOSE_f32x): Likewise.
28646 (CHOOSE_f64x): Likewise.
28647
28648 2017-11-07 Andreas Schwab <schwab@suse.de>
28649
28650 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28651
28652 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28653
28654 [BZ #22403]
28655 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28656 to be escaped.
28657 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28658 to be escaped.
28659
28660 2017-11-07 Claude Paroz <claude@2xlibre.net>
28661
28662 [BZ #22403]
28663 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28664 to be escaped.
28665 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28666 to be escaped.
28667 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28668 to be escaped.
28669
28670 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28671
28672 [BZ #22298]
28673 * nptl/allocatestack.c (allocate_stack): Check if
28674 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28675 __PTHREAD_MUTEX_HAVE_PREV is defined.
28676 * nptl/descr.h (pthread): Likewise.
28677 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28678 Likewise.
28679 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28680 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28681 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28682 * sysdeps/nptl/bits/thread-shared-types.h
28683 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28684 defines.
28685 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28686 of __WORDSIZE for internal layout.
28687 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28688 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28689 instead of __WORDSIZE whether to use an union for __spins and __list
28690 fields.
28691 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28692 case.
28693 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28694 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28695 defines.
28696 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28697 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28698 Likewise.
28699 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28700 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28701 Likewise.
28702 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28703 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28704 Likewise.
28705 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28706 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28707 Likewise.
28708 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28709 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28710 Likewise.
28711 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28712 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28713 Likewise.
28714 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28715 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28716 Likewise.
28717 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28718 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28719 Likewise.
28720 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28721 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28722 Likewise.
28723 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28724 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28725 Likewise.
28726 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28727 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28728 Likewise.
28729 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28730 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28731 Likewise.
28732 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28733 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28734 Likewise.
28735 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28736 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28737 Likewise.
28738
28739 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28740 New macros.
28741 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28742 checks for expected input type size.
28743 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28744 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28745 Likewise.
28746 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28747 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28748 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28749 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28750 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28751 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28752 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28753 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28754 superflous runtime assert check.
28755 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28756 Likewise.
28757 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28758 Likewise.
28759 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28760 Likewise.
28761 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28762 Likewise.
28763 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28764 Likewise.
28765 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28766 Likewise.
28767 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28768 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28769 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28770 Likewise.
28771 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28772 Likewise.
28773 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28774 Likewise.
28775 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28776 Likewise.
28777 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28778 Likewise.
28779 * nptl/pthread_attr_setinheritsched.c
28780 (__pthread_attr_setinheritsched): Likewise.
28781 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28782 Likewise.
28783 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28784 Likewise.
28785 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28786 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28787 __old_pthread_attr_setstack): Likewise.
28788 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28789 Likewise.
28790 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28791 Likewise.
28792 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28793 Likewise.
28794 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28795 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28796 Likewise.
28797 * nptl/tst-typesizes.c: Remove file.
28798
28799 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28800 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28801 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28802 checks for internal pthread_mutex_t offsets.
28803 * sysdeps/aarch64/nptl/pthread-offsets.h
28804 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28805 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28806 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28807 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28808 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28809 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28810 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28811 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28812 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28813 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28814 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28815 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28816 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28817 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28818 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28819 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28820 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28821 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28822
28823 2017-11-07 Florian Weimer <fweimer@redhat.com>
28824
28825 * bits/mman-linux.h: Move ...
28826 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28827 comment.
28828 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28829 outdated comment.
28830
28831 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28832
28833 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28834 Redefine STRNLEN as __strnlen_power8.
28835
28836 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28837
28838 * signal/sighold.c (sighold): Optimize implementation.
28839
28840 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28841 __NR_rt_sigqueueinfo.
28842
28843 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28844 __sigtimedwait.
28845 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28846 assume __NR_rt_sigtimedwait.
28847 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28848 and add LIBC_CANCEL_HANDLED for cancellation marking.
28849 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28850
28851 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28852 (sysdeps_routines): Add memchr_noneon.
28853 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28854 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28855 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28856 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28857 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28858 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28859 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28860
28861 * sysdeps/arm/arm-ifunc.h: New file.
28862 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28863 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28864 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28865 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28866 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28867 (__memcpy_neon): Avoid create hidden alias.
28868 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28869 (__memcpy_vfp): Likewise.
28870 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28871 (sysdep_routines): Add memcpy_arm.
28872 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28873
28874 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28875
28876 [BZ #22362]
28877 * Makerules (make-link-multidir): New.
28878 * config.make.in (multidir): New.
28879 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28880 * configure: Regenerated.
28881 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28882 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28883 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28884 New target.
28885
28886 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28887
28888 [BZ #22402]
28889 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28890 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28891
28892 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28893
28894 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28895 to be escaped.
28896
28897 2017-11-04 Florian Weimer <fweimer@redhat.com>
28898
28899 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28900
28901 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28902
28903 * math/math.h [__HAVE_DISTINCT_FLOAT16
28904 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28905 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28906 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28907 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28908 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28909 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28910 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28911 (__MATH_TG_F32): New macro.
28912 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28913 (__MATH_TG_F64X): Likewise.
28914 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28915 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28916
28917 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28918
28919 * po/de.po: Update translations.
28920 * po/ru.po: Likewise.
28921
28922 2017-11-03 Florian Weimer <fweimer@redhat.com>
28923
28924 * manual/filesys.texi (Hard Links): Document linkat.
28925
28926 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28927
28928 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28929 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28930 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28931 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28932 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28933 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28934 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28935 the same as _Float128.
28936 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28937 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28938 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28939
28940 * stdlib/stdlib.h
28941 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28942 Declare.
28943 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28944 Likewise.
28945 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28946 Likewise.
28947 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28948 (strtof32x): Likewise.
28949 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28950 (strtof64x): Likewise.
28951 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28952 (strtof128x): Likewise.
28953 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28954 (strfromf16): Likewise.
28955 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28956 (strfromf32): Likewise.
28957 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28958 (strfromf64): Likewise.
28959 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28960 (strfromf32x): Likewise.
28961 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28962 (strfromf64x): Likewise.
28963 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28964 (strfromf128x): Likewise.
28965 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28966 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28967 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28968 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28969 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28970 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28971
28972 2017-11-03 Richard Henderson <rth@twiddle.net>
28973
28974 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28975
28976 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28977
28978 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28979
28980 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28981
28982 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28983 DT_TLSDESC_GOT initialization.
28984 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28985 (_dl_tlsdesc_resolve_hold): Likewise.
28986 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28987 (_dl_tlsdesc_resolve_hold): Likewise.
28988 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28989 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28990
28991 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28992
28993 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28994
28995 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28996
28997 [BZ #18572]
28998 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28999 non-lazily for R_ARM_TLS_DESC.
29000
29001 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29002
29003 [BZ #17078]
29004 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
29005 R_ARM_TLS_DESC case.
29006 (elf_machine_lazy_rel): Remove the prelink check.
29007
29008 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29009
29010 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
29011 DT_TLSDESC_GOT initialization.
29012 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
29013 (_dl_tlsdesc_resolve_rela): Likewise.
29014 (_dl_tlsdesc_resolve_hold): Likewise.
29015 (_dl_tlsdesc_undefweak): Remove ldar.
29016 (_dl_tlsdesc_dynamic): Likewise.
29017 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
29018 (_dl_tlsdesc_resolve_rela): Likewise.
29019 (_dl_tlsdesc_resolve_hold): Likewise.
29020 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
29021 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29022 (_dl_tlsdesc_resolve_rela): Likewise.
29023 (_dl_tlsdesc_resolve_hold): Likewise.
29024
29025 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29026
29027 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
29028 binding and initialization non-lazily for R_AARCH64_TLSDESC.
29029
29030 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29031
29032 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
29033 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29034
29035 2017-11-02 Joseph Myers <joseph@codesourcery.com>
29036
29037 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
29038 Declare.
29039 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
29040 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
29041 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
29042 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
29043 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
29044 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
29045 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29046 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29047 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29048 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29049 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29050
29051 2017-11-02 Mike FABIAN <mfabian@redhat.com>
29052
29053 [BZ #22382]
29054 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29055 * localedata/locales/tpi_PG: Add standard header.
29056
29057 2017-11-02 Florian Weimer <fweimer@redhat.com>
29058
29059 test-errno-linux: quotactl can fail with EPERM in containers.
29060 * sysdeps/unix/sysv/linux/test-errno-linux.c
29061 (LIST, LIST_FORWARD): New macros.
29062 (check_error_in_list): New function.
29063 (test_wrp_rv): Accept list of permitted error codes.
29064 (test_wrp_rv2): Remove.
29065 (test_wrp): Call test_wrp_rv with list of error codes.
29066 (test_wrp2): Accept list of error codes.
29067 (do_test): Adjust. Allow EPERM for quotactl.
29068
29069 2017-11-02 Florian Weimer <fweimer@redhat.com>
29070
29071 * stdio-common/bug16.c (do_test): Use array_length.
29072 * stdio-common/errlist.c (_sys_nerr): Likewise.
29073 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29074 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29075 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29076 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29077 (do_test): Use array_length.
29078 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29079 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29080 * stdio-common/tst-printf-round.c (do_test): Likewise.
29081 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29082 (CHECK): Use array_length.
29083 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29084 * stdio-common/tstscanf.c (main): Likewise.
29085 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29086
29087 2017-11-02 Florian Weimer <fweimer@redhat.com>
29088
29089 Add array_length and array_end macros.
29090 * include/array_length.h: New file.
29091
29092 2017-11-02 Florian Weimer <fweimer@redhat.com>
29093
29094 [BZ #22332]
29095 * posix/tst-glob-tilde.c (do_noescape): New variable.
29096 (one_test): Process it.
29097 (do_test): Set do_noescape. Add unescaping test case.
29098
29099 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29100
29101 * math/complex.h
29102 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29103 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29104 with appropriate macros defined and undefined.
29105 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29106 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29107 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29108 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29109 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29110 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29111 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29112 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29113 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29114 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29115
29116 * math/complex.h
29117 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29118 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29119 that for long double. Do not condition define and undefine of
29120 _Mdouble_complex_ on [__CFLOAT128].
29121
29122 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29123
29124 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29125 of <sysdeps/generic/sysdep.h>.
29126 (ALIGNARG): Removed.
29127 (ASM_SIZE_DIRECTIVE): Likewise.
29128 (ENTRY): Likewise.
29129 (END): Likewise.
29130 (ENTRY_CHK): Likewise.
29131 (END_CHK): Likewise.
29132 (syscall_error): Likewise.
29133 (mcount): Likewise.
29134 (PSEUDO_END): Likewise.
29135 (L): Likewise.
29136 (atom_text_section): Likewise.
29137 * sysdeps/x86/sysdep.h: New file.
29138 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29139 of <sysdeps/generic/sysdep.h>.
29140 (ALIGNARG): Removed.
29141 (ASM_SIZE_DIRECTIVE): Likewise.
29142 (ENTRY): Likewise.
29143 (END): Likewise.
29144 (ENTRY_CHK): Likewise.
29145 (END_CHK): Likewise.
29146 (syscall_error): Likewise.
29147 (mcount): Likewise.
29148 (PSEUDO_END): Likewise.
29149 (L): Likewise.
29150 (atom_text_section): Likewise.
29151
29152 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
29153
29154 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29155 category of LC_CTYPE set to "i18n:2012".
29156 * localedata/locales/i18n_ctype: Regenerate.
29157
29158 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29159
29160 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29161 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29162 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29163 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29164
29165 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29166 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29167 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29168 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29169
29170 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29171
29172 * math/complex.h
29173 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29174 New macro.
29175 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29176 Likewise.
29177 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29178 Likewise.
29179 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29180 (CMPLXF32X): Likewise.
29181 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29182 (CMPLXF64X): Likewise.
29183 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29184 (CMPLXF128X): Likewise.
29185
29186 * math/math.h
29187 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29188 (__MATH_EVAL_FMT2): Define to add 0.0f.
29189
29190 2017-10-31 Alan Modra <amodra@gmail.com>
29191
29192 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29193 include sysdep.h.
29194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29200 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29208 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29209 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29210 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29211 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29212 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29213 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29214 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29215 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29216 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29217 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29218 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29219 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29220 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29221 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29222 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29223 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29224 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29225 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29226 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29227 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29228 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29229 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29230 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29231 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29232 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29233 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29234 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29235 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29236 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29237 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29238 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29239 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29240 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29241 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29242 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29243 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29244 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29245 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29246 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29247 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29248 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29249 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29250 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29251 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29252 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29253 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29254 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29255 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29256 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29257 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29258 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29259 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29260 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29261 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29262 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29263
29264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29265 include sysdep.h and math_ldbl_opt.h.
29266
29267 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29268 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29271 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29272 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29273 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29276 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29277 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29278 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29285 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29293
29294 2017-10-31 Alan Modra <amodra@gmail.com>
29295
29296 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29297 string/strncase_l.c, not string/strncase.c.
29298 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29299 (libc_hidden_def): Redefine.
29300
29301 2017-10-31 Alan Modra <amodra@gmail.com>
29302
29303 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29304 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29305 (__strcasecmp): Don't define.
29306
29307 2017-10-31 Alan Modra <amodra@gmail.com>
29308
29309 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29310 IS_IN (libc).
29311 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29312 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29313 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29314
29315 2017-10-31 Alan Modra <amodra@gmail.com>
29316
29317 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29318 USE_AS_STPNCPY.
29319
29320 2017-10-31 Alan Modra <amodra@gmail.com>
29321
29322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29323 Redefine only when SHARED.
29324
29325 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29326
29327 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29328 Include <bits/math-finite.h> with appropriate macros defined and
29329 undefined.
29330 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29331 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29332 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29333 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29334 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29335
29336 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29337 [!_Mlong_double_] (_Mlong_double_): Likewise.
29338 [!_Mfloat16_] (_Mfloat16_): Likewise.
29339 [!_Mfloat32_] (_Mfloat32_): Likewise.
29340 [!_Mfloat64_] (_Mfloat64_): Likewise.
29341 [!_Mfloat128_] (_Mfloat128_): Likewise.
29342 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29343 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29344 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29345 (_Mdouble_): Define without indirection through those macros.
29346 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29347 [!_Mfloat128_] (_Mfloat128_): Likewise.
29348 [_Mlong_double_] (_Mlong_double_): Likewise.
29349 (_Mdouble_): Define without indirection through those macros.
29350 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29351 not add -D_Mlong_double_=double.
29352 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29353 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29354
29355 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29356
29357 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29358
29359 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29360
29361 * sysdeps/x86/libc-start.c: Reformat.
29362
29363 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29364
29365 [BZ #22353]
29366 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29367 (1): Renamed to ...
29368 (L(Src0)): This.
29369 (L(Src1)): New.
29370 (L(Src2)): Likewise.
29371 (L(1)): Renamed to ...
29372 (L(Src3)): This.
29373
29374 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29375
29376 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29377 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29378 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29379 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29380 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29381 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29382 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29383 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29384 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29385 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29386 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29387 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29388 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29389 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29390 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29391 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29392 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29393 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29394 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29395 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29396 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29397 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29398 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29399 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29400 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29401 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29402 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29403 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29404 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29405 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29406 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29407 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29408 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29409 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29410 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29411 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29412 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29413 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29414 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29415 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29416 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29417 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29418 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29419 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29420 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29421 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29422 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29423 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29424 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29425 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29426 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29427 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29428 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29429 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29430 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29431 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29432 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29433 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29434 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29435 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29436 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29437 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29438 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29439 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29440 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29441 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29442
29443 2017-10-30 Florian Weimer <fweimer@redhat.com>
29444
29445 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29446 always defined.
29447 * io/tst-mkdirat.c (do_test): Likewise.
29448 * io/tst-mkfifoat.c (do_test): Likewise.
29449 * io/tst-mknodat.c (do_test): Likewise.
29450 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29451 * locale/programs/locale.c (select_dirs): Likewise.
29452 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29453 * posix/bug-glob2.c (my_readdir): Likewise.
29454 * posix/tst-dir.c (main): Likewise.
29455 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29456 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29457
29458 2017-10-30 Florian Weimer <fweimer@redhat.com>
29459
29460 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29461 just __USE_GNU.
29462
29463 2017-10-30 Florian Weimer <fweimer@redhat.com>
29464
29465 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29466 Convert to support/test-driver.c.
29467 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29468 New macro parameters.
29469 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29470 * posix/tst-gnuglob.c: New file.
29471 * posix/tst-gnuglob64.c: Likewise.
29472 * posix/Makefile (tests): Add tst-gnuglob64.
29473
29474 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29475
29476 [BZ #19485]
29477 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29478 and use a better translation for March in “mon”.
29479 * localedata/locales/csb_PL: Use more ASCII to improve the
29480 readability of the source.
29481
29482 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29483
29484 [BZ #13953]
29485 * localedata/locales/km_KH: Use ASCII as much
29486 as possible for better readability of the source and
29487 remove useless comments.
29488 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29489 was commented out and apparently wrong anyway because it was
29490 using Lao characters. If Buddhist era should be used
29491 for km_KH, a native speaker should write the correct formaat
29492 for Khmer.
29493 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29494 (According to CLDR, the first weekday for Cambodia is Sunday).
29495 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29496 (These were using Lao characters which must be wrong. If we get
29497 the correct data from a native speaker, we could add it back, until
29498 then it is better not to have name_mr and name_mrs at all than
29499 having it wrong).
29500
29501 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29502
29503 * locale/loadlocale.c: Correct size of
29504 _nl_value_type_LC_<category> arrays.
29505
29506 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29507
29508 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29509 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29510 with appropriate macros defined and undefined.
29511 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29512 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29513 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29514 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29515 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29516
29517 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29518
29519 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29520 "-O2 -march=i586".
29521
29522 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29523
29524 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29525 with lowercase letters to make it agree with CLDR.
29526
29527 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29528
29529 [BZ #15260]
29530 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29531 first letters of yesstr and nostr in yesexpr and noexpr,
29532 not for the full words.
29533 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29534 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29535 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29536 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29537 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29538 first letters of yesstr and nostr in yesexpr and noexpr,
29539 until now only English was matched in yesexpr and noexpr.
29540 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29541 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29542 fil but not for tl. As tl and fil are very similar, using fil
29543 is probably better than using English.
29544
29545 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29546
29547 [BZ #21706]
29548 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29549 in yesstr and nostr.
29550
29551 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29552
29553 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29554 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29555 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29556 Likewise.
29557 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29558 Likewise.
29559 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29560 Likewise.
29561 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29562 Likewise.
29563 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29564 (SNANF128X): Likewise.
29565
29566 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29567 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29568 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29569 (HUGE_VAL_F32): Likewise.
29570 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29571 (HUGE_VAL_F64): Likewise.
29572 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29573 (HUGE_VAL_F32X): Likewise.
29574 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29575 (HUGE_VAL_F64X): Likewise.
29576 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29577 (HUGE_VAL_F128X): Likewise.
29578
29579 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29580
29581 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29582 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29583 for the br_FR locale.
29584
29585 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29586
29587 [BZ #21706]
29588 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29589
29590 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29591
29592 * locale/programs/record-status.h: Define globals, and function
29593 prototypes. Move function bodies...
29594 * locale/programs/record-status.c: ... to here. New file.
29595 * iconv/Makefile (iconv_prog-modules): Add record-status.
29596 * locale/Makefile (lib-modules): Likewise.
29597 * iconv/iconv_prog.c: Remove verbose.
29598 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29599 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29600 record a warning about ASCII compatibility.
29601 * locale/programs/ld-monetary.c (monetary_finish): If
29602 warn_int_curr_symbol is true then record a warning about the symbol
29603 not being in our ISO 4217 list.
29604 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29605 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29606 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29607 (OPT_NO_WARN): Define.
29608 (OPT_WARN): Define.
29609 (options): Add entry for --no-warnings, and --warnings.
29610 (set_warnings): New function to enable/disable warnings.
29611 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29612 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29613 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29614 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29615 Pass flags to generate_locale.
29616 (generate_locale): Accept new flag argument and pass it to localedef
29617 invocation.
29618 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29619 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29620
29621 * localedata/Makefile (test-input-data): Use full file name.
29622 * localedata/da_DK.in: Rename to...
29623 * localedata/da_DK.ISO-8859-1.in: ...this.
29624 * localedata/de_DE.in: Rename to...
29625 * localedata/de_DE.ISO-8859-1.in: ...this.
29626 * localedata/en_US.in: Rename to...
29627 * localedata/en_US.ISO-8859-1.in: ...this.
29628 * localedata/fr_FR.in: Rename to...
29629 * localedata/fr_FR.UTF-8.in: ... this.
29630 * localedata/hr_HR.in: Rename to...
29631 * localedata/hr_HR.ISO-8859-2.in: ...this.
29632 * localedata/hu_HU.in: Rename to...
29633 * localedata/hu_HU.UTF-8.in: ...this.
29634 * localedata/si_LK.in: Rename to...
29635 * localedata/si_LK.UTF-8.in: ...this.
29636 * localedata/sv_SE.in: Rename to...
29637 * localedata/sv_SE.ISO-8859-1.in: ...this.
29638 * localedata/tr_TR.in: Rename to...
29639 * localedata/tr_TR.UTF-8.in: ...this.
29640 * localedata/uk_UA.in: Rename to...
29641 * localedata/uk_UA.UTF-8.in: ...this.
29642 * localedata/sort-test.sh: Test file is locale name with the
29643 suffix.
29644
29645 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29646 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29647 file.
29648 * localedata/locales/i18n_ctype: Regenerate.
29649 * localedata/locales/tr_TR: Likewise.
29650 * localedata/locales/translit_circle: Likewise.
29651 * localedata/locales/translit_cjk_compat: Likewise.
29652 * localedata/locales/translit_combining: Likewise.
29653 * localedata/locales/translit_compat: Likewise.
29654 * localedata/locales/translit_font: Likewise.
29655 * localedata/locales/translit_fraction: Likewise.
29656
29657 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29658
29659 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29660 lxvd2x/stxvd2x with lvx/stvx.
29661 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29662
29663 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29664
29665 * include/alloc_buffer.h: Replace "if if " with "if " in
29666 comments.
29667 * sysdeps/mips/memcpy.S: Likkewise.
29668 * sysdeps/mips/memset.S: Likewise.
29669 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29670 Likewise.
29671 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29672 Likewise.
29673 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29674 Likewise.
29675
29676 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29677
29678 [BZ #15261]
29679 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29680 yesexpr and noexpr.
29681 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29682 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29683 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29684 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29685 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29686 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29687 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29688
29689 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29690
29691 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29692 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29693 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29694 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29695 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29696 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29697 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29698 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29699 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29700 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29701 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29702 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29703
29704 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29705
29706 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29707 as possible for better readability of the source.
29708 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29709 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29710 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29711 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29712 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29713 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29714 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29715 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29716 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29717 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29718 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29719 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29720 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29721 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29722 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29723 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29724 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29725 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29726 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29727 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29728 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29729 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29730 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29731 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29732 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29733 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29734 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29735 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29736 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29737 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29738 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29739 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29740 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29741 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29742 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29743 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29744 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29745 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29746 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29747 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29748 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29749 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29750 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29751 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29752 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29753 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29754 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29755 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29756 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29757 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29758 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29759 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29760 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29761 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29762 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29763 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29764 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29765 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29766 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29767 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29768 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29769 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29770 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29771 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29772 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29773 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29774 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29775 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29776 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29777 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29778 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29779 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29780 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29781 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29782 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29783 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29784 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29785 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29786 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29787 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29788 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29789 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29790 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29791 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29792 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29793 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29794 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29795 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29796 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29797 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29798 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29799 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29800 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29801 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29802 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29803 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29804 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29805 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29806 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29807 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29808 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29809 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29810 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29811 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29812 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29813 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29814 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29815 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29816 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29817 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29818 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29819 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29820 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29821 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29822 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29823 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29824 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29825 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29826 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29827 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29828 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29829 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29830 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29831 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29832 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29833 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29834 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29835 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29836 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29837 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29838 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29839 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29840 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29841 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29842 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29843 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29844 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29845 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29846 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29847 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29848 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29849 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29850 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29851 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29852 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29853 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29854 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29855 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29856 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29857 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29858 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29859 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29860 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29861 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29862 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29863 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29864 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29865 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29866 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29867 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29868 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29869 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29870 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29871 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29872 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29873 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29874 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29875 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29876 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29877 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29878 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29879 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29880 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29881 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29882
29883 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29884
29885 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29886 (Use first letters of yesstr and nostr correctly instead of using
29887 full words).
29888
29889 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29890
29891 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29892 (Use first letters of yesstr and nostr correctly).
29893
29894 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29895
29896 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29897 also check for the first characters of yesstr and nostr.
29898 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29899 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29900
29901 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29902
29903 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29904 also check for Chinese characters.
29905
29906 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29907
29908 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29909 match also for the contents of yesstr and nostr. As the first letter
29910 of yesstr and nostr is equal, checking only for the first letter
29911 is not enough.
29912
29913 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29914
29915 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29916 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29917
29918 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29919
29920 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29921 of main contributor.
29922
29923 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29924
29925 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29926 instead of using English.
29927
29928 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29929
29930 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29931 by including the first letters of nostr and yesexpr in the regexp.
29932 Also make it more readable by using ASCII where possible.
29933
29934 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29935
29936 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29937 the first letter of nostr in the regexp. It agrees with CLDR now.
29938 Also make it more readable by using ASCII where possible.
29939
29940 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29941
29942 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29943 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29944 these strings contain a U+17D6 (which somewhat looks like a colon)
29945 instead of a real colon to separate the full words for “yes”
29946 and “no” from the single letter responses.
29947
29948 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29949
29950 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29951 it agree with CLDR (include the first letter of yesstr).
29952 Also make it more readable by using ASCII where possible.
29953
29954 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29955
29956 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29957 and improve yesexpr and noexpr. The yesstr and nostr apparently
29958 came from CLDR. And CLDR has a bug there: these strings contain
29959 a U+0903 (which looks like a colon) instead of a real colon
29960 to separate the full words for “yes” and “no” from the single
29961 letter responses.
29962
29963 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29964
29965 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29966 letters of the full yesstr and nostr in yesexpr and noexpr.
29967
29968 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29969
29970 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29971 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29972 * localedata/locales/an_ES: Make source more readable by using ASCII
29973 where possible.
29974
29975 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29976
29977 [BZ #20952]
29978 * localedata/locales/yuw_PG: New file.
29979 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29980 * locale/iso-639.def: Add Yau (Uruwa).
29981
29982 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29983
29984 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29985
29986 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29987
29988 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29989 (__libc_realloc): Likewise.
29990 (_mid_memalign): Likewise.
29991 (__libc_calloc): Likewise.
29992
29993 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29994
29995 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29996 by adding the generic +1 and -0 as in all other locales.
29997 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29998 day names and make it more readable by using ASCII where possible.
29999
30000 2017-10-24 Joseph Myers <joseph@codesourcery.com>
30001
30002 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
30003 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
30004
30005 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30006
30007 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
30008 WNOHANG in waitpid call.
30009
30010 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
30011
30012 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
30013 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
30014
30015 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
30016 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
30017 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
30018 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
30019 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
30020 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
30021 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
30022 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
30023 variables.
30024
30025 2017-10-23 Michael Collison <michael.collison@arm.com>
30026
30027 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
30028 with __builtin_sqrt.
30029 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
30030 with __builtin_sqrtf.
30031 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
30032 with __builtin_ceil.
30033 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
30034 with __builtin_ceilf.
30035 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
30036 with __builtin_floor.
30037 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
30038 with __builtin_floorf.
30039 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
30040 with __builtin_fma.
30041 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
30042 with __builtin_fmaf.
30043 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
30044 with __builtin_fmax.
30045 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30046 with __builtin_fmaxf.
30047 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30048 with __builtin_fmin.
30049 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30050 with __builtin_fminf.
30051 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30052 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30053 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30054 with builtin_rint and conversion to int.
30055 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30056 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30057 with builtin_llround.
30058 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30059 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30060 with builtin_rint and conversion to long int.
30061 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30062 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30063 with builtin_lround.
30064 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30065 with builtin_lroundf.
30066 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30067 statements with __builtin_nearbyint.
30068 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30069 statements with __builtin_nearbyintf.
30070 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30071 with __builtin_rint.
30072 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30073 with __builtin_rintf.
30074 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30075 with __builtin_round.
30076 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30077 with __builtin_roundf.
30078 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30079 with __builtin_trunc.
30080 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30081 with __builtin_truncf.
30082 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30083 and s_l[l]round[f].c too.
30084
30085 2017-10-23 Alan Modra <amodra@gmail.com>
30086
30087 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30088 Adjust stack after restoring regs. Add missing LR cfi_restore.
30089
30090 2017-10-23 Alan Modra <amodra@gmail.com>
30091
30092 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30093 Move LR save and frame setup/teardown and LR restore to
30094 immediately around memset call. Provide cfi.
30095
30096 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30097
30098 * sysdeps/i386/fpu/e_powf.S: Removed.
30099 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30100 * sysdeps/i386/fpu/w_powf.c: Likewise.
30101 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30102 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30103 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30104 Add e_powf-sse2.
30105 (CFLAGS-e_powf-sse2.c): New.
30106 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30107 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30108
30109 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30110
30111 * sysdeps/i386/fpu/e_log2f.S: Removed.
30112 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30113 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30114 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30115 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30116 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30117 Add e_log2f-sse2.
30118 (CFLAGS-e_log2f-sse2.c): New.
30119 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30120 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30121
30122 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30123
30124 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30125 Add e_powf-fma.
30126 (CFLAGS-e_powf-fma.c): New.
30127 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30128 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30129
30130 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30131
30132 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30133 Add e_log2f-fma.
30134 (CFLAGS-e_log2f-fma.c): New.
30135 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30136 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30137
30138 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30139
30140 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30141 Add e_logf-fma.
30142 (CFLAGS-e_logf-fma.c): New.
30143 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30144 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30145
30146 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30147
30148 * sysdeps/i386/fpu/e_logf.S: Removed.
30149 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30150 * sysdeps/i386/fpu/w_logf.c: Likewise.
30151 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30152 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30153 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30154 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30155 Add e_logf-sse2.
30156 (CFLAGS-e_logf-sse2.c): New.
30157 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30158 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30159
30160 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30161
30162 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30163 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30164 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30165 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30166 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30167 Add e_exp2f-sse2.
30168 (CFLAGS-e_exp2f-sse2.c): New.
30169 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30170 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30171
30172 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30173
30174 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30175 Add e_exp2f-fma.
30176 (CFLAGS-e_exp2f-fma.c): New.
30177 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30178 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30179
30180 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30181
30182 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30183 * sysdeps/i386/fpu/e_expf.S: Likewise.
30184 * sysdeps/i386/fpu/math_errf.c: Likewise.
30185 * sysdeps/i386/fpu/w_expf.c: Likewise.
30186 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30187 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30188 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30189 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30190 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30191 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30192 Remove e_expf-ia32.
30193 (CFLAGS-e_expf-sse2.c): New.
30194 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30195 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30196
30197 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30198
30199 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30200 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30201 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30202 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30203 e_expf.c.
30204 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30205 New.
30206 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30207 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30208 Renamed to ...
30209 (__redirect_expf): This.
30210 (SYMBOL_NAME): Changed to expf.
30211 (__ieee754_expf): Renamed to ...
30212 (__expf): This.
30213 (__GI___expf): This.
30214 (__ieee754_expf): Add strong_alias.
30215 (__expf_finite): Likewise.
30216 (__expf): New.
30217 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30218
30219 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30220
30221 [BZ #22332]
30222 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30223 unescaping.
30224
30225 2017-10-21 Florian Weimer <fweimer@redhat.com>
30226
30227 * posix/Makefile (tests): Add tst-glob-tilde.
30228 (tests-special): Add tst-glob-tilde-mem.out
30229 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30230 (tst-glob-tilde-mem.out): Add mtrace check.
30231 * posix/tst-glob-tilde.c: New file.
30232
30233 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30234
30235 * bits/floatn-common.h: New file.
30236 * math/Makefile (headers): Add bits/floatn-common.h.
30237 * bits/floatn.h: Include <bits/floatn-common.h>.
30238 * sysdeps/ia64/bits/floatn.h: Likewise.
30239 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30240 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30241 * sysdeps/powerpc/bits/floatn.h: Likewise.
30242 * sysdeps/x86/bits/floatn.h: Likewise.
30243
30244 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30245
30246 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30247 indicates whether compiler emits an warning for alias for
30248 functions with incompatible types.
30249
30250 [BZ #22273]
30251 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30252 the auxiliary process is terminated by a signal before calling _exit
30253 or execve.
30254
30255 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30256
30257 [BZ #21265]
30258 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30259 New.
30260 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30261 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30262 and bit_arch_XSAVEC_Usable if needed.
30263 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30264 and bit_arch_Use_dl_runtime_resolve_opt.
30265 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30266 Removed.
30267 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30268 (bit_arch_Prefer_No_AVX512): Updated.
30269 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30270 (bit_arch_XSAVEC_Usable): New.
30271 (STATE_SAVE_OFFSET): Likewise.
30272 (STATE_SAVE_MASK): Likewise.
30273 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30274 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30275 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30276 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30277 (index_arch_XSAVEC_Usable): New.
30278 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30279 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30280 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30281 is enabled.
30282 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30283 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30284 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30285 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30286 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30287 _dl_runtime_resolve_xsavec.
30288 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30289 Removed.
30290 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30291 instead of VEC_SIZE.
30292 (REGISTER_SAVE_BND0): Removed.
30293 (REGISTER_SAVE_BND1): Likewise.
30294 (REGISTER_SAVE_BND3): Likewise.
30295 (REGISTER_SAVE_RAX): Always defined to 0.
30296 (VMOV): Removed.
30297 (_dl_runtime_resolve_avx): Likewise.
30298 (_dl_runtime_resolve_avx_slow): Likewise.
30299 (_dl_runtime_resolve_avx_opt): Likewise.
30300 (_dl_runtime_resolve_avx512): Likewise.
30301 (_dl_runtime_resolve_avx512_opt): Likewise.
30302 (_dl_runtime_resolve_sse): Likewise.
30303 (_dl_runtime_resolve_sse_vex): Likewise.
30304 (USE_FXSAVE): New.
30305 (_dl_runtime_resolve_fxsave): Likewise.
30306 (USE_XSAVE): Likewise.
30307 (_dl_runtime_resolve_xsave): Likewise.
30308 (USE_XSAVEC): Likewise.
30309 (_dl_runtime_resolve_xsavec): Likewise.
30310 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30311 Removed.
30312 (_dl_runtime_resolve_avx512_opt): Likewise.
30313 (_dl_runtime_resolve_avx): Likewise.
30314 (_dl_runtime_resolve_avx_opt): Likewise.
30315 (_dl_runtime_resolve_sse): Likewise.
30316 (_dl_runtime_resolve_sse_vex): Likewise.
30317 (_dl_runtime_resolve_fxsave): New.
30318 (_dl_runtime_resolve_xsave): Likewise.
30319 (_dl_runtime_resolve_xsavec): Likewise.
30320
30321 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30322
30323 [BZ #22320]
30324 CVE-2017-15670
30325 * posix/glob.c (__glob): Fix one-byte overflow.
30326
30327 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30328
30329 * malloc/malloc.c (sysdep-cancel.h): Add include.
30330
30331 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30332
30333 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30334
30335 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30336
30337 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30338 (tests): Remove $(objpfx)ga_test depdendency.
30339 * resolv/ga_test.c: Remove file.
30340
30341 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30342
30343 [BZ #18812]
30344 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30345 * localedata/locales/kab_DZ: New file.
30346
30347 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30348
30349 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30350 _dl_relocate_static_pie instead of _dl_start to compute load
30351 address in static PIE.
30352
30353 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30354
30355 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30356
30357 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30358
30359 [BZ #13605]
30360 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30361 * localedata/locales/shn_MM: New file.
30362
30363 2017-10-20 Florian Weimer <fweimer@redhat.com>
30364
30365 [BZ #22321]
30366 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30367 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30368 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30369 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30370 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30371 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30372
30373 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30374
30375 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30376
30377 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30378
30379 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30380
30381 [BZ #22322]
30382 * sysdeps/mips/bits/long-double.h: Move to ....
30383 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30384
30385 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30386
30387 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30388
30389 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30390 H.J. Lu <hongjiu.lu@intel.com>
30391
30392 [BZ #22299]
30393 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30394 GLRO(dl_platform) to NULL.
30395 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30396 (modules-names): Add tst-platformmod-1 and
30397 x86_64/tst-platformmod-2.
30398 (CFLAGS-tst-platform-1.c): New.
30399 (CFLAGS-tst-platformmod-1.c): Likewise.
30400 (CFLAGS-tst-platformmod-2.c): Likewise.
30401 (LDFLAGS-tst-platformmod-2.so): Likewise.
30402 ($(objpfx)tst-platform-1): Likewise.
30403 ($(objpfx)tst-platform-1.out): Likewise.
30404 (tst-platform-1-ENV): Likewise.
30405 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30406 * sysdeps/x86_64/tst-platform-1.c: New file.
30407 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30408 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30409
30410 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30411
30412 [BZ #13994]
30413 * locale/iso-639.def: Add Karbi.
30414 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30415 * localedata/locales/mjw_IN: New file.
30416
30417 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30418
30419 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30420 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30421 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30422 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30423 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30424 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30425 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30426 <bits/floatn.h>.
30427 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30428 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30429 * manual/math.texi (Mathematics): Document additional architecture
30430 support for _Float128.
30431 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30432 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30433 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30434 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30435 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30436 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30437 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30438 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30439 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30440 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30441 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30442 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30443 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30444 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30445 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30446
30447 2017-10-18 Renlin Li <renlin.li@arm.com>
30448
30449 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30450 _DYNAMIC symbol to calculate load address.
30451
30452 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30453
30454 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30455 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30456 summary bits.
30457 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30458 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30459
30460 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30461
30462 [BZ #16777]
30463 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30464 and improve readability by using more ASCII.
30465 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30466 and improve readability by using more ASCII.
30467
30468 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30469
30470 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30471 not all targets support atomics on bool.
30472
30473 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30474
30475 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30476 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30477 __f128.
30478 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30479 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30480 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30481 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30482 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30483 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30484
30485 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30486
30487 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30488 defines.
30489
30490 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30491
30492 [BZ #22159]
30493 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30494 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30495 (do_check_remalloced_chunk): Fix build bug.
30496 (do_check_malloc_state): Add assert that checks arena->top.
30497 (malloc_consolidate): Remove initialization.
30498 (int_mallinfo): Remove call to malloc_consolidate.
30499 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30500
30501 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30502
30503 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30504 (have_fastchunks): Remove.
30505 (clear_fastchunks): Remove.
30506 (set_fastchunks): Remove.
30507 (malloc_state): Add have_fastchunks.
30508 (malloc_init_state): Use have_fastchunks.
30509 (do_check_malloc_state): Remove incorrect invariant checks.
30510 (_int_malloc): Use have_fastchunks.
30511 (_int_free): Likewise.
30512 (malloc_consolidate): Likewise.
30513
30514 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30515
30516 * malloc/malloc.c (tcache_put): Inline.
30517 (tcache_get): Inline.
30518
30519 2017-10-17 Jordi Mallach <jordi@gnu.org>
30520
30521 Aurelien Jarno <aurelien@aurel32.net>
30522 [BZ #2522]
30523 * localedata/locales/ca_ES@valencia: New file.
30524 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30525
30526 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30527
30528 [BZ #22296]
30529 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30530 < 6.x
30531
30532 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30533
30534 * scripts/build-many-glibcs.py (Context.add_all_configs):
30535 Add arm-linux-gnueabihf multiarch extra_glibcs.
30536
30537 * sysdeps/generic/ifunc-init.h: New file.
30538 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30539
30540 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30541
30542 [BZ #22019]
30543 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30544 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30545 * stdlib/tst-strfmon_l.c: adapt test case.
30546
30547 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30548
30549 * sysdeps/generic/float128-abi.h: New file.
30550 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30551 non-__prefixed symbols to ....
30552 * math/Versions: ... here. Include <float128-abi.h>.
30553 * stdlib/Versions ... and here. Include <float128-abi.h>
30554
30555 2017-10-16 Florian Weimer <fweimer@redhat.com>
30556
30557 * version.h (VERSION): Switch to ".9000" as the development
30558 version suffix.
30559
30560 2017-10-16 Florian Weimer <fweimer@redhat.com>
30561
30562 [BZ #22050]
30563 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30564 compat_symbol_reference to access non-default version.
30565
30566 2017-10-16 Florian Weimer <fweimer@redhat.com>
30567
30568 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30569
30570 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30571
30572 * include/shlib-compat.h (compat_symbol_reference): Update
30573 comment.
30574
30575 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30576
30577 * math/Makefile (test-types): Add
30578 $(type-float128-$(float128-alias-fcts)).
30579 * math/test-float128.h (TYPE_STR): Define conditional on
30580 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30581 (ULP_IDX): Likewise.
30582 (ULP_I_IDX): Likewise.
30583
30584 * stdlib/strtold.c: Include <bits/floatn.h>
30585 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30586 and later undefine as macro. Define as weak alias if
30587 [!USE_WIDE_CHAR].
30588 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30589 and later undefine as macro. Define as weak alias if
30590 [USE_WIDE_CHAR].
30591 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30592 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30593 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30594 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30595 Define and later undefine as macro. Define as weak alias if
30596 [USE_WIDE_CHAR].
30597 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30598 <bits/floatn.h>.
30599 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30600 Define and later undefine as macro. Define as weak alias if
30601 [!USE_WIDE_CHAR].
30602 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30603 Define and later undefine as macro. Define as weak alias if
30604 [USE_WIDE_CHAR].
30605
30606 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30607
30608 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30609 record_verbose messages.
30610
30611 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30612
30613 [BZ #22052]
30614 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30615 to silence -O3 -Wall warning with GCC 7.
30616
30617 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30618
30619 * Makeconfig (+link-static-before-libc): Use the first of
30620 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30621 * gmon/Makefile (tests): Add tst-gmon-static.
30622 (tests-static): Likewise.
30623 (CFLAGS-tst-gmon-static.c): New.
30624 (CRT-tst-gmon-static): Likewise.
30625 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30626 (tst-gmon-static-ENV): Likewise.
30627 (tests-special): Likewise.
30628 ($(objpfx)tst-gmon-static.out): Likewise.
30629 (clean-tst-gmon-static-data): Likewise.
30630 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30631 * gmon/tst-gmon-static-gprof.sh: New file.
30632 * gmon/tst-gmon-static.c: Likewise.
30633
30634 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30635
30636 [BZ #22295]
30637 * locale/programs/linereader.c (get_string): Don't warn on
30638 non-symbolic character.
30639
30640 [BZ #22294]
30641 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30642 int_curr_symbol.
30643
30644 [BZ #22292]
30645 * locale/programs/record-status.h: New file
30646 * locale/programs/locale.c: Add comment.
30647 * locale/programs/charmap-dir.c: Don't include error.h.
30648 (charmap_opendir): Use record_error.
30649 * locale/programs/charmap.c: Don't include error.h.
30650 (charmap_read): Use record_error, and record_warning.
30651 (parse_charmap): Likewise.
30652 * locale/programs/ld-address.c: Don't include error.h.
30653 (address_finish): Use record_error, and record_warning.
30654 * locale/programs/ld-collate.c: Don't include error.h.
30655 (collate_finish): Use record_error, and record_error_at_line.
30656 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30657 (ctype_class_new): Likewise.
30658 (ctype_map_new): Likewise.
30659 (set_one_default): Likewise.
30660 (set_class_defaults): Likewise.
30661 (translit_flatten): Likewise.
30662 (allocate_arrays): Use record_error, and record_verbose.
30663 * locale/programs/ld-identification.c: Don't include error.h.
30664 (indentation_finish): Use record_error and record_warning.
30665 * locale/programs/ld-measurement.c: Don't include error.h.
30666 (measurement_finish): Use record_error.
30667 * locale/programs/ld-messages.c
30668 (message_finish): Likewise.
30669 * locale/programs/ld-monetary.c
30670 (monetary_finish): Likewise.
30671 * locale/programs/ld-name.c (name_finish): Use record_error
30672 and record_warning.
30673 * locale/programs/ld-numeric.c
30674 (numeric_finish): Use record_error.
30675 * locale/programs/ld-paper.c: Don't include error.h.
30676 (paper_finish): Use record_error.
30677 * locale/programs/ld-telephone.c: Don't include error.h.
30678 (telephone_finish): Use record_error.
30679 * locale/programs/ld-time.c (time_finish): Likewise.
30680 * locale/programs/linereader.h (lr_error): Make inline func.
30681 * locale/programs/localedef.c: Define recorded_warning_count,
30682 and recorded_error_count.
30683 (main): Use record_error. Use recorded_error_count and
30684 recorded_warning_count to issue correct error returns.
30685 (add_to_readlist): Use record_error.
30686 (find_locale): Likewise.
30687 (load_locale): Likewise.
30688 * locale/programs/localedef.h: Remove be_quiet
30689 and WITH_CUR_LOCALE.
30690 * locale/programs/locarchive.c (compare_from_file): Use
30691 record_error.
30692 * locale/programs/locfile.c (write_locale_data): Use
30693 record_error.
30694 * locale/programs/repertoire.c: Dont include error.h.
30695 (repertoire_complain): Use record_error.
30696 * localedata/tst-fmon.sh: Expect failures from localedef.
30697 * localedata/tst-locale.sh: Likewise.
30698 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30699
30700 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30701 (REPORTS): Likewise.
30702 (check): Likewise.
30703 (i18n): Rename to...
30704 (i18n_ctype): ...this.
30705 (i18n-report): Rename to...
30706 (i18n_ctype-report): ...this.
30707 * localedata/locales/i18n_ctype: Regenerate.
30708 * localedata/locales/i18n: copy i18n_ctype.
30709
30710 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30711
30712 * stdlib/strfroml.c: Include <bits/floatn.h>.
30713 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30714 Define before include of <stdlib.h> and undefine afterwards, then
30715 define as weak alias.
30716
30717 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30718 Undefine and restore default definition. Use
30719 libm_alias_ldouble_other.
30720
30721 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30722
30723 [BZ #22153]
30724 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30725 in coredumps.
30726
30727 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30728
30729 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30730 Assign sym_map to be map for local symbols, as TLS relocations
30731 use sym_map to determine whether the symbol is defined and to
30732 extract the TLS information.
30733 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30734 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30735
30736 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30737
30738 [BZ #22189]
30739 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30740 (math_force_eval): Add powerpc version.
30741
30742 [BZ #22142]
30743 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30744 -DBL_MAX.
30745 (do_test): Likewise.
30746 * stdio-common/tst-printf.sh: Likewise.
30747 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30748 ifdef clause in order to set the carry bit right. Replace r0 by
30749 0 without changing the behavior.
30750
30751 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30752
30753 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30754 <libm-alias-ldouble.h>.
30755 (fabsl): Define using libm_alias_ldouble.
30756 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30757 <libm-alias-ldouble.h>.
30758 (fabsl): Define using libm_alias_ldouble.
30759
30760 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30761 Remove conditional code.
30762
30763 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30764 Rename to __clog10_internal_l.
30765 (__clog10_internal_l): Define aliases using
30766 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30767 with __clog10.
30768
30769 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30770
30771 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30772 * benchtests/sincosf-inputs: New file.
30773 * benchtests/cosf-inputs: New file.
30774 * benchtests/sinf-inputs: New file.
30775
30776 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30777
30778 * posix/tst-spawn.c (do_test): Wait for both children.
30779
30780 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30781
30782 [BZ #22284]
30783 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30784 tests-pie): Add tst-gmon-pie.
30785 (CFLAGS-tst-gmon-pie.c): New.
30786 (CRT-tst-gmon-pie): Likewise.
30787 (tst-gmon-pie-ENV): Likewise.
30788 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30789 ($(objpfx)tst-gmon-pie.out): Likewise.
30790 (clean-tst-gmon-pie-data): Likewise.
30791 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30792 * gmon/gmon.c [PIC]: Include <link.h>.
30793 [PIC] (callback): New function.
30794 (write_hist): Add an argument for load address. Subtract load
30795 address from PCs.
30796 (write_call_graph): Likewise.
30797 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30798 it to write_hist and write_call_graph.
30799 * gmon/tst-gmon-pie.c: New file.
30800
30801 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30802
30803 * math/Makefile (test-types-basic): New variable.
30804 (test-types): Likewise.
30805 (libm-test-support): Use $(test-types) instead of $(types).
30806 (libm-tests-base-normal): Likewise.
30807 (libm-tests-base-finite): Likewise.
30808 (libm-tests-base-inline): Likewise.
30809 (generated): Likewise.
30810 ($(objpfx)libm-test-support-$(t).c): Likewise.
30811 (libm-tests-for-type iterator): Likewise.
30812 (libm-test-support iterator): Likewise.
30813 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30814 (ulp_idx): Use ULP_IDX.
30815 * math/test-ldouble.h: Include <float.h>.
30816 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30817 (ULP_IDX): New macro.
30818 (ULP_I_IDX): Likewise.
30819 * math/test-double.h (ULP_IDX): Likewise.
30820 (ULP_I_IDX): Likewise.
30821 * math/test-float.h (ULP_IDX): Likewise.
30822 (ULP_I_IDX): Likewise.
30823 * math/test-float128.h (ULP_IDX): Likewise.
30824 (ULP_I_IDX): Likewise.
30825
30826 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30827
30828 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30829 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30830 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30831 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30832 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30833 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30834 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30835 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30836 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30837 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30838 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30839 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30840 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30841 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30842 (SINGLE_THREAD_BY_GLOBAL): Define.
30843 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30844 Likewise.
30845 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30846 Likewise.
30847 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30848 Likewise.
30849 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30850 Likewise.
30851 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30852 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30853 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30854 Likewise.
30855
30856 2017-10-11 Andreas Schwab <schwab@suse.de>
30857
30858 * nis/Makefile (aux): Remove.
30859 * nscd/Makefile (aux): Add nscd_hash.
30860 (nscd-modules): Likewise.
30861 ($(objpfx)nscd): Don't depend on libnsl.
30862 * nscd/nscd_hash.c: New file.
30863 * nscd/nscd_hash.h: Likewise.
30864 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30865 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30866 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30867 instead of <nis/rpcsvc/nis.h>.
30868 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30869
30870 2017-10-11 Florian Weimer <fweimer@redhat.com>
30871
30872 [BZ #22078]
30873 Avoid large NSS buffers with many addresses, aliases.
30874 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30875 using dynarrays and struct alloc_buffer.
30876 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30877 (tst-nss-files-hosts-multi): Link with -ldl.
30878 * nss/tst-nss-files-hosts-multi.c: New file.
30879
30880 2017-10-11 Florian Weimer <fweimer@redhat.com>
30881
30882 [BZ #18023]
30883 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30884 scratch_buffer. Eliminate gotos.
30885
30886 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30887
30888 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30889 libm_alias_ldouble_other.
30890 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30891 undefine and redefine.
30892 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30893 (exp10l): Do not define here.
30894 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30895 (weak_alias): Undefine and redefine.
30896 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30897 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30898 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30899 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30900
30901 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30902 [!__fma] (fma): Define using libm_alias_double.
30903 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30904 [!__fmaf] (fmaf): Define using libm_alias_float.
30905 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30906 (fmal): Define using libm_alias_ldouble.
30907
30908 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30909
30910 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30911 New macro.
30912 (libm_alias_double_other): Likewise.
30913 (libm_alias_double_r): Use libm_alias_double_other_r.
30914 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30915 New macro.
30916 (libm_alias_float_other): Likewise.
30917 (libm_alias_float_r): Use libm_alias_float_other_r.
30918 * sysdeps/generic/libm-alias-float128.h
30919 (libm_alias_float128_other_r): New macro.
30920 (libm_alias_float128_other): Likewise.
30921 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30922 * sysdeps/generic/libm-alias-ldouble.h
30923 (libm_alias_ldouble_other_r): New macro.
30924 (libm_alias_ldouble_other): Likewise.
30925 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30926 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30927 (libm_alias_double_other_r): New macro.
30928 (libm_alias_double_other): Likewise.
30929 (libm_alias_double_r): Use libm_alias_double_other_r.
30930 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30931 (libm_alias_ldouble_other_r): New macro.
30932 (libm_alias_ldouble_other): Likewise.
30933 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30934 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30935 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30936 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30937 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30938 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30939 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30940 * math/w_exp2f.c: Use libm_alias_float_other.
30941 * math/w_expf.c: Likewise.
30942 * math/w_log2f.c: Likewise.
30943 * math/w_logf.c: Likewise.
30944 * math/w_powf.c: Likewise.
30945 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30946 [!__exp2f]: Use libm_alias_float_other.
30947 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30948 [!__expf]: Use libm_alias_float_other.
30949 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30950 [!__log2f]: Use libm_alias_float_other.
30951 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30952 [!__logf]: Use libm_alias_float_other.
30953 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30954 [!__powf]: Use libm_alias_float_other.
30955
30956 2017-10-10 Florian Weimer <fweimer@redhat.com>
30957
30958 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30959 function.
30960 (_nss_files_gethostbyname3_r): Call it.
30961
30962 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30963
30964 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30965 error. Remove default definition of declare_mgen_alias.
30966 [!declare_mgen_alias_r]: Likewise.
30967 * sysdeps/generic/math-type-macros-double.h
30968 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30969 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30970 (declare_mgen_alias_r): Likewise.
30971 * sysdeps/generic/math-type-macros-float128.h
30972 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30973 * sysdeps/generic/math-type-macros-ldouble.h
30974 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30975 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30976 macro.
30977 (declare_mgen_alias_r_s): Likewise.
30978 (declare_mgen_alias_r): Likewise.
30979 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30980 (lgamma_r): Define using libm_alias_double_r.
30981 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30982 (lgammaf_r): Define using libm_alias_float_r.
30983 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30984 (lgammal_r): Define using libm_alias_ldouble_r.
30985 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30986 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30987
30988 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30989
30990 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30991 extern declaration.
30992
30993 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30994
30995 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30996
30997 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30998
30999 [BZ #21326]
31000 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
31001 [__cplusplus >= 201103] (__USE_ISOC99): Define.
31002 * math/Makefile (test-math-cxx11): New test.
31003 * math/test-math-cxx11.cc: New file.
31004
31005 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
31006
31007 * login/openpty.c (openpty): Close slave pty file descriptor on error.
31008
31009 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
31010 call to allocate the slave pty file descriptor.
31011
31012 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31013
31014 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
31015 [!__fma] (fma): Define using libm_alias_double.
31016 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
31017 [!__fma] (fma): Define using libm_alias_double.
31018
31019 * sysdeps/ieee754/float128/float128_private.h: Include
31020 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
31021 (libm_alias_ldouble_r): Undefine and redefine.
31022 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
31023 <libm-alias-ldouble.h>.
31024 (asinhl): Define using libm_alias_ldouble.
31025 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
31026 <libm-alias-ldouble.h>.
31027 (atanl): Define using libm_alias_ldouble.
31028 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
31029 <libm-alias-ldouble.h>.
31030 (cbrtl): Define using libm_alias_ldouble.
31031 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
31032 <libm-alias-ldouble.h>.
31033 (ceill): Define using libm_alias_ldouble.
31034 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
31035 <libm-alias-ldouble.h>.
31036 (copysignl): Define using libm_alias_ldouble.
31037 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
31038 <libm-alias-ldouble.h>.
31039 (cosl): Define using libm_alias_ldouble.
31040 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
31041 <libm-alias-ldouble.h>.
31042 (erfl): Define using libm_alias_ldouble.
31043 (erfcl): Likewise.
31044 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
31045 <libm-alias-ldouble.h>.
31046 (expm1l): Define using libm_alias_ldouble.
31047 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31048 <libm-alias-ldouble.h>.
31049 (fabsl): Define using libm_alias_ldouble.
31050 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31051 <libm-alias-ldouble.h>.
31052 (floorl): Define using libm_alias_ldouble.
31053 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31054 <libm-alias-ldouble.h>.
31055 (fmal): Define using libm_alias_ldouble.
31056 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31057 <libm-alias-ldouble.h>.
31058 (frexpl): Define using libm_alias_ldouble.
31059 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31060 libm_alias_ldouble.
31061 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31062 <libm-alias-ldouble.h>.
31063 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31064 libm_alias_ldouble.
31065 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31066 <libm-alias-ldouble.h>.
31067 (getpayloadl): Define using libm_alias_ldouble.
31068 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31069 <libm-alias-ldouble.h>.
31070 (llrintl): Define using libm_alias_ldouble.
31071 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31072 <libm-alias-ldouble.h>.
31073 (llroundl): Define using libm_alias_ldouble.
31074 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31075 <libm-alias-ldouble.h>.
31076 (logbl): Define using libm_alias_ldouble.
31077 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31078 <libm-alias-ldouble.h>.
31079 (lrintl): Define using libm_alias_ldouble.
31080 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31081 <libm-alias-ldouble.h>.
31082 (lroundl): Define using libm_alias_ldouble.
31083 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31084 <libm-alias-ldouble.h>.
31085 (modfl): Define using libm_alias_ldouble.
31086 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31087 <libm-alias-ldouble.h>.
31088 (nearbyintl): Define using libm_alias_ldouble.
31089 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31090 <libm-alias-ldouble.h>.
31091 (nextafterl): Define using libm_alias_ldouble.
31092 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31093 <libm-alias-ldouble.h>.
31094 (nextupl): Define using libm_alias_ldouble.
31095 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31096 <libm-alias-ldouble.h>.
31097 (remquol): Define using libm_alias_ldouble.
31098 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31099 <libm-alias-ldouble.h>.
31100 (rintl): Define using libm_alias_ldouble.
31101 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31102 <libm-alias-ldouble.h>.
31103 (roundevenl): Define using libm_alias_ldouble.
31104 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31105 <libm-alias-ldouble.h>.
31106 (roundl): Define using libm_alias_ldouble.
31107 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31108 using libm_alias_ldouble.
31109 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31110 <libm-alias-ldouble.h>.
31111 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31112 Define using libm_alias_ldouble.
31113 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31114 <libm-alias-ldouble.h>.
31115 (sincosl): Define using libm_alias_ldouble.
31116 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31117 <libm-alias-ldouble.h>.
31118 (sinl): Define using libm_alias_ldouble.
31119 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31120 <libm-alias-ldouble.h>.
31121 (tanhl): Define using libm_alias_ldouble.
31122 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31123 <libm-alias-ldouble.h>.
31124 (tanl): Define using libm_alias_ldouble.
31125 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31126 <libm-alias-ldouble.h>.
31127 (totalorderl): Define using libm_alias_ldouble.
31128 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31129 <libm-alias-ldouble.h>.
31130 (totalordermagl): Define using libm_alias_ldouble.
31131 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31132 <libm-alias-ldouble.h>.
31133 (truncl): Define using libm_alias_ldouble.
31134 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31135 libm_alias_ldouble.
31136 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31137 libm_alias_ldouble.
31138 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31139 <libm-alias-ldouble.h>.
31140 (weak_alias): Do not undefine and redefine.
31141 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31142 (copysignl): Define with long_double_symbol only if [IS_IN
31143 (libc)].
31144 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31145 <libm-alias-ldouble.h>.
31146 (weak_alias): Do not undefine and redefine.
31147 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31148 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31149 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31150 <libm-alias-ldouble.h>.
31151 (weak_alias): Do not undefine and redefine.
31152 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31153 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31154 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31155 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31156 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31157 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31158 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31159 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31160 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31161 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31162 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31163 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31164 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31165 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31166 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31167 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31168 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31169 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31170 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31171 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31172 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31173 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31174 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31175 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31176 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31177 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31178
31179 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31180
31181 [BZ #22111]
31182 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31183 (tcache_thread_freeres): Set tcache_shutting_down before
31184 freeing the tcache.
31185 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31186 * malloc/tst-malloc-tcache-leak.c: New file.
31187
31188 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31189
31190 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31191 back to powerpc32 file.
31192 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31193 (memrchr): Add __memrchr_power8 to ifunc list.
31194 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31195 extra bytes for unaligned inputs.
31196
31197 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31198
31199 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31200 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31201 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31202 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31203 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31204
31205 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31206
31207 * sysdeps/arm/libm-test-ulps: Update.
31208
31209 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31210 <libm-alias-ldouble.h>.
31211 (asinhl): Define using libm_alias_ldouble.
31212 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31213 <libm-alias-ldouble.h>.
31214 (cbrtl): Define using libm_alias_ldouble.
31215 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31216 <libm-alias-ldouble.h>.
31217 (copysignl): Define using libm_alias_ldouble.
31218 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31219 <libm-alias-ldouble.h>.
31220 (cosl): Define using libm_alias_ldouble.
31221 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31222 <libm-alias-ldouble.h>.
31223 (erfl): Define using libm_alias_ldouble.
31224 (erfcl): Likewise.
31225 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31226 <libm-alias-ldouble.h>.
31227 (fmal): Define using libm_alias_ldouble.
31228 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31229 <libm-alias-ldouble.h>.
31230 (frexpl): Define using libm_alias_ldouble.
31231 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31232 libm_alias_ldouble.
31233 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31234 <libm-alias-ldouble.h>.
31235 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31236 libm_alias_ldouble.
31237 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31238 <libm-alias-ldouble.h>.
31239 (getpayloadl): Define using libm_alias_ldouble.
31240 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31241 <libm-alias-ldouble.h>.
31242 (llrintl): Define using libm_alias_ldouble.
31243 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31244 <libm-alias-ldouble.h>.
31245 (llroundl): Define using libm_alias_ldouble.
31246 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31247 <libm-alias-ldouble.h>.
31248 (lrintl): Define using libm_alias_ldouble.
31249 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31250 <libm-alias-ldouble.h>.
31251 (lroundl): Define using libm_alias_ldouble.
31252 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31253 <libm-alias-ldouble.h>.
31254 (modfl): Define using libm_alias_ldouble.
31255 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31256 <libm-alias-ldouble.h>.
31257 (nextupl): Define using libm_alias_ldouble.
31258 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31259 <libm-alias-ldouble.h>.
31260 (remquol): Define using libm_alias_ldouble.
31261 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31262 <libm-alias-ldouble.h>.
31263 (roundevenl): Define using libm_alias_ldouble.
31264 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31265 <libm-alias-ldouble.h>.
31266 (roundl): Define using libm_alias_ldouble.
31267 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31268 using libm_alias_ldouble.
31269 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31270 <libm-alias-ldouble.h>.
31271 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31272 <libm-alias-ldouble.h>.
31273 (setpayloadsigl): Define using libm_alias_ldouble.
31274 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31275 <libm-alias-ldouble.h>.
31276 (sincosl): Define using libm_alias_ldouble.
31277 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31278 <libm-alias-ldouble.h>.
31279 (sinl): Define using libm_alias_ldouble.
31280 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31281 <libm-alias-ldouble.h>.
31282 (tanhl): Define using libm_alias_ldouble.
31283 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31284 <libm-alias-ldouble.h>.
31285 (tanl): Define using libm_alias_ldouble.
31286 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31287 <libm-alias-ldouble.h>.
31288 (totalorderl): Define using libm_alias_ldouble.
31289 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31290 <libm-alias-ldouble.h>.
31291 (totalordermagl): Define using libm_alias_ldouble.
31292 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31293 libm_alias_ldouble.
31294 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31295 libm_alias_ldouble.
31296
31297 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31298
31299 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31300 memmove_falkor.
31301 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31302 (__libc_ifunc_impl_list): Likewise.
31303 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31304 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31305
31306 * benchtests/bench-memmove-walk.c: New file.
31307 * benchtests/Makefile (string-benchset): Add it.
31308
31309 * benchtests/bench-memset-walk.c: New file.
31310 * benchtests/Makefile (string-benchset): Add it.
31311
31312 * benchtests/bench-memcpy-walk.c: New file.
31313 * benchtests/Makefile (string-benchset): Add it.
31314
31315 2017-10-05 Florian Weimer <fweimer@redhat.com>
31316
31317 nscd: Eliminate compilation time dependency in the build output.
31318 * nscd/nscd_stat.c (STATDATA_VERSION)
31319 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31320 (STATDATA_VERSION_FULL): New macro definitions.
31321 (compilation): Remove.
31322 (struct statdata): Adjust version member.
31323 (send_stats): Set version from STATDATA_VERSION_FULL.
31324 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31325
31326 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31327
31328 * configure.ac (--enable-add-ons): Remove option.
31329 (machine): Do not mention add-ons in comment.
31330 (LIBC_PRECONFIGURE): Likewise.
31331 (add_ons): Remove variable and sanity checks and logic to locate
31332 add-ons.
31333 (add_ons_automatic): Remove variable.
31334 (configured_add_ons): Likewise.
31335 (add_ons_sfx): Likewise.
31336 (add_ons_pfx): Likewise.
31337 (add_on_subdirs): Likewise.
31338 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31339 consideration of add-ons in Implies handling.
31340 (sysdeps_add_ons): Likewise.
31341 * configure: Regenerated.
31342 * libidn/configure.ac: Remove.
31343 * libidn/configure: Likewise.
31344 * sysdeps/unix/inet/configure.ac: New file.
31345 * sysdeps/unix/inet/configure: New generated file.
31346 * sysdeps/unix/inet/Subdirs: Add libidn.
31347 * Makeconfig (sysdeps-srcdirs): Remove variable.
31348 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31349 ($(common-objpfx)config.status): Do not depend on add-on files.
31350 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31351 comment.
31352 (all-subdirs): Do not include $(add-on-subdirs).
31353 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31354 * config.make.in (add-ons): Remove variable.
31355 (add-on-subdirs): Likewise.
31356 (sysdeps-add-ons): Likewise.
31357 * manual/Makefile (add-chapters): Remove.
31358 ($(objpfx)texis): Do not depend on $(add-chapters).
31359 (nonexamples): Do not handle $(add-chapters).
31360 (examples): Do not handle $(add-ons).
31361 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31362 libc-texinfo.sh.
31363 * manual/install.texi (Installation): Do not mention add-ons.
31364 (--enable-add-ons): Do not document configure option.
31365 * INSTALL: Regenerated.
31366 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31367 * manual/maint.texi (Hierarchy Conventions): Do not mention
31368 add-ons.
31369 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31370 --enable-add-ons.
31371 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31372 add-ons.
31373 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31374 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31375
31376 2017-10-05 Andreas Schwab <schwab@suse.de>
31377
31378 [BZ #15142]
31379 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31380 (_IO_flush_all_lockp): Always lock list_all_lock.
31381 (_IO_flush_all_linebuffered): Likewise.
31382 (_IO_unbuffer_all): Likewise.
31383
31384 2017-10-05 Florian Weimer <fweimer@redhat.com>
31385
31386 [BZ #15436]
31387 Do not flush stdio streams on abort.
31388 * stdlib/abort.c (fflush): Remove macro definition.
31389 (abort): Remove stages related to stdio flushing.
31390
31391 2017-10-05 Florian Weimer <fweimer@redhat.com>
31392
31393 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31394
31395 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31396
31397 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31398
31399 2017-10-05 Florian Weimer <fweimer@redhat.com>
31400
31401 * support/support_format_hostent.c (support_format_hostent): Add
31402 more error information for NETDB_INTERNAL.
31403
31404 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31405
31406 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31407 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31408 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31409 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31410 AC_DEFINE if multi-arch is enabled.
31411 * sysdeps/i386/configure: Regenerated.
31412
31413 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31414
31415 * Makeconfig (+link-static-before-libc): Use
31416 $(DEFAULT-LDFLAGS-$(@F)).
31417 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31418 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31419 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31420
31421 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31422
31423 * elf/Makefile (tests): Add tst-main1.
31424 (modules-names): Add tst-main1mod.
31425 ($(objpfx)tst-main1): New.
31426 (CRT-tst-main1): Likewise.
31427 (LDFLAGS-tst-main1): Likewise.
31428 (LDLIBS-tst-main1): Likewise.
31429 (tst-main1mod.so-no-z-defs): Likewise.
31430 * elf/tst-main1.c: New file.
31431 * elf/tst-main1mod.c: Likewise.
31432
31433 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31434
31435 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31436
31437 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31438
31439 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31440 (fma): Define using libm_alias_double.
31441 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31442 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31443 <math_ldbl_opt.h>.
31444 (fmal): Do not define as compat symbol here.
31445 * sysdeps/alpha/fpu/s_fma.c: New file.
31446
31447 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31448
31449 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31450
31451 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31452
31453 [BZ #22229]
31454 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31455 <math_ldbl_opt.h>
31456 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31457 and libc.
31458 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31459 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31460 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31461 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31462 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31463 Include <math_ldbl_opt.h>
31464 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31465 and libc.
31466 (compat_symbol): Undefine and redefine.
31467 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31468 <math_ldbl_opt.h>
31469 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31470 (compat_symbol): Undefine and redefine.
31471 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31472 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31473 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31474 GLIBC_2_1 for libm.
31475 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31476 GLIBC_2.0 copysignl symbol.
31477 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31478 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31479
31480 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31481
31482 2017-10-04 Florian Weimer <fweimer@redhat.com>
31483
31484 * scripts/check-local-headers.sh: Ignore nspr4 header file
31485 directory in addition to nspr.
31486
31487 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31488
31489 [BZ #17956]
31490 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31491 * configure: Regenerate.
31492 * crypt/Makefile (nss-cpp-flags): New variable.
31493 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31494 (CPPFLAGS-md5-crypt.c): Use it.
31495 * scripts/check-local-headers.sh: Ignore nspr header file
31496 directory.
31497
31498 2017-10-04 Andreas Schwab <schwab@suse.de>
31499
31500 * nis/Makefile (services): Remove compat.
31501 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31502 ($(objpfx)libnss_compat.so): Remove rule.
31503 * nis/Versions (libnss_compat): Remove.
31504 * nss/Makefile (services): Add compat.
31505 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31506 * nss/Versions (libnss_compat): Define.
31507 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31508 Don't include <rpc/types.h>. Replace bool_t by bool.
31509 * nss/nss_compat/compat-initgroups.c: Likewise.
31510 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31511 instead of <rpcsrv/ypclnt.h>.
31512 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31513 yp_get_default_domain.
31514 * nss/nss_compat/compat-pwd.c: Likewise.
31515 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31516 yp_get_default_domain.
31517 * nss/nss_compat/nisdomain.c: New file.
31518 * nss/nss_compat/nisdomain.h: Likewise.
31519
31520 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31521
31522 [BZ #22244]
31523 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31524 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31525
31526 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31527
31528 [BZ #22243]
31529 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31530 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31531
31532 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31533
31534 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31535 "movl main@GOTOFF(%ebx), %eax".
31536
31537 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31538
31539 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31540 allow undefined _DYNAMIC in PIE libc.a.
31541 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31542 Likewse.
31543
31544 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31545
31546 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31547 check _DYNAMIC.
31548
31549 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31550
31551 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31552 check _DYNAMIC.
31553
31554 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31555
31556 * math/test-math-iscanonical.cc (error): Replace bool with int.
31557
31558 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31559
31560 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31561 (modf): Define using libm_alias_double, only if [!__modf].
31562 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31563 <libm-alias-double.h>.
31564 (modf): Define using libm_alias_double, only if [!__modf].
31565 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31566 compat symbol here.
31567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31568 (weak_alias): Do not undefine and redefine.
31569 (strong_alias): Likewise.
31570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31571 (weak_alias): Likewise.
31572 (strong_alias): Likewise.
31573
31574 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31575 (logb): Define using libm_alias_double, only if [!__logb].
31576 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31577 <libm-alias-double.h>.
31578 (logb): Define using libm_alias_double, only if [!__logb].
31579 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31580 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31581 (weak_alias): Do not undefine and redefine.
31582 (strong_alias): Likewise.
31583 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31584 (weak_alias): Likewise.
31585 (strong_alias): Likewise.
31586
31587 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31588
31589 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31590 Check SHARED instead PIC.
31591
31592 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31593
31594 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31595 [!__fmaf] (fmaf): Define using libm_alias_float.
31596
31597 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31598 (frexp): Define using libm_alias_double.
31599 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31600 <libm-alias-double.h>.
31601 (frexp): Define using libm_alias_double.
31602 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31603 compat symbol here.
31604
31605 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31606
31607 [BZ #22235]
31608 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31609 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31610 (CFLAGS-test-math-iscanonical.cc): New variable.
31611 * math/test-math-iscanonical.cc: New file.
31612 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31613 Provide a C++ implementation based on function overloading,
31614 rather than using __MATH_TG, which uses C-only builtins.
31615 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31616 Likewise.
31617 * sysdeps/powerpc/powerpc64le/Makefile
31618 (CFLAGS-test-math-iscanonical.cc): New variable.
31619
31620 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31621
31622 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31623 (ceil): Define using libm_alias_double.
31624 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31625 (floor): Define using libm_alias_double.
31626 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31627 <libm-alias-double.h>.
31628 (llround): Define using libm_alias_double.
31629 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31630 <libm-alias-double.h>.
31631 (lround): Define using libm_alias_double.
31632 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31633 <libm-alias-double.h>.
31634 (nearbyint): Define using libm_alias_double.
31635 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31636 <libm-alias-double.h>.
31637 (remquo): Define using libm_alias_double.
31638 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31639 (rint): Define using libm_alias_double.
31640 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31641 (round): Define using libm_alias_double.
31642 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31643 (trunc): Define using libm_alias_double.
31644 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31645 <libm-alias-double.h>.
31646 (ceil): Define using libm_alias_double.
31647 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31648 <libm-alias-double.h>.
31649 (floor): Define using libm_alias_double.
31650 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31651 <libm-alias-double.h>.
31652 (llround): Define using libm_alias_double.
31653 [_LP64] (lround): Likewise.
31654 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31655 <libm-alias-double.h>.
31656 [!_LP64] (lround): Define using libm_alias_double.
31657 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31658 <libm-alias-double.h>.
31659 (nearbyint): Define using libm_alias_double.
31660 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31661 <libm-alias-double.h>.
31662 (remquo): Define using libm_alias_double.
31663 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31664 <libm-alias-double.h>.
31665 (rint): Define using libm_alias_double.
31666 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31667 <libm-alias-double.h>.
31668 (round): Define using libm_alias_double.
31669 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31670 <libm-alias-double.h>.
31671 (trunc): Define using libm_alias_double.
31672 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31673 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31674 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31675 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31676 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31677 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31678 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31679 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31680 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31681
31682 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31683
31684 * math/w_remainder.c: New file.
31685 * math/w_remainderf.c: New file.
31686 * math/w_remainderl.c: New file.
31687
31688 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31689
31690 * elf/rtld.c (BOOTSTRAP_MAP): New.
31691 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31692 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31693 Likewise.
31694 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31695 Likewise.
31696 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31697 Likewise.
31698
31699 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31700
31701 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31702 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31703 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31704 rtld_hidden_data_ver): Define to empty.
31705 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31706 __assert_perror_fail): Likewise.
31707 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31708 (__rewinddir): Likewise.
31709 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31710 (__profile_frequency): Likewise.
31711 * include/setjmp.h (__sigsetjmp): Likewise.
31712 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31713 __libc_sigaction): Likewise.
31714 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31715 not set hidden attribute.
31716 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31717 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31718 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31719 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31720 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31721 __fxstatat64): Likewise.
31722 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31723 (__uname): Likewise.
31724 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31725 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31726 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31727 (NO_RTLD_HIDDEN): Set.
31728 * sysdeps/mach/hurd/configure: Refresh.
31729 * config.h.in: Refresh.
31730
31731 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31732
31733 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31734 (atan): Define using libm_alias_double.
31735 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31736 (tan): Define using libm_alias_double.
31737 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31738 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31739
31740 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31741 define as weak alias of __atan. Do not define any aliases if
31742 [__atan].
31743 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31744 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31745 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31746 as weak alias of __tan. Do not define any aliases if [__tan].
31747 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31748 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31749 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31750 __atan.
31751 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31752 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31753 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31754 and define as weak alias of __atan.
31755 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31756 __atan.
31757 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31758 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31759 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31760 define as weak alias of __tan.
31761
31762 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31763
31764 * math/w_lgamma.c: New file.
31765 * math/w_lgammaf.c: New file.
31766 * math/w_lgammal.c: New file.
31767
31768 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31769
31770 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31771 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31772 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31773 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31774 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31775 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31776 * sysdeps/i386/fpu/w_log2f.c: New file.
31777 * sysdeps/i386/fpu/w_logf.c: New file.
31778 * sysdeps/i386/fpu/w_powf.c: New file.
31779 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31780 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31781 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31782
31783 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31784 H.J. Lu <hongjiu.lu@intel.com>
31785
31786 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31787 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31788 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31789 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31790 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31791 the new expf code.
31792 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31793 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31794 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31795 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31796 * sysdeps/i386/fpu/w_exp2f.c: New file.
31797 * sysdeps/i386/fpu/w_expf.c: New file.
31798 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31799 * sysdeps/x86_64/fpu/w_expf.c: New file.
31800
31801 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31802
31803 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31804 (log2f): Likewise.
31805 (powf): Likewise.
31806 * math/w_log2f.c: New file.
31807 * math/w_logf.c: New file.
31808 * math/w_powf.c: New file.
31809 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31810 * math/w_logf_compat.c (__logf_compat): Likewise.
31811 * math/w_powf_compat.c (__powf_compat): Likewise.
31812 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31813 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31814 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31815 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31816 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31817 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31818 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31819 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31820 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31821 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31822 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31823 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31824 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31825 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31826 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31828 Likewise.
31829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31830 Likewise.
31831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31832 Likewise.
31833 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31834 Likewise.
31835 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31836 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31837 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31838 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31839 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31840 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31841 Likewise.
31842 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31843 Likewise.
31844 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31845 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31846 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31847
31848 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31849
31850 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31851 (sysdep_routines): Add memrchr_power8.
31852 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31853 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31854 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31855 New file.
31856 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31857 (memrchr): Add __memrchr_power8 to ifunc list.
31858 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31859
31860 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31861
31862 [BZ #18822]
31863 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31864 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31865 libc_hidden_def.
31866 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31867 (__posix_fallocate64_l64): Likewise.
31868
31869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31870
31871 [BZ #18822]
31872 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31873 (__sched_setaffinity_new): Add libc_hidden_proto and
31874 libc_hidden_def.
31875
31876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31877
31878 [BZ #18822]
31879 * include/glob.h (__glob64): Add libc_hidden_proto.
31880 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31881 libc_hidden_def.
31882
31883 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31884
31885 [BZ #18822]
31886 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31887 attribute_hidden.
31888
31889 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31890
31891 [BZ #18822]
31892 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31893
31894 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31895
31896 [BZ #18822]
31897 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31898 libc_hidden_def.
31899
31900 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31901
31902 [BZ #18822]
31903 * csu/version.c (__libc_print_version): Add attribute_hidden.
31904
31905 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31906
31907 [BZ #18822]
31908 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31909
31910 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31911
31912 [BZ #18822]
31913 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31914
31915 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31916
31917 [BZ #18822]
31918 * nscd/nscd_helper.c (__nis_hash): New prototype.
31919
31920 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31921
31922 [BZ #18822]
31923 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31924 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31925 libc_hidden_def.
31926 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31927 * termios/tcgetattr.c (__tcgetattr): Likewise.
31928
31929 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31930
31931 [BZ #18822]
31932 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31933 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31934 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31935 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31936 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31937
31938 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31939
31940 [BZ #18822]
31941 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31942
31943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31944
31945 [BZ #18822]
31946 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31947 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31948
31949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 [BZ #18822]
31952 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31953
31954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31955
31956 [BZ #18822]
31957 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31958 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31959
31960 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31961
31962 [BZ #18822]
31963 * include/ifreq.h: New file.
31964 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31965 (__ifreq): Likewise.
31966 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31967 (__ifreq): Likewise.
31968
31969 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31970
31971 [BZ #18822]
31972 * include/idna.h: New file.
31973 * inet/getnameinfo.c: Include <idna.h> instead of
31974 <libidn/idna.h>.
31975 (__idna_to_unicode_lzlz): Removed.
31976 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31977 <libidn/idna.h>.
31978 (__idna_to_ascii_lz): Removed.
31979 (__idna_to_unicode_lzlz): Likewise.
31980
31981 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31982
31983 [BZ #18822]
31984 * include/plural-exp.h: New file.
31985 * intl/plural-exp.c: Include <plural-exp.h> instead of
31986 "plural-exp.h".
31987
31988 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31989
31990 [BZ #18822]
31991 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31992 "getsourcefilter.h".
31993 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31994 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31995 "getsourcefilter.h".
31996 (__get_sol): Removed.
31997
31998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31999
32000 [BZ #18822]
32001 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
32002 to ...
32003 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
32004
32005 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32006
32007 [BZ #18822]
32008 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
32009 attribute_hidden.
32010
32011 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32012
32013 [BZ #18822]
32014 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
32015
32016 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32017
32018 [BZ #18822]
32019 * include/search.h (__tdestroy): Add libc_hidden_proto.
32020 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
32021
32022 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32023
32024 [BZ #18822]
32025 * include/assert.h (__assert_fail_base): Add attribute_hidden.
32026
32027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32028
32029 [BZ #18822]
32030 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
32031 attribute_hidden.
32032
32033 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32034
32035 [BZ #18822]
32036 * include/signal.h (__kill): Add libc_hidden_proto.
32037 (__sigblock): Likewise.
32038 (__sigprocmask): Likewise.
32039 (__sigaltstack): Likewise.
32040 * signal/kill.c (__kill): Add libc_hidden_def.
32041 * signal/sigblock.c (__sigblock): Likewise.
32042 * signal/sigprocmask.c (__sigprocmask): Likewise.
32043 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
32044 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
32045 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32046 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32047 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32048 Likewise.
32049 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32050 Likewise.
32051 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32052 (__sigprocmask): Likewise.
32053 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32054 Likewise.
32055 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32056 (__sigprocmask): Likewise.
32057 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32058 Likewise.
32059
32060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32061
32062 [BZ #18822]
32063 * include/string.h (__strsep): Add libc_hidden_proto.
32064 * string/strsep.c (__strsep): Add libc_hidden_def.
32065
32066 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32067
32068 [BZ #18822]
32069 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32070 attribute_hidden.
32071 (__spawni): Likewise.
32072
32073 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32074
32075 [BZ #18822]
32076 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32077 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32078 libc_hidden_def.
32079
32080 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32081
32082 [BZ #18822]
32083 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32084
32085 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32086
32087 [BZ #18822]
32088 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32089 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32090 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32091 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32092 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32093 Likewise.
32094 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32095 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32096
32097 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32098
32099 [BZ #18822]
32100 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32101 (__dcigettext): Likewise.
32102
32103 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32104
32105 [BZ #18822]
32106 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32107 libc_hidden_proto.
32108 (__get_nprocs): Likewise.
32109 (__get_phys_pages): Likewise.
32110 (__get_avphys_pages): Likewise.
32111 (__get_child_max): Add attribute_hidden.
32112 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32113 (__get_nprocs): Likewise.
32114 (__get_phys_pages): Likewise.
32115 (__get_avphys_pages): Likewise.
32116 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32117 libc_hidden_def.
32118 (__get_nprocs): Likewise.
32119 (__get_phys_pages): Likewise.
32120 (__get_avphys_pages): Likewise.
32121 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32122 libc_hidden_def.
32123 (__get_nprocs_conf): Likewise.
32124 (__get_phys_pages): Likewise.
32125 (__get_avphys_pages): Likewise.
32126
32127 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32128
32129 [BZ #18822]
32130 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32131 attribute_hidden.
32132 (__netlink_close): Likewise.
32133 (__netlink_free_handle): Likewise.
32134 (__netlink_request): Likewise.
32135
32136 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32137
32138 [BZ #18822]
32139 * include/rpc/rpc.h (__rpc_thread_variables): Add
32140 attribute_hidden.
32141 (__rpc_thread_svc_cleanup): Likewise.
32142 (__rpc_thread_clnt_cleanup): Likewise.
32143 (__rpc_thread_key_cleanup): Likewise.
32144
32145 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32146
32147 [BZ #18822]
32148 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32149 (__writev): Likewise.
32150 * misc/readv.c (__readv): Add libc_hidden_def.
32151 * misc/writev.c (__writev): Likewise.
32152 * sysdeps/posix/readv.c (__readv): Likewise.
32153 * sysdeps/posix/writev.c (__writev): Likewise.
32154 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32155 (__readv): Likewise.
32156 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32157 (__writev): Likewise.
32158
32159 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32160
32161 [BZ #18822]
32162 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32163 (__regcomp): Add libc_hidden_proto.
32164 (__regexec): Likewise.
32165 (__regfree): Likewise.
32166 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32167 (__regfree): Likewise.
32168 * posix/regexec.c (__regexec): Likewise.
32169
32170 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32171
32172 [BZ #18822]
32173 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32174 (__getutent): Likewise.
32175 (__getutid): Likewise.
32176 (__getutline): Likewise.
32177 (__pututline): Likewise.
32178 (__getutent_r): Likewise.
32179 (__getutid_r): Likewise.
32180 (__getutline_r): Likewise.
32181 (__utmpname): Add attribute_hidden.
32182 (__setutent): Likewise.
32183 (__endutent): Likewise.
32184 * login/getutent.c (__getutent): Add libc_hidden_def.
32185 * login/getutent_r.c (__getutent_r): Likewise.
32186 (__pututline): Likewise.
32187 * login/getutid.c (__getutid): Likewise.
32188 * login/getutid_r.c (__getutid_r): Likewise.
32189 * login/getutline.c (__getutline): Likewise.
32190 * login/getutline_r.c (__getutline_r): Likewise.
32191 * login/updwtmp.c (__updwtmp): Likewise.
32192
32193 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32194
32195 [BZ #18822]
32196 * include/dirent.h (__opendir): Always add attribute_hidden.
32197 (__fdopendir): Likewise.
32198 (__closedir): Likewise.
32199 (__readdir): Likewise.
32200 (__readdir64): Add libc_hidden_proto.
32201 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32202 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32203 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32204 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32205 New alias.
32206
32207 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32208
32209 [BZ #18822]
32210 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32211 * include/netdb.h (__gethostbyaddr_r): Likewise.
32212 (__gethostbyname_r): Likewise.
32213 (__gethostbyname2_r): Likewise.
32214 (__getnetbyaddr_r): Likewise.
32215 (__getnetbyname_r): Likewise.
32216 (__getservbyname_r): Likewise.
32217 (__getservbyport_r): Likewise.
32218 (__getprotobyname_r): Likewise.
32219 (__getprotobynumber_r): Likewise.
32220 (__getnetgrent_r): Likewise.
32221 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32222 (__getrpcbynumber_r): Likewise.
32223 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32224
32225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32226
32227 [BZ #18822]
32228 * include/stdio.h (__fcloseall): Add attribute_hidden.
32229 (__getline): Likewise.
32230 (__path_search): Likewise.
32231 (__gen_tempname): Likewise.
32232 (__libc_message): Likewise.
32233 (__flockfile): Likewise.
32234 (__funlockfile): Likewise.
32235 (__fxprintf): Likewise.
32236 (__fxprintf_nocancel): Likewise.
32237
32238 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32239
32240 [BZ #18822]
32241 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32242 (__sgetsgent_r): Likewise.
32243
32244 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32245
32246 [BZ #18822]
32247 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32248 (__statfs64): Likewise.
32249 (__fstatfs64): Likewise.
32250 * include/sys/statvfs.h (__statvfs64): Likewise.
32251 (__fstatvfs64): Likewise.
32252 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32253 (__statfs_filesize_max): Likewise.
32254 (__statfs_symlinks): Likewise.
32255 (__statfs_chown_restricted): Likewise.
32256
32257 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32258
32259 [BZ #18822]
32260 * include/time.h (__tzstring): Add attribute_hidden.
32261 (__tzfile_read): Likewise.
32262 (__tzfile_compute): Likewise.
32263 (__tzfile_default): Likewise.
32264 (__tzset_parse_tz): Likewise.
32265 (__offtime): Likewise.
32266 (__asctime_r): Likewise.
32267 (__tzset): Likewise.
32268 (__tz_convert): Likewise.
32269 (__getdate_r): Likewise.
32270 (__getclktck): Likewise.
32271
32272 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32273
32274 [BZ #18822]
32275 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32276 (__nscd_unmap): Likewise.
32277 (__nscd_cache_search): Likewise.
32278 (__nscd_get_nl_timestamp): Likewise.
32279 (__nscd_getpwnam_r): Likewise.
32280 (__nscd_getpwuid_r): Likewise.
32281 (__nscd_getgrnam_r): Likewise.
32282 (__nscd_getgrgid_r): Likewise.
32283 (__nscd_gethostbyname_r): Likewise.
32284 (__nscd_gethostbyname2_r): Likewise.
32285 (__nscd_gethostbyaddr_r): Likewise.
32286 (__nscd_getai): Likewise.
32287 (__nscd_getgrouplist): Likewise.
32288 (__nscd_getservbyname_r): Likewise.
32289 (__nscd_getservbyport_r): Likewise.
32290 (__nscd_innetgr): Likewise.
32291 (__nscd_setnetgrent): Likewise.
32292
32293 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32294
32295 [BZ #18822]
32296 * include/gmp.h: Declare internal functions only if _ISOMAC is
32297 undefined.
32298 (__mpn_extract_double): Add attribute_hidden.
32299 (__mpn_extract_long_double): Likewise.
32300 (__mpn_extract_float128): Likewise.
32301 (__mpn_construct_float): Likewise.
32302 (__mpn_construct_double): Likewise.
32303 (__mpn_construct_long_double): Likewise.
32304 (__mpn_construct_float128): Likewise.
32305 (mpn_add_1): Likewise.
32306 (mpn_addmul_1): Likewise.
32307 (mpn_add_n): Likewise.
32308 (mpn_cmp): Likewise.
32309 (mpn_divrem): Likewise.
32310 (mpn_lshift): Likewise.
32311 (mpn_mul): Likewise.
32312 (mpn_mul_1): Likewise.
32313 (mpn_rshift): Likewise.
32314 (mpn_sub_1): Likewise.
32315 (mpn_submul_1): Likewise.
32316 (mpn_sub_n): Likewise.
32317
32318 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32319
32320 [BZ #18822]
32321 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32322 (__wcscat): Likewise.
32323 (__btowc): Likewise.
32324 (__wcrtomb): Likewise.
32325 (__mbsrtowcs): Likewise.
32326 (__wcsrtombs): Likewise.
32327 (__mbsnrtowcs): Likewise.
32328 (__wcsnrtombs): Likewise.
32329 (__wcsncpy): Likewise.
32330 (__wcpncpy): Likewise.
32331 (__wmemcpy): Likewise.
32332 (__wmempcpy): Likewise.
32333 (__wmemmove): Likewise.
32334 (__wcschrnul): Likewise.
32335 (__vfwscanf): Likewise.
32336 (__vswprintf): Likewise.
32337 (__fwprintf): Likewise.
32338 (__vfwprintf): Likewise.
32339
32340 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32341
32342 [BZ #18822]
32343 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32344 (__getgrgid_r): Likewise.
32345 (__getgrnam_r): Likewise.
32346 * include/pwd.h (__getpwuid_r): Likewise.
32347 (__getpwnam_r): Likewise.
32348 (__fgetpwent_r): Likewise.
32349 * include/shadow.h (__getspnam_r): Likewise.
32350 (__sgetspent_r): Likewise.
32351 (__fgetspent_r): Likewise.
32352
32353 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32354
32355 [BZ #18822]
32356 * include/unistd.h (__access): Add attribute_hidden.
32357 (__lseek64): Likewise.
32358 (__libc_pread64): Likewise.
32359 (__pipe2): Likewise.
32360 (__sleep): Likewise.
32361 (__chdir): Likewise.
32362 (__fchdir): Likewise.
32363 (__getcwd): Likewise.
32364 (__rmdir): Likewise.
32365 (__execvpe): Likewise.
32366 (__execve): Likewise.
32367 (__setsid): Likewise.
32368 (__getuid): Likewise.
32369 (__geteuid): Likewise.
32370 (__getgid): Likewise.
32371 (__getegid): Likewise.
32372 (__getgroups): Likewise.
32373 (__group_member): Likewise.
32374 (__ttyname_r): Likewise.
32375 (__isatty): Likewise.
32376 (__readlink): Likewise.
32377 (__unlink): Likewise.
32378 (__gethostname): Likewise.
32379 (__profil): Likewise.
32380 (__getdtablesize): Likewise.
32381 (__brk): Likewise.
32382 (__ftruncate): Likewise.
32383 (__ftruncate64): Likewise.
32384
32385 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32386
32387 [BZ #18822]
32388 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32389 * argp/argp-fs-xinl.c: Likewise.
32390 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32391 * argp/argp-parse.c: Include <argp.h>.
32392 * argp/argp-xinl.c: Likewise.
32393 * include/argp-fmtstream.h: New file.
32394 * include/argp.h (__argp_error): Add attribute_hidden.
32395 (__argp_failure): Likewise.
32396 (__argp_input): Likewise.
32397 (__argp_state_help): Likewise.
32398
32399 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32400
32401 [BZ #18822]
32402 * include/wchar.h (____wcstof_l_internal): New prototype.
32403 (____wcstod_l_internal): Likewise.
32404 (____wcstold_l_internal): Likewise.
32405 (____wcstol_l_internal): Likewise.
32406 (____wcstoul_l_internal): Likewise.
32407 (____wcstoll_l_internal): Likewise.
32408 (____wcstoull_l_internal): Likewise.
32409 (____wcstof128_l_internal): Likewise.
32410 * sysdeps/ieee754/float128/wcstof128.c
32411 (____wcstof128_l_internal): Removed.
32412 * sysdeps/ieee754/float128/wcstof128_l.c
32413 (____wcstof128_l_internal): Likewise.
32414 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32415 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32416 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32417 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32418 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32419 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32420 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32421 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32422 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32423 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32424
32425 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32426
32427 [BZ #18822]
32428 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32429 instead of <sys/statvfs.h>.
32430 (__internal_statvfs): Removed.
32431 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32432 instead of <sys/statvfs.h>.
32433 (__internal_statvfs64): Removed.
32434 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32435 "internal_statvfs.h" instead of <sys/statvfs.h>.
32436 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32437 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32438 instead of <sys/statvfs.h>.
32439 (__internal_statvfs): Removed.
32440 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32441 instead of <sys/statvfs.h>.
32442 (__internal_statvfs64): Removed.
32443
32444 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32445
32446 [BZ #18822]
32447 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32448 (__gconv_close): Likewise.
32449 (__gconv): Likewise.
32450 (__gconv_find_transform): Likewise.
32451 (__gconv_lookup_cache): Likewise.
32452 (__gconv_compare_alias_cache): Likewise.
32453 (__gconv_load_cache): Likewise.
32454 (__gconv_get_path): Likewise.
32455 (__gconv_close_transform): Likewise.
32456 (__gconv_release_cache): Likewise.
32457 (__gconv_find_shlib): Likewise.
32458 (__gconv_release_shlib): Likewise.
32459 (__gconv_get_builtin_trans): Likewise.
32460 (__gconv_compare_alias): Likewise.
32461 * include/dlfcn.h (_dlerror_run): Likewise.
32462 * include/stdio.h (__fortify_fail_abort): Likewise.
32463 * include/time.h (__tz_compute): Likewise.
32464 (__strptime_internal): Likewise.
32465 * intl/gettextP.h (_nl_find_domain): Likewise.
32466 (_nl_load_domain): Likewise.
32467 (_nl_find_msg): Likewise.
32468 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32469 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32470 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32471 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32472 (__gai_find_request): Likewise.
32473 (__gai_remove_request): Likewise.
32474 (__gai_notify): Likewise.
32475 (__gai_notify_only): Likewise.
32476 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32477 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32478 (_dl_non_dynamic_init): Likewise.
32479 (_dl_aux_init): Likewise.
32480 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32481 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32482 Likewise.
32483 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32484 (__wcsmbs_clone_conv): Likewise.
32485 (__wcsmbs_named_conv): Likewise.
32486
32487 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32488
32489 [BZ #18822]
32490 * include/stdlib.h (__random): Add attribute_hidden.
32491 (__random_r): Likewise.
32492 (__srandom_r): Likewise.
32493 (__initstate_r): Likewise.
32494 (__setstate_r): Likewise.
32495 (__erand48_r): Likewise.
32496 (__nrand48_r): Likewise.
32497 (__jrand48_r): Likewise.
32498 (__srand48_r): Likewise.
32499 (__seed48_r): Likewise.
32500 (__lcong48_r): Likewise.
32501 (__drand48_iterate): Likewise.
32502 (__setenv): Likewise.
32503 (__unsetenv): Likewise.
32504 (__clearenv): Likewise.
32505 (__ptsname_r): Likewise.
32506 (__posix_openpt): Likewise.
32507 (__add_to_environ): Likewise.
32508 (__realpath): Add libc_hidden_proto.
32509 (__ecvt_r): Likewise.
32510 (__fcvt_r): Likewise.
32511 (__qecvt_r): Likewise.
32512 (__qfcvt_r): Likewise.
32513 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32514 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32515
32516 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32517
32518 [BZ #18822]
32519 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32520 * include/time.h (__mktime_internal): Likewise.
32521 * libio/iolibio.h (__fopen_internal): Likewise.
32522
32523 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32524
32525 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32526 pointer in frame.
32527 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32528 Correct offset used to restore PIC register.
32529
32530 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32531
32532 [BZ libc/22165]
32533 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32534 code to load address of __getcontext_ret when generating PIC code.
32535
32536 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32537
32538 * elf/Makefile (tests-static-internal): Add
32539 tst-tls1-static-non-pie.
32540 (LDFLAGS-tst-tls1-static-non-pie): New.
32541 * elf/tst-tls1-static-non-pie.c: New file.
32542
32543 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32544
32545 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32546 (asinh): Define using libm_alias_double.
32547 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32548 (cbrt): Define using libm_alias_double.
32549 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32550 <libm-alias-double.h>.
32551 (copysign): Define using libm_alias_double.
32552 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32553 (erf): Define using libm_alias_double.
32554 (erfc): Likewise.
32555 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32556 (expm1): Define using libm_alias_double.
32557 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32558 (fabs): Define using libm_alias_double.
32559 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32560 libm_alias_double.
32561 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32562 <libm-alias-double.h>.
32563 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32564 libm_alias_double.
32565 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32566 <libm-alias-double.h>.
32567 (getpayload): Define using libm_alias_double.
32568 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32569 <libm-alias-double.h>.
32570 (llrint): Define using libm_alias_double.
32571 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32572 (lrint): Define using libm_alias_double.
32573 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32574 <libm-alias-double.h>.
32575 (nextup): Define using libm_alias_double.
32576 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32577 <libm-alias-double.h>.
32578 (roundeven): Define using libm_alias_double.
32579 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32580 libm_alias_double.
32581 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32582 <libm-alias-double.h>.
32583 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32584 using libm_alias_double.
32585 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32586 (cos): Define using libm_alias_double.
32587 (sin): Likewise.
32588 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32589 <libm-alias-double.h>.
32590 (sincos): Define using libm_alias_double.
32591 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32592 (tanh): Define using libm_alias_double.
32593 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32594 <libm-alias-double.h>.
32595 (totalorder): Define using libm_alias_double.
32596 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32597 <libm-alias-double.h>.
32598 (totalordermag): Define using libm_alias_double.
32599 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32600 libm_alias_double.
32601 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32602 libm_alias_double.
32603 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32604 <libm-alias-double.h>.
32605 (getpayload): Define using libm_alias_double.
32606 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32607 <libm-alias-double.h>.
32608 (roundeven): Define using libm_alias_double.
32609 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32610 <libm-alias-double.h>.
32611 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32612 <libm-alias-double.h>.
32613 (totalorder): Define using libm_alias_double.
32614 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32615 <libm-alias-double.h>.
32616 (totalordermag): Define using libm_alias_double.
32617 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32618 libc compat symbol here.
32619 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32620 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32621 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32622 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32623 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32624 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32625 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32626 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32627 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32628 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32629
32630 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32631
32632 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32633 _dl_relocate_static_pie instead of _dl_start to compute load
32634 address in static PIE. Return 0 if _DYNAMIC is undefined for
32635 static executable.
32636
32637 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32638
32639 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32640 _DYNAMIC is undefined for static executable.
32641
32642 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32643
32644 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32645
32646 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32647
32648 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32649
32650 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32651
32652 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32653 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32654 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32655 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32656 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32657 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32658 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32659 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32660 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32661 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32662 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32663 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32664 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32665 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32666 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32667 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32668 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32669
32670 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32671
32672 * math/bits/cmathcalls.h (cimag): Remove inline.
32673 (creal): Remove inline.
32674 (conj): Remove inline.
32675
32676 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32677
32678 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32679 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32680 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32681 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32682 (issignalingf_inline): Likewise.
32683 (POWF_LOG2_TABLE_BITS): Likewise.
32684 (POWF_LOG2_POLY_ORDER): Likewise.
32685 (POWF_SCALE_BITS): Likewise.
32686 (POWF_SCALE): Likewise.
32687 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32688 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32689 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32690
32691 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32692
32693 * math/Makefile (type-float-routines): Add e_log2f_data.
32694 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32695 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32696 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32697 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32698 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32699 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32700 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32701
32702 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32703
32704 * math/Makefile (type-float-routines): Add e_logf_data.
32705 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32706 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32707 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32708 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32709 * sysdeps/i386/fpu/e_logf_data.c: New file.
32710 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32711 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32712
32713 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32714
32715 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32716 undefined _DYNAMIC in PIE libc.a.
32717 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32718 Likewse.
32719
32720 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32721
32722 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32723 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32724 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32725 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32726 (__signbit): Remove.
32727 (__signbitl): Remove.
32728 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32729 (__signbit): Remove.
32730 (__signbitl): Remove.
32731 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32732 (__signbit): Remove.
32733 (__signbitl): Remove.
32734 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32735 (__signbit): Remove.
32736 (__signbitl): Remove.
32737 * sysdeps/tile/bits/mathinline.h: Delete file.
32738 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32739 (__signbit): Remove.
32740 (__signbitl): Remove.
32741
32742 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32743
32744 * math/math.h: Improve handling of C99 isgreater macros.
32745 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32746 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32747 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32748 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32749 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32750
32751 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32752
32753 * sysdeps/aarch64/libm-test-ulps: Update.
32754
32755 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32756
32757 [BZ #22225]
32758 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32759 math_opt_barrier on argument when doing arithmetic on it.
32760 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32761 Likewise. Use math_force_eval not math_opt_barrier after
32762 arithmetic.
32763 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32764 math_opt_barrier on argument when doing arithmetic on it.
32765 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32766 Likewise.
32767
32768 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32769
32770 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32771 libc_hidden_def.
32772 (__freeifaddrs): Likewise.
32773
32774 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32775
32776 * include/dirent.h (__dirfd): New declaration.
32777 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32778 alias.
32779 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32780 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32781 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32782 * include/unistd.h (__revoke): New declaration.
32783 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32784 alias.
32785 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32786 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32787 revoke.
32788 * include/dirent.h (__seekdir): New declaration.
32789 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32790 redefine as weak alias.
32791 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32792 of seekdir.
32793 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32794 and use libc_hidden_def on them.
32795 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32796 them.
32797 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32798 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32799 instead of getifaddrs and freeifaddrs.
32800
32801 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32802
32803 [BZ #18822]
32804 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32805 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32806 (__dso_handle): Remove declaration.
32807 * dlfcn/tstatexit.c (__dso_handle): Removed.
32808 (main): Don't check __dso_handle.
32809 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32810 (main): Don't check __dso_handle.
32811 * include/dso_handle.h: New file.
32812 * malloc/mtrace.c: Include <dso_handle.h>.
32813 (mtrace): Pass __dso_handle directly.
32814 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32815 (__dso_handle): Remove declaration.
32816 (__pthread_atfork): Pass __dso_handle directly.
32817 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32818 (__dso_handle): Removed.
32819 * posix/wordexp-test.c: Include <dso_handle.h>.
32820 (__dso_handle): Remove declaration.
32821 (__app_register_atfork): Pass __dso_handle directly.
32822 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32823 (__dso_handle): Remove declaration.
32824 (at_quick_exit): Pass __dso_handle directly.
32825 * stdlib/atexit.c: Include <dso_handle.h>.
32826 (__dso_handle): Remove declaration.
32827 (atexit): Pass __dso_handle directly.
32828 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32829 (__dso_handle): Removed.
32830
32831 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32832
32833 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32834 using VDSO.
32835
32836 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32837
32838 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32839 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32840 values to correct default value for given type.
32841
32842 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32843
32844 [BZ #22101]
32845 * elf/Makefile (tests): Add tst-debug1.
32846 ($(objpfx)tst-debug1): New.
32847 ($(objpfx)tst-debug1.out): Likewise.
32848 ($(objpfx)tst-debug1mod1.so): Likewise.
32849 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32850 with p_filesz == 0.
32851 * elf/tst-debug1.c: New file.
32852
32853 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32854
32855 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32856 Define using __ifunc.
32857
32858 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32859
32860 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32861 exp2f() values.
32862
32863 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32864
32865 [BZ #22156]
32866 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32867
32868 2017-09-26 Florian Weimer <fweimer@redhat.com>
32869
32870 * resolv/Makefile (tests-internal): Fix typo in comment.
32871
32872 2017-09-26 Florian Weimer <fweimer@redhat.com>
32873
32874 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32875
32876 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32877
32878 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32879 Use an union instead of a max_align_t array for __space,
32880 so that __space is the same size on all platforms.
32881 * malloc/scratch_buffer_grow_preserve.c
32882 (__libc_scratch_buffer_grow_preserve): Likewise.
32883
32884 [BZ #22183]
32885 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32886 version to 2.
32887 * posix/Makefile (routines): Add glob-lstat-compat and
32888 glob64-lstat-compat.
32889 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32890 * posix/glob-lstat-compat.c: New file.
32891 * posix/glob64-lstat-compat.c: Likewise.
32892 * posix/tst-glob_lstat_compat.c: Likewise.
32893 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32894 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32895 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32896 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32897 Likewise.
32898 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32899 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32900 * posix/glob.c (glob_lstat): New function.
32901 (glob): Rename to __glob and add versioned symbol to 2.27.
32902 (glob_in_dir): Use glob_lstat.
32903 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32904 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32905 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32906 2.27.
32907 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32908 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32909 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32910 gl_lstat on glob call.
32911 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32912 and glob64 symbols.
32913 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32914 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32915 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32916 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32917 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32918 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32919 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32920 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32921 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32922 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32923 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32924 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32926 Likewise.
32927 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32929 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32930 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32931 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32932 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32933 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32934 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32935 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32936 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32937 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32938 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32939
32940 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32941
32942 * configure.ac (AS): Require binutils 2.25 or later.
32943 * configure: Regenerated.
32944
32945 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32946
32947 [BZ #22207]
32948 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32949 VM size.
32950
32951 2017-09-25 DJ Delorie <dj@redhat.com>
32952
32953 [BZ #22161]
32954 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32955 resetting timeout.
32956
32957 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32958
32959 * sysdeps/ieee754/dbl-64/sincos32.h
32960 [SINCCOS32_H]: Remove define.
32961 [SINCOS32_H]: Define.
32962
32963 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32964
32965 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32966 (exp2f): Likewise.
32967 * math/w_exp2f.c: New file.
32968 * math/w_expf.c: New file.
32969 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32970 * math/w_expf_compat.c (__expf_compat): Likewise.
32971 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32972 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32973 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32974 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32975 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32976 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32977 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32978 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32979 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32980 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32981 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32982 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32983 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32984 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32986 Likewise.
32987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32988 Likewise.
32989 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32990 Likewise.
32991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32992 Likewise.
32993 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32994 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32995 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32996 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32997 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32998 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32999 Likewise.
33000 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
33001 Likewise.
33002 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
33003 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
33004 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
33005
33006 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33007
33008 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
33009 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
33010 (roundtoint, converttoint): Likewise.
33011 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
33012 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
33013 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
33014 * sysdeps/ieee754/flt-32/math_config.h: New file.
33015 * sysdeps/ieee754/flt-32/math_errf.c: New file.
33016 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
33017 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
33018 * sysdeps/i386/fpu/math_errf.c: New file.
33019 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
33020 * sysdeps/ia64/fpu/math_errf.c: New file.
33021 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
33022 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
33023
33024 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
33025
33026 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
33027 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
33028 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
33029 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
33030 to make sure that these symbols are defined.
33031 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
33032 of <limits.h>
33033 (__need_NULL): Do not define.
33034 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
33035 alignment.
33036 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
33037 CMGROUP_MAX, cmsgcred): Do not define.
33038 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
33039 NULL.
33040 * bits/socket.h: Likewise.
33041 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
33042 __gettimeofday instead of gettimeofday.
33043 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
33044 instead of settimeofday.
33045
33046 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33047
33048 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33049 (asinhf): Define using libm_alias_float.
33050 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33051 (atanf): Define using libm_alias_float.
33052 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33053 (cbrtf): Define using libm_alias_float.
33054 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33055 (ceilf): Define using libm_alias_float.
33056 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33057 <libm-alias-float.h>.
33058 (copysignf): Define using libm_alias_float.
33059 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33060 (cosf): Define using libm_alias_float.
33061 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33062 (erff): Define using libm_alias_float.
33063 (erfcf): Likewise.
33064 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33065 (expm1f): Define using libm_alias_float.
33066 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33067 (fabsf): Define using libm_alias_float.
33068 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33069 (floorf): Define using libm_alias_float.
33070 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33071 (frexpf): Define using libm_alias_float.
33072 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33073 libm_alias_float.
33074 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33075 <libm-alias-float.h>.
33076 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33077 libm_alias_float.
33078 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33079 <libm-alias-float.h>.
33080 (getpayloadf): Define using libm_alias_float.
33081 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33082 <libm-alias-float.h>.
33083 (llrintf): Define using libm_alias_float.
33084 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33085 <libm-alias-float.h>.
33086 (llroundf): Define using libm_alias_float.
33087 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33088 (logbf): Define using libm_alias_float.
33089 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33090 (lrintf): Define using libm_alias_float.
33091 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33092 (lroundf): Define using libm_alias_float.
33093 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33094 (modff): Define using libm_alias_float.
33095 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33096 <libm-alias-float.h>.
33097 (nearbyintf): Define using libm_alias_float.
33098 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33099 <libm-alias-float.h>.
33100 (nextafterf): Define using libm_alias_float.
33101 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33102 <libm-alias-float.h>.
33103 (nextupf): Define using libm_alias_float.
33104 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33105 <libm-alias-float.h>.
33106 (remquof): Define using libm_alias_float.
33107 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33108 (rintf): Define using libm_alias_float.
33109 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33110 <libm-alias-float.h>.
33111 (roundevenf): Define using libm_alias_float.
33112 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33113 (roundf): Define using libm_alias_float.
33114 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33115 using libm_alias_float.
33116 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33117 <libm-alias-float.h>.
33118 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33119 Define using libm_alias_float.
33120 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33121 <libm-alias-float.h>.
33122 (sincosf): Define using libm_alias_float.
33123 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33124 (sinf): Define using libm_alias_float.
33125 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33126 (tanf): Define using libm_alias_float.
33127 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33128 (tanhf): Define using libm_alias_float.
33129 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33130 <libm-alias-float.h>.
33131 (totalorderf): Define using libm_alias_float.
33132 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33133 <libm-alias-float.h>.
33134 (totalordermagf): Define using libm_alias_float.
33135 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33136 (truncf): Define using libm_alias_float.
33137 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33138 libm_alias_float.
33139 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33140 libm_alias_float.
33141
33142 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33143
33144 [BZ #22146]
33145 math/math.h: Let fpclassify use the builtin in C++ mode, even
33146 when optimazing for size.
33147
33148 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33149
33150 * csu/Makefile (generated): Do not add version-info.h.
33151 (before-compile): Likewise.
33152 (all-Banner-files): Remove variable.
33153 ($(objpfx)version-info.h): Remove rule.
33154 * csu/version.c (banner): Do not include "version-info.h".
33155 * libidn/Banner: Remove.
33156 * manual/contrib.texi (Simon Josefsson): New entry.
33157
33158 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33159
33160 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33161 Remove conditionals on LDBL_MANT_DIG.
33162 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33163 (__ieee754_lgammal_r): Likewise.
33164
33165 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33166
33167 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33168 _Float128 and L().
33169 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33170 _Float128 and L(). Replace _Float128 with long double and L(x)
33171 with xL, throughout the file.
33172 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33173 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33174 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33175 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33176
33177 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33178
33179 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33180 sysdeps/ieee754/ldbl-128ibm.
33181 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33182 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33183 of including it. Keep _Float128 and L() intact. These will be
33184 reviewed by a separate patch.
33185 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33186 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33187 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33188 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33189
33190 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33191
33192 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33193 (__finitef128): Define to __redirect___finitef128.
33194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33195 (__isinff128): Define to __redirect___isinff128.
33196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33197 (__isnanf128): Define to __redirect___isnanf128.
33198
33199 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33200
33201 * sysdeps/powerpc/powerpc64le/Makefile
33202 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33203 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33204
33205 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33206 Carlos O'Donell <carlos@redhat.com>
33207
33208 [BZ #22180]
33209 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33210 * stdlib/test-dlclose-exit-race.c: New file.
33211 * stdlib/test-dlclose-exit-race-helper.c: New file.
33212 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33213
33214 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33215
33216 * crypt/Banner: Remove file.
33217 * nptl/Banner: Likewise.
33218 * resolv/Banner: Likewise.
33219 * soft-fp/Banner: Likewise.
33220 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33221 ($(objpfx)version.d): Remove dependency on banner.h.
33222 ($(objpfx)version.os): Likewise.
33223 * nptl/version.c (banner): Do not include banner.h.
33224 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33225 Jelinek and BIND code.
33226
33227 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33228 Carlos O'Donell <carlos@redhat.com>
33229
33230 * support/xdlfcn.h: New file.
33231 * support/xdlfcn.c: New file.
33232 * support/Makefile (libsupport-routines): Add xdlfcn.
33233 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33234
33235 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33236
33237 [BZ #20142]
33238 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33239 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33240 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33241 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33242 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33243 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33244 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33245 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33246
33247 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33248 Ricky Zhou <rickyz@google.com>
33249 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33250
33251 [BZ #14333]
33252 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33253 Remove atomics.
33254 (__new_exitfn): Fail registration when we finished at_exit processing.
33255 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33256 * stdlib/on_exit.c (__on_exit): Likewise.
33257 * stdlib/exit.c (__exit_funcs_done): New variable.
33258 (__run_exit_handlers): Use __exit_funcs_lock.
33259 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33260 declarations.
33261 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33262 (test-cxa_atexit-race, test-on_exit-race): New tests.
33263 * stdlib/test-atexit-race-common.c: New file.
33264 * stdlib/test-atexit-race.c: New file.
33265 * stdlib/test-at_quick_exit-race.c: New file.
33266 * stdlib/test-cxa_atexit-race.c: New file.
33267 * stdlib/test-on_exit-race.c: New file.
33268
33269 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33270
33271 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33272 * benchtests/exp2f-inputs: Copy of expf-inputs.
33273 * benchtests/log2f-inputs: Copy of logf-inputs.
33274
33275 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33276
33277 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33278 Explicitly take address of first element of array arguments in
33279 call to INLINE_SYSCALL.
33280
33281 2017-09-19 Andreas Schwab <schwab@suse.de>
33282
33283 [BZ #22134]
33284 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33285 execveat first.
33286 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33287 unimplemented.
33288 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33289 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33290 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33291 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33292 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33293 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33294 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33295 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33296 * posix/Makefile (tests): Add tst-fexecve.
33297 * posix/tst-fexecve.c: New file.
33298
33299 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33300
33301 * benchtests/Makefile: Add logf benchmark.
33302 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33303
33304 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33305
33306 * benchtests/Makefile: Add expf benchmark.
33307 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33308
33309 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33310
33311 * csu/Makefile: Add -funwind-tables to libc-start.c.
33312 * debug/Makefile: Add -funwind-tables to backtrace.c.
33313 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33314 * sysdeps/arm/Makefile: Likewise.
33315 * sysdeps/i386/Makefile: Likewise.
33316 * sysdeps/m68k/Makefile: Likewise.
33317 * sysdeps/mips/Makefile: Likewise.
33318 * sysdeps/nios2/Makefile: Likewise.
33319 * sysdeps/sh/Makefile: Likewise.
33320 * sysdeps/sparc/Makefile: Likewise.
33321
33322 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33323
33324 * benchtests/Makefile (bench-math): Add trunc and truncf.
33325 (CFLAGS-bench-trunc.c): New variable.
33326 (CFLAGS-bench-truncf.c): Likewise.
33327 * benchtests/trunc-inputs: New file.
33328 * benchtests/truncf-inputs: Likewise.
33329
33330 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33331
33332 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33333
33334 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33335
33336 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33337 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33338 redefine.
33339 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33340 (exp10l): Define as weak alias.
33341 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33342 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33343 and redefine.
33344 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33345 (remainderl): Define as weak alias.
33346
33347 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33348 (fmal): Define using libm_alias_ldouble.
33349 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33350 (acoshl): Define using libm_alias_ldouble.
33351 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33352 (acosl): Define using libm_alias_ldouble.
33353 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33354 (asinl): Define using libm_alias_ldouble.
33355 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33356 (atan2l): Define using libm_alias_ldouble.
33357 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33358 (atanhl): Define using libm_alias_ldouble.
33359 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33360 (coshl): Define using libm_alias_ldouble.
33361 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33362 (exp10l): Define using libm_alias_ldouble.
33363 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33364 (exp2l): Define using libm_alias_ldouble.
33365 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33366 (expl): Define using libm_alias_ldouble.
33367 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33368 (fmodl): Define using libm_alias_ldouble.
33369 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33370 (hypotl): Define using libm_alias_ldouble.
33371 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33372 (j0l): Define using libm_alias_ldouble.
33373 (y0l): Likewise.
33374 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33375 (j1l): Define using libm_alias_ldouble.
33376 (y1l): Likewise.
33377 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33378 (jnl): Define using libm_alias_ldouble.
33379 (ynl): Likewise.
33380 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33381 (log10l): Define using libm_alias_ldouble.
33382 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33383 (log2l): Define using libm_alias_ldouble.
33384 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33385 (logl): Define using libm_alias_ldouble.
33386 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33387 (powl): Define using libm_alias_ldouble.
33388 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33389 (remainderl): Define using libm_alias_ldouble.
33390 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33391 (sinhl): Define using libm_alias_ldouble.
33392 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33393 (sqrtl): Define using libm_alias_ldouble.
33394 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33395 (tgammal): Define using libm_alias_ldouble.
33396 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33397 (exp10l): Do not use long_double_symbol here.
33398 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33399 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33400 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33401 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33402 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33403 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33404 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33405 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33406 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33407 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33408 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33409 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33410 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33411 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33412 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33413 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33414 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33415 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33416 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33417 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33418 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33419 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33420
33421 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33422
33423 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33424 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33425
33426 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33427
33428 * io/read.c (read): Add libc_hidden_weak.
33429 * sysdeps/mach/hurd/read.c (read): Likewise.
33430 * io/write.c (write): Likewise.
33431 * sysdeps/mach/hurd/write.c (write): Likewise.
33432 * io/pread64.c (__pread64): Likewise.
33433 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33434 * posix/pread64.c (__pread64): Add libc_hidden_def.
33435
33436 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33437
33438 * benchtests/scripts/compare_strings.py: New option -g.
33439 (draw_graph): Print a message that a graph is being generated.
33440 (process_results): Generate graph only if -g is passed.
33441 (main): Process option -g.
33442
33443 * benchtests/scripts/compare_strings.py (process_results):
33444 Better spacing for output.
33445
33446 * benchtests/scripts/compare_strings.py: Use argparse.
33447 * benchtests/README: Document existence of compare_strings.py.
33448
33449 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33450
33451 * math/s_fma.c: Include <libm-alias-double.h>.
33452 (fma): Define using libm_alias_double.
33453 * math/s_nextafter.c: Include <libm-alias-double.h>.
33454 (nextafter): Define using libm_alias_double.
33455 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33456 (acos): Define using libm_alias_double.
33457 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33458 (aocsh): Define using libm_alias_double.
33459 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33460 (asin): Define using libm_alias_double.
33461 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33462 (atan2): Define using libm_alias_double.
33463 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33464 (atanh): Define using libm_alias_double.
33465 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33466 (cosh): Define using libm_alias_double.
33467 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33468 (exp10): Define using libm_alias_double.
33469 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33470 (exp2): Define using libm_alias_double.
33471 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33472 (exp): Define using libm_alias_double.
33473 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33474 (fmod): Define using libm_alias_double.
33475 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33476 (hypot): Define using libm_alias_double.
33477 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33478 (j0): Define using libm_alias_double.
33479 (y0): Likewise.
33480 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33481 (j1): Define using libm_alias_double.
33482 (y1): Likewise.
33483 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33484 (jn): Define using libm_alias_double.
33485 (yn): Likewise.
33486 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33487 (log10): Define using libm_alias_double.
33488 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33489 (log2): Define using libm_alias_double.
33490 * math/w_log_compat.c: Include <libm-alias-double.h>.
33491 (log): Define using libm_alias_double.
33492 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33493 (pow): Define using libm_alias_double.
33494 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33495 (remainder): Define using libm_alias_double.
33496 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33497 (sinh): Define using libm_alias_double.
33498 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33499 (sqrt): Define using libm_alias_double.
33500 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33501 (tgamma): Define using libm_alias_double.
33502 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33503 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33504 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33505 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33506 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33507 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33508 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33509 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33510 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33511 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33512 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33513 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33514 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33515 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33516 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33517 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33518 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33519 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33520 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33521 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33522 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33523 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33524 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33525 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33526 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33527
33528 * math/e_acoshl.c: Remove.
33529 * math/e_acosl.c: Likewise.
33530 * math/e_asinl.c: Likewise.
33531 * math/e_atan2l.c: Likewise.
33532 * math/e_atanhl.c: Likewise.
33533 * math/e_coshl.c: Likewise.
33534 * math/e_expl.c: Likewise.
33535 * math/e_fmodl.c: Likewise.
33536 * math/e_gammal_r.c: Likewise.
33537 * math/e_hypotl.c: Likewise.
33538 * math/e_j0l.c: Likewise.
33539 * math/e_j1l.c: Likewise.
33540 * math/e_jnl.c: Likewise.
33541 * math/e_lgammal_r.c: Likewise.
33542 * math/e_log10l.c: Likewise.
33543 * math/e_log2l.c: Likewise.
33544 * math/e_logl.c: Likewise.
33545 * math/e_powl.c: Likewise.
33546 * math/e_rem_pio2l.c: Likewise.
33547 * math/e_sinhl.c: Likewise.
33548 * math/e_sqrtf128.c: Likewise.
33549 * math/e_sqrtl.c: Likewise.
33550 * math/k_cosl.c: Likewise.
33551 * math/k_sinl.c: Likewise.
33552 * math/k_tanl.c: Likewise.
33553 * math/s_asinhl.c: Likewise.
33554 * math/s_atanl.c: Likewise.
33555 * math/s_cbrtl.c: Likewise.
33556 * math/s_erfl.c: Likewise.
33557 * math/s_expm1l.c: Likewise.
33558 * math/s_log1pl.c: Likewise.
33559 * math/s_tanhl.c: Likewise.
33560
33561 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33562
33563 [BZ #21745]
33564 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33565 [$(subdir) = math] (sysdep_calls): New variable. Has the
33566 previous contents of sysdep_routines, but re-sorted..
33567 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33568 sysdep_calls.
33569 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33570 defined in sysdep_calls and replace by the respective m_* names.
33571 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33572 (compat_symbol): Undefine to avoid duplicated compat symbols in
33573 libc.
33574
33575 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33576
33577 * math/s_fmaf.c: Include <libm-alias-float.h>.
33578 (fmaf): Define using libm_alias_float.
33579 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33580 (acosf): Define using libm_alias_float.
33581 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33582 (acoshf): Define using libm_alias_float.
33583 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33584 (asinf): Define using libm_alias_float.
33585 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33586 (atan2f): Define using libm_alias_float.
33587 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33588 (atanhf): Define using libm_alias_float.
33589 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33590 (coshf): Define using libm_alias_float.
33591 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33592 (exp10f): Define using libm_alias_float.
33593 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33594 (fmodf): Define using libm_alias_float.
33595 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33596 (hypotf): Define using libm_alias_float.
33597 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33598 (j0f): Define using libm_alias_float.
33599 (y0f): Likewise.
33600 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33601 (j1f): Define using libm_alias_float.
33602 (y1f): Likewise.
33603 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33604 (jnf): Define using libm_alias_float.
33605 (ynf): Likewise.
33606 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33607 (log10f): Define using libm_alias_float.
33608 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33609 (log2f): Define using libm_alias_float.
33610 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33611 (logf): Define using libm_alias_float.
33612 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33613 (powf): Define using libm_alias_float.
33614 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33615 (remainderf): Define using libm_alias_float.
33616 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33617 (sinhf): Define using libm_alias_float.
33618 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33619 (sqrtf): Define using libm_alias_float.
33620 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33621 (tgammaf): Define using libm_alias_float.
33622
33623 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33624
33625 * include/math.h (roundeven): Change hidden_proto call to
33626 __roundeven.
33627 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33628 alias.
33629 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33630 (y0): Rename to __y0 and define as weak alias.
33631 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33632 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33633 alias.
33634 (y0f): Rename to __y0f and define as weak alias.
33635 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33636 alias.
33637 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33638 (y1): Rename to __y1 and define as weak alias.
33639 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33640 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33641 alias.
33642 (y1f): Rename to __y1f and define as weak alias.
33643 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33644 alias.
33645 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33646 (yn): Rename to __yn and define as weak alias.
33647 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33648 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33649 alias.
33650 (ynf): Rename to __ynf and define as weak alias.
33651 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33652 (fromfp): Define as weak alias.
33653 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33654 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33655 (fromfpx): Define as weak alias.
33656 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33657 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33658 __getpayload and define as weak alias.
33659 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33660 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33661 __roundeven and define as weak alias.
33662 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33663 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33664 __setpayload.
33665 (setpayload): Define as weak alias.
33666 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33667 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33668 __setpayloadsig.
33669 (setpayloadsig): Define as weak alias.
33670 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33671 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33672 __totalorder and define as weak alias.
33673 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33674 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33675 to __totalordermag and define as weak alias.
33676 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33677 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33678 (ufromfp): Define as weak alias.
33679 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33680 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33681 __ufromfpx.
33682 (ufromfpx): Define as weak alias.
33683 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33684 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33685 Rename to __getpayload and define as weak alias.
33686 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33687 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33688 Rename to __roundeven and define as weak alias.
33689 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33690 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33691 Rename to __totalorder and define as weak alias.
33692 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33693 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33694 (totalordermag): Rename to __totalordermag and define as weak
33695 alias.
33696 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33697 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33698 macro.
33699 (__roundevenl): Likewise.
33700 (__totalorderl): Likewise.
33701 (__totalordermagl): Likewise
33702 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33703 __fromfpf128.
33704 (fromfpf128): Define as weak alias.
33705 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33706 __fromfpxf128.
33707 (fromfpxf128): Define as weak alias.
33708 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33709 __setpayloadf128.
33710 (setpayloadf128): Define as weak alias.
33711 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33712 __setpayloadsigf128.
33713 (setpayloadsigf128): Define as weak alias.
33714 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33715 __ufromfpf128.
33716 (ufromfpf128): Define as weak alias.
33717 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33718 __ufromfpxf128.
33719 (ufromfpxf128): Define as weak alias.
33720 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33721 (fromfpf): Define as weak alias.
33722 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33723 __fromfpxf.
33724 (fromfpxf): Define as weak alias.
33725 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33726 __getpayloadf and define as weak alias.
33727 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33728 __roundevenf and define as weak alias.
33729 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33730 __setpayloadf.
33731 (setpayloadf): Define as weak alias.
33732 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33733 __setpayloadsigf.
33734 (setpayloadsigf): Define as weak alias.
33735 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33736 __totalorderf and define as weak alias.
33737 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33738 Rename to __totalordermagf and define as weak alias.
33739 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33740 __ufromfpf.
33741 (ufromfpf): Define as weak alias.
33742 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33743 __ufromfpxf.
33744 (ufromfpxf): Define as weak alias.
33745 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33746 __fromfpl.
33747 (fromfpl): Define as weak alias.
33748 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33749 __fromfpxl.
33750 (fromfpxl): Define as weak alias.
33751 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33752 to __getpayloadl and define as weak alias.
33753 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33754 __roundevenl and define as weak alias.
33755 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33756 __setpayloadl.
33757 (setpayloadl): Define as weak alias.
33758 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33759 __setpayloadsigl.
33760 (setpayloadsigl): Define as weak alias.
33761 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33762 to __totalorderl and define as weak alias.
33763 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33764 Rename to __totalordermagl and define as weak alias.
33765 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33766 __ufromfpl.
33767 (ufromfpl): Define as weak alias.
33768 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33769 __ufromfpxl.
33770 (ufromfpxl): Define as weak alias.
33771 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33772 __fromfpl.
33773 (fromfpl): Define as weak alias.
33774 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33775 __fromfpxl.
33776 (fromfpxl): Define as weak alias.
33777 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33778 Rename to __getpayloadl and define as weak alias.
33779 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33780 to __roundevenl and define as weak alias. Call __roundeven
33781 instead of roundeven.
33782 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33783 __setpayloadl.
33784 (setpayloadl): Define as weak alias.
33785 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33786 __setpayloadsigl.
33787 (setpayloadsigl): Define as weak alias.
33788 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33789 Rename to __totalorderl and define as weak alias.
33790 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33791 Rename to __totalordermagl and define as weak alias.
33792 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33793 __ufromfpl.
33794 (ufromfpl): Define as weak alias.
33795 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33796 __ufromfpxl.
33797 (ufromfpxl): Define as weak alias.
33798 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33799 __fromfpl.
33800 (fromfpl): Define as weak alias.
33801 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33802 __fromfpxl.
33803 (fromfpxl): Define as weak alias.
33804 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33805 __getpayloadl and define as weak alias.
33806 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33807 __roundevenl and define as weak alias.
33808 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33809 __setpayloadl.
33810 (setpayloadl): Define as weak alias.
33811 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33812 __setpayloadsigl.
33813 (setpayloadsigl): Define as weak alias.
33814 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33815 __totalorderl and define as weak alias.
33816 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33817 Rename to __totalordermagl and define as weak alias.
33818 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33819 __ufromfpl.
33820 (ufromfpl): Define as weak alias.
33821 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33822 __ufromfpxl.
33823 (ufromfpxl): Define as weak alias.
33824
33825 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33826
33827 * benchtests/bench-string.h (realloc_bufs): New function.
33828 (test_init): Call it.
33829 * benchtests/bench-memset-large.c (do_test): Likewise.
33830 * benchtests/bench-memset.c (do_test): Likewise.
33831
33832 * benchtests/bench-memset-large.c: Print output in JSON
33833 format.
33834 * benchtests/bench-memset.c: Likewise.
33835
33836 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33837
33838 [BZ #21084]
33839 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33840 * iconvdata/Makefile: Add IBM858.
33841 * iconvdata/gconv-modules: Likewise.
33842 * iconvdata/tst-tables.sh: Likewise.
33843 * iconvdata/ibm858.c: New file.
33844 * localedata/charmaps/IBM858: Likewise.
33845
33846 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33847
33848 [BZ #22023]
33849 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33850 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33851
33852 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33853
33854 [BZ #22112]
33855 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33856 and add tel_int_fmt.
33857
33858 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33859
33860 * sysdeps/generic/libm-alias-float128.h: New file.
33861 * sysdeps/generic/math-type-macros-float128.h: Include
33862 <libm-alias-float128.h>.
33863 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33864
33865 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33866
33867 * sysdeps/generic/libm-alias-ldouble.h: New file.
33868 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33869 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33870 * sysdeps/generic/math-type-macros-ldouble.h: Include
33871 <libm-alias-ldouble.h>.
33872 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33873 libm_alias_ldouble.
33874
33875 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33876
33877 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33878 * math/w_exp_compat.c: ... here.
33879 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33880 * math/w_expf_compat.c: ... here.
33881 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33882 * math/w_expl_compat.c: ... here.
33883 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33884 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33885 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33886 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33887
33888 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33889
33890 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33891 redefine.
33892 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33893 macro.
33894 (ldexpl): Only define as compat symbol for libc, not libm.
33895 (scalbnl): Define as compat symbol for libc here.
33896 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33897 define for [IS_IN (libc)].
33898 (__ldexpl_2): Remove alias.
33899 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33900 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33901 name in long_double_symbol call.
33902 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33903 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33904 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33905 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33906 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33907 Remove macro.
33908 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33909 Define as compat symbol.
33910
33911 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33912
33913 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33914 * sysdeps/unix/sysv/linux/alpha/Makefile
33915 [$(subdir) = csu] (sysdep_routines): Remove rule.
33916
33917 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33918
33919 * sysdeps/generic/libm-alias-double.h: New file.
33920 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33921 * sysdeps/generic/math-type-macros-double.h: Include
33922 <libm-alias-double.h>.
33923 [declare_mgen_alias] (declare_mgen_alias): Define to use
33924 libm_alias_double.
33925 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33926 (M_LIBM_NEED_COMPAT): Remove macro.
33927 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33928 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33929 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33930 code.
33931 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33932 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33933 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33934 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33935 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33936 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33937 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33938 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33939 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33940 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33941 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33942 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33943 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33944 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33945 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33946 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33947 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33948 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33949 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33950 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33951 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33952 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33953 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33954 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33955 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33956 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33957 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33958 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33959 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33960 macro.
33961 (declare_mgen_alias): New macro.
33962 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33963 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33964 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33965 (M_LIBM_NEED_COMPAT): Remove macro.
33966 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33967 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33968 <first-versions.h>.
33969 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33970 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33971
33972 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33973
33974 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33975 (declare_mgen_alias_2): Remove.
33976 * sysdeps/generic/math-type-macros-double.h
33977 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33978 Likewise.
33979 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33980 alias.
33981 (ldexp): Define with declare_mgen_alias.
33982 (scalbn): Likewise.
33983
33984 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33985
33986 * grp/initgroups.c: Include config.h.
33987 (DEFAULT_CONFIG): New macro.
33988 (internal_getgrouplist): Use DEFAULT_CONFIG.
33989 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33990 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33991 (DEFAULT_DEFCONFIG): New macro.
33992 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33993 * nss/grp-lookup.c: Include config.h
33994 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33995 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33996 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33997 * manual/nss.texi: Update default values section.
33998
33999 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
34000
34001 [BZ #21967]
34002 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
34003 New.
34004 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
34005 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34006 Handle MathVec_Prefer_No_AVX512.
34007 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
34008 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
34009 is set.
34010
34011 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
34012
34013 * posix/sched_primax.c (__sched_get_priority_max): Add
34014 libc_hidden_def.
34015 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
34016 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34017 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34018 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
34019 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
34020 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
34021 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
34022 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
34023 Add aliases.
34024
34025 2017-09-11 Joseph Myers <joseph@codesourcery.com>
34026
34027 * sysdeps/generic/libm-alias-float.h: New file.
34028 * sysdeps/generic/math-type-macros-float.h: Include
34029 <libm-alias-float.h>.
34030 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34031
34032 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
34033
34034 [BZ #22093]
34035 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
34036 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
34037 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
34038 (HWCAP_IMPORTANT): Likewise.
34039 (HWCAP_X86_64): New enum.
34040 (HWCAP_X86_AVX512_1): Updated.
34041 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
34042 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
34043 (modules-names): Add x86_64/tst-x86_64mod-1.
34044 (LDFLAGS-tst-x86_64mod-1.so): New.
34045 ($(objpfx)tst-x86_64-1): Likewise.
34046 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34047 (tst-x86_64-1-clean): Likewise.
34048 * sysdeps/x86_64/tst-x86_64-1.c: New file.
34049 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34050
34051 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34052
34053 * po/sv.po: Update translations.
34054 * po/fr.po: Likewise.
34055
34056 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34057
34058 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34059 seconds.
34060 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34061 seconds.
34062 * elf/rtld-Rules: Fix $(error) use.
34063
34064 2017-09-09 Mike FABIAN <mfabian@redhat.com>
34065
34066 [BZ #14925]
34067 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34068 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34069 * localedata/locales/bn_BD: “Bengali” was still used in some
34070 comments. Change it to “Bangla”.
34071
34072 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34073
34074 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34075
34076 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34077
34078 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34079 thunderx2t99p1 to list of cpu names.
34080 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34081 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34082
34083 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34084
34085 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34086 Use strcmp instead of tunable_is_name.
34087
34088 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34089
34090 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34091 (F_GET_RW_HINT): New macro.
34092 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34093 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34094 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34095 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34096 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34097 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34098 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34099 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34100 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34101
34102 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34103 (F_ADD_SEALS): New macro.
34104 [__USE_GNU] (F_GET_SEALS): Likewise.
34105 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34106 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34107 [__USE_GNU] (F_SEAL_GROW): Likewise.
34108 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34109
34110 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34111
34112 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34113 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34114 * posix/glob_internal.h (__glob_pattern_type):
34115 * posix/glob.c (glob):
34116 * posix/glob_pattern_p.c (__glob_pattern_p):
34117 Use them.
34118
34119 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34120 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34121 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34122 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34123 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34125 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34126 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34127 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34128 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34129 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34130 * sysdeps/wordsize-64/glob.c: Likewise.
34131 * sysdeps/wordsize-64/glob64.c: Likewise.
34132 * sysdeps/wordsize-64/globfree.c: Likewise.
34133 * sysdeps/wordsize-64/globfree64.c: Likewise.
34134 * sysdeps/unix/sysv/linux/glob.c: New file.
34135 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34136 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34137 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34138 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34139 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34140 adds !GLOB_NO_OLD_VERSION as an extra condition.
34141 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34142 using relative path instead of absolute one.
34143 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34144 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34145 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34146 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34147 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34148 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34149
34150 [BZ #1062]
34151 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34152 (glob): Use the same scratch buffer for both getlogin_r and
34153 getpwnam_r. Don’t require preallocation of the login name. This
34154 simplifies storage allocation, and corrects the handling of
34155 long login names.
34156
34157 [BZ #1062]
34158 * posix/glob.c (glob): Port recent patches to platforms
34159 lacking getpwnam_r.
34160 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34161 returns an error number rather than setting errno.
34162
34163 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34164 instead of GCC extension.
34165 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34166 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34167 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34168
34169 [BZ #866]
34170 [BZ #1062]
34171 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34172 * posix/bug-glob1.c: Remove file.
34173 * posix/tst-glob_symlinks.c: New file.
34174 * posix/glob.c (__lstat64): New macro.
34175 (is_dir): New function.
34176 (glob, glob_in_dir): Match symlinks even if they are dangling.
34177 (link_stat, link_exists_p): Remove. All uses removed.
34178
34179 [BZ #1062]
34180 [BZ #19971]
34181 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34182 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34183 All uses removed.
34184
34185 [BZ #1062]
34186 CVE-2017-15671
34187 * posix/Makefile (routines): Add globfree, globfree64, and
34188 glob_pattern_p.
34189 * posix/flexmember.h: New file.
34190 * posix/glob_internal.h: Likewise.
34191 * posix/glob_pattern_p.c: Likewise.
34192 * posix/globfree.c: Likewise.
34193 * posix/globfree64.c: Likewise.
34194 * sysdeps/gnu/globfree64.c: Likewise.
34195 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34196 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34197 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34198 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34199 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34200 * sysdeps/wordsize-64/globfree.c: Likewise.
34201 * sysdeps/wordsize-64/globfree64.c: Likewise.
34202 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34203 [NDEBUG): Remove comments.
34204 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34205 (dirent_type): New type. Use uint_fast8_t not
34206 uint8_t, as C99 does not require uint8_t.
34207 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34208 (struct readdir_result): Use dirent_type. Do not define skip_entry
34209 unless it is needed; this saves a byte on platforms lacking d_ino.
34210 (readdir_result_type, readdir_result_skip_entry):
34211 New functions, replacing ...
34212 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34213 these functions, which were removed. This makes the callers
34214 easier to read. All callers changed.
34215 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34216 (size_add_wrapv, glob_use_alloca): New static functions.
34217 (glob, glob_in_dir): Check for size_t overflow in several places,
34218 and fix some size_t checks that were not quite right.
34219 Remove old code using SHELL since Bash no longer
34220 uses this.
34221 (glob, prefix_array): Separate MS code better.
34222 (glob_in_dir): Remove old Amiga and VMS code.
34223 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34224 separate files.
34225 (glob_in_dir): Do not rely on undefined behavior in accessing
34226 struct members beyond their bounds. Use a flexible array member
34227 instead
34228 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34229 0/1. Caller changed.
34230 (glob): Fix memory leaks.
34231 * posix/glob64 (globfree64): Move to separate file.
34232 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34233 (globfree64): Remove hidden alias.
34234 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34235 oldglob.
34236 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34237 separate file.
34238 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34239 define.
34240 Move compat code to separate file.
34241 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34242 separate file.
34243
34244 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34245
34246 * resolv/tst-resolv-qtypes.c (domain): Changed to
34247 "const char domain[] =".
34248
34249 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34250
34251 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34252 version to 3.1.6.
34253
34254 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34255 (TCP_MD5SIG_EXT): Likewise.
34256 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34257 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34258 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34259
34260 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34261
34262 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34263
34264 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34265
34266 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34267
34268 [BZ #22100]
34269 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34270
34271 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34272
34273 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34274 before assuming that the file is empty. Avoid testing buffer content
34275 when nread == 0.
34276
34277 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34278
34279 [BZ #18858]
34280 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34281 Remove define.
34282 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34283 Likewise.
34284 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34285 Likewise.
34286 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34287 Likewise.
34288 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34289 Likewise.
34290 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34291 Likewise.
34292 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34293 Likewise.
34294
34295 2017-09-06 Florian Weimer <fweimer@redhat.com>
34296
34297 * malloc/dynarray_emplace_enlarge.c
34298 (__libc_dynarray_emplace_enlarge): Add missing else.
34299
34300 2017-09-06 Florian Weimer <fweimer@redhat.com>
34301
34302 [BZ #22096]
34303 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34304 case of failure to obtain the global conf object.
34305
34306 2017-09-06 Florian Weimer <fweimer@redhat.com>
34307
34308 [BZ #22095]
34309 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34310 dynarray allocation failure.
34311
34312 2017-09-06 Florian Weimer <fweimer@redhat.com>
34313
34314 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34315 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34316 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34317 New functions.
34318 (response): Call them. Add 'p', '6' flag processing.
34319 (test_reverse): New function.
34320 (test_get2_any): Call it.
34321 (test_no_inet6): Add 'p' test.
34322 (test_inet6): Likewise.
34323
34324 2017-09-06 Florian Weimer <fweimer@redhat.com>
34325
34326 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34327 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34328 the QNAME.
34329 (test_gai): Adjust query names. Add additional tests.
34330 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34331 test_get2. Adjust query names. Add additional tests.
34332 (test_no_inet6): New function, extracted from threadfunc.
34333 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34334 Add additional tests.
34335
34336 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34337
34338 [BZ #22070]
34339 * localedata/unicode-gen/utf8_gen.py: Set the width for
34340 characters with Prepended_Concatenation_Mark property to 1
34341 * localedata/charmaps/UTF-8: Updated using the improved script.
34342
34343 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34344
34345 [BZ #21750]
34346 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34347 use the range notation for all ranges of neighbouring characters
34348 with the same width.
34349
34350 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34351
34352 * sysdeps/generic/math-type-macros-double.h: Include
34353 <math-svid-compat.h>.
34354 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34355 * sysdeps/generic/math-type-macros-float.h: Include
34356 <math-svid-compat.h>.
34357 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34358 * sysdeps/generic/math-type-macros-ldouble.h: Include
34359 <math-svid-compat.h>.
34360 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34361 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34362 condition.
34363 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34364 * math/w_acosf_compat.c: Likewise.
34365 * math/w_acosh_compat.c: Likewise.
34366 * math/w_acoshf_compat.c: Likewise.
34367 * math/w_acoshl_compat.c: Likewise.
34368 * math/w_acosl_compat.c: Likewise.
34369 * math/w_asin_compat.c: Likewise.
34370 * math/w_asinf_compat.c: Likewise.
34371 * math/w_asinl_compat.c: Likewise.
34372 * math/w_atan2_compat.c: Likewise.
34373 * math/w_atan2f_compat.c: Likewise.
34374 * math/w_atan2l_compat.c: Likewise.
34375 * math/w_atanh_compat.c: Likewise.
34376 * math/w_atanhf_compat.c: Likewise.
34377 * math/w_atanhl_compat.c: Likewise.
34378 * math/w_cosh_compat.c: Likewise.
34379 * math/w_coshf_compat.c: Likewise.
34380 * math/w_coshl_compat.c: Likewise.
34381 * math/w_exp10_compat.c: Likewise.
34382 * math/w_exp10f_compat.c: Likewise.
34383 * math/w_exp10l_compat.c: Likewise.
34384 * math/w_exp2_compat.c: Likewise.
34385 * math/w_exp2f_compat.c: Likewise.
34386 * math/w_exp2l_compat.c: Likewise.
34387 * math/w_fmod_compat.c: Likewise.
34388 * math/w_fmodf_compat.c: Likewise.
34389 * math/w_fmodl_compat.c: Likewise.
34390 * math/w_hypot_compat.c: Likewise.
34391 * math/w_hypotf_compat.c: Likewise.
34392 * math/w_hypotl_compat.c: Likewise.
34393 * math/w_j0_compat.c: Likewise.
34394 * math/w_j0f_compat.c: Likewise.
34395 * math/w_j0l_compat.c: Likewise.
34396 * math/w_j1_compat.c: Likewise.
34397 * math/w_j1f_compat.c: Likewise.
34398 * math/w_j1l_compat.c: Likewise.
34399 * math/w_jn_compat.c: Likewise.
34400 * math/w_jnf_compat.c: Likewise.
34401 * math/w_jnl_compat.c: Likewise.
34402 * math/w_lgamma_r_compat.c: Likewise.
34403 * math/w_lgammaf_r_compat.c: Likewise.
34404 * math/w_lgammal_r_compat.c: Likewise.
34405 * math/w_log10_compat.c: Likewise.
34406 * math/w_log10f_compat.c: Likewise.
34407 * math/w_log10l_compat.c: Likewise.
34408 * math/w_log2_compat.c: Likewise.
34409 * math/w_log2f_compat.c: Likewise.
34410 * math/w_log2l_compat.c: Likewise.
34411 * math/w_log_compat.c: Likewise.
34412 * math/w_logf_compat.c: Likewise.
34413 * math/w_logl_compat.c: Likewise.
34414 * math/w_pow_compat.c: Likewise.
34415 * math/w_powf_compat.c: Likewise.
34416 * math/w_powl_compat.c: Likewise.
34417 * math/w_remainder_compat.c: Likewise.
34418 * math/w_remainderf_compat.c: Likewise.
34419 * math/w_remainderl_compat.c: Likewise.
34420 * math/w_sinh_compat.c: Likewise.
34421 * math/w_sinhf_compat.c: Likewise.
34422 * math/w_sinhl_compat.c: Likewise.
34423 * math/w_sqrt_compat.c: Likewise.
34424 * math/w_sqrtf_compat.c: Likewise.
34425 * math/w_sqrtl_compat.c: Likewise.
34426 * math/w_tgamma_compat.c: Likewise.
34427 * math/w_tgammaf_compat.c: Likewise.
34428 * math/w_tgammal_compat.c: Likewise.
34429 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34430 [LIBM_SVID_COMPAT].
34431 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34432 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34433 [LIBM_SVID_COMPAT].
34434 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34435 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34436 [LIBM_SVID_COMPAT].
34437 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34438 * sysdeps/i386/fpu/w_sqrt.c: New file.
34439 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34440 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34441 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34442 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34443 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34444 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34445 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34446 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34447 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34448 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34449 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34450 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34451 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34452 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34453 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34454 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34455 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34456 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34457 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34458 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34459 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34460 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34461 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34462 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34463 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34464 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34465 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34466 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34467 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34468 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34469 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34470 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34471 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34472 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34473 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34474 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34475 * sysdeps/ia64/fpu/w_log.c: Likewise.
34476 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34477 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34478 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34479 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34480 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34481 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34482 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34483 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34484 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34485 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34486 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34487 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34488 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34489 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34490 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34491 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34492 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34493 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34494 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34495 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34496 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34497 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34498 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34499 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34500 [LIBM_SVID_COMPAT].
34501 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34502 * sysdeps/ieee754/k_standard.c: Likewise.
34503 * sysdeps/ieee754/k_standardf.c: Likewise.
34504 * sysdeps/ieee754/k_standardl.c: Likewise.
34505 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34506 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34507 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34508 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34509 long_double_symbol call on [LIBM_SVID_COMPAT].
34510 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34511 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34512 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34513 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34514 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34515 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34516 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34517 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34518 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34519 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34520 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34521 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34522 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34523 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34524 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34525 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34526 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34527 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34528 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34529 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34530 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34531 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34532
34533 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34534
34535 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34536 * malloc/tst-mallocstate.c: Convert from test-skeleton
34537 to test-driver. Ifdef code using TEST_COMPAT macro.
34538 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34539 * math/test-matherr.c: Likewise.
34540
34541 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34542
34543 [BZ #22086]
34544 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34545 comparing word with byte-swapped constant.
34546
34547 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34548
34549 [BZ #20498]
34550 * locale/iso-639.def: add Miskito.
34551 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34552 * localedata/locales/miq_NI: New file.
34553
34554 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34555
34556 [BZ #18822]
34557 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34558 (__mkdir): Likewise.
34559 * io/chmod.c (__chmod): Add libc_hidden_def.
34560 * io/mkdir.c (__mkdir): Likewise.
34561 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34562 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34563 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34564 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34565
34566 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34567
34568 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34569 version to 4.13.
34570
34571 [BZ #22082]
34572 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34573 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34574
34575 2017-09-04 Florian Weimer <fweimer@redhat.com>
34576
34577 * math/math.h: Issue warning if log is defined.
34578
34579 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34580
34581 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34582 kernel version to 4.13.
34583
34584 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34585
34586 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34587 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34588 parameter.
34589 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34590 just <bits/types.h>.
34591 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34592 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34593 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34594 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34595 * misc/preadv2.c: Include <errno.h>.
34596 * misc/preadv64v2.c: Include <errno.h>.
34597 * misc/pwritev2.c: Include <errno.h>.
34598 * misc/pwritev64v2.c: Include <errno.h>.
34599 * sysdeps/posix/preadv2.c: Include <errno.h>.
34600 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34601 Fix <unistd.h> inclusion.
34602 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34603 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34604 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34605 __strtoul_internal): New functions.
34606 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34607 * sysdeps/posix/system.c: Include <sigsetops.h>.
34608 * sysdeps/mach/hurd/i386/Makefile
34609 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34610 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34611 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34612 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34613 __feraiseexcept_renamed to feraiseexcept instead of
34614 __GI_feraiseexcept.
34615 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34616 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34617 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34618 RWF_NOWAIT): Define to 0 if undefined already.
34619 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34620 boils down to 0.
34621 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34622 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34623
34624 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34625
34626 * manual/math.texi (pow10): Do not document.
34627 (pow10f): Likewise.
34628 (pow10l): Likewise.
34629 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34630 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34631 * math/libm-test-exp10.inc (pow10_test): Remove.
34632 (do_test): Do not call pow10.
34633 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34634 [NO_LONG_DOUBLE] (pow10l): Likewise.
34635 * math/w_exp10f_compat.c (pow10f): Likewise.
34636 * math/w_exp10l_compat.c (pow10l): Likewise.
34637 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34638 (pow10): Make into compat symbol.
34639 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34640 (pow10f): Make into compat symbol.
34641 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34642 (pow10l): Make into compat symbol.
34643 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34644 pow10.
34645 (CFLAGS-nldbl-pow10.c): Remove variable..
34646 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34647 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34648 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34649 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34650 Undefine and redefine.
34651 (pow10l): Make into compat symbol.
34652 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34653 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34654 * sysdeps/arm/libm-test-ulps: Likewise.
34655 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34656 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34657 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34658 * sysdeps/microblaze/libm-test-ulps: Likewise.
34659 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34660 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34661 * sysdeps/nios2/libm-test-ulps: Likewise.
34662 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34663 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34664 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34665 * sysdeps/sh/libm-test-ulps: Likewise.
34666 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34667 * sysdeps/tile/libm-test-ulps: Likewise.
34668 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34669
34670 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34671
34672 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34673
34674 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34675
34676 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34677 "../ChangeLog.old/ChangeLog.8".
34678 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34679 "../ChangeLog.old/ChangeLog.14".
34680
34681 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34682
34683 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34684 Threads Library.
34685
34686 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34687
34688 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34689
34690 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34691
34692 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34693 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34694
34695 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34696
34697 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34698 32 atexit handlers.
34699
34700 2017-09-01 Zack Weinberg <zackw@panix.com>
34701
34702 * math/math.h (HUGE_VAL): Improve commentary.
34703
34704 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34705 Andreas Schwab <schwab@suse.de>
34706
34707 [BZ #21530]
34708 * include/stdio.h (__gen_tempfd): New function.
34709 * stdio-common/Makefile (routines): Add gentempfd.
34710 * stdio-common/gentempfd.c: New file.
34711 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34712 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34713 unnamed file first.
34714
34715 2017-09-01 Florian Weimer <fweimer@redhat.com>
34716
34717 [BZ #21915]
34718 [BZ #21922]
34719 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34720 result to determine success or failure, not the errno value.
34721 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34722 (tst-nss-files-hosts-erange): Link with -ldl.
34723 * nss/tst-nss-files-hosts-erange.c: New file.
34724 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34725 (do_test): Add NO_DATA tests.
34726 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34727 (do_test): Call it.
34728
34729 2017-09-01 Florian Weimer <fweimer@redhat.com>
34730
34731 [BZ #21922]
34732 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34733 coming from gethostbyname2_r.
34734
34735 2017-09-01 Florian Weimer <fweimer@redhat.com>
34736
34737 * support/namespace.h (struct support_chroot_configuration): Add
34738 hosts, host_conf.
34739 (struct support_chroot): Add path_hosts, path_host_conf.
34740 * support/support_chroot.c (write_file): New function.
34741 (support_chroot_create): Call it to process /etc/resolv.conf,
34742 /etc/hosts, /etc/host.conf.
34743 (support_chroot_free): Update.
34744
34745 2017-09-01 Florian Weimer <fweimer@redhat.com>
34746
34747 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34748 status indicates it is set.
34749
34750 2017-09-01 Florian Weimer <fweimer@redhat.com>
34751
34752 [BZ #20532]
34753 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34754 function lookup failures more reliable.
34755
34756 2017-09-01 Florian Weimer <fweimer@redhat.com>
34757
34758 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34759 (getcanonname): Likewise.
34760 (gaih_inet): Likewise.
34761
34762 2017-09-01 Florian Weimer <fweimer@redhat.com>
34763
34764 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34765 (getcanonname): Likewise.
34766 (gaih_inet): Likewise.
34767
34768 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34769 Richard Henderson <rth@twiddle.net>
34770
34771 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34772 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34773 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34774 (IREG_SIZE, OREG_SIZE): New macros.
34775 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34776 (IREG_SIZE, OREG_SIZE): New macros.
34777 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34778 (IREG_SIZE): New macro.
34779 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34780 (IREG_SIZE): New macro.
34781 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34782 New includes.
34783 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34784 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34785 (__CONCATX): Handle exceptions correctly on large values that may
34786 set FE_INVALID.
34787 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34788 Initialize if not already set.
34789 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34790
34791 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34792
34793 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34794 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34795 Likewise.
34796 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34797 Likewise.
34798 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34799 Likewise.
34800 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34801 Likewise.
34802 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34803 Likewise.
34804 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34805 Likewise.
34806 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34807 Likewise.
34808 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34809 (NO_CANCELLATION): Likewise.
34810 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34811 Likewise.
34812 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34813 Likewise.
34814 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34815 Likewise.
34816 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34817 (NO_CANCELLATION): Likewise.
34818 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34819 (NO_CANCELLATION): Likewise.
34820 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34821 Likewise
34822 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34823 Likewise.
34824 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34825 Likewise.
34826 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34827 Likewise.
34828 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34829 hidden prototype.
34830 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34831 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34832
34833 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34834
34835 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34836 in resolver call.
34837
34838 2017-08-31 Florian Weimer <fweimer@redhat.com>
34839
34840 * include/libc-symbols.h (internal_function): Remove.
34841
34842 2017-08-31 Florian Weimer <fweimer@redhat.com>
34843
34844 * stdlib/fmtmsg.c (internal_addseverity): Remove
34845 internal_function.
34846
34847 2017-08-31 Florian Weimer <fweimer@redhat.com>
34848
34849 * stdio-common/printf_fp.c (group_number): Remove
34850 internal_function.
34851 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34852
34853 2017-08-31 Florian Weimer <fweimer@redhat.com>
34854
34855 * posix/fnmatch.c (internal_function): Remove definition.
34856 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34857 * posix/regcomp.c (peek_token, init_word_char)
34858 (duplicate_node_closure, fetch_token, peek_token)
34859 (peek_token_bracket, build_range_exp, build_collating_symbol):
34860 Likewise.
34861 * posix/regex_internal.c (re_string_construct_common)
34862 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34863 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34864 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34865 (re_string_translate_buffer, re_string_reconstruct)
34866 (re_string_peek_byte_case, re_string_fetch_byte_case)
34867 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34868 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34869 (re_node_set_add_intersect, re_node_set_init_union)
34870 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34871 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34872 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34873 (re_acquire_state_context): Likewise.
34874 * posix/regex_internal.h (internal_function): Remove definition.
34875 (re_string_realloc_buffers, build_wcs_buffer)
34876 (build_wcs_upper_buffer, build_upper_buffer)
34877 (re_string_translate_buffer, re_string_context_at)
34878 (re_string_char_size_at, re_string_wchar_at)
34879 (re_string_elem_size_at): Likewise.
34880 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34881 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34882 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34883 (re_search_internal, re_search_2_stub, re_search_stub)
34884 (re_copy_regs, prune_impossible_nodes, check_matching)
34885 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34886 (free_fail_stack_return, sift_states_iter_mb)
34887 (sift_states_backward, build_sifted_states)
34888 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34889 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34890 (check_subexp_limits, sift_states_bkref, merge_state_array)
34891 (find_recover_state, transit_state, merge_state_with_log)
34892 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34893 (transit_state_mb, transit_state_bkref, get_subexp)
34894 (get_subexp_sub, find_subexp_node, check_arrival)
34895 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34896 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34897 (check_node_accept_bytes, find_collation_sequence_value)
34898 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34899 (acquire_init_state_context, check_halt_node_context)
34900 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34901 (sub_epsilon_src_nodes): Likewise.
34902 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34903 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34904 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34905 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34906 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34907 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34908 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34909 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34910 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34911 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34912 (PREADV): Likewise.
34913 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34914 (PREADV): Likewise.
34915 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34916 (PWRITEV): Likewise.
34917 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34918 (PWRITEV): Likewise.
34919 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34920 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34921
34922 2017-08-31 Florian Weimer <fweimer@redhat.com>
34923
34924 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34925 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34926 Remove internal_function.
34927 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34928 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34929 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34930 (__deallocate_stack, __libc_pthread_init)
34931 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34932 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34933 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34934 Likewise.
34935 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34936 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34937 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34938 Likewise.
34939 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34940 (__pthread_mutex_unlock_usercnt): Likewise.
34941
34942 2017-08-31 Florian Weimer <fweimer@redhat.com>
34943
34944 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34945 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34946 (fts_safe_changedir): Remove internal_function.
34947 * io/ftw.c (internal_function): Remove definition.
34948 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34949
34950 2017-08-31 Florian Weimer <fweimer@redhat.com>
34951
34952 * inet/deadline.c (__deadline_current_time)
34953 (__deadline_from_timeval, __deadline_to_ms): Remove
34954 internal_function.
34955 * inet/getnameinfo.c (nrl_domainname): Likewise.
34956 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34957 * inet/inet6_option.c (add_pad): Likewise.
34958 * inet/net-internal.h (__deadline_current_time)
34959 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34960 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34961 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34962 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34963
34964 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34965
34966 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34967 include <bits/nan.h>.
34968 * math/Makefile (headers): Remove bits/nan.h.
34969 * bits/nan.h: Remove.
34970 * sysdeps/ieee754/bits/nan.h: Likewise.
34971 * sysdeps/mips/bits/nan.h: Likewise.
34972
34973 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34974 not include <bits/inf.h>.
34975 * math/Makefile (headers): Remove bits/inf.h.
34976 * bits/inf.h: Remove.
34977 * sysdeps/ieee754/bits/inf.h: Likewise.
34978
34979 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34980 bits/huge_vall.h or bits/huge_val_flt128.h.
34981 (HUGE_VAL): Define directly here.
34982 [__USE_ISOC99] (HUGE_VALF): Likewise.
34983 [__USE_ISOC99] (HUGE_VALL): Likewise.
34984 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34985 (HUGE_VAL_F128): Likewise.
34986 * math/Makefile (headers): Remove bits/huge_val.h,
34987 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34988 * bits/huge_val.h: Remove.
34989 * bits/huge_val_flt128.h: Likewise.
34990 * bits/huge_valf.h: Likewise.
34991 * bits/huge_vall.h: Likewise.
34992 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34993 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34994 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34995 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34996 * sysdeps/sh/bits/huge_val.h: Likewise.
34997 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34998 * sysdeps/x86/bits/huge_vall.h: Likewise.
34999
35000 2017-08-31 Florian Weimer <fweimer@redhat.com>
35001
35002 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
35003 internal_function.
35004 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
35005 Likewise.
35006 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
35007 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
35008 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
35009 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
35010 * elf/dl-fini.c (_dl_sort_fini): Likewise.
35011 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
35012 * elf/dl-libc.c (dlerror_run): Likewise.
35013 * elf/dl-load.c (add_name_to_object, decompose_rpath)
35014 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
35015 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
35016 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
35017 Likewise.
35018 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
35019 (_dl_higher_prime_number, _dl_strtoul): Likewise.
35020 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
35021 * elf/dl-profile.c (_dl_start_profile): Likewise.
35022 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
35023 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
35024 Likewise.
35025 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
35026 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
35027 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
35028 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
35029 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
35030 (_dl_allocate_tls_storage): Likewise.
35031 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
35032 (_dl_check_all_versions): Likewise.
35033 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
35034 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
35035 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
35036 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35037 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
35038 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
35039 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
35040 internal_function from __dl_start.
35041 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
35042 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
35043 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
35044 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
35045 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35046 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35047 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35048 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35049 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35050 (_dl_next_ld_env_entry, _dl_important_hwcaps)
35051 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35052 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35053 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35054 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35055 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35056 Likewise.
35057 (struct rtld_global_ro): Remove internal_function from the
35058 _dl_lookup_symbol_x member.
35059 (_dl_symbol_value): Remove. No longer defined anywhere.
35060 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35061 internal_function.
35062 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35063 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35064 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35065 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35066 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35067 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35068 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35069 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35070 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35071 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35072 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35073 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35074
35075 2017-08-31 Florian Weimer <fweimer@redhat.com>
35076
35077 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35078 Remove internal_function.
35079 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35080 Likewise.
35081 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35082 Likewise.
35083
35084 2017-08-31 Florian Weimer <fweimer@redhat.com>
35085
35086 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35087 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35088 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35089
35090 2017-08-31 Florian Weimer <fweimer@redhat.com>
35091
35092 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35093 (__gai_enqueue_request): Remove internal_function.
35094 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35095 (__gai_remove_request, __gai_notify, __gai_notify_only)
35096 (__gai_sigqueue): Likewise.
35097 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35098 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35099 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35100 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35101 Likewise.
35102
35103 2017-08-31 Florian Weimer <fweimer@redhat.com>
35104
35105 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35106 * include/dirent.h (__opendirat, __getdents, __getdents64)
35107 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35108 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35109 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35110 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35111 Likewise.
35112 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35113
35114 2017-08-31 Florian Weimer <fweimer@redhat.com>
35115
35116 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35117 internal_function.
35118 (GETCWD_RETURN_TYPE): Likewise.
35119
35120 2017-08-31 Florian Weimer <fweimer@redhat.com>
35121
35122 * include/time.h (__tz_compute, __strptime_internal): Remove
35123 internal_function.
35124 * time/strptime_l.c (__strptime_internal): Likewise.
35125 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35126
35127 2017-08-31 Florian Weimer <fweimer@redhat.com>
35128
35129 * iconv/gconv.c (__gconv): Remove internal_function.
35130 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35131 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35132 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35133 (__gconv_release_cache): Likewise.
35134 * iconv/gconv_close.c (__gconv_close): Likewise.
35135 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35136 (read_conf_file, __gconv_get_path): Likewise.
35137 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35138 (__gconv_release_step, gen_steps, increment_counter)
35139 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35140 (__gconv_close_transform, free_modules_db): Likewise.
35141 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35142 Likewise.
35143 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35144 (__gconv_find_transform, __gconv_lookup_cache)
35145 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35146 (__gconv_close_transform, __gconv_release_cache)
35147 (__gconv_loaded_object, __gconv_release_shlib)
35148 (__gconv_compare_alias): Likewise.
35149 * iconv/gconv_open.c (__gconv_open): Likewise.
35150 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35151 * iconv/iconvconfig.c (add_module): Likewise.
35152 * intl/dcigettext.c (plural_lookup, guess_category_value)
35153 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35154 * intl/eval-plural.h (plural_eval): Likewise.
35155 * intl/finddomain.c (_nl_find_domain): Likewise.
35156 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35157 (_nl_load_domain, _nl_find_msg): Likewise.
35158 (internal_function): Remove definition.
35159 * intl/loadinfo.h (internal_function): Likewise.
35160 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35161 internal_function.
35162 * intl/localealias.c (internal_function): Remove definition.
35163 (read_alias_file): Remove internal_function.
35164 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35165 * intl/plural-exp.h (internal_function): Remove definition.
35166 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35167 internal_function.
35168 * intl/plural.c: Regenerate.
35169 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35170 * locale/coll-lookup.c (__collidx_table_lookup)
35171 (__collseq_table_lookup): Likewise.
35172 * locale/coll-lookup.h (__collidx_table_lookup)
35173 (__collseq_table_lookup): Likewise.
35174 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35175 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35176 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35177 (_nl_unload_locale): Likewise.
35178 * locale/localeinfo.h (struct __locale_data): Remove
35179 internal_function from cleanup member.
35180 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35181 (_nl_remove_locale, _nl_load_locale_from_archive)
35182 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35183 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35184 (_nl_cleanup_time): Remove internal_function.
35185 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35186 (_nl_parse_alt_digit): Likewise.
35187 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35188 (_nl_select_era_entry): Likewise.
35189 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35190 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35191 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35192 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35193 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35194
35195 2017-08-31 Florian Weimer <fweimer@redhat.com>
35196
35197 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35198 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35199 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35200 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35201 Likewise.
35202 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35203 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35204 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35205 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35206 Likewise.
35207 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35208
35209 2017-08-31 Florian Weimer <fweimer@redhat.com>
35210
35211 * misc/getttyent.c (skip, value): Remove internal_function.
35212 * misc/syslog.c (openlog_internal): Likewise.
35213 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35214
35215 2017-08-31 Florian Weimer <fweimer@redhat.com>
35216
35217 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35218 (__nss_rewrite_field): Remove internal_function.
35219 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35220 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35221 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35222 * nss/nsswitch.c (nss_parse_file, nss_getline)
35223 (nss_parse_service_list, nss_new_service): Likewise.
35224 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35225 * nss/valid_field.c (__nss_valid_field): Likewise.
35226 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35227
35228 2017-08-31 Florian Weimer <fweimer@redhat.com>
35229
35230 * malloc/arena.c (__malloc_fork_lock_parent)
35231 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35232 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35233 internal_function from defintions.
35234 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35235 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35236 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35237 internal_function from declarations.
35238 * malloc/malloc.c (internal_function): Do not define.
35239 (mem2mem_check): Remove internal_function from declaration.
35240 (munmap_chunk, mremap_chunk): Remove internal_function.
35241 * malloc/mtrace.c (tr_where): Likewise.
35242
35243 2017-08-31 Florian Weimer <fweimer@redhat.com>
35244
35245 * include/rpc/pmap_clnt.h (__get_socket): Remove
35246 internal_function.
35247 * sunrpc/auth_des.c (synchronize): Likewise.
35248 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35249 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35250 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35251 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35252 (key_call): Likewise.
35253 * sunrpc/pm_getport.c (__get_socket): Likewise.
35254 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35255 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35256 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35257 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35258 (invalidate): Likewise.
35259 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35260 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35261 (set_input_fragment, get_input_bytes): Likewise.
35262
35263 2017-08-31 Florian Weimer <fweimer@redhat.com>
35264
35265 * malloc/malloc.c (_int_free): Remove locked variable and related
35266 asserts.
35267
35268 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35269
35270 [BZ #22051]
35271 * Makerules (build-module-helper-objlist): Filter out
35272 $(elf-objpfx)sofini.os.
35273 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35274 needed.
35275
35276 2017-08-31 Florian Weimer <fweimer@redhat.com>
35277
35278 * libio/fcloseall.c: Assume weak_alias is defined.
35279 * libio/feof.c: Likewise.
35280 * libio/fileno.c: Likewise.
35281 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35282 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35283 definitions.
35284 (_IO_file_open): Call __open directly.
35285 (_IO_new_file_sync): Assume ESPIPE is defined.
35286 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35287 (_IO_new_file_write): Call __write directly.
35288 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35289 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35290 * libio/genops.c: Assume _LIBC is defined.
35291 (save_for_backup): Remove internal_function.
35292 * libio/getc.c: Assume weak_alias is defined.
35293 * libio/getwc.c: Likewise.
35294 * libio/iofclose.c: Assume _LIBC is defined.
35295 * libio/iofdopen.c: Likewise.
35296 (_IO_fcntl): Remove macro definition.
35297 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35298 Call __fcntl directly.
35299 * libio/iofflush.c: Assume weak_alias is defined.
35300 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35301 defined.
35302 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35303 * libio/iofgets.c: Likewise.
35304 * libio/iofopen.c: Assume _LIBC is defined.
35305 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35306 * libio/iofputs.c: Assume weak_alias is defined.
35307 * libio/iofread.c: Likewise.
35308 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35309 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35310 * libio/ioftell.c: Assume weak_alias is defined.
35311 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35312 * libio/iofwide.c: Assume _LIBC is defined.
35313 (_IO_fwide): Drop SHARED conditional because it is implied by
35314 SHLIB_COMPAT.
35315 * libio/iofwrite.c: Assume weak_alias is defined.
35316 * libio/iogetdelim.c: Likewise.
35317 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35318 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35319 (_IO_getwline): Call __wmemcpy directly.
35320 * libio/iopopen.c: Assume _LIBC is defined.
35321 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35322 (_IO_close): Remove macro definitions.
35323 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35324 _exit directly.
35325 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35326 directly.
35327 * libio/ioputs.c: Assume weak_alias is defined.
35328 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35329 * libio/iosetbuffer.c: Assume weak_alias is defined.
35330 * libio/iosetvbuf.c: Likewise.
35331 * libio/ioungetc.c: Likewise.
35332 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35333 libc_hidden_def, libc_hidden_weak, NULL are defined.
35334 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35335 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35336 defined.
35337 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35338 definitions.
35339 (_IO_old_file_init_internal): Drop SHARED conditional because it
35340 is implied by SHLIB_COMPAT.
35341 (_IO_old_file_fopen): Call __open directly.
35342 (_IO_old_file_sync): Assume ESPIPE is defined.
35343 (_IO_old_file_write): Call __write directly.
35344 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35345 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35346 Call __fcntl directly.
35347 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35348 (_IO_old_fgetpos): Assume EIO is defined.
35349 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35350 (_IO_old_fgetpos64): Assume EIO is defined.
35351 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35352 (_IO_old_fsetpos): Assume EIO is defined.
35353 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35354 (_IO_old_fsetpos64): Assume EIO is defined.
35355 * libio/oldiopopen.c: Assume _LIBC is defined.
35356 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35357 (_IO_close): Remove macro definitions.
35358 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35359 directly.
35360 (_IO_old_proc_close): Call __close, __waitpid directly.
35361 * libio/put.c: Assume weak_alias is defined.
35362 * libio/stdfiles.c: Assume _LIBC is defined.
35363 * libio/stdio.c: Likewise.
35364 * libio/wfileops.c: Likewise.
35365 (_IO_wfile_sync): Assume ESPIPE is defined.
35366 * libio/wgenops.c: Assume _LIBC is defined.
35367 (save_for_wbackup): Remove internal_function.
35368
35369 2017-08-31 Florian Weimer <fweimer@redhat.com>
35370
35371 * malloc/malloc.c (top_check): Change return type to void. Remove
35372 internal_function.
35373 * malloc/hooks.c (top_check): Likewise.
35374 (malloc_check, realloc_check, memalign_check): Adjust.
35375
35376 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35377
35378 [BZ #21457]
35379 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35380 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35381 sigcontext and namespace requirements.
35382 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35383 * sysdeps/m68k/sys/ucontext.h: Likewise.
35384 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35385 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35386 <bits/sigcontext.h>.
35387 (__ctx): Define earlier.
35388 (mcontext_t): Define structure contents rather than using struct
35389 sigcontext.
35390 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35391 __glibc_reserved1 instead of __reserved.
35392 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35393 <bits/sigcontext.h>.
35394 (__ctx): Define earlier.
35395 (mcontext_t): Define structure contents rather than using struct
35396 sigcontext.
35397 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35398 mcontext_t instead of struct sigcontext.
35399 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35400 <bits/sigcontext.h>.
35401 (__ctx): Define earlier.
35402 (mcontext_t): Define structure contents rather than using struct
35403 sigcontext.
35404 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35405 <bits/sigcontext.h>.
35406 (__ctx): Define earlier.
35407 (mcontext_t): Define structure contents rather than using struct
35408 sigcontext.
35409 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35410 mcontext_t instead of struct sigcontext.
35411 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35412 mcontext_t instead of struct sigcontext.
35413 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35414 <bits/sigcontext.h>.
35415 (__ctx): New macro.
35416 (struct __ia64_fpreg_mcontext): New type.
35417 (mcontext_t): Define structure contents rather than using struct
35418 sigcontext.
35419 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35420 (uc_sigmask): Define using __ctx.
35421 (uc_stack): Likewise.
35422 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35423 <bits/sigcontext.h>.
35424 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35425 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35426 <bits/sigcontext.h>.
35427 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35428 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35429 <bits/sigcontext.h>.
35430 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35431 <bits/sigcontext.h>.
35432 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35433 <bits/sigcontext.h>.
35434 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35435 <bits/sigcontext.h>.
35436 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35437 <bits/sigcontext.h>.
35438 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35439 <bits/sigcontext.h>.
35440 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35441 <bits/sigcontext.h>.
35442 (__ctx): Define earlier.
35443 (mcontext_t): Define structure contents rather than using struct
35444 sigcontext.
35445 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35446 <bits/sigcontext.h>. Include <bits/types.h>.
35447 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35448 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35449 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35450 (test-xfail-UNIX98/signal.h/conform): Likewise.
35451 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35452 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35453 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35454 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35455 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35456 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35457 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35458 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35459 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35460
35461 2017-08-30 Florian Weimer <fweimer@redhat.com>
35462
35463 * malloc/dynarray_emplace_enlarge.c
35464 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35465 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35466 * malloc/tst-dynarray.c (test_long_overflow): New function.
35467 (do_test): Call it.
35468
35469 2017-08-30 Florian Weimer <fweimer@redhat.com>
35470
35471 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35472 (set_arena_corrupt): Remove definitions.
35473 (mtrim): Do not check for corrupt arena.
35474 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35475 Likewise.
35476
35477 2017-08-30 Florian Weimer <fweimer@redhat.com>
35478
35479 [BZ #21754]
35480 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35481 check_action.
35482 (ptmalloc_init): Do not set or use check_action.
35483 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35484 call to malloc_printerr. Remove return statement.
35485 (free_check): Likewise. Remove arena unlock.
35486 (top_check): Update comment. Adjust call to malloc_printerr.
35487 Remove heap repair code.
35488 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35489 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35490 (sysmalloc): Adjust call to malloc_printerr.
35491 (munmap_chunk, __libc_realloc): Likewise. Remove return
35492 statement.
35493 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35494 Remove errout label and corresponding gotos.
35495 (_int_free): Likewise. Remove arena unlock.
35496 (do_set_mallopt_check): Do not set check_action.
35497 (malloc_printerr): Adjust parameter list. Do not mark arena as
35498 corrupt.
35499 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35500 comment.
35501 * manual/probes.texi (Memory Allocation Probes): Remove
35502 memory_mallopt_check_action.
35503
35504 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35505
35506 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35507 Use pointer to uint64_t instead of long int for sp.
35508
35509 2017-08-30 Florian Weimer <fweimer@redhat.com>
35510
35511 [BZ #21754]
35512 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35513 without printing a backtrace. Do not leak any information in the
35514 error message.
35515 * manual/memory.texi (Heap Consistency Checking): Update.
35516 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35517
35518 2017-08-30 Florian Weimer <fweimer@redhat.com>
35519
35520 Do not scale NPTL tests with available number of CPUs.
35521 * nptl/tst-cond16.c (count): Set to constant value of 8.
35522 * nptl/tst-cond18.c (count): Likewise.
35523
35524 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35525
35526 [BZ #22035]
35527 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35528 Define to take a second argument that is a macro that
35529 concatentates a suffix, not the suffix itself.
35530 (__CONCAT_d): New macro.
35531 (__CONCAT_f): Likewise.
35532 (__CONCAT_l): Likewise.
35533
35534 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35535
35536 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35537 by child.
35538
35539 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35540 Aurelien Jarno <aurelien@aurel32.net>
35541 Maciej W. Rozycki <macro@imgtec.com>
35542
35543 [BZ #21956]
35544 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35545 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35546 `mips16-syscall6' and `mips16-syscall7'.
35547 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35548 (CFLAGS-mips16-syscall7.c): Remove.
35549 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35550 Remove `__mips16_syscall5', `__mips16_syscall6' and
35551 `__mips16_syscall7'.
35552 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35553 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35554 `__mips_syscall_return'.
35555 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35556 (__mips16_syscall1): Likewise.
35557 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35558 (__mips16_syscall2): Likewise.
35559 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35560 (__mips16_syscall3): Likewise.
35561 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35562 (__mips16_syscall4): Likewise.
35563 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35564 Remove.
35565 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35566 Remove.
35567 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35568 Remove.
35569 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35570 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35571 `__mips16_syscall5'. Remove prototype.
35572 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35573 `__mips16_syscall6'. Remove prototype.
35574 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35575 `__mips16_syscall7'. Remove prototype.
35576 (__nomips16, __mips16_syscall_return): Move to...
35577 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35578 (__nomips16, __mips_syscall_return): ... here.
35579 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35580 `__mips16_syscall_return' to `__mips_syscall_return'.
35581 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35582 `internal_syscall##nr'.
35583 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35584 `internal_syscall##nr'.
35585 (FORCE_FRAME_POINTER): Remove.
35586 (__mips_syscall5): New prototype.
35587 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35588 (__mips_syscall6): New prototype.
35589 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35590 (__mips_syscall7): New prototype.
35591 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35592 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35593 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35594 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35595 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35596 (sysdep_routines): Add libc-do-syscall.
35597 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35598 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35599
35600 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35601
35602 [BZ #21672]
35603 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35604 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35605 (advise_stack_range): New function.
35606 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35607 stack non required to advise_stack_range at allocatestack.c
35608
35609 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35610
35611 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35612
35613 2017-08-29 Florian Weimer <fweimer@redhat.com>
35614
35615 [BZ #22026]
35616 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35617 __end_fct. Mangle __end_fct after setting it to NULL.
35618 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35619 (modules-names, modules-names-tests): Add
35620 tst-gconv-init-failure-mod.
35621 (gconv-modules): New target.
35622 (tst-gconv-init-failure-mod.so): Link against libsupport.
35623 (tst-gconv-init-failure): Depend on gconv-modules,
35624 tst-gconv-init-failure-mod.so.
35625 * iconv/tst-gconv-init-failure-mod.c: New file.
35626 * iconv/tst-gconv-init-failure.c: Likewise.
35627 * iconv/test-gconv-modules: Likewise.
35628
35629 2017-08-29 Florian Weimer <fweimer@redhat.com>
35630
35631 [BZ #22025]
35632 * iconv/gconv_db.c (free_derivation): Remove redundant
35633 parentheses.
35634 (gen_steps): Unconditionally mangle __btowc_fct after
35635 initialization.
35636 (increment_counter): Likewise. Do not call init_fct for internal
35637 modules.
35638
35639 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35640
35641 [BZ #22028]
35642 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35643 (_MSUF_): Remove macro.
35644 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35645 Likewise.
35646 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35647 (__REDIRFROM_X): New macro.
35648 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35649 Likewise.
35650 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35651 (__REDIRTO_X): Likewise.
35652 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35653 arguments.
35654 (__MATH_REDIRCALL_2): Likewise.
35655 (__MATH_REDIRCALL_INTERNAL): Likewise.
35656 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35657 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35658 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35659 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35660 * math/test-finite-macros.c: New file.
35661 * math/Makefile (tests): Add test-finite-macros.
35662 (CFLAGS-test-finite-macros.c): New variable.
35663
35664 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35665 Jeff Law <law@redhat.com>
35666
35667 [BZ #22025]
35668 Mangle NULL pointers in iconv/gconv.
35669 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35670 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35671 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35672 is non-NULL before demangling the end_fct. Check for NULL
35673 end_fct after demangling.
35674 (__gconv_release_step): Demangle the end_fct before checking
35675 it for NULL. Remove assert on __shlibc_handle != NULL.
35676 (gen_steps): Don't check btowc_fct for NULL before mangling.
35677 Demangle init_fct before checking for NULL.
35678 (increment_counter): Likewise.
35679 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35680 end_fct for NULL before mangling.
35681 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35682 for NULL.
35683
35684 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35685
35686 [BZ #21971]
35687 * locale/iso-639.def: add Morisyen.
35688
35689 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35690
35691 [BZ #21930]
35692 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35693 (iszero): New C++ implementation that does not use
35694 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35695 signaling nans are enabled, since __builtin_types_compatible_p
35696 is a C-only feature.
35697 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35698 defined, include ieee754_float128.h for access to the union and
35699 member ieee854_float128.ieee.
35700 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35701 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35702 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35703 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35704 options of test-math-zero on powerpc64le.
35705
35706 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35707
35708 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35709 Change double to float.
35710
35711 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35712
35713 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35714 unconditional.
35715 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35716 conditional code; define contents only for [LIBM_SVID_COMPAT].
35717
35718 2017-08-28 Florian Weimer <fweimer@redhat.com>
35719
35720 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35721 (abi-lp64_be-options): Remove.
35722 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35723 (abi-hard-options): Likewise.
35724 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35725 (abi-o32_hard-options, abi-o32_soft_2008-options)
35726 (abi-o32_hard_2008-options, abi-n32_soft-options)
35727 (abi-n32_hard-options, abi-n32_soft_2008-options)
35728 (abi-n32_hard_2008-options, abi-n64_soft-options)
35729 (abi-n64_hard-options, abi-n64_soft_2008-options)
35730 (abi-n64_hard_2008-options): Likewise.
35731 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35732 (abi-64-v1-options, abi-64-v2-options): Likewise.
35733 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35734 (abi-64-options): Likewise.
35735 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35736 (abi-64-options): Likewise.
35737 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35738 (abi-64-options): Likewise.
35739 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35740 (abi-64-options, abi-x32-options): Likewise.
35741
35742 2017-08-28 Florian Weimer <fweimer@redhat.com>
35743
35744 Store supported list of SYS_* system calls in the source tree.
35745 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35746 (bits/syscall.h): Generate from list file.
35747 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35748 [$(subdir) = misc] (tests): Add tst-syscall-list.
35749 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35750 [$(subdir) = misc] (tst-syscall-list-macros.list)
35751 [$(subdir) = misc] (tst-syscall-list-nr.list)
35752 (tst-syscall-list-sys.list): Helper targets for new
35753 tst-syscall-list test.
35754 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35755 tst-syscall-list.sh.
35756 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35757 target. Do not include bits/syscall.d.
35758 [$(subdir) = misc] (generated): Do not update.
35759 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35760 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35761 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35762 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35763
35764 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35765
35766 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35767 (tst-cxa_atexit, tst-on_exit): Likewise.
35768 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35769 tst-cxa_atexit, and tst-on_exit.
35770 * stdlib/tst-atexit-common.c: New file.
35771 * stdlib/tst-atexit.c: New file.
35772 * stdlib/tst-at_quick_exit.c: New file.
35773 * stdlib/tst-cxa_atexit.c: New file.
35774 * stdlib/tst-on_exit.c: New file.
35775
35776 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35777
35778 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35779 * mach/stack_chk_fail_local.c: New file.
35780 * hurd/stack_chk_fail_local.c: New file.
35781 * mach/Machrules ($(interface-library)-routines): Add
35782 stack_chk_fail_local.
35783 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35784 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35785 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35786 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35787 * hurd/Makefile (CFLAGS-hurdstartup.o,
35788 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35789
35790 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35791
35792 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35793 (index_cpu_*, index_arch_*): Removed.
35794
35795 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35796
35797 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35798 Use uint64_t instead of unsigned long.
35799
35800 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35801
35802 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35803 [__HAVE_DISTINCT_FLOAT128].
35804
35805 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35806 of <bits/math-finite.h>.
35807 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35808 inclusion of <bits/math-finite.h>.
35809 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35810 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35811 __NO_LONG_DOUBLE_MATH].
35812 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35813 (__MATH_REDIRCALL_2): Likewise.
35814 (__MATH_REDIRCALL_INTERNAL): Likewise.
35815 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35816 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35817 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35818
35819 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35820 Remove file.
35821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35822 Likewise.
35823 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35824 Likewise.
35825 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35826 Likewise.
35827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35828 Likewise.
35829 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35830 Likewise.
35831 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35832 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35833 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35834 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35835 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35836 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35837 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35838 w_sqrtf_compat-ppc32.
35839
35840 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35841
35842 * math/math.h [defined __cplusplus] (issignaling): In the long
35843 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35844 is not defined. Call __issignaling, otherwise.
35845
35846 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35847
35848 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35849 syscall definitions and replace __builtin_expect with __glibc_likely.
35850 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35851 syscall.
35852 (SYSCALL_CANCELLABLE): Removedefinition
35853 * sysdeps/unix/sysv/linux/aarch64/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/alpha/sysdep-cancel.h (PSEUDO): Remove
35864 definition.
35865 (PSEUDO_END): Likewise.
35866 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35867 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35868 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35869 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35870 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35871 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35872 (CENABLE): Likewise.
35873 (CDISABLE): Likewise.
35874 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35875 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35876 defintion.
35877 (PSEUDO_END): Likewise.
35878 [IS_IN (libpthread)] (CENABLE): Likewise.
35879 [IS_IN (libpthread)] (CDISABLE): Likewise.
35880 [IS_IN (libc)] (CENABLE): Likewise.
35881 [IS_IN (libc)] (CENABLE): Likewise.
35882 [IS_IN (librt)] (CDISABLE): Likewise.
35883 [IS_IN (librt)] (CDISABLE): Likewise.
35884 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35885 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35886 definition.
35887 (PSEUDO_END): Likewise.
35888 [IS_IN (libpthread)] (CENABLE): Likewise.
35889 [IS_IN (libpthread)] (CDISABLE): Likewise.
35890 [IS_IN (libc)] (CENABLE): Likewise.
35891 [IS_IN (libc)] (CENABLE): Likewise.
35892 [IS_IN (librt)] (CDISABLE): Likewise.
35893 [IS_IN (librt)] (CDISABLE): Likewise.
35894 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35895 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35896 definition.
35897 (PSEUDO_END): Likewise.
35898 [IS_IN (libpthread)] (CENABLE): Likewise.
35899 [IS_IN (libpthread)] (CDISABLE): Likewise.
35900 [IS_IN (libc)] (CENABLE): Likewise.
35901 [IS_IN (libc)] (CENABLE): Likewise.
35902 [IS_IN (librt)] (CDISABLE): Likewise.
35903 [IS_IN (librt)] (CDISABLE): Likewise.
35904 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35905 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35906 definition.
35907 (PSEUDO_END): Likewise.
35908 [IS_IN (libpthread)] (CENABLE): Likewise.
35909 [IS_IN (libpthread)] (CDISABLE): Likewise.
35910 [IS_IN (libc)] (CENABLE): Likewise.
35911 [IS_IN (libc)] (CENABLE): Likewise.
35912 [IS_IN (librt)] (CDISABLE): Likewise.
35913 [IS_IN (librt)] (CDISABLE): Likewise.
35914 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35915 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35916 definition.
35917 (PSEUDO_END): Likewise.
35918 [IS_IN (libpthread)] (CENABLE): Likewise.
35919 [IS_IN (libpthread)] (CDISABLE): Likewise.
35920 [IS_IN (libc)] (CENABLE): Likewise.
35921 [IS_IN (libc)] (CENABLE): Likewise.
35922 [IS_IN (librt)] (CDISABLE): Likewise.
35923 [IS_IN (librt)] (CDISABLE): Likewise.
35924 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35925 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35926 definition.
35927 (PSEUDO_END): Likewise.
35928 [IS_IN (libpthread)] (CENABLE): Likewise.
35929 [IS_IN (libpthread)] (CDISABLE): Likewise.
35930 [IS_IN (libc)] (CENABLE): Likewise.
35931 [IS_IN (libc)] (CENABLE): Likewise.
35932 [IS_IN (librt)] (CDISABLE): Likewise.
35933 [IS_IN (librt)] (CDISABLE): Likewise.
35934 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35935 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35936 Remove definition.
35937 (PSEUDO_END): Likewise.
35938 [IS_IN (libpthread)] (CENABLE): Likewise.
35939 [IS_IN (libpthread)] (CDISABLE): Likewise.
35940 [IS_IN (libc)] (CENABLE): Likewise.
35941 [IS_IN (libc)] (CENABLE): Likewise.
35942 [IS_IN (librt)] (CDISABLE): Likewise.
35943 [IS_IN (librt)] (CDISABLE): Likewise.
35944 (SINGLE_THREAD_P): Likewise.
35945 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35946 definition.
35947 (PSEUDO_END): Likewise.
35948 [IS_IN (libpthread)] (CENABLE): Likewise.
35949 [IS_IN (libpthread)] (CDISABLE): Likewise.
35950 [IS_IN (libc)] (CENABLE): Likewise.
35951 [IS_IN (libc)] (CENABLE): Likewise.
35952 [IS_IN (librt)] (CDISABLE): Likewise.
35953 [IS_IN (librt)] (CDISABLE): Likewise.
35954 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35955 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35956 definition.
35957 (PSEUDO_END): Likewise.
35958 [IS_IN (libpthread)] (CENABLE): Likewise.
35959 [IS_IN (libpthread)] (CDISABLE): Likewise.
35960 [IS_IN (libc)] (CENABLE): Likewise.
35961 [IS_IN (libc)] (CENABLE): Likewise.
35962 [IS_IN (librt)] (CDISABLE): Likewise.
35963 [IS_IN (librt)] (CDISABLE): Likewise.
35964 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35965 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35966 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35967 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35968 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35969 definition.
35970 (PSEUDO_END): Likewise.
35971 [IS_IN (libpthread)] (CENABLE): Likewise.
35972 [IS_IN (libpthread)] (CDISABLE): Likewise.
35973 [IS_IN (libc)] (CENABLE): Likewise.
35974 [IS_IN (libc)] (CENABLE): Likewise.
35975 [IS_IN (librt)] (CDISABLE): Likewise.
35976 [IS_IN (librt)] (CDISABLE): Likewise.
35977 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35978 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35979 definition.
35980 (PSEUDO_END): Likewise.
35981 [IS_IN (libpthread)] (CENABLE): Likewise.
35982 [IS_IN (libpthread)] (CDISABLE): Likewise.
35983 [IS_IN (libc)] (CENABLE): Likewise.
35984 [IS_IN (libc)] (CENABLE): Likewise.
35985 [IS_IN (librt)] (CDISABLE): Likewise.
35986 [IS_IN (librt)] (CDISABLE): Likewise.
35987 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35988 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35989 definition.
35990 (PSEUDO_END): Likewise.
35991 [IS_IN (libpthread)] (CENABLE): Likewise.
35992 [IS_IN (libpthread)] (CDISABLE): Likewise.
35993 [IS_IN (libc)] (CENABLE): Likewise.
35994 [IS_IN (libc)] (CENABLE): Likewise.
35995 [IS_IN (librt)] (CDISABLE): Likewise.
35996 [IS_IN (librt)] (CDISABLE): Likewise.
35997 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35998 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35999 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
36000 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
36001 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
36002 definition.
36003 (PSEUDO_END): Likewise.
36004 [IS_IN (libpthread)] (CENABLE): Likewise.
36005 [IS_IN (libpthread)] (CDISABLE): Likewise.
36006 [IS_IN (libc)] (CENABLE): Likewise.
36007 [IS_IN (libc)] (CENABLE): Likewise.
36008 [IS_IN (librt)] (CDISABLE): Likewise.
36009 [IS_IN (librt)] (CDISABLE): Likewise.
36010 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36011 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
36012 definition.
36013 (PSEUDO_END): Likewise.
36014 [IS_IN (libpthread)] (CENABLE): Likewise.
36015 [IS_IN (libpthread)] (CDISABLE): Likewise.
36016 [IS_IN (libc)] (CENABLE): Likewise.
36017 [IS_IN (libc)] (CENABLE): Likewise.
36018 [IS_IN (librt)] (CDISABLE): Likewise.
36019 [IS_IN (librt)] (CDISABLE): Likewise.
36020 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36021
36022 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
36023
36024 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
36025
36026 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36027
36028 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
36029
36030 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36031
36032 [BZ #21982]
36033 * string/stratcliff.c (do_test): Declare size, nchars, inner,
36034 middle and outer with size_t instead of int. Repleace %d and
36035 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
36036 "MAX (outer, nchars - 64)" to support unsigned outer and
36037 nchars. Also exit loop when outer == 0.
36038
36039 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36040
36041 * include/fcntl.h (__fcntl_nocancel): Remove definition.
36042 * include/signal.h (__sigsuspend_nocancel): Likewise.
36043 * include/time.h (__nanosleep_nocancel): Likewise.
36044 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
36045 * login/utmp_file.c: Include non cancellable syscall header.
36046 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36047 prototype.
36048
36049 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36050
36051 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36052 .byte sequences with AVX512F instructions.
36053 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36054 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36055 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36056 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36057 Likewise.
36058 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36059 Likewise.
36060
36061 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36062 Steve Ellcey <sellcey@cavium.com>
36063
36064 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36065 Use PTR_REG macro in cmp instruction.
36066
36067 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36068
36069 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36070 Change the return type of the ifunc resolver to match the return
36071 type of the target function.
36072
36073 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36074
36075 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36076 (preadv64): Likewise.
36077 (pwrite64(: Likewise.
36078 (pwritev64): Likewise.
36079
36080 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36081 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36082 (LOAD_ARGS_0): Likewise.
36083 (LOAD_ARGS_1): Likewise.
36084 (LOAD_ARGS_2): Likewise.
36085 (LOAD_ARGS_3): Likewise.
36086 (LOAD_ARGS_4): Likewise.
36087 (LOAD_ARGS_5): Likewise.
36088 (LOAD_ARGS_6): Likewise.
36089 (LOAD_REGS_0): Likewise.
36090 (LOAD_REGS_1): Likewise.
36091 (LOAD_REGS_2): Likewise.
36092 (LOAD_REGS_3): Likewise.
36093 (LOAD_REGS_4): Likewise.
36094 (LOAD_REGS_5): Likewise.
36095 (LOAD_REGS_6): Likewise.
36096 (ASM_ARGS_0): Likewise.
36097 (ASM_ARGS_1): Likewise.
36098 (ASM_ARGS_2): Likewise.
36099 (ASM_ARGS_3): Likewise.
36100 (ASM_ARGS_4): Likewise.
36101 (ASM_ARGS_5): Likewise.
36102 (ASM_ARGS_6): Likewise.
36103 (LOAD_ARGS_TYPES_1): Likewise.
36104 (LOAD_ARGS_TYPES_2): Likewise.
36105 (LOAD_ARGS_TYPES_3): Likewise.
36106 (LOAD_ARGS_TYPES_4): Likewise.
36107 (LOAD_ARGS_TYPES_5): Likewise.
36108 (LOAD_ARGS_TYPES_6): Likewise.
36109 (LOAD_REGS_TYPES_1): Likewise.
36110 (LOAD_REGS_TYPES_2): Likewise.
36111 (LOAD_REGS_TYPES_3): Likewise.
36112 (LOAD_REGS_TYPES_4): Likewise.
36113 (LOAD_REGS_TYPES_5): Likewise.
36114 (LOAD_REGS_TYPES_6): Likewise.
36115 (TYPEFY): New define.
36116 (ARGIFY): Likewise.
36117 (internal_syscall0): Likewise.
36118 (internal_syscall1): Likewise.
36119 (internal_syscall2): Likewise.
36120 (internal_syscall3): Likewise.
36121 (internal_syscall4): Likewise.
36122 (internal_syscall5): Likewise.
36123 (internal_syscall6): Likewise.
36124 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36125 (INTERNAL_SYSCALL_NCS): Remove define.
36126 (internal_syscall1): Add define.
36127
36128 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36129
36130 * math/w_remainder_compat.c: Remove duplicate inclusion of
36131 math-svid-compat.h.
36132 * math/w_remainderf_compat.c: Likewise.
36133 * math/w_remainderl_compat.c: Likewise.
36134
36135 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36136
36137 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36138
36139 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36140
36141 [BZ #21684]
36142 * math/tgmath.h (__floating_type): Simplify definitions.
36143 (__real_integer_type): New macro.
36144 (__complex_integer_type): Likewise.
36145 (__expr_is_real): Likewise.
36146 (__tgmath_real_type_sub): Update comment to describe handling of
36147 complex types.
36148 (__tgmath_complex_type_sub): New macro.
36149 (__tgmath_complex_type): Likewise.
36150 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36151 (__TGMATH_CF128): Use __expr_is_real.
36152 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36153 __expr_is_real.
36154 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36155 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36156 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36157 integer types.
36158
36159 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36160
36161 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36162 macro.
36163 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36164 alias.
36165 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36166 Likewise.
36167
36168 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36169 nanosleep_not_cancel with __nanosleep_nocancel.
36170 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36171 (__nanosleep_nocancel): New macro.
36172 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36173 function.
36174 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36175 macro.
36176 (__nanosleep_nocancel): New prototype.
36177
36178 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36179 pause_not_cancel with __pause_nocancel.
36180 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36181 (__pause_nocancel): New macro.
36182 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36183 macro.
36184 (__pause_nocancel): New prototype.
36185 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36186
36187 2017-08-22 Martin Sebor <msebor@redhat.com>
36188
36189 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36190 to return a pointer to the same type as the target function.
36191
36192 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36193
36194 [BZ #18822]
36195 [BZ #21986]
36196 * include/printf.h (__printf_fphex): Add attribute_hidden.
36197 (__guess_grouping): New prototype.
36198 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36199 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36200 libc_hidden_proto and libc_hidden_def.
36201 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36202 (__vstrfmon_l): Remove the third argument passed to
36203 __guess_grouping.
36204
36205 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36206
36207 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36208 definition for issignaling that does not rely on __MATH_TG,
36209 since __MATH_TG uses __builtin_types_compatible_p, which is only
36210 available in C mode.
36211 (CFLAGS-test-math-issignaling.cc): New variable.
36212 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36213 * math/test-math-issignaling.cc: New test for C++ implementation
36214 of type-generic issignaling.
36215 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36216 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36217 options of test-math-issignaling on powerpc64le.
36218
36219 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36220
36221 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36222 building libc.a.
36223 (hidden_proto): Likewise.
36224 (hidden_tls_proto): Likewise.
36225 (__hidden_proto): Likewise.
36226
36227 2017-08-22 Florian Weimer <fweimer@redhat.com>
36228
36229 math: Statically link tests of internal functionality.
36230 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36231 atest-exp2.
36232 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36233 (gmp-objs): Remove assignment.
36234 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36235
36236 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36237
36238 [BZ #21987]
36239 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36240 and copy to ...
36241 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36242 ... here.
36243 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36244 ... and here.
36245
36246 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36247 variable definitions above inclusion of ../Rules.
36248
36249 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36250
36251 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36252 case calling __builtin_unreachable.
36253
36254 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36255
36256 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36257 __waitpid_nocancel.
36258 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36259 (__waitpid_nocancel): New macro.
36260 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36261 macro.
36262 (__waitpid_nocancel): Replace macro with a function.
36263 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36264 function.
36265
36266 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36267 __fcntl_nocancel.
36268 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36269 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36270
36271 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36272 __writev_nocancel_nostatus.
36273 (write_call_graph): Likewise.
36274 (write_bb_counts): Likewise.
36275 * resolv/herror.c (herror): Likewise.
36276 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36277 macro.
36278 (__writev_nocancel_nostatus): New macro.
36279 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36280 Remove macro.
36281 (__writev_nocancel_nostatus): New function.
36282
36283 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36284
36285 Revert:
36286 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36287
36288 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36289 building libc.a.
36290 (hidden_proto): Likewise.
36291 (hidden_tls_proto): Likewise.
36292 (__hidden_proto): Likewise.
36293
36294 [BZ #21973]
36295 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36296 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36297 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36298 Likewise.
36299 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36300 Likewise.
36301 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36302 Likewise.
36303 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36304 Likewise.
36305 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36306 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36307 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36308 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36309 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36310 GLIBC_2.0 sqrtl symbol.
36311
36312 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36313 [__USE_MISC] (_LIB_VERSION): Likewise.
36314 [__USE_MISC] (struct exception): Likewise.
36315 [__USE_MISC] (matherr): Likewise.
36316 [__USE_MISC] (DOMAIN): Likewise.
36317 [__USE_MISC] (SING): Likewise.
36318 [__USE_MISC] (OVERFLOW): Likewise.
36319 [__USE_MISC] (UNDERFLOW): Likewise.
36320 [__USE_MISC] (TLOSS): Likewise.
36321 [__USE_MISC] (PLOSS): Likewise.
36322 [__USE_MISC] (HUGE): Likewise.
36323 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36324 * math/math-svid-compat.h: New file.
36325 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36326 and matherrl.
36327 * include/math.h [!_ISOMAC] (__matherr): Remove.
36328 * manual/arith.texi (FP Exceptions): Do not document matherr.
36329 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36330 (tests-internal): New variable.
36331 (install-lib): Do not add libieee.a.
36332 (non-lib.a): Likewise.
36333 (extra-objs): Do not add libieee.a and ieee-math.o.
36334 (CPPFLAGS-s_lib_version.c): Remove variable.
36335 ($(objpfx)libieee.a): Remove rule.
36336 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36337 * math/ieee-math.c: Remove.
36338 * math/libm-test-support.c (matherr): Remove.
36339 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36340 and license notices. Include <math-svid-compat.h> and
36341 <shlib-compat.h>.
36342 (matherr): Undefine as macro. Use compat_symbol_reference.
36343 (_LIB_VERSION): Likewise.
36344 * math/test-matherr-2.c: New file.
36345 * math/test-matherr-3.c: Likewise.
36346 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36347 declaration.
36348 (__kernel_standard_f): Likewise.
36349 (__kernel_standard_l): Likewise.
36350 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36351 <math_private.h>. Include <math-svid-compat.h>.
36352 (_LIB_VERSION): Undefine as macro.
36353 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36354 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36355 [LIBM_SVID_COMPAT], use compat_symbol.
36356 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36357 <math_private.h>. Include <math-svid-compat.h>.
36358 (matherr): Undefine as macro.
36359 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36360 compat_symbol.
36361 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36362 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36363 compat_symbol_reference.
36364 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36365 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36366 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36367 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36368 (MATHERR_D): Remove declaration.
36369 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36370 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36371 [LIBM_BUILD] (pmatherrf): Likewise.
36372 [LIBM_BUILD] (pmatherr): Likewise.
36373 [LIBM_BUILD] (pmatherrl): Likewise.
36374 (DOMAIN): Likewise.
36375 (SING): Likewise.
36376 (OVERFLOW): Likewise.
36377 (UNDERFLOW): Likewise.
36378 (TLOSS): Likewise.
36379 (PLOSS): Likewise.
36380 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36381 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36382 compat_symbol.
36383 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36384 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36385 compat_symbol.
36386 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36387 * math/w_acos_compat.c: Likewise.
36388 * math/w_acosf_compat.c: Likewise.
36389 * math/w_acosh_compat.c: Likewise.
36390 * math/w_acoshf_compat.c: Likewise.
36391 * math/w_acoshl_compat.c: Likewise.
36392 * math/w_acosl_compat.c: Likewise.
36393 * math/w_asin_compat.c: Likewise.
36394 * math/w_asinf_compat.c: Likewise.
36395 * math/w_asinl_compat.c: Likewise.
36396 * math/w_atan2_compat.c: Likewise.
36397 * math/w_atan2f_compat.c: Likewise.
36398 * math/w_atan2l_compat.c: Likewise.
36399 * math/w_atanh_compat.c: Likewise.
36400 * math/w_atanhf_compat.c: Likewise.
36401 * math/w_atanhl_compat.c: Likewise.
36402 * math/w_cosh_compat.c: Likewise.
36403 * math/w_coshf_compat.c: Likewise.
36404 * math/w_coshl_compat.c: Likewise.
36405 * math/w_exp10_compat.c: Likewise.
36406 * math/w_exp10f_compat.c: Likewise.
36407 * math/w_exp10l_compat.c: Likewise.
36408 * math/w_exp2_compat.c: Likewise.
36409 * math/w_exp2f_compat.c: Likewise.
36410 * math/w_exp2l_compat.c: Likewise.
36411 * math/w_fmod_compat.c: Likewise.
36412 * math/w_fmodf_compat.c: Likewise.
36413 * math/w_fmodl_compat.c: Likewise.
36414 * math/w_hypot_compat.c: Likewise.
36415 * math/w_hypotf_compat.c: Likewise.
36416 * math/w_hypotl_compat.c: Likewise.
36417 * math/w_j0_compat.c: Likewise.
36418 * math/w_j0f_compat.c: Likewise.
36419 * math/w_j0l_compat.c: Likewise.
36420 * math/w_j1_compat.c: Likewise.
36421 * math/w_j1f_compat.c: Likewise.
36422 * math/w_j1l_compat.c: Likewise.
36423 * math/w_jn_compat.c: Likewise.
36424 * math/w_jnf_compat.c: Likewise.
36425 * math/w_jnl_compat.c: Likewise.
36426 * math/w_lgamma_main.c: Likewise.
36427 * math/w_lgamma_r_compat.c: Likewise.
36428 * math/w_lgammaf_main.c: Likewise.
36429 * math/w_lgammaf_r_compat.c: Likewise.
36430 * math/w_lgammal_main.c: Likewise.
36431 * math/w_lgammal_r_compat.c: Likewise.
36432 * math/w_log10_compat.c: Likewise.
36433 * math/w_log10f_compat.c: Likewise.
36434 * math/w_log10l_compat.c: Likewise.
36435 * math/w_log2_compat.c: Likewise.
36436 * math/w_log2f_compat.c: Likewise.
36437 * math/w_log2l_compat.c: Likewise.
36438 * math/w_log_compat.c: Likewise.
36439 * math/w_logf_compat.c: Likewise.
36440 * math/w_logl_compat.c: Likewise.
36441 * math/w_pow_compat.c: Likewise.
36442 * math/w_powf_compat.c: Likewise.
36443 * math/w_powl_compat.c: Likewise.
36444 * math/w_remainder_compat.c: Likewise.
36445 * math/w_remainderf_compat.c: Likewise.
36446 * math/w_remainderl_compat.c: Likewise.
36447 * math/w_scalb_compat.c: Likewise.
36448 * math/w_scalbf_compat.c: Likewise.
36449 * math/w_scalbl_compat.c: Likewise.
36450 * math/w_sinh_compat.c: Likewise.
36451 * math/w_sinhf_compat.c: Likewise.
36452 * math/w_sinhl_compat.c: Likewise.
36453 * math/w_sqrt_compat.c: Likewise.
36454 * math/w_sqrtf_compat.c: Likewise.
36455 * math/w_sqrtl_compat.c: Likewise.
36456 * math/w_tgamma_compat.c: Likewise.
36457 * math/w_tgammaf_compat.c: Likewise.
36458 * math/w_tgammal_compat.c: Likewise.
36459 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36460 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36461 * sysdeps/ieee754/k_standard.c: Likewise.
36462 * sysdeps/ieee754/k_standardf.c: Likewise.
36463 * sysdeps/ieee754/k_standardl.c: Likewise.
36464 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36465 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36466 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36467 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36468 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36469 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36470 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36471 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36472 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36473 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36474 Likewise.
36475 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36476 Likewise.
36477 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36478 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36479 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36480 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36481
36482 2017-08-21 Florian Weimer <fweimer@redhat.com>
36483
36484 [BZ #21864]
36485 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36486 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36487 Move before inclusion of ../Rules.
36488
36489 2017-08-21 Florian Weimer <fweimer@redhat.com>
36490
36491 [BZ #21972]
36492 * assert/assert.h (assert): Use static_cast (bool) for C++.
36493 Use the ternary operator in the warning branch for GNU C.
36494 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36495 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36496 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36497 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36498 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36499
36500 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36501
36502 [BZ #18822]
36503 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36504 (__syscall_clock_gettime): Add attribute_hidden.
36505 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36506 (__start_context): Likewise.
36507
36508 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36509
36510 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36511 building libc.a.
36512 (hidden_proto): Likewise.
36513 (hidden_tls_proto): Likewise.
36514 (__hidden_proto): Likewise.
36515
36516 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36517
36518 * include/libc-symbols.h (attribute_hidden): Enable hidden
36519 visibility in libc.a compiled with PIE.
36520
36521 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36522
36523 [BZ #18822]
36524 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36525 Add attribute_hidden.
36526
36527 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36528
36529 [BZ #21864]
36530 * Makerules (all-nonlib): Add $(others-extras).
36531 * catgets/Makefile (others-extras): New.
36532 * elf/Makefile (others-extras): Likewise.
36533 * nss/Makefile (others-extras): Likewise.
36534
36535 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36536
36537 [BZ #18822]
36538 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36539 * elf/dl-open.c: Include <libc-internal.h>.
36540 (__libc_multiple_libcs): Removed.
36541 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36542 <hp-timing.h>.
36543 * include/libc-internal.h (__libc_multiple_libcs): New.
36544 * misc/sbrk.c: Include <libc-internal.h>.
36545 (__libc_multiple_libcs): Removed.
36546
36547 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36548
36549 [BZ #18822]
36550 * grp/initgroups.c (__nss_group_database): Removed.
36551 (__nss_initgroups_database): Likewise.
36552 * nscd/gai.c (__nss_hosts_database): Likewise.
36553 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36554 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36555 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36556 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36557 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36558 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36559 attribute_hidden.
36560 * nss/nsswitch.c (__nss_database_custom): Define only if
36561 USE_NSCD is defined.
36562 (__nss_configure_lookup): Use __nss_database_custom only if
36563 USE_NSCD is defined.
36564 * nss/nsswitch.h (__nss_database_custom): Declare only if
36565 USE_NSCD is defined. Add attribute_hidden.
36566 (__nss_setent): Add attribute_hidden.
36567 (__nss_endent): Likewise.
36568 (__nss_getent_r): Likewise.
36569 (__nss_getent): Likewise.
36570 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36571
36572 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36573
36574 [BZ #18822]
36575 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36576 libc_hidden_proto and libc_hidden_def.
36577
36578 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36579
36580 [BZ #18822]
36581 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36582 Add libc_hidden_proto.
36583 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36584 Add libc_hidden_def.
36585
36586 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36587
36588 [BZ #21974]
36589 * gmon/Makefile (routines): Remove bb_init_func and
36590 bb_exit_func.
36591 (elide-routines.os): Removed.
36592 * gmon/bb_exit_func.c: Likewise.
36593 * gmon/bb_init_func.c: Likewise.
36594 * include/sys/gmon.h (__bb): Likewise.
36595 (__bb_init_func): Likewise.
36596 (__bb_exit_func): Likewise.
36597 * sysdeps/alpha/bb_init_func.S: Likewise.
36598
36599 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36600
36601 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36602 * include/setjmp.h (____longjmp_chk): Here. Add
36603 attribute_hidden.
36604
36605 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36606
36607 [BZ #18822]
36608 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36609 attribute_hidden.
36610 (__strspn_sse2): Likewise.
36611
36612 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36613
36614 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36615 (close_not_cancel_no_status): Likewise.
36616 (__close_nocancel): New macro.
36617 (__close_nocancel_nostatus): Likewise.
36618 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36619 macro.
36620 (close_not_cancel): Likewise.
36621 (close_not_cancel_no_status): Likewise.
36622 (__close_nocancel): New prototype.
36623 (__close_nocancel_nostatus): New function.
36624 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36625 * catgets/open_catalog.c (__open_catalog): Replace
36626 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36627 * gmon/gmon.c (write_gmon): Likewise.
36628 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36629 * intl/loadmsgcat.c (close): Likewise.
36630 * io/ftw.c (open_dir_stream): Likewise.
36631 (ftw_startup): Likewise.
36632 * libio/fileops.c (_IO_file_open): Likewise.
36633 (_IO_file_close_mmap): Likewise.
36634 (_IO_file_close): Likewise.
36635 * libio/iopopen.c (_IO_dup2): Likewise.
36636 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36637 * locale/loadlocale.c (_nl_load_locale): Likewise.
36638 * login/utmp_file.c (pututline_file): Likewise.
36639 (endutent_file): Likewise.
36640 * misc/daemon.c (daemon): Likewise.
36641 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36642 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36643 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36644 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36645 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36646 * nscd/nscd_helper.c (open_socket): Likewise.
36647 (__nscd_open_socket): Likewise.
36648 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36649 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36650 (__nscd_innetgr): Likewise.
36651 * nss/nss_db/db-open.c (internal_setent): Likewise.
36652 * resolv/res-close.c (__res_iclose): Likewise.
36653 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36654 * sysdeps/posix/closedir.c (__closedir): Likewise.
36655 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36656 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36657 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36658 (opendir_tail): Likewise.
36659 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36660 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36661 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36662 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36663 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36664 (gethostid): Likewise.
36665 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36666 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36667 Likewise.
36668 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36669 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36670 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36671 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36672 Likewise.
36673 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36674 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36675 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36676 Likewise.
36677 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36678 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36679 Likewise.
36680 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36681 Likewise.
36682 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36683 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36684 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36685 __close_nocancel.
36686
36687 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36688 (openat_not_cancel_3): Likewise.
36689 (openat64_not_cancel_3): Likewise).
36690 (openat_not_cancel_3): Likewise).
36691 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36692 macro.
36693 (openat_not_cancel_3): Likewise.
36694 (openat64_not_cancel): Likewise.
36695 (openat64_not_cancel_3): Likewise.
36696 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36697 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36698 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36699 __open{64}_nocancel.
36700 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36701 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36702 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36703
36704 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36705
36706 [BZ #18822]
36707 * include/argz.h (__argz_create_sep): New function prototype.
36708 (__argz_append): Likewise.
36709 (__argz_add): Likewise.
36710 (__argz_add_sep): Likewise.
36711 (__argz_delete): Likewise.
36712 (__argz_insert): Likewise.
36713 (__argz_replace): Likewise.
36714 * string/argz.h (__argz_create_sep): Removed.
36715 (__argz_append): Likewise.
36716 (__argz_add): Likewise.
36717 (__argz_add_sep): Likewise.
36718 (__argz_delete): Likewise.
36719 (__argz_insert): Likewise.
36720 (__argz_replace): Likewise.
36721
36722 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36723
36724 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36725 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36726 (GNU_PROPERTY_STACK_SIZE): Likewie.
36727 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36728 (GNU_PROPERTY_LOPROC): Likewise.
36729 (GNU_PROPERTY_HIPROC): Likewise.
36730 (GNU_PROPERTY_LOUSER): Likewise.
36731 (GNU_PROPERTY_HIUSER): Likewise.
36732 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36733 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36734 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36735 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36736 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36737 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36738 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36739 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36740 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36741 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36742 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36743 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36744 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36745 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36746 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36747 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36748 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36749 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36750 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36751 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36752 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36753 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36754 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36755
36756 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36757
36758 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36759 in C++ mode.
36760
36761 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36762
36763 [BZ #21930]
36764 * math/math.h (isinf): Check if in C or C++ mode before using
36765 __builtin_types_compatible_p, since this is a C mode feature.
36766
36767 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36768
36769 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36770 (__write_nocancel): New macro.
36771 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36772 Rewrite as a function prototype.
36773 (write_not_cancel): Remove macro.
36774 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36775 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36776 (write_gmon): Likewise.
36777 * libio/fileops.c (_IO_new_file_write): Likewise.
36778 * login/utmp_file.c (pututline_file): Likewise.
36779 (updwtmp_file): Likewise.
36780 * stdio-common/psiginfo.c (psiginfo): Likewise.
36781 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36782 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36783 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36784 Likewise.
36785 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36786 Likewise.
36787
36788 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36789 (__read_nocancel): New macro.
36790 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36791 __read_nocancel.
36792 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36793 macro.
36794 (__read_nocancel): New prototype.
36795 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36796 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36797 with __read_nocancel.
36798 * intl/loadmsgcat.c (read): Likewise.
36799 * libio/fileops.c (_IO_file_read): Likewise.
36800 * locale/loadlocale.c (_nl_load_locale): Likewise.
36801 * login/utmp_file.c (getutent_r_file): Likewise.
36802 (internal_getut_r): Likewise.
36803 (getutline_r_file): Likewise.
36804 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36805 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36806 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36807 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36808 Likewise.
36809 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36810 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36811 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36812 Likewise.
36813 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36814 Likewise.
36815 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36816 Likewise.
36817 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36818 Likewise.
36819 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36820
36821 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36822
36823 [BZ #21966]
36824 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36825 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36826 usable.
36827
36828 2017-08-17 DJ Delorie <dj@redhat.com>
36829
36830 * bug17079.c: Update to new test harness.
36831 * test-digits-dots.c: Likewise.
36832 * test-netdb.c: Likewise.
36833 * tst-field.c: Likewise.
36834 * tst-nss-getpwent.c: Likewise.
36835 * tst-nss-static.c: Likewise.
36836 * tst-nss-test1.c: Likewise.
36837 * tst-nss-test2.c: Likewise.
36838 * tst-nss-test3.c: Likewise.
36839 * tst-nss-test4.c: Likewise.
36840 * tst-nss-test5.c: Likewise.
36841
36842 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36843
36844 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36845 (open_not_cancel_2): Likewise.
36846 (open_nocancel): New macro.
36847 (open64_nocancel): Likewise.
36848 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36849 (open_not_cancel_2): Likewise.
36850 (__open_nocancel): New prototype.
36851 (__open64_nocancel): Likewise.
36852 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36853 __open_nocancel.
36854 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36855 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36856 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36857 with __open_nocancel.
36858 * csu/check_fds.c (check_one_fd): Likewise.
36859 * gmon/gmon.c (write_gmon): Likewise.
36860 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36861 * intl/loadmsgcat.c (open): Likewise.
36862 * libio/fileops.c (_IO_file_open): Likewise.
36863 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36864 * locale/loadlocale.c (_nl_load_locale): Likewise.
36865 * login/utmp_file.c (setutent_file): Likewise.
36866 * misc/daemon.c (daemon): Likewise.
36867 * nss/nss_db/db-open.c (internal_setent): Likewise.
36868 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36869 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36870 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36871 (__opendir): Likewise.
36872 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36873 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36874 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36875 (gethostid): Likewise.
36876 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36877 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36878 Likewise.
36879 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36880 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36881 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36882 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36883 Likewise.
36884 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36885 Likewise.
36886 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36887 Likewise.
36888 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36889 Likewise.
36890 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36891 Likewise.
36892 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36893 Likewise.
36894 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36895 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36896
36897 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36898
36899 * benchtests/bench-skeleton.c (main): Add support for
36900 latency benchmarking.
36901 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36902
36903 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36904
36905 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36906 the startup object.
36907
36908 2017-08-17 Florian Weimer <fweimer@redhat.com>
36909
36910 * include/sys/socket.h (__opensock): Remove internal_function.
36911 * socket/opensock.c (__opensock): Likewise.
36912 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36913
36914 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36915
36916 [BZ #21944]
36917 * signal/bits/types/__sigval_t.h: New file.
36918 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36919 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36920 and define sigval_t using __sigval_t.
36921 * include/bits/types/__sigval_t.h: New file.
36922 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36923 instead of <bits/types/__sigval_t.h>.
36924 (struct sigevent): Use __sigval_t instead of sigval_t.
36925 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36926 instead of <bits/types/__sigval_t.h>.
36927 (siginfo_t): Use __sigval_t instead of sigval_t.
36928 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36929 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36930 (struct sigevent): Use __sigval_t instead of sigval_t.
36931 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36932 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36933 (siginfo_t): Use __sigval_t instead of sigval_t.
36934 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36935
36936 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36937
36938 * NEWS: Remove "[Add new features here]" for 2.27.
36939
36940 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36941
36942 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36943 libc.so.
36944
36945 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36946
36947 * NEWS: Mention x86-64 FMA optimization.
36948
36949 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36950
36951 [BZ #21912]
36952 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36953 Add e_expf-fma.
36954 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36955 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36956 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36957
36958 2017-08-16 Andreas Schwab <schwab@suse.de>
36959
36960 [BZ #16750]
36961 CVE-2009-5064
36962 * elf/ldd.bash.in: Never run file directly.
36963
36964 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36965
36966 [BZ #21955]
36967 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36968 (L(SP_INF_0)): Likewise.
36969
36970 2017-08-15 Florian Weimer <fweimer@redhat.com>
36971
36972 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36973 run-built-tests.
36974
36975 2017-08-15 Florian Weimer <fweimer@redhat.com>
36976
36977 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36978 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36979 BROKEN_THREAD_SIGNALS code.
36980 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36981 request_list): Remove caller_pid member used for
36982 BROKEN_THREAD_SIGNALS.
36983 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36984 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36985 Remove BROKEN_THREAD_SIGNALS support.
36986 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36987 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36988
36989 2017-08-15 Florian Weimer <fweimer@redhat.com>
36990
36991 * gmon/Makefile (tests): Add tst-gmon.
36992 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36993 Set.
36994 (tests-special): Add tst-gmon-prof.out.
36995 (tst-gmon.out): Depend on clean-tst-gmon-data.
36996 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36997 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36998 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36999 startup object.
37000 * aclocal.m4 (GPROF): Set and substitute.
37001 * config.amke.in (GPROF): Set.
37002 * configure: Regenerate.
37003
37004 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
37005
37006 * elf/elf.h A (NT_PPC_TAR): New macro.
37007 (NT_PPC_PPR): Likewise.
37008 (NT_PPC_DSCR): Likewise.
37009 (NT_PPC_EBB): Likewise.
37010 (NT_PPC_PMU): Likewise.
37011 (NT_PPC_TM_CGPR): Likewise.
37012 (NT_PPC_TM_CFPR): Likewise.
37013 (NT_PPC_TM_CVMX): Likewise.
37014 (NT_PPC_TM_CVSX): Likewise.
37015 (NT_PPC_TM_SPR): Likewise.
37016 (NT_PPC_TM_CTAR): Likewise.
37017 (NT_PPC_TM_CPPR): Likewise.
37018 (NT_PPC_TM_CDSCR): Likewise.
37019
37020 2017-08-15 Florian Weimer <fweimer@redhat.com>
37021
37022 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
37023 regparm (2) instead of internal_function.
37024 (_MCOUNT_DECL): Adjust.
37025
37026 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
37027
37028 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
37029 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
37030
37031 2017-08-14 Joseph Myers <joseph@codesourcery.com>
37032
37033 * conform/data/sys/wait.h-data (si_value): Do not expect for
37034 XPG42.
37035
37036 2017-08-14 Florian Weimer <fweimer@redhat.com>
37037
37038 [BZ #21962]
37039 NSS: Create stubs for accidentally exported lookup functions.
37040 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
37041 Remove declaration.
37042 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
37043 (ether_hostton): Call __nss_ethers_lookup2 instead.
37044 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
37045 (ether_ntohost): Call __nss_ethers_lookup2 instead.
37046 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37047 (setup): Call __nss_netgroup_lookup2 instead.
37048 * nss/Makefile (routines): Add compat-lookup.
37049 * nss/Versions (GLIBC_2.27): Add symbol version.
37050 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
37051 (DB_COMPAT_FCT): Remove.
37052 * nss/compat-lookup.c: New file.
37053 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37054 from databases.def.
37055 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37056 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37057 (netname2user): Call __nss_publickey_lookup2 instead.
37058 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37059 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37060 instead.
37061
37062 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37063 Sergei Trofimovich <slyfox@inbox.ru>
37064
37065 [BZ #21908]
37066 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37067 Rename to MMAP2_PAGE_UNIT.
37068 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37069 __OFF_T_MATCHES_OFF64_T is not defined.
37070 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37071 uint64_t.
37072 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37073 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37074
37075 2017-08-14 Florian Weimer <fweimer@redhat.com>
37076
37077 i386: Do not set internal_function.
37078 * config.h.in (USE_REGPARMS, internal_function): Remove.
37079 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37080 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37081
37082 2017-08-14 Florian Weimer <fweimer@redhat.com>
37083
37084 * elf/dl-init.c (_dl_init): Remove internal_function.
37085 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37086 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37087
37088 2017-08-14 Florian Weimer <fweimer@redhat.com>
37089
37090 * elf/rtld.c (_dl_start): Remove internal_function.
37091 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37092 _dl_start.
37093
37094 2017-08-14 Florian Weimer <fweimer@redhat.com>
37095
37096 * elf/dl-fini.c (_dl_fini): Remove internal_function
37097 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37098
37099 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37100
37101 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37102 (bit_cpu_SHSTK): Likewise.
37103 (index_cpu_IBT): Likewise.
37104 (index_cpu_SHSTK): Likewise.
37105 (reg_IBT): Likewise.
37106 (reg_SHSTK): Likewise.
37107 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37108 Handle index_cpu_IBT and index_cpu_SHSTK.
37109
37110 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37111
37112 [BZ #19982]
37113 * po/fr.po: Fix spelling mistake.
37114
37115 2017-08-13 Florian Weimer <fweimer@redhat.com>
37116
37117 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37118 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37119 (_dl_catch_error, _dl_receive_error): Likewise.
37120 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37121 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37122 (_dl_deallocate_tls): Likewise.
37123 * include/dlfcn.h (_dl_addr): Likewise.
37124 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37125 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37126 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37127 Likewise.
37128
37129 2017-08-13 Florian Weimer <fweimer@redhat.com>
37130
37131 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37132 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37133 internal_function.
37134 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37135
37136 2017-08-13 Florian Weimer <fweimer@redhat.com>
37137
37138 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37139 internal_function.
37140 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37141 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37142 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37143 internal_function from _dl_make_stack_executable_hook member.
37144 (_dl_make_stack_executable): Remove internal_function.
37145 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37146 Likewise.
37147 * sysdeps/unix/sysv/linux/dl-execstack.c
37148 (_dl_make_stack_executable): Likewise.
37149
37150 2017-08-13 Florian Weimer <fweimer@redhat.com>
37151
37152 * sysdeps/unix/sysv/linux/netlinkaccess.h
37153 (__netlink_assert_response): Remove internal_function.
37154 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37155 (__netlink_assert_response): Likewise.
37156
37157 2017-08-13 Florian Weimer <fweimer@redhat.com>
37158
37159 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37160 internal_function.
37161 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37162
37163 2017-08-13 Florian Weimer <fweimer@redhat.com>
37164
37165 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37166 internal_function.
37167 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37168 * inet/netgroup.h (__internal_setnetgrent)
37169 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37170 * inet/getnetgrent_r.c (__internal_setnetgrent)
37171 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37172 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37173 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37174 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37175 * nss/nsswitch.h (db_lookup_function): Likewise.
37176
37177 2017-08-13 Florian Weimer <fweimer@redhat.com>
37178
37179 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37180 Remove internal_function.
37181 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37182 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37183 message argument on the stack.
37184 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37185 Likeweise.
37186
37187 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37188
37189 Adapt test case data to the changes in the thousands
37190 separators.
37191
37192 [BZ #20756]
37193 * localedata/tst-langinfo.sh: Adapt test case data.
37194 * stdlib/tst-strfmon_l.c: Likewise.
37195 * stdlib/tst-strtod4.c: Likewise.
37196 * stdlib/tst-strtod5i.c: Likewise.
37197
37198 2017-08-11 Florian Weimer <fweimer@redhat.com>
37199
37200 [BZ #21242]
37201 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37202 Suppress pedantic warning resulting from statement expression.
37203 (__ASSERT_FUNCTION): Add missing __extension__.
37204
37205 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37206
37207 * benchtests/bench-memmove-large.c: Print output in JSON
37208 format.
37209 * benchtests/bench-memmove.c: Likewise.
37210
37211 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37212 * benchtests/bench-memchr.c (do_one_test): Likewise.
37213 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37214 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37215 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37216 * benchtests/bench-memmove.c (do_one_test): Likewise.
37217 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37218 * benchtests/bench-memset.c (do_one_test): Likewise.
37219 * benchtests/bench-string.h (test_init): Remove memsets.
37220
37221 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37222
37223 * manual/lang.texi
37224 (Computing the Width of an Integer Data Type): Rename section to
37225 "Width of an Integer Type". Remove inaccurate statement regarding
37226 lack of C language facilities for determining width of integer
37227 types, and reorder content to improve flow and context of
37228 discussion.
37229
37230 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37231
37232 * lang.texi (va_copy): Change standard from ISO to C99.
37233 (__va_copy): Add standard and header annotation.
37234 Update description for clarity of origins and current use.
37235
37236 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37237
37238 [BZ #21941]
37239 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37240 xssqrtqp requires operands to be in Vector Registers
37241 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37242 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37243 (__ieee754_sqrtf128): Likewise.
37244
37245 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37246
37247 * sysdeps/aarch64/memcmp.S (memcmp):
37248 Rewrite of optimized memcmp.
37249
37250 2017-08-10 Florian Weimer <fweimer@redhat.com>
37251
37252 Introduce ld.so exceptions.
37253 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37254 (_dl_exception_create, _dl_exception_create_format)
37255 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37256 (_dl_catch_exception): Declare.
37257 (_dl_catch_error): Update comment.
37258 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37259 errstring, malloced members with exception member.
37260 (_dl_out_of_memory): Remove.
37261 (fatal_error): New function, extracted from _dl_signal_error.
37262 (_dl_signal_exception, _dl_signal_cexception): New functions.
37263 (_dl_signal_error): Call _dl_exception_create to allocate an
37264 exception object.
37265 (_dl_catch_exception): New function, based on _dl_catch_error.
37266 (_dl_catch_error): Implement using _dl_catch_exception.
37267 * elf/dl-exception.c: New file.
37268 * elf/Makefile (dl-routines): Add dl-exception.
37269 (elide-routines.os): Likewise.
37270 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37271 _dl_exception_create_format, _dl_exception_free.
37272 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37273 _dl_signal_exception.
37274 * elf/dl-lookup.c (make_string): Remove.
37275 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37276 _dl_signal_cexception, _dl_exception_free.
37277 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37278 _dl_signal_exception.
37279 * elf/dl-sym.c (do_sym): Likewise.
37280 * elf/dl-version.c (make_string): Remove.
37281 (match_symbol): Use _dl_exception_create_format,
37282 _dl_signal_cexception, _dl_exception_free.
37283 (_dl_check_map_versions): Likewise.
37284 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37285 _dl_catch_exception.
37286 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37287 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37288 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37289 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37290 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37291 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37292 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37293 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37294 Likewise.
37295 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37297 (ld.so): Likewise.
37298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37299 (ld.so): Likewise.
37300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37301 Likewise.
37302 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37303 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37304 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37305 Likewise.
37306 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37307 Likewise.
37308 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37309
37310 2017-08-10 Florian Weimer <fweimer@redhat.com>
37311
37312 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37313 attribute_hidden, internal_function.
37314 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37315 internal_function.
37316
37317 2017-08-10 Florian Weimer <fweimer@redhat.com>
37318
37319 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37320 function which calls __builtin_unreachable.
37321
37322 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37323
37324 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37325 Indian monetary formatting
37326 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37327 test cases.
37328
37329 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37330
37331 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37332 Fix typo in comment.
37333
37334 [BZ #21928]
37335 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37336 PTRACE_SEIZE_DEVEL): Remove.
37337 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37338 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37339 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37340 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37341 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37342
37343 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37344
37345 * posix/bits/types.h (__qaddr_t): Remove.
37346
37347 [BZ #21457]
37348 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37349 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37350 __glibc_reserved1.
37351 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37352 (ucontext_t): Use __ctx with uc_flags.
37353 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37354 (__ctxt): Likewise.
37355 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37356 __glibc_reserved1.
37357 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37358 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37359 __glibc_reserved1.
37360 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37361 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37362 __glibc_reserved1.
37363 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37364 macro.
37365 (ucontext_t): Use __ctx with uc_flags.
37366 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37367 (ucontext_t): Use __ctx with uc_flags.
37368 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37369 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37370 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37371 (ucontext_t): Use __ctx with uc_flags.
37372 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37373 undefine further down.
37374 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37375 __glibc_reserved1.
37376 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37377 undefine further down.
37378 (ucontext_t): Use __ctx with uc_flags.
37379 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37380 undefine further down.
37381 (ucontext_t): Use __ctx with uc_flags.
37382 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37383 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37384 Rename uc_pad to __glibc_reserved1.
37385 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37386 undefine further down.
37387 (ucontext_t): Use __ctx with uc_flags.
37388 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37389 further down.
37390 (ucontext_t): Use __ctx with uc_flags.
37391 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37392 __ctx with uc_flags.
37393 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37394 (ucontext_t): Use __ctx with uc_flags.
37395 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37396 __ctx with uc_flags.
37397
37398 2017-08-09 Florian Weimer <fweimer@redhat.com>
37399
37400 [BZ #21932]
37401 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37402 before early return.
37403
37404 2017-08-09 Andreas Schwab <schwab@suse.de>
37405
37406 [BZ #21041]
37407 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37408 renamed alias.
37409
37410 [BZ #21041]
37411 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37412 tst-compat-forwarder.
37413 (modules-names): Add tst-compat-forwarder-mod.
37414 ($(objpfx)tst-compat-forwarder): Depend on
37415 $(objpfx)tst-compat-forwarder-mod.so.
37416 * nptl/tst-compat-forwarder.c: New file.
37417 * nptl/tst-compat-forwarder-mod.c: New file.
37418
37419 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37420
37421 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37422 comments.
37423
37424 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37425 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37426 memcpy_falkor.
37427 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37428 Bump.
37429 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37430 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37431 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37432 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37433 Add falkor.
37434 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37435 New macro.
37436
37437 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37438
37439 [BZ #759]
37440 * manual/setjmp.texi (getcontex): Document uc_stack value
37441 compatibility differences.
37442
37443 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37444
37445 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37446 (old_malloc_hook): Likewise.
37447 (old_memalign_hook): Likewise.
37448 (old_realloc_hook): Likewise.
37449 (struct hdr): Likewise.
37450 (flood): Likewise.
37451 (freehook): Likewise.
37452 (mallochook): Likewise.
37453 (memalignhook): Likewise.
37454 (reallochook): Likewise.
37455 (mprobe): Likewise.
37456 * malloc/mtrace.c (mallwatch): Likewise.
37457 (tr_old_free_hook): Likewise.
37458 (tr_old_malloc_hook): Likewise.
37459 (tr_old_realloc_hook): Likewise.
37460 (tr_old_memalign_hook): Likewise.
37461 (tr_where): Likewise.
37462 (lock_and_info): Likewise.
37463 (tr_freehook): Likewise.
37464 (tr_mallochook): Likewise.
37465 (tr_reallochook): Likewise.
37466 (tr_memalignhook): Likewise.
37467 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37468 * misc/mmap.c (__mmap): Likewise.
37469 * misc/mmap64.c (__mmap64): Likewise.
37470 * misc/mprotect.c (__mprotect): Likewise.
37471 * misc/msync.c (msync): Likewise.
37472 * misc/munmap.c (__munmap): Likewise.
37473 * posix/posix_madvise.c (posix_madvise): Likewise.
37474 * socket/send.c (__send): Likewise.
37475 * socket/sendto.c (__sendto): Likewise.
37476 * socket/setsockopt.c (__setsockopt): Likewise.
37477 * string/memcmp.c (__ptr_t): Remove macro.
37478 (MEMCMP): Use void * instead of ptr_t.
37479 * string/memrchr.c (__ptr_t): Remove macro.
37480 (__memrchr): Use void * instead of ptr_t.
37481 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37482 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37483 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37484 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37485 * sysdeps/mach/msync.c (msync): Likewise.
37486 * sysdeps/mach/munmap.c (__munmap): Likewise.
37487 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37488 Likewise.
37489 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37490 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37491 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37492 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37493 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37494 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37495 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37496 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37497 Likewise.
37498 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37499 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37500 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37501 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37502 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37503 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37504 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37505 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37506 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37507 Likewise.
37508 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37509 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37510 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37511 (MEMCMP): Use void * instead of ptr_t.
37512 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37513 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37514
37515 2017-08-08 Florian Weimer <fweimer@redhat.com>
37516
37517 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37518 return statement.
37519
37520 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37521
37522 [BZ #21913]
37523 * csu/libc-tls.c: Include <startup.h> first.
37524 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37525 * elf/dl-tunables.c: Include <startup.h> first.
37526 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37527 * sysdeps/generic/startup.h: New file.
37528 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37529 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37530 (I386_USE_SYSENTER): New. Defined to 0.
37531
37532 2017-08-08 Andreas Schwab <schwab@suse.de>
37533
37534 [BZ #21041]
37535 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37536 * nptl/pt-system.c (system): Likewise.
37537
37538 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37539
37540 [BZ #21780]
37541 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37542 EOPNOTSUPP.
37543 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37544 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37545 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37546 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37547 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37548 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37549 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37550
37551 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37552
37553 [BZ #21899]
37554 * bits/sigaction.h (struct sigaction): Define sa_handler and
37555 sa_sigaction using union 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/alpha/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/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/hppa/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.
37584 (SA_RESETHAND): Likewise.
37585 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37586 (struct sigaction): Define sa_handler and sa_sigaction using union
37587 also for [__USE_XOPEN_EXTENDED].
37588 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37589 [__USE_XOPEN_EXTENDED].
37590 (SA_RESTART): Likewise.
37591 (SA_NODEFER): Likewise.
37592 (SA_RESETHAND): Likewise.
37593 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37594 (struct sigaction): Define sa_handler and sa_sigaction using union
37595 also for [__USE_XOPEN_EXTENDED].
37596 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37597 [__USE_XOPEN_EXTENDED].
37598 (SA_RESTART): Likewise.
37599 (SA_NODEFER): Likewise.
37600 (SA_RESETHAND): Likewise.
37601 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37602 (struct sigaction): Define sa_handler and sa_sigaction using union
37603 also for [__USE_XOPEN_EXTENDED].
37604 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37605 [__USE_XOPEN_EXTENDED].
37606 (SA_RESTART): Likewise.
37607 (SA_NODEFER): Likewise.
37608 (SA_RESETHAND): Likewise.
37609 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37610 (struct sigaction): Define sa_handler and sa_sigaction using union
37611 also for [__USE_XOPEN_EXTENDED].
37612 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37613 [__USE_XOPEN_EXTENDED].
37614 (SA_RESTART): Likewise.
37615 (SA_NODEFER): Likewise. Define directly rather than as alias.
37616 (SA_RESETHAND): Likewise.
37617 (SA_INTERRUPT): Define only for [__USE_MISC].
37618 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37619 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37620 [__USE_MISC].
37621 (SA_STACK): Define only for [__USE_MISC].
37622 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37623 (struct sigaction): Define sa_handler and sa_sigaction using union
37624 also for [__USE_XOPEN_EXTENDED].
37625 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37626 [__USE_XOPEN_EXTENDED].
37627 (SA_RESTART): Likewise.
37628 (SA_NODEFER): Likewise.
37629 (SA_RESETHAND): Likewise.
37630 (SA_NOPTRACE): Define only for [__USE_MISC].
37631
37632 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37633 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37634 (struct catalog_info): Likewise.
37635 * inet/htontest.c (lo): Likewise.
37636 (foo): Likewise.
37637 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37638 * inet/inet_net.c (inet_network): Likewise.
37639 * inet/inet_netof.c (inet_netof): Likewise.
37640 * inet/rcmd.c (__ivaliduser): Likewise.
37641 (iruserok): Likewise.
37642 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37643 * locale/programs/locale-spec.c (locale_special): Likewise.
37644 * nis/nis_findserv.c (struct findserv_req): Likewise.
37645 (__nis_findfastest_with_timeout): Likewise.
37646 * nss/test-netdb.c (test_network): Likewise.
37647 * resolv/inet_neta.c (inet_neta): Likewise.
37648 * resolv/ns_date.c (ns_datetosecs): Likewise.
37649 (SECS_PER_DAY): Likewise.
37650 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37651 Likewise.
37652 * resolv/res_comp.c (__putlong): Likewise.
37653 (__putshort): Likewise.
37654 (_getlong): Likewise.
37655 (_getshort): Likewise.
37656 * resolv/res_debug.c (p_time): Likewise.
37657 (precsize_ntoa): Likewise.
37658 (precsize_aton): Likewise.
37659 (latlon2ul): Likewise.
37660 (loc_aton): Likewise.
37661 (loc_ntoa): Likewise.
37662 * resolv/res_hconf.c (struct netaddr): Likewise.
37663 (_res_hconf_reorder_addrs): Likewise.
37664 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37665 (clnttcp_control): Likewise.
37666 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37667 (clntudp_control): Likewise.
37668 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37669 (clntunix_control): Likewise.
37670 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37671 * sunrpc/rpc/auth.h (union des_block): Likewise.
37672 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37673 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37674 (xdrrec_create): Likewise.
37675 (xdrrec_endofrecord): Likewise.
37676 (flush_out): Likewise.
37677 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37678 (xdrstdio_putlong): Likewise.
37679 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37680 Likewise.
37681
37682 * misc/sys/cdefs.h (__long_double_t): Remove.
37683 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37684 instead of __long_double_t,
37685 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37686
37687 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37688
37689 * benchtests/scripts/compare_strings.py: Avoid display error when
37690 running on a text terminal.
37691
37692 * benchtests/scripts/compare_strings.py (main): Add an
37693 optional -base option.
37694 (process_results): New argument base_func.
37695
37696 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37697 hardcoding memcpy.
37698 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37699 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37700
37701 2017-08-07 Andreas Schwab <schwab@suse.de>
37702
37703 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37704 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37705 * intl/Makefile ($(objpfx)tst-gettext.out)
37706 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37707 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37708 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37709 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37710 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37711 * posix/Makefile ($(objpfx)globtest.out)
37712 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37713 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37714 ($(objpfx)tst-printf.out): Likewise.
37715 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37716 ($(objpfx)tst-setcontext3.out): Likewise.
37717
37718 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37719
37720 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37721 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37722 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37723 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37724 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37725 and mptan-fma.
37726 (CFLAGS-doasin-fma.c): New.
37727 (CFLAGS-dosincos-fma.c): Likewise.
37728 (CFLAGS-e_asin-fma.c): Likewise.
37729 (CFLAGS-e_atan2-fma.c): Likewise.
37730 (CFLAGS-e_exp-fma.c): Likewise.
37731 (CFLAGS-e_log-fma.c): Likewise.
37732 (CFLAGS-e_pow-fma.c): Likewise.
37733 (CFLAGS-halfulp-fma.c): Likewise.
37734 (CFLAGS-mpa-fma.c): Likewise.
37735 (CFLAGS-mpatan-fma.c): Likewise.
37736 (CFLAGS-mpatan2-fma.c): Likewise.
37737 (CFLAGS-mpexp-fma.c): Likewise.
37738 (CFLAGS-mplog-fma.c): Likewise.
37739 (CFLAGS-mpsqrt-fma.c): Likewise.
37740 (CFLAGS-mptan-fma.c): Likewise.
37741 (CFLAGS-s_atan-fma.c): Likewise.
37742 (CFLAGS-sincos32-fma.c): Likewise.
37743 (CFLAGS-slowexp-fma.c): Likewise.
37744 (CFLAGS-slowpow-fma.c): Likewise.
37745 (CFLAGS-s_sin-fma.c): Likewise.
37746 (CFLAGS-s_tan-fma.c): Likewise.
37747 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37748 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37749 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37750 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37751 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37752 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37753 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37754 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37755 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37756 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37757 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37758 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37759 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37760 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37761 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37762 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37763 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37764 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37765 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37766 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37767 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37768 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37769 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37770 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37771 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37772 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37773 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37774 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37775 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37776 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37777 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37778
37779 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37780
37781 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37782 (min_of_type_f): New macro.
37783 (min_of_type_): Likewise.
37784 (min_of_type_l): Likewise.
37785 (min_of_type_f128): Likewise.
37786 (min_of_type): Define using __MATH_TG and taking an expression
37787 argument.
37788 (math_check_force_underflow): Pass expression instead of type to
37789 min_of_type.
37790 (math_check_force_underflow_nonneg): Likewise.
37791
37792 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37793
37794 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37795 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37796 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37797
37798 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37799
37800 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37801 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37802 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37803 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37804 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37805 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37806 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37807 memmove_chk-nonshared and memset_chk-nonshared
37808 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37809 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37810 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37811 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37812 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37813 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37814 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37815 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37816 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37817 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37818 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37819 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37820 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37821 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37822 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37823 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37824 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37825 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37826 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37827 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37828 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37829 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37830 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37831 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37832 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37833 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37834 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37835 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37836 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37837 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37838 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37839 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37840 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37841 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37842 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37843 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37844 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37845 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37846 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37847 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37848 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37849 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37850 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37851 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37852 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37853 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37854 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37855 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37856 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37857 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37858 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37859 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37860 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37861 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37862 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37863 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37864 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37865 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37866 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37867 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37868 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37869 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37870 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37871 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37872 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37873 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37874 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37875 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37876 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37877 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37878 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37879 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37880 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37881 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37882 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37883 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37884 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37885 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37886 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37887 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37888 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37889 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37890 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37891 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37892 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37893 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37894 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37895 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37896 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37897 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37898 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37899 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37900 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37901 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37902 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37903 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37904 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37905 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37906 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37907 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37908 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37909 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37910 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37911 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37912 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37913 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37914 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37915 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37916
37917 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37918
37919 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37920 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37921 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37922 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37923 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37924 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37925 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37926 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37927 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37928 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37929 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37930 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37931 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37932 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37933 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37934 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37935 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37936 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37937 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37938 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37939 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37940 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37941 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37942 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37943 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37944 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37945 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37946 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37947 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37948 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37949 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37950 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37951 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37952 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37953 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37954 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37955 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37956 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37957 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37958 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37959 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37960 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37961 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37962 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37963 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37964 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37965 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37966 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37967 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37968 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37969 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37970 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37971 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37972 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37973 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37974 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37975 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37976 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37977 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37978 ...
37979 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37980 Don't include <sysdep.h> nor <init-arch.h>.
37981 (_ZGVbN2v_cos): Removed.
37982 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37983 ...
37984 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37985 Don't include <sysdep.h> nor <init-arch.h>.
37986 (_ZGVdN4v_cos): Removed.
37987 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37988 ...
37989 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37990 Don't include <sysdep.h> nor <init-arch.h>.
37991 (_ZGVeN8v_cos): Removed.
37992 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37993 ...
37994 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37995 Don't include <sysdep.h> nor <init-arch.h>.
37996 (_ZGVbN2v_exp): Removed.
37997 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37998 ...
37999 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
38000 Don't include <sysdep.h> nor <init-arch.h>.
38001 (_ZGVdN4v_exp): Removed.
38002 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
38003 ...
38004 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
38005 Don't include <sysdep.h> nor <init-arch.h>.
38006 (_ZGVeN8v_exp): Removed.
38007 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
38008 ...
38009 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
38010 Don't include <sysdep.h> nor <init-arch.h>.
38011 (_ZGVbN2v_log): Removed.
38012 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
38013 ...
38014 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
38015 Don't include <sysdep.h> nor <init-arch.h>.
38016 (_ZGVdN4v_log): Removed.
38017 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
38018 ...
38019 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
38020 Don't include <sysdep.h> nor <init-arch.h>.
38021 (_ZGVeN8v_log): Removed.
38022 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
38023 ...
38024 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
38025 Don't include <sysdep.h> nor <init-arch.h>.
38026 (_ZGVbN2vv_pow): Removed.
38027 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
38028 ...
38029 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
38030 Don't include <sysdep.h> nor <init-arch.h>.
38031 (_ZGVdN4vv_pow): Removed.
38032 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
38033 ...
38034 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
38035 Don't include <sysdep.h> nor <init-arch.h>.
38036 (_ZGVeN8vv_pow): Removed.
38037 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
38038 ...
38039 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
38040 Don't include <sysdep.h> nor <init-arch.h>.
38041 (_ZGVbN2v_sin): Removed.
38042 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
38043 ...
38044 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
38045 Don't include <sysdep.h> nor <init-arch.h>.
38046 (_ZGVbN4v_sin): Removed.
38047 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
38048 ...
38049 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38050 Don't include <sysdep.h> nor <init-arch.h>.
38051 (_ZGVbN8v_sin): Removed.
38052 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38053 ...
38054 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38055 Don't include <sysdep.h> nor <init-arch.h>.
38056 (_ZGVbN2vvv_sincos): Removed.
38057 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38058 ...
38059 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38060 Don't include <sysdep.h> nor <init-arch.h>.
38061 (_ZGVdN4vvv_sincos): Removed.
38062 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38063 ...
38064 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38065 Don't include <sysdep.h> nor <init-arch.h>.
38066 (_ZGVeN8vvv_sincos): Removed.
38067 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38068 ...
38069 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38070 Don't include <sysdep.h> nor <init-arch.h>.
38071 (_ZGVeN16v_cosf): Removed.
38072 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38073 ...
38074 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38075 Don't include <sysdep.h> nor <init-arch.h>.
38076 (_ZGVbN4v_cosf): Removed.
38077 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38078 ...
38079 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38080 Don't include <sysdep.h> nor <init-arch.h>.
38081 (_ZGVdN8v_cosf): Removed.
38082 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38083 ...
38084 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38085 Don't include <sysdep.h> nor <init-arch.h>.
38086 (_ZGVeN16v_expf): Removed.
38087 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38088 ...
38089 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38090 Don't include <sysdep.h> nor <init-arch.h>.
38091 (_ZGVbN4v_expf): Removed.
38092 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38093 ...
38094 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38095 Don't include <sysdep.h> nor <init-arch.h>.
38096 (_ZGVdN8v_expf): Removed.
38097 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38098 ...
38099 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38100 Don't include <sysdep.h> nor <init-arch.h>.
38101 (_ZGVeN16v_logf): Removed.
38102 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38103 ...
38104 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38105 Don't include <sysdep.h> nor <init-arch.h>.
38106 (_ZGVbN4v_logf): Removed.
38107 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38108 ...
38109 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38110 Don't include <sysdep.h> nor <init-arch.h>.
38111 (_ZGVdN8v_logf): Removed.
38112 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38113 ...
38114 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38115 Don't include <sysdep.h> nor <init-arch.h>.
38116 (_ZGVeN16vv_powf): Removed.
38117 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38118 ...
38119 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38120 Don't include <sysdep.h> nor <init-arch.h>.
38121 (_ZGVbN4vv_powf): Removed.
38122 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38123 ...
38124 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38125 Don't include <sysdep.h> nor <init-arch.h>.
38126 (_ZGVdN8vv_powf): Removed.
38127 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38128 ...
38129 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38130 Don't include <sysdep.h> nor <init-arch.h>.
38131 (_ZGVeN16vvv_sincosf): Removed.
38132 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38133 ...
38134 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38135 Don't include <sysdep.h> nor <init-arch.h>.
38136 (_ZGVbN4vvv_sincosf): Removed.
38137 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38138 ...
38139 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38140 Don't include <sysdep.h> nor <init-arch.h>.
38141 (_ZGVdN8vvv_sincosf): Removed.
38142 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38143 ...
38144 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38145 Don't include <sysdep.h> nor <init-arch.h>.
38146 (_ZGVeN16v_sinf): Removed.
38147 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38148 ...
38149 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38150 Don't include <sysdep.h> nor <init-arch.h>.
38151 (_ZGVbN4v_sinf): Removed.
38152 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38153 ...
38154 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38155 Don't include <sysdep.h> nor <init-arch.h>.
38156 (_ZGVdN8v_sinf): Removed.
38157
38158 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38159
38160 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38161 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38162 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38163 s_rint-sse4_1 and s_rintf-sse4_1.
38164 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38165 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38166 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38167 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38168 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38169 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38170 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38171 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38172 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38173 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38174 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38175 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38176 (__ceil): Removed.
38177 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38178 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38179 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38180 (__ceilf): Removed.
38181 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38182 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38183 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38184 (__floor): Removed.
38185 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38186 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38187 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38188 (__floorf): Removed.
38189 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38190 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38191 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38192 (__nearbyint): Removed.
38193 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38194 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38195 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38196 (__nearbyintf): Removed.
38197 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38198 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38199 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38200 (__rint): Removed.
38201 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38202 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38203 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38204 (__rintf): Removed.
38205
38206 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38207
38208 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38209 SHARED. Avoid dynamic relocation against main in static PIE.
38210
38211 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38212
38213 [BZ #21815]
38214 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38215 (LDFLAGS-tst-prelink): Likewise.
38216
38217 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38218
38219 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38220 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38221 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38222 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38223 (INTERNAL_SYSCALL_NCS): Likewise.
38224 (LOADARGS_1): Likewise.
38225 (LOADARGS_5): Likewise.
38226 (RESTOREARGS_1): Likewise.
38227 (RESTOREARGS_5): Likewise.
38228
38229 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38230
38231 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38232 (MEMPCPY_SYMBOL): Likewise.
38233 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38234 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38235 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38236 in libc.a.
38237 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38238 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38239 Likewise.
38240 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38241 (__hidden_ver1): Don't use in libc.a.
38242 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38243 (__mempcpy): Don't create a weak alias in libc.a.
38244 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38245 libc.a.
38246 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38247 (__hidden_ver1): Don't use in libc.a.
38248
38249 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38250
38251 * config.make.in (have-insert): New.
38252 * configure.ac (libc_cv_insert): New. Set to yes if linker
38253 supports INSERT in linker script.
38254 (AC_SUBST(libc_cv_insert): New.
38255 * configure: Regenerated.
38256 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38257 if $(have-insert) == yes.
38258
38259 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38260
38261 * elf/Makefile (tests): Add vismain only if
38262 $(have-protected-data) == yes.
38263 (tests-pie): Likewise.
38264
38265 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38266
38267 [BZ #21871]
38268 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38269 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38270
38271 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38272
38273 [BZ #21790]
38274 * sysdeps/i386/i586/memset.S
38275 (__memset_zero_constant_len_parameter): Removed.
38276 * sysdeps/i386/i686/memset.S
38277 (__memset_zero_constant_len_parameter): Likewise.
38278 * sysdeps/i386/i686/multiarch/memset_chk.S
38279 (__memset_zero_constant_len_parameter): Likewise.
38280 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38281 Likewise.
38282
38283 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38284
38285 * stdlib/getentropy.c (getentropy): Change return type to int.
38286
38287 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38288
38289 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38290
38291 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38292
38293 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38294 u_intN_t.
38295 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38296 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38297 Likewise.
38298 (ieee_float_shape_type): Likewise.
38299 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38300 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38301 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38302 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38303 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38304 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38305 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38306 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38307 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38308 Likewise.
38309 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38310 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38311 (__ieee754_yn): Likewise.
38312 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38313 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38314 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38315 Likewise.
38316 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38317 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38318 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38319 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38320 (__erfc): Likewise.
38321 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38322 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38323 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38324 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38325 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38326 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38327 Likewise.
38328 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38329 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38330 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38331 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38332 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38333 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38334 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38335 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38336 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38337 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38338 (__issignaling): Likewise.
38339 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38340 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38341 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38342 Likewise.
38343 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38344 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38345 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38346 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38347 Likewise.
38348 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38349 Likewise.
38350 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38351 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38352 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38353 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38354 (__erfcf): Likewise.
38355 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38356 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38357 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38358 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38359 Likewise.
38360 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38361 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38362 Likewise.
38363 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38364 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38365 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38366 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38367 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38368 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38369 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38370 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38371 Likewise.
38372 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38373 Likewise.
38374 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38375 Likewise.
38376 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38377 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38378 Likewise.
38379 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38380 Likewise.
38381 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38382 (__ieee754_ynl): Likewise.
38383 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38384 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38385 Likewise.
38386 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38387 Likewise.
38388 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38389 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38390 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38391 Likewise.
38392 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38393 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38394 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38395 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38396 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38397 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38398 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38399 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38400 Likewise.
38401 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38402 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38403 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38404 Likewise.
38405 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38406 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38407 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38408 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38409 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38410 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38411 Likewise.
38412 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38413 Likewise.
38414 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38415 Likewise.
38416 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38417 Likewise.
38418 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38419 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38420 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38421 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38422 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38423 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38424 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38425 Likewise.
38426 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38427 Likewise.
38428 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38429 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38430 Likewise.
38431 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38432 (__ieee754_remainderl): Likewise.
38433 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38434 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38435 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38436 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38437 Likewise.
38438 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38439 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38440 Likewise.
38441 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38442 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38443 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38444 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38445 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38446 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38447 Likewise.
38448 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38449 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38450 (__ieee754_y0l): Likewise.
38451 (pzero): Likewise.
38452 (qzero): Likewise.
38453 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38454 (__ieee754_y1l): Likewise.
38455 (pone): Likewise.
38456 (qone): Likewise.
38457 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38458 (__ieee754_ynl): Likewise.
38459 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38460 (__ieee754_lgammal_r): Likewise.
38461 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38462 Likewise.
38463 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38464 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38465 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38466 (__erfcl): Likewise.
38467 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38468 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38469 Likewise.
38470 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38471 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38472 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38473 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38474 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38475 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38476 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38477 Likewise.
38478 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38479 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38480 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38481 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38482 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38483 Likewise.
38484 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38485 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38486 Likewise.
38487 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38488 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38489 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38490 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38491 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38492
38493 2017-08-03 Florian Weimer <fweimer@redhat.com>
38494
38495 [BZ #21885]
38496 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38497 on memory allocation failure.
38498
38499 2017-08-03 Alan Modra <amodra@gmail.com>
38500
38501 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38502 tst-tlsopt-powerpc.c with function name change and no test harness.
38503 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38504 Call tls_get_addr_opt_test.
38505 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38506 (modules-names): Add mod-tlsopt-powerpc.
38507 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38508 (tst-tlsopt-powerpc): Depend on .so.
38509 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38510 define. Expand use in TLS_GD and TLS_LD.
38511
38512 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38513
38514 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38515 function.
38516 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38517
38518 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38519
38520 [BZ #21686]
38521 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38522 comparing size with that of double.
38523 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38524 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38525 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38526 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38527 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38528 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38529 unsigned __int128 types.
38530
38531 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38532
38533 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38534 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38535 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38536 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38537 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38538
38539 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38540
38541 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38542
38543 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38544
38545 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38546 of SHARED.
38547 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38548 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38549 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38550 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38551 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38552 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38553 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38554
38555 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38556
38557 [BZ #21685]
38558 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38559 bit-field expressions passed to sizeof or typeof.
38560 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38561 (__TGMATH_F128): Likewise.
38562 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38563 (__TGMATH_CF128): Likewise.
38564 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38565 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38566 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38567 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38568 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38569 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38570 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38571 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38572 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38573 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38574 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38575 (__TGMATH_UNARY_IMAG): Likewise.
38576 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38577 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38578 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38579 type.
38580 (define_vars_for_type): Handle bit_field type specially.
38581 (Tests.__init__): Declare structure with bit-field element.
38582
38583 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38584
38585 [BZ #21791]
38586 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38587 (MEMCPY_CHK): Define only if SHARED is defined.
38588 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38589 Likewise.
38590 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38591 Likewise.
38592
38593 See ChangeLog.18 for earlier changes.