]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
[powerpc] fenv_private.h clean up
[thirdparty/glibc.git] / ChangeLog
1 2019-09-27 Paul A. Clarke <pc@us.ibm.com>
2
3 * sysdeps/powerpc/fpu/fenv_libc.h:
4 (__TEST_AND_ENTER_NON_STOP): New.
5 (__TEST_AND_EXIT_NON_STOP): New.
6 * sysdeps/powerpc/fpu/fenv_private.h
7 (_FPU_ALL_TRAPS): Delete, replace with FPSCR_ENABLES_MASK.
8 (_FPU_MASK_RN): Delete.
9 (_FPU_MASK_NOT_RN_NI): Delete.
10 (_FPU_MASK_TRAPS_RN): Delete, replace with ~FPSCR_CONTROL_MASK.
11 (_FPU_MASK_FRAC_INEX_RET_CC): Delete, replace with ~FPSCR_STATUS_MASK.
12 (__libc_feholdbits_ppc): Delete, move code into
13 libc_feholdexcept_setround_ppc.
14 (libc_feholdexcept_ppc): Delete.
15 (libc_fesetround_ppc): Delete.
16 (libc_fetestexcept_ppc): Delete.
17 (libc_feholdsetround_ppc): Delete.
18 (__libc_femergeenv_ppc): Use __TEST_AND_ENTER/EXIT_NON_STOP.
19 (libc_feholdsetround_noex_ppc_ctx): Likewise.
20 (libc_feupdateenv_test_ppc): Use FPSCR defines.
21 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
22 __TEST_AND_ENTER_NON_STOP.
23 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
24 * sysdeps/powerpc/fpu/feholdexcpt.c (__feholdexcept): Likewise.
25 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
26 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
27 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
28 (_FPU_MASK_ALL): Delete.
29
30 2019-09-27 Joseph Myers <joseph@codesourcery.com>
31
32 * sysdeps/gnu/netinet/tcp.h (TCP_TX_DELAY): New macro.
33
34 2019-09-26 Lukasz Majewski <lukma@denx.de>
35
36 * include/time.h: Add struct __timespec64 definition
37
38 2019-09-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
39
40 * scripts/vcs_to_changelog/misc_util.py (decode): Remove latin1
41 from codecs.
42
43 2019-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
44
45 * rt/Makefile (CFLAGS-clock_nanosleep.c): Move to ...
46 * time/Makefile (CFLAGS-clock_nanosleep.c): ... here.
47
48 * sysdeps/unix/sysv/linux/Makefile
49 (CFLAGS-tst-sigcontextinfo-get_pc.c): Rename to
50 CFLAGS-tst-sigcontext-get_pc.c.
51
52 2019-09-24 Alistair Francis <alistair.francis@wdc.com>
53
54 * inet/net-internal.h: Fix uninitalised clntudp_call() variable.
55
56 2019-09-24 Andreas Schwab <schwab@suse.de>
57
58 * sysdeps/unix/sysv/linux/arm/sysdep.h
59 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
60 not "__vdso_gettimeofday".
61 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
62 "__vdso_clock_gettime".
63 * sysdeps/unix/sysv/linux/mips/sysdep.h
64 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
65 not "__vdso_gettimeofday".
66 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
67 "__vdso_clock_gettime".
68
69 2019-09-19 Paul A. Clarke <pc@us.ibm.com>
70
71 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_and_set_rn): New.
72 (__fe_mffscrn): New.
73 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
74 Do not clear enable bits, remove obsolete code, use
75 fegetenv_and_set_rn.
76 (libc_feresetround_ppc): Remove obsolete code, use
77 fegetenv_and_set_rn.
78
79 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
80
81 * support/support_ptrace.c: Remove inclusion of sys/prctl.h.
82
83 2019-09-19 Stefan Liebler <stli@linux.ibm.com>
84
85 * sysdeps/s390/hp-timing.h (_HP_TIMING_H): Undefine.
86 (_HP_TIMING_S390_H): Define.
87
88 2019-09-18 Joseph Myers <joseph@codesourcery.com>
89
90 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
91 version to 5.3.
92 (clone3): New syscall.
93 (pidfd_open): Likewise.
94
95 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
96 version to 5.3.
97
98 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
99
100 * sysdeps/s390/hp-timing.h: New file.
101
102 2019-09-18 Joseph Myers <joseph@codesourcery.com>
103
104 * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
105 <linux/sched.h>.
106 (CLONE_VM): New macro.
107 (CLONE_VFORK): Likewise.
108
109 2019-09-18 Stefan Liebler <stli@linux.ibm.com>
110
111 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
112 Rearrange subprocesses.
113 (pldd_process): New function.
114 * support/Makefile (libsupport-routines): Add support_ptrace.
115 * support/xptrace.h: New file.
116 * support/support_ptrace.c: Likewise.
117
118 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
119
120 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
121
122 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
123 (INTERNAL_VSYSCALL_CALL): Remove.
124 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
125 (INTERNAL_VSYSCALL_CALL): Likewise.
126 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
127 (INTERNAL_VSYSCALL_CALL): Likewise.
128 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
129 New macro.
130
131 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
132 defined.
133 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
134 (__get_timebase_freq): Remove use of
135 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
136 (get_timebase_freq_fallback): New symbol.
137 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
138 HAVE_GETTIMEOFDAY_VSYSCALL.
139 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
140 HAVE_TIME_VSYSCALL.
141 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
142 implementation.
143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
144 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
145 powerpc64.
146 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
147 * .../sysv/linux/powerpc/powerpc64/sysdep.h
148 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
149 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
150 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
151
152 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
153 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
154 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
155 Likewise.
156 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
157 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
158 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
159 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
160 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
161 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
162 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
163 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
164 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
165 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
166 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
167 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
168 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
169 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
170 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
171 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
172 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
173 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
174 name.
175 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
176 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
177 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
178 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
179 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
180 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
181 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
182 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
183 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
184 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
185 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
186 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
187 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
188 HAVE_GETCPU_VSYSCALL): Likewise.
189 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
190 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
191 HAVE_GETCPU_VSYSCALL): Likewise.
192 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
193 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
194 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
195 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
196 HAVE_GETCPU_VSYSCALL): Likewise.
197 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
198 invalid names if architecture does not define them.
199 (get_vdso_mangle_symbol): New symbol.
200 * sysdeps/unix/sysv/linux/init-first.c: New file.
201 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
202 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
203 clock_gettime, clock_getres, getcpu, time): Remove declaration.
204 (__libc_vdso_platform_setup_arch): Likewise and use
205 get_vdso_mangle_symbol to setup vDSO symbols.
206 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
207 attribute_hidden.
208 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
209 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
210 definition.
211
212 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
213 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
214 Use get_vdso_symbol instead of _dl_vdso_vsym.
215 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
216 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
217 (__lookup_riscv_flush_icache): Likewise.
218 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
219 Likewise.
220 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
221 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
222 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
223 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
224 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
225 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
226 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
227 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
228 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
229 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
230 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
231 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
232 Define.
233 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
234 Likewise.
235 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
236 Likewise.
237 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
238 Likewise.
239 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
240 Likewise.
241 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
242 Likewise.
243 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
244 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
245 definition.
246 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
247 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
248 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
249 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
251 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
253 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
254 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
255 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
256 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
257 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
258 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
259 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
260 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
261 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
262 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
263 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
264 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
265 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
266 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
267 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
268 (get_vdso_symbol): New function.
269
270 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
271
272 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
273 position of string null termination.
274
275 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
276
277 [BZ #24986]
278 * sysdeps/unix/alpha/getegid.S: Move to ...
279 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
280 * sysdeps/unix/alpha/geteuid.S: Move to ...
281 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
282 * sysdeps/unix/alpha/getppid.S: Move to ...
283 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
284
285 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
286
287 Fix http: URL in 'configure'
288 * configure.ac: Add URL to AC_INIT so that it generates an
289 https: URL instead of an http: URL.
290 * configure: Regenerate.
291
292 Regenerate charmap-kw.h, locfile-kw.h
293 This propagates the recent http->https URL changes.
294 Since I used gperf 3.1 to regenerate, this is also a minor
295 internal-to-localedef API change.
296 URL problem reported by Joseph Myers in:
297 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
298 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
299 Regenerate with gperf 3.1.
300 * locale/programs/linereader.h (kw_hash_fct_t):
301 * locale/programs/repertoire.c (repertoiremap_hash):
302 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
303
304 2019-09-05 Florian Weimer <fweimer@redhat.com>
305
306 [BZ #24962]
307 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
308 (_nl_category_names_get): New function.
309 * intl/dcigettext.c (category_to_name): Call it.
310 * locale/findlocale.c (_nl_find_locale): Likewise.
311 * intl/loadlocale.c (_nl_load_locale): Likewise.
312 * locale/newlocale.c (__newlocale): Likewise.
313 * locale/setlocale.c (_nl_category_names): Adjust definition.
314 (_nl_category_name_idxs): Likewise.
315 (new_composite_name): Call _nl_category_names_get.
316 (setlocale): Likewise.
317
318 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
319
320 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
321 const attribute with pure attribute.
322
323 2019-09-04 Lukasz Majewski <lukma@denx.de>
324
325 * sysdeps/unix/sysv/linux/kernel-features.h
326 (__ASSUME_TIME64_SYSCALLS): New macro.
327
328 2019-09-04 Zack Weinberg <zackw@panix.com>
329
330 [BZ #24959]
331 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
332 * rt/clock_getres.c: Move to time/clock_getres.c.
333 * rt/clock_gettime.c: Move to time/clock_gettime.c.
334 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
335 * rt/clock_settime.c: Move to time/clock_settime.c.
336 * rt/tst-clock.c: Move to time/tst-clock.c.
337 * rt/tst-clock2.c: Move to time/tst-clock2.c.
338 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
339 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
340 * rt/clock-compat.c: Delete file.
341
342 * time/clock_getcpuclockid.c
343 * time/clock_getres.c
344 * time/clock_gettime.c
345 * time/clock_nanosleep.c
346 * time/clock_settime.c
347 * sysdeps/posix/clock_getres.c
348 * sysdeps/unix/clock_gettime.c
349 * sysdeps/unix/clock_nanosleep.c
350 * sysdeps/unix/clock_settime.c
351 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
352 * sysdeps/unix/sysv/linux/clock_getres.c
353 * sysdeps/unix/sysv/linux/clock_gettime.c
354 * sysdeps/unix/sysv/linux/clock_nanosleep.c
355 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
356 defined by this file with default symbol version GLIBC_2_17,
357 and optionally a compatibility alias at symbol version GLIBC_2_2.
358 * include/time.h: Remove internal prototypes for clock_getres,
359 clock_nanosleep, and clock_getcpuclockid.
360
361 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
362 Remove unused function realtime_gettime.
363
364 * rt/Makefile (clock-routines, routines): Remove variable.
365 (librt-routines): Remove clock-compat.
366 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
367 and tst-cpuclock1.
368 * time/Makefile (routines): Add clock_getres, clock_gettime,
369 clock_settime, clock_getcpuclockid, and clock_nanosleep.
370 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
371 and tst-cpuclock1.
372
373 * rt/Versions (libc): Remove entire stanza.
374 (librt GLIBC_2.2): Remove all clock_* functions.
375 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
376 Add clock_getres, clock_gettime, clock_settime,
377 clock_getcpuclockid, and clock_nanosleep.
378 (libc GLIBC_PRIVATE): Add __clock_gettime.
379
380 * sysdeps/mach/hurd/i386/librt.abilist
381 * sysdeps/unix/sysv/linux/alpha/librt.abilist
382 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
383 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
384 * sysdeps/unix/sysv/linux/hppa/librt.abilist
385 * sysdeps/unix/sysv/linux/i386/librt.abilist
386 * sysdeps/unix/sysv/linux/ia64/librt.abilist
387 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
388 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
389 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
390 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
391 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
392 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
395 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
396 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
397 * sysdeps/unix/sysv/linux/sh/librt.abilist
398 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
399 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
400 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
401 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
402 Remove entries for clock_getres, clock_gettime, clock_settime,
403 clock_getcpuclockid, and clock_nanosleep.
404
405 * sysdeps/mach/hurd/i386/libc.abilist
406 * sysdeps/unix/sysv/linux/alpha/libc.abilist
407 * sysdeps/unix/sysv/linux/arm/libc.abilist
408 * sysdeps/unix/sysv/linux/hppa/libc.abilist
409 * sysdeps/unix/sysv/linux/i386/libc.abilist
410 * sysdeps/unix/sysv/linux/ia64/libc.abilist
411 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
412 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
413 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
414 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
415 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
416 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
420 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
421 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
422 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
423 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
424 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
425 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
426 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
427 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
428 Add another set of entries for clock_getres, clock_gettime,
429 clock_settime, clock_getcpuclockid, and clock_nanosleep at
430 whatever version GLIBC_2.2 maps to.
431
432 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
433
434 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
435
436 2019-09-03 Florian Weimer <fweimer@redhat.com>
437
438 [BZ #24950]
439 * locale/programs/charmap.h (struct charseq): Turn bytes into a
440 flexible array member.
441 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
442 replace.
443
444 2019-09-02 Florian Weimer <fweimer@redhat.com>
445
446 * misc/tst-mntent-autofs.c: New file.
447 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
448
449 2019-09-02 Ian Kent <ikent@redhat.com>
450
451 Use autofs "ignore" mount hint in getmntent_r/getmntent.
452 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
453 getmntent_r.
454 (__getmntent_r): Call it. Filter out autofs entries with an
455 "ignore" mount option.
456
457 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
458
459 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
460 (generic_memcpy): Include generic C memcpy.
461 * benchtests/bench-memmove.c (simple_memmove): Remove.
462 (generic_memmove): Include generic C memmove.
463 * benchtests/bench-memset.c (simple_memset): Remove.
464 (generic_memset): Include generic C memset.
465 * benchtests/bench-memset-large.c (simple_memset): Remove.
466 (generic_memset): Include generic C memset.
467 * benchtests/bench-memset-walk.c (simple_memset): Remove.
468 (generic_memset): Include generic C memset.
469 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
470 * string/memset.c (MEMSET): Likewise.
471 * sysdeps/x86_64/memcopy.h: Remove empty file.
472
473 2019-08-30 Florian Weimer <fweimer@redhat.com>
474
475 nptl: Move pthread_attr_getinheritsched implementation into libc.
476 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
477 (libpthread-routines): Remove pthread_attr_getinheritsched.
478 * nptl/Versions (libpthread GLIBC_2.0): Remove
479 pthread_attr_getinheritsched.
480 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
481 * nptl/nptl-init.c (pthread_functions): Remove initializer for
482 ptr_pthread_attr_getinheritsched.
483 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
484 Remove ptr_pthread_attr_getinheritsched member.
485 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
486 Remove pthread_attr_getinheritsched.
487 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
488 Likewise.
489 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
490 Likewise.
491 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
492 Likewise.
493 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
494 Likewise.
495 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
496 Likewise.
497 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
498 Likewise.
499 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
500 Likewise.
501 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
502 (GLIBC_2.4): Likewise.
503 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
504 (GLIBC_2.0): Likewise.
505 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
506 (GLIBC_2.18): Likewise.
507 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
508 (GLIBC_2.18): Likewise.
509 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
510 (GLIBC_2.0): Likewise.
511 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
512 (GLIBC_2.0): Likewise.
513 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
514 Likewise.
515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
516 (GLIBC_2.0): Likewise.
517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
518 (GLIBC_2.3): Likewise.
519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
520 (GLIBC_2.17): Likewise.
521 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
522 (GLIBC_2.27): Likewise.
523 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
524 (GLIBC_2.0): Likewise.
525 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
526 (GLIBC_2.2): Likewise.
527 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
528 Likewise.
529 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
530 Likewise.
531 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
532 (GLIBC_2.0): Likewise.
533 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
534 (GLIBC_2.2): Likewise.
535 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
536 (GLIBC_2.2.5): Likewise.
537 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
538 (GLIBC_2.16): Likewise.
539
540 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
541
542 * sysdeps/mach/hurd/getcwd.c
543 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
544 slash if we got an unknown root directory. (__getcwd): Do not fail with
545 EGRATUITOUS if we got an unknown root directory.
546 * hurd/hurdselect.c (SELECT_ERROR): New macro.
547 (_hurd_select):
548 - Add `error' field to `d' structures array.
549 - If a poll descriptor is bogus, set EBADF, but continue with a zero
550 timeout.
551 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
552 EBADF there is any bit set above _hurd_dtablesize.
553 - Do not request io_select on bogus descriptors (SELECT_ERROR).
554 - On io_select request error, record the error.
555 - On io_select bogus reply, use EIO error code.
556 - On io_select bogus or error reply, record the error.
557 - Do not destroy reply port for bogus FDs.
558 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
559 EBADF case, or else POLLERR.
560 - On error, make select simulated readiness.
561
562 [BZ #19903]
563 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
564 as __vm_allocate.
565
566 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
567 unlocks SS and returns to the saved PC.
568 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
569 thread stack instead of the saved PC.
570
571 2019-08-30 Richard Braun <rbraun@sceen.net>
572
573 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
574 timeout.
575 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
576 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
577 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
578 <limits.h>.
579 (_hurd_select): Replace the call to __io_select with either
580 __io_select_request or __io_select_timeout_request, depending on the
581 timeout. Count the number of ready descriptors (replies for which at
582 least one type bit is set). Implement the timeout locally when there is
583 no file descriptor.
584
585 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
586
587 * elf/dl-addr.c (determine_info): Calculate the symbol index
588 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
589 * elf/dl-lookup.c (do_lookup_x): Ditto.
590 (_dl_setup_hash): Initialize MIPS xhash translation table.
591 * elf/elf.h (SHT_MIPS_XHASH): New define.
592 (DT_MIPS_XHASH): New define.
593 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
594 define.
595 (ELF_MACHINE_HASH_SYMIDX): Ditto.
596 (ELF_MACHINE_XHASH_SETUP): Ditto.
597 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
598 define.
599 (ELF_MACHINE_HASH_SYMIDX): Ditto.
600 (ELF_MACHINE_XHASH_SETUP): Ditto.
601 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
602 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
603 version.
604 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
605
606 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
607
608 * sysdeps/sh/preconfigure.ac: New file.
609 * sysdeps/sh/preconfigure: Regenerate.
610 * sysdeps/sh/be/sh3/Implies: New file.
611 * sysdeps/sh/be/sh4/Implies: Likewise.
612 * sysdeps/sh/le/sh3/Implies: Likewise.
613 * sysdeps/sh/le/sh4/Implies: Likewise.
614 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
615 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
616 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
617 sysdeps/unix/sysv/linux/sh/le/*.abilist.
618 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
619
620 * sysdeps/microblaze/preconfigure.ac: New file.
621 * sysdeps/microblaze/preconfigure: Regenerate.
622 * sysdeps/microblaze/be/implies: New file.
623 * sysdeps/microblaze/le/implies: Likewise.
624 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
625 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
626 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
627 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
628 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
629
630 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
631 * sysdeps/arm/preconfigure: Regenerate.
632 * sysdeps/arm/be/Implies: New file.
633 * sysdeps/arm/be/armv6/Implies: Likewise.
634 * sysdeps/arm/be/armv6t2/Implies: Likewise.
635 * sysdeps/arm/be/armv7/Implies: Likewise.
636 * sysdeps/arm/le/Implies: Likewise.
637 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
638 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
639 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
640 sysdeps/unix/sysv/linux/arm/le/*.abilist.
641 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
642
643 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
644
645 Fix posix/tst-regex by using UTF-8 and own test input
646 Problem reported by Stefan Liebler in:
647 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
648 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
649 (do_test, test_expr): Adjust to the fact that this source file,
650 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
651 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
652 so that it is now UTF-8.
653
654 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
655
656 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
657 (fegetenv_status): Generate 'mffsl' unconditionally.
658
659 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
660
661 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
662 FPSCR read.
663 (_FPU_MASK_ALL): Delete.
664
665 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
666
667 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
668 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
669 if possible.
670 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
671 with simpler required steps, set fewer FPSCR bits if possible.
672
673 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
674
675 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
676 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
677 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
678 weight access to FPSCR; remove unnecessary second FPSCR read and
679 validate.
680 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
681 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
682 access to FPSCR; Use macros in fenv_libc.h in favor of local.
683
684 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
685
686 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
687 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
688 (fenv_exceptions_to_reg): New.
689 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
690 operation with call to fenv_exceptions_to_reg().
691 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
692
693 2019-08-28 Florian Weimer <fweimer@redhat.com>
694
695 * misc/mntent.c (struct mntent_buffer): Define.
696 (mntent_buffer): Adjust type to void *.
697 (allocate): Adjust for allocate_once.
698 (deallocate): New function.
699 (getmntent): Call allocate_once.
700
701 2019-08-28 Florian Weimer <fweimer@redhat.com>
702
703 nptl: Move pthread_attr_setdetachstate implementation into libc.
704 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
705 (libpthread-routines): Remove pthread_attr_setdetachstate.
706 * nptl/Versions (libpthread GLIBC_2.0): Remove
707 pthread_attr_setdetachstate.
708 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
709 * nptl/nptl-init.c (pthread_functions): Remove initializer for
710 ptr_pthread_attr_setdetachstate.
711 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
712 Remove ptr_pthread_attr_setdetachstate member.
713 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
714 Remove pthread_attr_setdetachstate.
715 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
716 Likewise.
717 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
718 Likewise.
719 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
720 Likewise.
721 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
722 Likewise.
723 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
724 Likewise.
725 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
726 Likewise.
727 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
728 (GLIBC_2.4): Likewise.
729 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
730 (GLIBC_2.0): Likewise.
731 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
732 (GLIBC_2.18): Likewise.
733 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
734 (GLIBC_2.0): Likewise.
735 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
736 (GLIBC_2.0): Likewise.
737 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
738 Likewise.
739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
740 (GLIBC_2.0): Likewise.
741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
742 (GLIBC_2.3): Likewise.
743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
744 (GLIBC_2.17): Likewise.
745 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
746 (GLIBC_2.27): Likewise.
747 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
748 (GLIBC_2.0): Likewise.
749 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
750 (GLIBC_2.2): Likewise.
751 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
752 Likewise.
753 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
754 (GLIBC_2.0): Likewise.
755 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
756 (GLIBC_2.2): Likewise.
757 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
758 (GLIBC_2.2.5): Likewise.
759 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
760 (GLIBC_2.16): Likewise.
761
762 2019-08-28 Florian Weimer <fweimer@redhat.com>
763
764 [BZ #24902]
765 * login/Makefile (tests): Add tst-pututxline-lockfail.
766 (tst-pututxline-lockfail): Link with -lpthread.
767 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
768 (__libc_getutid_r): Adjust.
769 (__libc_pututline): Likewise. Check for file_offset == -1.
770 * login/tst-pututxline-lockfail.c: New file.
771
772 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
773
774 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
775 * posix/tst-regex.input: New file.
776
777 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
778
779 [BZ #24916]
780 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
781 tst-undefined-weak.
782 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
783 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
784 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
785 * sysdeps/mips/tst-undefined-weak.c: Likewise.
786 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
787 Increment highest valid ABIVERSION value.
788
789 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
790
791 * sysdeps/unix/sysv/linux/mips/Makefile
792 (test-xfail-check-execstack):
793 Move under mips-has-gnustack != yes.
794 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
795 Apply -Wa,-execstack if mips-force-execstack == yes.
796 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
797 * sysdeps/unix/sysv/linux/mips/configure.ac
798 (mips-force-execstack): New var.
799 Set to yes for hard-float builds with minimum_kernel < 4.8.0
800 or minimum_kernel not set at all.
801 (mips-has-gnustack): New var.
802 Use value of libc_cv_as_noexecstack
803 if mips-force-execstack != yes, otherwise set to no.
804
805 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
806 Florian Weimer <fweimer@redhat.com>
807
808 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
809 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
810 Make a compat_symbol.
811 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
812 (__profil_counter_global): Likewise.
813
814 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
815 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
816 uintptr_t.
817 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
818 sigcontext_get_pc and return aligned cast to uintptr_t.
819 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
820 * sysdeps/posix/profil.c (profil_count): Change PC argument to
821 uintptr_t.
822 (__profil): Use SA_SIGINFO.
823 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
824 uintptr_t.
825 (__sprofil): Use SA_SIGINFO.
826 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
827 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
828 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
829 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
830 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
831 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
832 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
833 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
834 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
835 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
836 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
837 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
838 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
839 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
840 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
841 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
842 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
843 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
844 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
845 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
846 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
847 GET_PC, __sigaction, sigaction): Remove defines.
848 (sigcontext_get_pc): New function.
849 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
850 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
851 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
852 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
853 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
854 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
855 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
856 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
857 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
858 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
859 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
860 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
861 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
862 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
863 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
864 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
865 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
866 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
867 Handle CTX argument as ucontext_t.
868 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
869 Likewise.
870 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
871 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
872 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
873 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
874 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
875 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
876 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
877 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
878 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
879 tst-sigcontextinfo-get_pc.
880 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
881 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
882
883 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
884
885 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
886 definition.
887
888 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
889
890 [BZ #24682]
891 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
892 * localedata/locales/ug_CN (first_weekday): Likewise.
893 * localedata/locales/zh_CN (first_weekday): Likewise.
894
895 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
896
897 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
898 field name in mcontext_t struct.
899
900 2019-08-22 Joseph Myers <joseph@codesourcery.com>
901
902 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
903 unsupported with libidn2 before 2.0.5.
904 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
905
906 * manual/time.texi (strftime): Document %Ob and %OB as C2X
907 features.
908
909 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
910
911 Remove dead regex code
912 * posix/regex_internal.c (re_node_set_insert):
913 Remove unnecessary assignment. Reported by Tim Rühsen in:
914 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
915
916 Fix bad pointer / leak in regex code
917 This was found by Coverity (CID 1484201). [BZ#24844]
918 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
919 pointer and/or memory leak when storage is exhausted.
920
921 2019-08-21 Zack Weinberg <zackw@panix.com>
922
923 * misc/syslog.c (__vsyslog_internal)
924 * time/getdate.c (__getdate_r)
925 * time/tst_wcsftime.c (main):
926 Use return value of time, not its argument.
927
928 * string/strfry.c (strfry)
929 * sysdeps/mach/sleep.c (__sleep):
930 Remove unnecessary casts of NULL in calls to time.
931
932 2019-08-21 Joseph Myers <joseph@codesourcery.com>
933
934 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
935 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
936 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
937 (__TGMATH_2_NARROW_F): Likewise.
938 (__TGMATH_2_NARROW_D): New macro.
939 (__TGMATH_2_NARROW_F16): Likewise.
940 (__TGMATH_2_NARROW_F32): Likewise.
941 (__TGMATH_2_NARROW_F64): Likewise.
942 (__TGMATH_2_NARROW_F32X): Likewise.
943 (__TGMATH_2_NARROW_F64X): Likewise.
944 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
945 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
946 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
947 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
948 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
949 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
950 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
951 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
952 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
953 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
954 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
955 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
956 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
957 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
958 Likewise.
959 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
960 Likewise.
961 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
962 Likewise.
963 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
964 Likewise.
965 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
966 Likewise.
967 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
968 Likewise.
969 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
970 Likewise.
971 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
972 Likewise.
973 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
974 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
975 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
976 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
977 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
978 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
979 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
980 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
981 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
982 Likewise.
983 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
984 Likewise.
985 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
986 Likewise.
987 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
988 Likewise.
989 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
990 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
991 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
992 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
993 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
994 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
995 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
996 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
997 * math/gen-tgmath-tests.py (Type): Add members
998 non_standard_real_argument_types_list, long_double_type,
999 complex_float64_type and float32x_ext_type.
1000 (Type.__init__): Set the new members.
1001 (Type.floating_type): Add new argument floatn.
1002 (Type.real_floating_type): Likewise.
1003 (Type.can_combine_types): Likewise.
1004 (Type.combine_types): Likewise.
1005 (Type.init_types): Create internal Float32x_ext type.
1006 (Tests.__init__): Define Float32x_ext in generated C code.
1007 (Tests.add_tests): Handle narrowing functions.
1008 (Tests.add_all_tests): Likewise.
1009 (Tests.tests_text): Allow variation in mant_dig for narrowing
1010 functions with compilers before GCC 8.
1011 * math/Makefile (tgmath3-narrow-types): New variable.
1012 (tgmath3-narrow-macros): Likewise.
1013 (tgmath3-macros): Add $(tgmath3-narrow-macros).
1014
1015 2019-08-20 Andreas Schwab <schwab@suse.de>
1016
1017 * sysdeps/i386/fpu/libm-test-ulps: Update.
1018
1019 2019-08-19 Carlos O'Donell <carlos@redhat.com>
1020
1021 * nscd/nscd.conf: Add warning and comment about shared option.
1022
1023 2019-08-19 Carlos O'Donell <carlos@redhat.com>
1024
1025 * nss/nsswitch.conf: Expand comments, and simplify defaults.
1026 * manual/nss.texi (NSS Basics): List all known databases.
1027 (Services in the NSS configuration): Mention automount.
1028
1029 2019-08-19 Florian Weimer <fweimer@redhat.com>
1030
1031 Do not print backtraces on fatal errors.
1032 * debug/fortify_fail.c (__libc_argv): Remove declaration.
1033 (__fortify_fail_abort): Remove definition.
1034 (__fortify_fail): Call __libc_message directly.
1035 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
1036 (__stack_chk_fail): Call __fortify_fail instead of
1037 __fortify_fail_abort.
1038 * include/stdio.h (__fortify_fail_abort): Remove declaration.
1039 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
1040 definitions.
1041 (__libc_message): Do not handle do_backtrace. Do not call
1042 BEFORE_ABORT.
1043 (__libc_fatal): Do not pass do_backtrace to __libc_message.
1044 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
1045 (before_abort): Remove definitions.
1046
1047 2019-08-16 Florian Weimer <fweimer@redhat.com>
1048
1049 nptl: Move pthread_attr_getdetachstate implementation into libc.
1050 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
1051 (libpthread-routines): Remove pthread_attr_getdetachstate.
1052 * nptl/Versions (libpthread GLIBC_2.0): Remove
1053 pthread_attr_getdetachstate.
1054 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
1055 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1056 ptr_pthread_attr_getdetachstate.
1057 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1058 Remove ptr_pthread_attr_getdetachstate member.
1059 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1060 Remove pthread_attr_getdetachstate.
1061 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1062 Likewise.
1063 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1064 Likewise.
1065 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1066 Likewise.
1067 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1068 Likewise.
1069 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1070 Likewise.
1071 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1072 Likewise.
1073 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1074 (GLIBC_2.4): Likewise.
1075 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1076 (GLIBC_2.0): Likewise.
1077 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1078 (GLIBC_2.18): Likewise.
1079 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1080 (GLIBC_2.0): Likewise.
1081 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1082 (GLIBC_2.0): Likewise.
1083 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1084 Likewise.
1085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1086 (GLIBC_2.0): Likewise.
1087 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1088 (GLIBC_2.3): Likewise.
1089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1090 (GLIBC_2.17): Likewise.
1091 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1092 (GLIBC_2.27): Likewise.
1093 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1094 (GLIBC_2.0): Likewise.
1095 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1096 (GLIBC_2.2): Likewise.
1097 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1098 Likewise.
1099 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1100 (GLIBC_2.0): Likewise.
1101 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1102 (GLIBC_2.2): Likewise.
1103 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1104 (GLIBC_2.2.5): Likewise.
1105 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1106 (GLIBC_2.16): Likewise.
1107
1108 2019-08-16 Joseph Myers <joseph@codesourcery.com>
1109
1110 * math/libm-test-compat_totalorder.inc (do_test)
1111 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1112 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1113 * math/libm-test-compat_totalordermag.inc (do_test)
1114 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1115
1116 2019-08-15 Florian Weimer <fweimer@redhat.com>
1117
1118 nptl: Move pthread_attr_init implementation into libc.
1119 * nptl/Makefile (routines): Add pthread_attr_init.
1120 (libpthread-routines): Remove pthread_attr_init.
1121 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1122 (libpthread GLIBC_2.0): Likewise.
1123 * nptl/pthread_attr_init.c: Check for libc compat version instead
1124 of libpthread compat version.
1125 * nptl/forward.c (__pthread_attr_init_2_0)
1126 (__pthread_attr_init_2_1): Remove definitions.
1127 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1128 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1129 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1130 Remove members ptr___pthread_attr_init_2_0,
1131 ptr___pthread_attr_init_2_1.
1132 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1133 Remove pthread_attr_init.
1134 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1135 Likewise.
1136 (GLIBC_2.1): Likewise.
1137 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1138 Likewise.
1139 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1140 Likewise.
1141 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1142 Likewise.
1143 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1144 Likewise.
1145 (GLIBC_2.1): Likewise.
1146 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1147 Likewise.
1148 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1149 (GLIBC_2.4): Likewise.
1150 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1151 (GLIBC_2.0): Likewise.
1152 (GLIBC_2.1): Likewise.
1153 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1154 (GLIBC_2.18): Likewise.
1155 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1156 (GLIBC_2.0): Likewise.
1157 (GLIBC_2.1): Likewise.
1158 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1159 (GLIBC_2.0): Likewise.
1160 (GLIBC_2.1): Likewise.
1161 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1162 Likewise.
1163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1164 (GLIBC_2.0): Likewise.
1165 (GLIBC_2.1): Likewise.
1166 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1167 (GLIBC_2.3): Likewise.
1168 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1169 (GLIBC_2.17): Likewise.
1170 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1171 (GLIBC_2.27): Likewise.
1172 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1173 (GLIBC_2.0): Likewise.
1174 (GLIBC_2.1): Likewise.
1175 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1176 (GLIBC_2.2): Likewise.
1177 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1178 Likewise.
1179 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1180 (GLIBC_2.0): Likewise.
1181 (GLIBC_2.1): Likewise.
1182 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1183 (GLIBC_2.2): Likewise.
1184 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1185 (GLIBC_2.2.5): Likewise.
1186 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1187 (GLIBC_2.16): Likewise.
1188
1189 2019-08-15 Florian Weimer <fweimer@redhat.com>
1190
1191 [BZ #24900]
1192 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1193 new object in __RTLD_OPENEXEC mode (except for the origin).
1194 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1195 check for the error message.
1196 (do_test): Call it. Add check using relative path.
1197 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1198 (tst-dlopen-aout-container): Link with libpthread.
1199 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1200
1201 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1202
1203 * math/bits/mathcalls.h
1204 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1205 (totalorder): Take pointer arguments.
1206 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1207 (totalordermag): Likewise.
1208 * manual/arith.texi (totalorder): Likewise.
1209 (totalorderf): Likewise.
1210 (totalorderl): Likewise.
1211 (totalorderfN): Likewise.
1212 (totalorderfNx): Likewise.
1213 (totalordermag): Likewise.
1214 (totalordermagf): Likewise.
1215 (totalordermagl): Likewise.
1216 (totalordermagfN): Likewise.
1217 (totalordermagfNx): Likewise.
1218 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1219 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1220 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1221 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1222 totalorderl, totalordermag, totalordermagf, totalordermagl,
1223 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1224 totalordermagf64, totalordermagf32x, totalorderf64x,
1225 totalordermagf64x, totalorderf128 and totalordermagf128.
1226 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1227 and compat_totalordermag.
1228 (libm-test-funcs-compat): New variable.
1229 (libm-tests-compat): Likewise.
1230 (tests): Do not include compat tests.
1231 (tests-internal): Add compat tests.
1232 ($(foreach t,$(libm-tests-base),
1233 $(objpfx)$(t)-compat_totalorder.o)): Depend
1234 on $(objpfx)libm-test-totalorder.c.
1235 ($(foreach t,$(libm-tests-base),
1236 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1237 $(objpfx)libm-test-totalordermag.c.
1238 (tgmath3-macros): Remove totalorder and totalordermag.
1239 * math/libm-test-compat_totalorder.inc: New file.
1240 * math/libm-test-compat_totalordermag.inc: Likewise.
1241 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1242 (RUN_TEST_fpfp_b): New macro.
1243 (RUN_TEST_LOOP_fpfp_b): Likewise.
1244 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1245 TEST_fpfp_b.
1246 (totalorder_test): Condition on [!COMPAT_TEST].
1247 (do_test): Likewise.
1248 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1249 TEST_fpfp_b.
1250 (totalordermag_test): Condition on [!COMPAT_TEST].
1251 (do_test): Likewise.
1252 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1253 totalorder and totalordermag.
1254 * math/test-tgmath.c (NCALLS): Change to 132.
1255 (F(compile_test)): Do not call totalorder or totalordermag.
1256 (F(totalorder)): Remove.
1257 (F(totalordermag)): Likewise.
1258 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1259 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1260 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1261 SJSTR_HELPER.
1262 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1263 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1264 [!_ISOMAC] (TEST_ALIGN): Likewise.
1265 [!_ISOMAC] (TEST_OFFSET): Likewise.
1266 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1267 and <first-versions.h>.
1268 (__totalorder): Take pointer arguments. Add symbol versions and
1269 compat symbols.
1270 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1271 <shlib-compat.h> and <first-versions.h>.
1272 (__totalordermag): Take pointer arguments. Add symbol versions
1273 and compat symbols.
1274 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1275 <shlib-compat.h> and <first-versions.h>.
1276 (__totalorder): Take pointer arguments. Add symbol versions and
1277 compat symbols.
1278 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1279 <shlib-compat.h> and <first-versions.h>.
1280 (__totalordermag): Take pointer arguments. Add symbol versions
1281 and compat symbols.
1282 * sysdeps/ieee754/float128/float128_private.h
1283 (__totalorder_compatl): New macro.
1284 (__totalordermag_compatl): Likewise.
1285 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1286 and <first-versions.h>.
1287 (__totalorderf): Take pointer arguments. Add symbol versions and
1288 compat symbols.
1289 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1290 <shlib-compat.h> and <first-versions.h>.
1291 (__totalordermagf): Take pointer arguments. Add symbol versions
1292 and compat symbols.
1293 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1294 <shlib-compat.h> and <first-versions.h>.
1295 (__totalorderl): Take pointer arguments. Add symbol versions and
1296 compat symbols.
1297 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1298 <shlib-compat.h> and <first-versions.h>.
1299 (__totalordermagl): Take pointer arguments. Add symbol versions
1300 and compat symbols.
1301 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1302 <shlib-compat.h>.
1303 (__totalorderl): Take pointer arguments. Add symbol versions and
1304 compat symbols.
1305 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1306 <shlib-compat.h>.
1307 (__totalordermagl): Take pointer arguments. Add symbol versions
1308 and compat symbols.
1309 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1310 <shlib-compat.h> and <first-versions.h>.
1311 (__totalorderl): Take pointer arguments. Add symbol versions and
1312 compat symbols.
1313 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1314 <shlib-compat.h> and <first-versions.h>.
1315 (__totalordermagl): Take pointer arguments. Add symbol versions
1316 and compat symbols.
1317 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1318 pointer arguments.
1319 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1320 Likewise.
1321 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1322 (do_test): Update calls to totalorderl and totalordermagl.
1323 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1324 Update calls to totalorderl and totalordermagl.
1325 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1326 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1327 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1328 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1329 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1330 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1331 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1332 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1333 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1334 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1335 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1336 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1337 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1338 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1340 Likewise.
1341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1342 Likewise.
1343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1344 Likewise.
1345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1346 Likewise.
1347 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1348 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1349 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1350 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1351 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1352 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1353 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1354 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1355
1356 2019-08-15 Florian Weimer <fweimer@redhat.com>
1357
1358 [BZ #24899]
1359 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1360 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1361 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1362 Likewise.
1363 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1364 __attribute_nonstring__ to ut_id.
1365 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1366 Likewise.
1367
1368 2019-08-15 Florian Weimer <fweimer@redhat.com>
1369
1370 [BZ #24880]
1371 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1372 (file_locking_unlock): Likewise.
1373
1374 2019-08-15 Florian Weimer <fweimer@redhat.com>
1375
1376 [BZ #24879]
1377 login: Disarm timer after utmp lock acquisition.
1378 * login/utmp_file.c (struct file_locking): Remove.
1379 (try_file_lock): Adjust.
1380 (file_lock_restore): Remove function.
1381 (__libc_getutent_r): .
1382 (internal_getut_r): Likewise.
1383 (__libc_getutline_r): Likewise.
1384 (__libc_pututline): Likewise.
1385 (__libc_updwtmp): Likewise.
1386
1387 2019-08-15 Florian Weimer <fweimer@redhat.com>
1388
1389 nptl: Remove pthread_self compatibility symbol from libpthread.
1390 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1391 pthread_equal.
1392 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1393 * nptl/compat-pthread_self.c: Remove file.
1394 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1395 Remove pthread_self.
1396 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1397 Likewise.
1398 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1399 Likewise.
1400 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1401 Likewise.
1402 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1403 Likewise.
1404 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1405 Likewise.
1406 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1407 (GLIBC_2.4): Likewise.
1408 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1409 (GLIBC_2.0): Likewise.
1410 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1411 (GLIBC_2.18): Likewise.
1412 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1413 (GLIBC_2.0): Likewise.
1414 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1415 (GLIBC_2.0): Likewise.
1416 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1417 Likewise.
1418 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1419 (GLIBC_2.0): Likewise.
1420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1421 (GLIBC_2.3): Likewise.
1422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1423 (GLIBC_2.17): Likewise.
1424 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1425 (GLIBC_2.0): Likewise.
1426 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1427 (GLIBC_2.2): Likewise.
1428 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1429 Likewise.
1430 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1431 (GLIBC_2.0): Likewise.
1432 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1433 (GLIBC_2.2): Likewise.
1434 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1435 (GLIBC_2.2.5): Likewise.
1436 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1437 (GLIBC_2.16): Likewise.
1438
1439 2019-08-15 Florian Weimer <fweimer@redhat.com>
1440
1441 nptl: Move pthread_attr_destroy implementation into libc.
1442 * nptl/Makefile (routines): Add pthread_attr_destroy.
1443 (libpthread-routines): Remove pthread_attr_destroy.
1444 * nptl/Versions (libpthread GLIBC_2.0): Remove
1445 pthread_attr_destroy.
1446 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1447 libc compat version instead of libpthread compat version.
1448 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1449 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1450 ptr_pthread_attr_destroy.
1451 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1452 Remove ptr_pthread_attr_destroy member.
1453 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1454 Remove pthread_attr_destroy.
1455 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1456 Likewise.
1457 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1458 Likewise.
1459 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1460 Likewise.
1461 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1462 Likewise.
1463 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1464 Likewise.
1465 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1466 Likewise.
1467 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1468 (GLIBC_2.4): Likewise.
1469 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1470 (GLIBC_2.0): Likewise.
1471 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1472 (GLIBC_2.18): Likewise.
1473 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1474 (GLIBC_2.0): Likewise.
1475 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1476 (GLIBC_2.0): Likewise.
1477 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1478 Likewise.
1479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1480 (GLIBC_2.0): Likewise.
1481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1482 (GLIBC_2.3): Likewise.
1483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1484 (GLIBC_2.17): Likewise.
1485 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1486 (GLIBC_2.27): Likewise.
1487 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1488 (GLIBC_2.0): Likewise.
1489 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1490 (GLIBC_2.2): Likewise.
1491 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1492 Likewise.
1493 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1494 (GLIBC_2.0): Likewise.
1495 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1496 (GLIBC_2.2): Likewise.
1497 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1498 (GLIBC_2.2.5): Likewise.
1499 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1500 (GLIBC_2.16): Likewise.
1501
1502 2019-08-15 Andreas Schwab <schwab@suse.de>
1503
1504 * sysdeps/i386/fpu/libm-test-ulps: Update.
1505
1506 2019-08-15 Florian Weimer <fweimer@redhat.com>
1507
1508 * malloc/Makefile (tests): Only add tst-mxfast for
1509 $(have-tunables).
1510 * malloc/tst-mxfast.c: Fix copyright year.
1511 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1512 assert for checks.
1513
1514 2019-08-15 Florian Weimer <fweimer@redhat.com>
1515
1516 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1517 descriptor.
1518 * login/Makefile (tests): Add tst-updwtmpx.
1519 * login/tst-updwtmpx.c: New file.
1520
1521 2019-08-15 Florian Weimer <fweimer@redhat.com>
1522
1523 nptl: Move pthread_equal implementation into libc.
1524 * nptl/Makefile (routines): Add pthread_equal.
1525 * nptl/forward.c (pthread_equal): Remove definition.
1526 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1527 ptr_pthread_equal.
1528 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1529 Remove ptr_pthread_equal member.
1530 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1531 Remove pthread_equal.
1532 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1533 Likewise.
1534 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1535 Likewise.
1536 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1537 Likewise.
1538 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1539 Likewise.
1540 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1541 Likewise.
1542 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1543 Likewise.
1544 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1545 (GLIBC_2.4): Likewise.
1546 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1547 (GLIBC_2.0): Likewise.
1548 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1549 (GLIBC_2.18): Likewise.
1550 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1551 (GLIBC_2.0): Likewise.
1552 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1553 (GLIBC_2.0): Likewise.
1554 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1555 Likewise.
1556 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1557 (GLIBC_2.0): Likewise.
1558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1559 (GLIBC_2.3): Likewise.
1560 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1561 (GLIBC_2.17): Likewise.
1562 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1563 (GLIBC_2.27): Likewise.
1564 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1565 (GLIBC_2.0): Likewise.
1566 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1567 (GLIBC_2.2): Likewise.
1568 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1569 Likewise.
1570 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1571 (GLIBC_2.0): Likewise.
1572 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1573 (GLIBC_2.2): Likewise.
1574 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1575 (GLIBC_2.2.5): Likewise.
1576 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1577 (GLIBC_2.16): Likewise.
1578
1579 2019-08-14 Florian Weimer <fweimer@redhat.com>
1580
1581 * support/support_descriptors.c: Include <support/descriptors.h>.
1582
1583 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1584
1585 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1586 Disable DC ZVA code if this macro is defined as zero.
1587 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1588 Change to zero to disable using DC ZVA.
1589
1590 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1591
1592 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1593 Update comment.
1594 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1595 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1596 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1597 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1598 Likewise.
1599
1600 2019-08-13 Florian Weimer <fweimer@redhat.com>
1601
1602 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1603 Remove macros.
1604 (struct file_locking): New.
1605 (try_file_lock, file_unlock, file_lock_restore): New functions.
1606 (__libc_getutent_r): Use the new functions.
1607 (internal_getut_r): Likewise.
1608 (__libc_getutline_r): Likewise.
1609 (__libc_pututline): Likewise.
1610 (__libc_updwtmp): Likewise.
1611
1612 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1613
1614 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1615 comment.
1616 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1617 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1618 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1619 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1620 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1621 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1622 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1623 Likewise.
1624 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1625 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1626 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1627 Likewise.
1628 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1629 Likewise.
1630 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1631 Likewise.
1632 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1633 Likewise.
1634 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1635 Likewise.
1636 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1637 Likewise.
1638 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1639 Likewise.
1640 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1641 (IEC_60559_BFP_EXT)]: Likewise.
1642 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1643 Likewise.
1644 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1645 Likewise.
1646 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1647 Likewise.
1648 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1649 Likewise.
1650 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1651 Likewise.
1652 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1653 Likewise.
1654 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1655 Likewise.
1656 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1657 Likewise.
1658 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1659 Likewise, except for totalorder, totalordermag, getpayload,
1660 setpayload and setpayloadsig.
1661 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1662 except for totalorder and totalordermag.
1663
1664 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1665 (strdup): Likewise.
1666 (strndup): Likewise.
1667
1668 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1669 Undefine and define to 1 if [_GNU_SOURCE].
1670 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1671 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1672 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1673 (__USE_ISOC99): Likewise.
1674 (__USE_ISOC95): Likewise.
1675 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1676
1677 2019-08-13 Florian Weimer <fweimer@redhat.com>
1678
1679 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1680 are always true.
1681 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1682 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1683 * login/getutmpx.c (getutmpx): Likewise.
1684 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1685 true.
1686 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1687 _HAVE_UT_TV are always true.
1688 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1689 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1690 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1691 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1692 are always true.
1693 (internal_getut_r): _HAVE_UT_TYPE is always true.
1694 (__libc_pututline): Likewise.
1695 * login/programs/utmpdump.c (print_entry): Assume that
1696 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1697 _HAVE_UT_TV are always true.
1698 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1699 _HAVE_UT_ID are always true.
1700 * sysdeps/gnu/bits/utmp.h: Move to ...
1701 * bits/utmp.h: ... here, replacing the old file.
1702
1703 2019-08-12 Florian Weimer <fweimer@redhat.com>
1704
1705 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1706 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1707 not set.
1708 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1709 (do_test): Open the executable using an absolute path. Print
1710 error message to standard output.
1711
1712 2019-08-09 DJ Delorie <dj@redhat.com>
1713
1714 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1715 * manual/tunables.texi: Document it.
1716 * malloc/malloc.c (do_set_mxfast): New.
1717 (__libc_mallopt): Call it.
1718 * malloc/arena.c: Add mxfast tunable.
1719 * malloc/tst-mxfast.c: New.
1720 * malloc/Makefile: Add it.
1721
1722 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1723 Carlos O'Donell <carlos@redhat.com>
1724
1725 [BZ #24026]
1726 * malloc/malloc.c (__malloc_info): Account for top chunk.
1727
1728 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1729
1730 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1731 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1732
1733 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1734
1735 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1736
1737 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1738
1739 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1740
1741 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1742
1743 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1744 New macro.
1745
1746 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1747
1748 [BZ #19767]
1749 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1750 Remove definition.
1751 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1752 Likewise.
1753 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1754 Likewise.
1755 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1756 Likewise.
1757 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1758 (ALWAYS_USE_VSYSCALL): Likewise.
1759 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1760 (ALWAYS_USE_VSYSCALL): Likewise.
1761 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1762 (ALWAYS_USE_VSYSCALL): Likewise.
1763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1764 (ALWAYS_USE_VSYSCALL): Likewise.
1765 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1766 Likewise.
1767 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1768 (ALWAYS_USE_VSYSCALL): Likewise.
1769 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1770 (ALWAYS_USE_VSYSCALL): Likewise.
1771 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1772 Likewise.
1773 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1774 Likewise.
1775 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1776 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1777 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1778 USE_VSYSCALL): Remove defitions.
1779
1780 [BZ #19767]
1781 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1782 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1783 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1784 Define.
1785
1786 [BZ #19767]
1787 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1788 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1789 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1790 (ALWAYS_USE_VSYSCALL): Define.
1791 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1792 (ALWAYS_USE_VSYSCALL): Likewise.
1793
1794 [BZ #19767]
1795 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1796 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1797 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1798 Define.
1799
1800 * sysdeps/sh/libm-test-ulps: Update.
1801
1802 2019-08-05 Florian Weimer <fweimer@redhat.com>
1803
1804 [BZ #23518]
1805 * login/uptmp-private.h (struct ufuncs): Remove definition.
1806 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1807 (__libc_utmp_jump_table): Remove declarations.
1808 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1809 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1810 (__libc_updwtmp): Declare.
1811 * login/getutent_r.c (__libc_utmp_unknown_functions)
1812 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1813 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1814 (endutent_unknown): Remove definitions.
1815 (__setutent): Call __libc_setutent.
1816 (__getutent_r): Call __libc_getutent_r.
1817 (__pututline): Call __libc_pututline.
1818 (__endutent): Call __libc_endutent.
1819 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1820 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1821 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1822 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1823 (__libc_setutent): Rename from stetutent_file. Drop static.
1824 (maybe_setutent): New function.
1825 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1826 Check for initialization.
1827 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1828 Check for initialization.
1829 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1830 Check for initialization.
1831 (__libc_pututline): Rename from pututline_file. Drop static.
1832 Check for initialization.
1833 (__libc_endutent): Rename from endutent_file. Drop static. Check
1834 for initialization.
1835 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1836 * login/utmpname.c (__utmpname): Call __libc_endutent.
1837 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1838 __libc_getutlien_r, __libc_endutent.
1839 * manual/users.texi (Who Logged In, Manipulating the Database):
1840 Adjust.
1841
1842 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1843
1844 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1845
1846 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1847
1848 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1849
1850 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1851 kernel version number to 5.2.
1852
1853 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1854
1855 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1856 mnemonics and set .machine power8.
1857 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1858 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1859 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1860 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1861 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1862 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1863 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1864 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1865 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1866 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1867
1868 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1869
1870 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1871
1872 2019-08-01 Florian Weimer <fweimer@redhat.com>
1873
1874 [BZ #24867]
1875 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1876 whitespace.
1877
1878 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1879
1880 [BZ #15813]
1881 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1882 attempt.
1883
1884 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1885
1886 * version.h (RELEASE): Set to "stable".
1887 (VERSION): Set to "2.30".
1888 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1889
1890 * manual/install.texi: Update component versions.
1891 * INSTALL: Regenerate.
1892 * NEWS: Update.
1893
1894 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1895
1896 * po/be.po: Update translations.
1897 * po/bg.po: Likewise.
1898 * po/ca.po: Likewise.
1899 * po/cs.po: Likewise.
1900 * po/da.po: Likewise.
1901 * po/de.po: Likewise.
1902 * po/el.po: Likewise.
1903 * po/eo.po: Likewise.
1904 * po/es.po: Likewise.
1905 * po/fi.po: Likewise.
1906 * po/fr.po: Likewise.
1907 * po/gl.po: Likewise.
1908 * po/hr.po: Likewise.
1909 * po/hu.po: Likewise.
1910 * po/ia.po: Likewise.
1911 * po/id.po: Likewise.
1912 * po/it.po: Likewise.
1913 * po/ja.po: Likewise.
1914 * po/ko.po: Likewise.
1915 * po/lt.po: Likewise.
1916 * po/nb.po: Likewise.
1917 * po/nl.po: Likewise.
1918 * po/pl.po: Likewise.
1919 * po/pt_BR.po: Likewise.
1920 * po/ru.po: Likewise.
1921 * po/rw.po: Likewise.
1922 * po/sk.po: Likewise.
1923 * po/sl.po: Likewise.
1924 * po/sv.po: Likewise.
1925 * po/tr.po: Likewise.
1926 * po/uk.po: Likewise.
1927 * po/vi.po: Likewise.
1928 * po/zh_CN.po: Likewise.
1929 * po/zh_TW.po: Likewise.
1930
1931 2019-07-31 Florian Weimer <fweimer@redhat.com>
1932
1933 [BZ #24583]
1934 [BZ #24677]
1935 iconv, libio: Revert reference counting changes.
1936 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1937 free the steps array.
1938 * libio/Makefile (tests): Remove tst-wfile-gconv.
1939 (tests-container): Do not add tst-wfile-ascii.
1940 (tst-wfile-gconv-ENV): Do not set.
1941 (generated): Do not add tst-wfile-gconv.mtrace,
1942 tst-wfile-gconv.check.
1943 [($run-built-tests)] (tests-special): Do not add
1944 tst-wfile-gconv-mem.out.
1945 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1946 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1947 instead of __wcsmbs_clone_conv.
1948 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1949 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1950
1951 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1952
1953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1954 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1955
1956 2019-07-30 Florian Weimer <fweimer@redhat.com>
1957
1958 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1959 type to uintptr_t. Update comment.
1960 (check_stack_top): Adjust.
1961
1962 2019-07-29 Florian Weimer <fweimer@redhat.com>
1963
1964 Linux: Move declaration of getdents64 to <dirent.h>.
1965 * bits/dirent_ext.h: New file.
1966 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1967 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1968 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1969 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1970 declaration.
1971 * manual/filesys.texi (Low-level Directory Access): Update header
1972 to dirent.h.
1973
1974 2019-07-29 DJ Delorie <dj@redhat.com>
1975 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1976
1977 [BZ #24794]
1978 * Makeconfig (all-subdirs): Improved source comments.
1979 * Makefile (testroot.pristine/install.stamp): Pass
1980 subdirs='$(sorted-subdirs)' to make install.
1981
1982 2019-07-25 Florian Weimer <fweimer@redhat.com>
1983
1984 [BZ #24677]
1985 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1986 counter before freeing array.
1987
1988 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 [BZ #24603]
1991 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1992 works.
1993 * sysdeps/x86_64/configure: Regenerated.
1994 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1995 to -mprefer-vector-width=128 if supported.
1996
1997 2019-07-24 Florian Weimer <fweimer@redhat.com>
1998
1999 * scripts/build-many-glibcs.py (Context.checkout): Default to
2000 Linux 5.2.
2001
2002 2019-07-24 Florian Weimer <fweimer@redhat.com>
2003
2004 [BZ #24532]
2005 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
2006 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
2007 (sysdep_headers): Add bits/socket-constants.h.
2008 (tests-special): Add tst-socket-consts.out.
2009 (tst-socket-consts.out): New target.
2010 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
2011 around <asm/unistd.h>.
2012 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
2013 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
2014 <asm/socket.h>.
2015 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
2016 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
2017 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
2018 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
2019 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
2020 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
2021 Likewise.
2022 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
2023
2024 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2025
2026 [BZ #24794]
2027 * Makefile (testroot.pristine/install.stamp): Pass
2028 subdirs='$(all-subdirs)' to make install.
2029
2030 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
2031 the same arguments used in all tests.
2032
2033 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2034
2035 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
2036
2037 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
2038
2039 [BZ #2872]
2040 * locale/C-translit.h.in: Add Cyrillic transliteration.
2041
2042 2019-07-19 Florian Weimer <fweimer@redhat.com>
2043
2044 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
2045 from Linux 5.2.
2046 (fsconfig): Add system call name.
2047 (fsmount): Likewise.
2048 (fsopen): Likewise.
2049 (fspick): Likewise.
2050 (move_mount): Likewise.
2051 (open_tree): Likewise.
2052
2053 2019-07-18 Carlos O'Donell <carlos@redhat.com>
2054
2055 * po/libc.pot: Regenerate.
2056
2057 2019-07-18 Mike Crowe <mac@mcrowe.com>
2058
2059 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
2060 functions recently added to sysdeps/nptl/pthread.h:
2061 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
2062 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
2063
2064 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
2065 pthread_cond_clockwait forwarding functions. There are no internal
2066 users, so it is unnecessary to expose these functions in libc.so.
2067 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2068 unnecessary ptr___pthread_cond_clockwait member.
2069 * nptl/nptl-init.c (pthread_functions): Remove assignment of
2070 removed member.
2071
2072 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2073
2074 [BZ #21897]
2075 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
2076 begin with an uppercase letter now.
2077 (abmon): Likewise.
2078 (mon): Update from CLDR, reword February from "Kudo" to
2079 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
2080 and August from "Liiqen" to "Leqeeni".
2081 * localedata/locales/aa_ER (mon): Update from CLDR, reword
2082 April from "Agda Baxisso" to "Agda Baxis" and August from
2083 "Leqeeni" to "Liiqen".
2084 * localedata/locales/aa_ER@saaho (mon): Likewise.
2085 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
2086 abbreviated February from "Kud" to "Nah".
2087 (mon): Update from CLDR, reword February from "Kudo" to
2088 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
2089
2090 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
2091
2092 [BZ #23996]
2093 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
2094
2095 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
2096
2097 [BZ #23996]
2098 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
2099 name_mrs, name_miss, and name_ms.
2100 * localedata/locales/nl_NL (LC_NAME): Likewise.
2101
2102 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
2103
2104 [BZ #24200]
2105 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2106 * localedata/locales/en_IE (first_weekday): Likewise.
2107
2108 2019-07-12 Mike Crowe <mac@mcrowe.com>
2109
2110 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2111 that is only useful if futex_supports_exact_relative_timeouts ()
2112 returns false.
2113 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2114 Likewise.
2115 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2116 timeouts potentially being imprecise since it's no longer true.
2117 Remove declaration of futex_supports_exact_relative_timeouts.
2118 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2119 of futex_supports_exact_relative_timeouts.
2120
2121 * NEWS: Mention recently-added pthread_cond_clockwait,
2122 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2123 sem_clockwait functions.
2124
2125 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2126 works like pthread_mutex_timedlock but takes a clockid parameter to
2127 measure the abstime parameter against.
2128 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2129 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2130 * nptl/pthread_mutex_timedlock.c
2131 (__pthread_mutex_clocklock_common): Rename from
2132 __pthread_mutex_timedlock and add clockid parameter. Pass this
2133 parameter to lll_clocklock and lll_clocklock_elision in place of
2134 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2135 LIBC_PROBE and validate clockid parameter before calling
2136 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2137 implementation to add LIBC_PROBE and calls
2138 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2139 clockid.
2140 * nptl/Makefile: Add tst-mutex11.c.
2141 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2142 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2143 clockid parameters to pthread_mutex_clocklock.
2144 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2145 clockid parameter to indicate which clock to be used. Call
2146 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2147 (do_test): Call do_test_clock to separately test
2148 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2149 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2150 * nptl/tst-mutex9.c: Likewise.
2151 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2152 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2153 Likewise.
2154 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2155 Likewise.
2156 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2157 Likewise.
2158 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2159 Likewise.
2160 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2161 Likewise.
2162 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2163 Likewise.
2164 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2165 Likewise.
2166 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2167 (GLIBC_2.30): Likewise.
2168 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2169 (GLIBC_2.30): Likewise.
2170 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2171 (GLIBC_2.30): Likewise.
2172 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2173 (GLIBC_2.30): Likewise.
2174 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2175 (GLIBC_2.30): Likewise.
2176 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2177 Likewise.
2178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2179 (GLIBC_2.30): Likewise.
2180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2181 (GLIBC_2.30): Likewise.
2182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2183 (GLIBC_2.30): Likewise.
2184 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2185 (GLIBC_2.30): Likewise.
2186 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2187 (GLIBC_2.30): Likewise.
2188 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2189 (GLIBC_2.30): Likewise.
2190 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2191 Likewise.
2192 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2193 (GLIBC_2.30): Likewise.
2194 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2195 (GLIBC_2.30): Likewise.
2196 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2197 (GLIBC_2.30): Likewise.
2198 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2199 (GLIBC_2.30): Likewise.
2200
2201 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2202 parameter to indicate the clock that the abstime parameter should
2203 be measured against in preparation for adding
2204 pthread_mutex_clocklock.
2205 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2206 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2207 from __lll_timedlock and add clockid parameter.
2208 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2209 Likewise.
2210 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2211 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2212 rather than __gettimeofday so that clockid can be used. This means
2213 that conversion from struct timeval is no longer required.
2214 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2215 Likewise.
2216 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2217 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2218 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2219 from lll_timedlock_elision, add clockid parameter and use
2220 meaningful names for other parameters. (__pthread_mutex_timedlock):
2221 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2222 lll_clocklock_elision.
2223 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2224 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2225 clockid parameter. (__lll_clocklock_elision): Rename from
2226 __lll_timedlock_elision and add clockid parameter.
2227 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2228 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2229 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2230 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2231 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2232 (LLL_LOCK): Likewise.
2233 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2234 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2235
2236 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2237 pthread_rwlock_clockwrlock which behave like
2238 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2239 respectively, except they always measure abstime against the
2240 supplied clockid. The functions currently support CLOCK_REALTIME
2241 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2242 specified.
2243 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2244 pthread_wrlock_clockwrlock.
2245 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2246 pthread_rwlock_clockwrlock.c.
2247 * nptl/pthread_rwlock_clockrdlock.c: Implement
2248 pthread_rwlock_clockrdlock.
2249 * nptl/pthread_rwlock_clockwrlock.c: Implement
2250 pthread_rwlock_clockwrlock.
2251 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2252 clockid parameter and verify that it indicates a supported clock on
2253 entry so that we fail even if it doesn't end up being used. Pass
2254 that clock on to futex_abstimed_wait when necessary.
2255 (__pthread_rwlock_wrlock_full): Likewise.
2256 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2257 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2258 be used because there's no timeout.
2259 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2260 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2261 be used because there is no timeout.
2262 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2263 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2264 uses that clock.
2265 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2266 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2267 uses that clock.
2268 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2269 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2270 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2271 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2272 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2273 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2274 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2275 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2276 (GLIBC_2.30): Likewise.
2277 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2278 (GLIBC_2.30): Likewise.
2279 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2280 (GLIBC_2.30): Likewise.
2281 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2282 (GLIBC_2.30): Likewise.
2283 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2284 (GLIBC_2.30): Likewise.
2285 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2287 (GLIBC_2.30): Likewise.
2288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2289 (GLIBC_2.30): Likewise.
2290 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2291 (GLIBC_2.30): Likewise.
2292 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2293 (GLIBC_2.30): Likewise.
2294 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2295 (GLIBC_2.30): Likewise.
2296 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2297 (GLIBC_2.30): Likewise.
2298 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2299 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2300 (GLIBC_2.30): Likewise.
2301 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2302 (GLIBC_2.30): Likewise.
2303 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2304 (GLIBC_2.30): Likewise.
2305 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2306 (GLIBC_2.30): Likewise.
2307 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2308 pthread_rwlock_clockwrlock timeout tests to match the existing
2309 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2310 * nptl/tst-rwlock14.c (do_test): Likewise.
2311 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2312 ancillary output throughout. (tf): Accept thread_args structure so
2313 that rwlock, a clockid and function name can be passed to the
2314 thread. (do_test_clock): Rename from do_test. Accept clockid
2315 parameter to specify test clock. Use the magic clockid value of
2316 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2317 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2318 specified clockid to pthread_rwlock_clockrdlock and
2319 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2320 (do_test): Call do_test_clock to test each clockid in turn.
2321 * nptl/tst-rwlock7.c: Likewise.
2322 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2323 thread_args structure so that the (now int) thread number, the
2324 clockid and the function name can be passed to the thread.
2325 (do_test_clock): Renamed from do_test. Pass the necessary
2326 thread_args when creating the reader and writer threads. Use
2327 xpthread_create and xpthread_join.
2328 (do_test): Call do_test_clock to test each clockid in turn.
2329 * manual/threads.texi: Add documentation for
2330 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2331
2332 nptl: pthread_rwlock: Move timeout validation into _full functions
2333 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2334 Check validity of abstime parameter.
2335 (__pthread_rwlock_rwlock_full): Likewise.
2336 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2337 Remove check for validity of abstime parameter.
2338 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2339 Likewise.
2340
2341 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2342 like pthread_cond_timedwait except it always measures abstime
2343 against the supplied clockid.
2344 * nptl/Makefile: Add tst-cond26 and tst-cond27
2345 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2346 * sysdeps/nptl/pthread.h: Likewise
2347 * nptl/forward.c: Add __pthread_cond_clockwait
2348 * nptl/forward.c: Likewise
2349 * nptl/pthreadP.h: Likewise
2350 * sysdeps/nptl/pthread-functions.h: Likewise
2351 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2352 clockid parameter and comment describing why we don't need to check
2353 its value. Use that value when calling
2354 futex_abstimed_wait_cancelable rather than reading the clock from
2355 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2356 (__pthread_cond_timedwait): Read clock from flags and pass it to
2357 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2358 function with weak alias from pthread_cond_clockwait.
2359 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2360 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2361 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2362 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2363 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2364 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2365 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2366 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2367 (GLIBC_2.30): Likewise.
2368 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2369 (GLIBC_2.30): Likewise.
2370 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2371 (GLIBC_2.30): Likewise.
2372 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2373 (GLIBC_2.30): Likewise.
2374 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2375 (GLIBC_2.30): Likewise.
2376 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2378 (GLIBC_2.30): Likewise.
2379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2380 (GLIBC_2.30): Likewise.
2381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2382 (GLIBC_2.30): Likewise.
2383 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2384 (GLIBC_2.30): Likewise.
2385 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2386 (GLIBC_2.30): Likewise.
2387 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2388 (GLIBC_2.30): Likewise.
2389 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2390 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2391 (GLIBC_2.30): Likewise.
2392 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2393 (GLIBC_2.30): Likewise.
2394 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2395 (GLIBC_2.30): Likewise.
2396 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2397 (GLIBC_2.30): Likewise.
2398 * nptl/tst-cond11.c (run_test): Support testing
2399 pthread_cond_clockwait too by using a special magic
2400 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2401 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2402 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2403 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2404 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2405 clocks to pthread_cond_clockwait.
2406 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2407 struct timespec and pthread_cond_clockwait.
2408 * manual/threads.texi: Document pthread_cond_clockwait.
2409
2410 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2411 sem_timedwait, but measures abstime against the specified clock.
2412 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2413 clockid parameters to indicate the clock which abstime should be
2414 measured against.
2415 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2416 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2417 __new_sem_wait_slow.
2418 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2419 on sem_timedwait.c.
2420 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2421 sem_clockwait.c to match those used for sem_timedwait.c.
2422 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2423 * nptl/Versions (GLIBC_2.30): Likewise.
2424 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2425 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2426 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2427 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2428 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2429 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2430 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2431 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2432 (GLIBC_2.30): Likewise.
2433 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2434 (GLIBC_2.30): Likewise.
2435 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2436 (GLIBC_2.30): Likewise.
2437 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2438 (GLIBC_2.30): Likewise.
2439 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2440 (GLIBC_2.30): Likewise.
2441 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2443 (GLIBC_2.30): Likewise.
2444 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2445 (GLIBC_2.30): Likewise.
2446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2447 (GLIBC_2.30): Likewise.
2448 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2449 (GLIBC_2.30): Likewise.
2450 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2451 (GLIBC_2.30): Likewise.
2452 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2453 (GLIBC_2.30): Likewise.
2454 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2455 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2456 (GLIBC_2.30): Likewise.
2457 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2458 (GLIBC_2.30): Likewise.
2459 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2460 (GLIBC_2.30): Likewise.
2461 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2462 (GLIBC_2.30): Likewise.
2463 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2464 sem_clockwait.
2465 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2466 tests to also test sem_clockwait.
2467 * manual/threads.texi: Document sem_clockwait.
2468
2469 nptl: Add clockid parameter to futex timed wait calls
2470 * sysdeps/nptl/lowlevellock-futex.h,
2471 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2472 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2473 takes a clockid rather than a special clockbit.
2474 * sysdeps/nptl/lowlevellock-futex.h: Add
2475 lll_futex_supported_clockid so that client functions can check
2476 whether their clockid parameter is valid even if they don't
2477 ultimately end up calling lll_futex_clock_wait_bitset.
2478 * sysdeps/nptl/futex-internal.h,
2479 sysdeps/unix/sysv/linux/futex-internal.h
2480 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2481 clockid_t parameter to indicate which clock the absolute time
2482 passed should be measured against. Pass that clockid onto
2483 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2484 returning -EINVAL.
2485 * sysdeps/nptl/futex-internal.h,
2486 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2487 futex_abstimed_supported_clockid so that client functions can check
2488 whether their clockid parameter is valid even if they don't
2489 ultimately end up calling futex_abstimed_wait.
2490 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2491 code to calculate relative timeout for
2492 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2493 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2494 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2495 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2496 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2497 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2498 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2499
2500 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2501
2502 [BZ #24699]
2503 * posix/tst-mmap-offset.c: Mention BZ #24699.
2504 (do_test_bz21270): Rename to do_test_large_offset and use
2505 mmap64_maximum_offset to check for maximum expected offset value.
2506 * sysdeps/generic/mmap_info.h: New file.
2507 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2508 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2509 __NR_mmap2 is used.
2510
2511 2019-07-10 DJ Delorie <dj@redhat.com>
2512 Sergei Trofimovich <slyfox@inbox.ru>
2513
2514 [BZ #24696]
2515 [BZ #24695]
2516 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2517 mappings.
2518 * nss/tst-nss-db-endgrent.c: New.
2519 * nss/tst-nss-db-endgrent.root: New.
2520 * nss/tst-nss-db-endpwent.c: New.
2521 * nss/tst-nss-db-endpwent.root: New.
2522 * nss/Makefile: Add new tests.
2523 * support/links-dso-program-c.c: Add selinux dependency.
2524 * support/links-dso-program.cc: Add selinux dependency.
2525 * support/Makefile: Build those with -lselinux if enabled.
2526
2527 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2528
2529 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2530 DT_AARCH64_VARIANT_PCS check.
2531 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2532 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2533 variant_pcs.
2534
2535 2019-07-10 Andreas Schwab <schwab@suse.de>
2536
2537 [BZ #23352]
2538 * malloc/malloc.h (__malloc_check_init): Don't declare.
2539 * include/malloc.h (__malloc_check_init): Likewise.
2540 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2541 * manual/memory.texi (__malloc_check_init): Don't mention it.
2542
2543 2019-07-10 Mao Han <han_mao@c-sky.com>
2544
2545 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2546
2547 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2548
2549 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2550 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2551
2552 2019-07-08 DJ Delorie <dj@redhat.com>
2553
2554 [BZ #23501]
2555 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2556 * io/tst-ftw-lnk.c: New test.
2557 * io/Makefile: Run it.
2558
2559 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2560
2561 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2562 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2563 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2564 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2565 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2566 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2568 Adjust implementation path.
2569 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2570 Adjust implementation path.
2571 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2572 Adjust implementation path.
2573 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2574 (libm-sysdep_routines): Add s_log* objects.
2575 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2576 CFLAGS-s_logb-power7.c): New fule.
2577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2578 to ...
2579 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2580 ... here.
2581 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2582 to ...
2583 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2584 ... here.
2585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2586 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2587 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2588 to ...
2589 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2590 ... here.
2591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2592 to ...
2593 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2594 ... here.
2595 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2596 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2598 to ...
2599 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2600 ... here.
2601 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2602 to ...
2603 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2604 ... here.
2605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2606 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2607 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2608 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2609 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2610 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2611
2612 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2613 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2614 powerpc32 integer 0 converting to -0.
2615
2616 * benchtests/Makefile (bench-math): Add logb.
2617 * benchtests/logb-inputs: New file.
2618 * benchtests/logbf-inputs: New file.
2619
2620 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2621 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2622 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2623 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2625 Adjust include.
2626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2627 Likewise.
2628 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2629 sysdep_routines): Add s_modf* objects.
2630 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2631 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2633 to ...
2634 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2635 ... here.
2636 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2637 to ...
2638 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2639 ... here.
2640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2641 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2642 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2643 to ...
2644 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2645 ... here.
2646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2647 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2648 ... here.
2649 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2650 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2651
2652 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2653 twoM500, twoM600, two60factor, pdnum): Remove.
2654 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2655 (__ieee754_hypot): Replace static variables with inline definition,
2656 remove ununsed branches.
2657 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2658 (libm-sysdep_routines): Remove e_hypot-* objects.
2659 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2660 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2661 file.
2662 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2663 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2664 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2665 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2666 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2667
2668 * benchtests/Makefile (bench-math): Add hypot.
2669 * benchtests/hypot-inputs: New file.
2670
2671 2019-07-08 Vincent Chen <vincentc@andestech.com>
2672
2673 * sysdeps/unix/sysv/linux/dl-vdso.h
2674 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2675
2676 2019-07-04 Andreas Schwab <schwab@suse.de>
2677
2678 [BZ #24484]
2679 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2680
2681 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2682
2683 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2684 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2685 * sysdeps/aarch64/sys/ifunc.h: New file.
2686 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2687 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2688
2689 2019-07-01 Florian Weimer <fweimer@redhat.com>
2690
2691 [BZ #20188]
2692 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2693 Replace __vfork with __libpthread_version_placeholder for
2694 GLIBC_2.1.2.
2695 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2696 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2697 libpthread-compat.
2698 * nptl/pt-vfork.c: Remove file.
2699 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2700 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2701 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2702 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2703 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2704 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2705 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2706 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2707 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2708 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2709 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2710 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2711 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2712 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2713 Remove vfork, __vfork.
2714 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2715 Remove vfork.
2716 (GLIBC_2.1.2): Replace __vfork with
2717 __libpthread_version_placeholder.
2718 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2719 Remove vfork, __vfork.
2720 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2721 Likewise.
2722 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2723 Remove vfork.
2724 (GLIBC_2.1.2): Replace __vfork with
2725 __libpthread_version_placeholder.
2726 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2727 Remove vfork.
2728 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2729 (GLIBC_2.4): Remove vfork, __vfork.
2730 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2731 (GLIBC_2.0): Remove vfork.
2732 (GLIBC_2.1.2): Replace __vfork with
2733 __libpthread_version_placeholder.
2734 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2735 (GLIBC_2.18): Remove vfork, __vfork.
2736 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2737 (GLIBC_2.0): Remove vfork.
2738 (GLIBC_2.2): Remove __vfork.
2739 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2740 (GLIBC_2.2): Remove vfork, __vfork.
2741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2742 (GLIBC_2.0): Remove vfork.
2743 (GLIBC_2.1.2): Replace __vfork with
2744 __libpthread_version_placeholder.
2745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2746 (GLIBC_2.3): Remove vfork, __vfork.
2747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2748 (GLIBC_2.17): Likewise.
2749 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2750 (GLIBC_2.0): Remove vfork.
2751 (GLIBC_2.1.2): Replace __vfork with
2752 __libpthread_version_placeholder.
2753 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2754 (GLIBC_2.2): Remove vfork, __vfork.
2755 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2756 Likewise.
2757 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2758 (GLIBC_2.0): Remove vfork.
2759 (GLIBC_2.1.2): Replace __vfork with
2760 __libpthread_version_placeholder.
2761 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2762 (GLIBC_2.2): Remove vfork, __vfork.
2763 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2764 (GLIBC_2.2.5): Likewise.
2765 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2766 (GLIBC_2.16): Likewise.
2767 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2768 Remove __errno_location.
2769
2770 2019-07-02 Florian Weimer <fweimer@redhat.com>
2771
2772 [BZ #24757]
2773 * malloc/Depend: Add nptl and htl, due to potential indirect
2774 libpthread dependency of memusagestat.
2775
2776 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2777
2778 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2779 warning.
2780
2781 2019-07-01 Florian Weimer <fweimer@redhat.com>
2782
2783 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2784 variant for arm-linux-gnueabi.
2785
2786 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2787
2788 [BZ #24259]
2789 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2790 relocation.
2791 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2792 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2793 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2794 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2795 and tst-cet-legacy-mod-6c.
2796 (CFLAGS-tst-cet-legacy-5a.c): New.
2797 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2798 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2799 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2800 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2801 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2802 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2803 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2804 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2805 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2806 ($(objpfx)tst-cet-legacy-5a): Likewise.
2807 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2808 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2809 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2810 ($(objpfx)tst-cet-legacy-5b): Likewise.
2811 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2812 (tst-cet-legacy-5b-ENV): Likewise.
2813 ($(objpfx)tst-cet-legacy-6a): Likewise.
2814 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2815 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2816 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2817 ($(objpfx)tst-cet-legacy-6b): Likewise.
2818 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2819 (tst-cet-legacy-6b-ENV): Likewise.
2820 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2821 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2822 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2823 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2824 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2825 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2826 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2827 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2828 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2829 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2830 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2831 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2832 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2833 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2834
2835 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2836
2837 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2838 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2839 (__fegetround_ISA300) New.
2840 (__fegetround_ISA2) New.
2841 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2842 (_FPU_MFFS): Move implementation...
2843 (_FPU_GETCW): Here.
2844 (_FPU_MFFSL): Move implementation....
2845 (_FPU_GET_RC_ISA300): Here. New.
2846 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2847 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2848 (fegetenv_status): New.
2849 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2850 instead of fegetenv_register().
2851 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2852
2853 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2854
2855 * benchtests/bench-math-inlines.c: Increase iterations.
2856 * benchtests/bench-memcmp.c: Likewise.
2857 * benchtests/bench-rawmemchr.c: Likewise.
2858 * benchtests/bench-strcmp.c: Likewise.
2859 * benchtests/bench-strcpy_chk.c: Likewise.
2860 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2861 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2862 (INNER_LOOP_ITERS_SMALL): Likewise.
2863 * benchtests/bench-strncat.c: Increase iterations.
2864 * benchtests/bench-strncmp.c: Increase iterations.
2865 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2866 * benchtests/bench-strrchr.c: Increase iterations.
2867 * benchtests/bench-strstr.c: Keep iterations unchanged.
2868 * benchtests/bench-strtod.c: Increase iterations.
2869
2870 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2871
2872 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2873 with INNER_LOOP_ITERS_LARGE.
2874 * benchtests/bench-memchr.c: Likewise.
2875 * benchtests/bench-rawmemchr.c: Likewise.
2876 * benchtests/bench-strcat.c: Likewise.
2877 * benchtests/bench-strchr.c: Likewise.
2878 * benchtests/bench-string.h: Likewise.
2879 * benchtests/bench-strlen.c: Likewise.
2880 * benchtests/bench-strncpy.c: Likewise.
2881 * benchtests/bench-strnlen.c: Likewise.
2882
2883 2019-06-28 Florian Weimer <fweimer@redhat.com>
2884
2885 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2886 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2887 entire allocated memory range.
2888
2889 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2890
2891 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2892 (prepare_version_base): New helper inline function.
2893 (prepare_version): New macro replacing PREPARE_VERSION.
2894 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2895
2896 2019-06-28 Florian Weimer <fweimer@redhat.com>
2897
2898 [BZ #24741]
2899 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2900 mismatch in a versioned symbol reference.
2901 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2902 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2903 tst-sonamemove-dlopen.
2904 (module-names): Add tst-sonamemove-linkmod1,
2905 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2906 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2907 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2908 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2909 (tst-sonamemove-runmod1.so): Link against
2910 tst-sonamemove-runmod2.so.
2911 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2912 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2913 tst-sonamemove-runmod2.so.
2914 (tst-sonamemove-dlopen): Link with -ldl.
2915 (tst-sonamemove-dlopen.out): Likewise.
2916 * elf/tst-sonamemove-link.c: New file.
2917 * elf/tst-sonamemove-dlopen.c: Likewise.
2918 * elf/tst-sonamemove-linkmod1.c: Likewise.
2919 * elf/tst-sonamemove-linkmod1.map: Likewise.
2920 * elf/tst-sonamemove-runmod1.c: Likewise.
2921 * elf/tst-sonamemove-runmod1.map: Likewise.
2922 * elf/tst-sonamemove-runmod2.c: Likewise.
2923 * elf/tst-sonamemove-runmod2.map: Likewise.
2924
2925 2019-06-28 Florian Weimer <fweimer@redhat.com>
2926
2927 * support/xdlfcn.h (xdlvsym): Declare function.
2928 * support/xdlfcn.c (xdlvsym): Define funciton.
2929
2930 2019-06-28 Florian Weimer <fweimer@redhat.com>
2931
2932 [BZ #24744]
2933 io: Remove the copy_file_range emulation.
2934 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2935 not define and call copy_file_range_compat.
2936 * io/Makefile (tests-static, tests-internal): Do not add
2937 tst-copy_file_range-compat.
2938 * io/copy_file_range-compat.c: Remove file.
2939 * io/copy_file_range.c (copy_file_range): Define as stub.
2940 * io/tst-copy_file_range-compat.c: Remove file.
2941 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2942 (typical_sizes): Update comment. Remove 16K sizes.
2943 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2944 Remove variables.
2945 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2946 (delayed_write_failure_beginning, delayed_write_failure_end)
2947 (cross_device_failure, enospc_failure_1, enospc_failure)
2948 (oappend_failure): Remove functions.
2949 (tests): Adjust test case list.
2950 (do_test): Remove file system search code. Check for ENOSYS from
2951 copy_file_range. Do not free xdevfile.
2952 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2953 copy_file_range. Do not document the EXDEV error, which future
2954 kernels may not report. Update the wording to reflect that
2955 further errors are possible.
2956 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2957 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2958 not undefine.
2959 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2960 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2961 Likewise.
2962 * sysdeps/unix/sysv/linux/kernel-features.h
2963 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2964 Remove definition.
2965 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2966 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2967 not undefine.
2968 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2969 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2970 Likewise.
2971
2972 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2973
2974 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2975 used as a mask for the mode argument of __vfprintf_internal.
2976 * stdio-common/printf-parse.h (printf_arg): New union member:
2977 pa_float128.
2978 * stdio-common/vfprintf-internal.c
2979 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2980 (PARSE_FLOAT_VA_ARG): Likewise.
2981 (SETUP_FLOAT128_INFO): Likewise.
2982 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2983 SETUP_FLOAT128_INFO.
2984 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2985 floating-point value to the new union member, pa_float128.
2986 (printf_positional): Zero-initialize args_value[cnt] with memset.
2987
2988 2019-06-27 Florian Weimer <fweimer@redhat.com>
2989
2990 [BZ #24740]
2991 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2992 buffer size if necessary.
2993 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2994 Likewise.
2995 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2996 New function.
2997 (large_buffer_checks): Likewise.
2998 (do_test): Call large_buffer_checks.
2999
3000 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
3001
3002 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
3003 * sysdeps/x86/dl-lookupcfg.h: Here.
3004 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
3005
3006 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3007
3008 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3009 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
3010 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
3011 file.
3012 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
3013 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
3014 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
3015 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
3016 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
3017
3018 * sysdeps/powerpc/powerpc32/fpu/Makefile
3019 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
3020 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
3021 and fctidz optimization.
3022 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
3023 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
3024 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3025 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
3026 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
3027 CFLAGS-s_lround-power5+.c): New rule.
3028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
3029 New file.
3030 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
3031 Likewise.
3032 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
3033 Likewise.
3034 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
3035 Likewise.
3036 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
3037 Likewise.
3038 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
3039 Remove file.
3040 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
3041 Likewise.
3042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
3043 Likewise.
3044 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
3045 Likewise.
3046 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
3047 Likewise.
3048 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3049 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
3050 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3051 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3052 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3053 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3054 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3055
3056 2019-06-26 Vincent Chen <vincentc@andestech.com>
3057
3058 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
3059 specific system calls, fp_udfiex_crtl and udftrap.
3060
3061 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3062
3063 * nptl/tst-eintr1.c (tf1): Add return statement.
3064 (do_test): Remove unused th variable.
3065
3066 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
3067
3068 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
3069 Return error if get_character fails.
3070
3071 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
3072
3073 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3074
3075 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
3076
3077 [BZ #24652]
3078 * localedata/locales/szl_PL (day): Use the correct Unicode
3079 sequences instead of non-ASCII characters.
3080
3081 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
3082
3083 [BZ #24652]
3084 * localedata/locales/szl_PL (abday): Spelling corrections.
3085 (day): Likewise.
3086 (abmon): Likewise.
3087 (mon): Rename to...
3088 (alt_mon): This, then apply spelling corrections.
3089 (mon): New entry, month names in the genitive case.
3090
3091 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
3092
3093 [BZ #23831]
3094 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
3095 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
3096 (thousands_sep): Likewise.
3097 (grouping): Set to 3;3.
3098
3099 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
3100
3101 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3102 PREPARE_VERSION_KNOWN.
3103 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3104 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3105 define.
3106 (VDSO_HASH_LINUX_2_6_39): Likewise.
3107 (VDSO_NAME_LINUX_4_9): Likewise.
3108 (VDSO_HASH_LINUX_4_9): Likewise.
3109 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3110 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3111 (_libc_vdso_platform_setup): Likewise.
3112 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3113 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3114 Likewise.
3115 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3116 Likewise.
3117
3118 2019-06-20 Mike Crowe <mac@mcrowe.com>
3119
3120 * nptl/eintr.c: Use libsupport.
3121 * nptl/tst-eintr1.c: Likewise.
3122 * nptl/tst-eintr2.c: Likewise.
3123 * nptl/tst-eintr3.c: Likewise.
3124 * nptl/tst-eintr4.c: Likewise.
3125 * nptl/tst-eintr5.c: Likewise.
3126 * nptl/tst-mutex-errorcheck.c: Likewise.
3127 * nptl/tst-mutex5.c: Likewise.
3128
3129 * support/test-driver.h: Add verbose_printf macro.
3130
3131 * support/xtime.h: Add xclock_now() helper function.
3132
3133 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3134 Florian Weimer <fweimer@redhat.com>
3135
3136 [BZ #24228]
3137 * libio/genops.c (_IO_unbuffer_all)
3138 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3139 buffers and access _IO_FILE_complete members of legacy libio streams.
3140 * libio/tst-bz24228.c: New file.
3141 * libio/tst-bz24228.map: Likewise.
3142 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3143 [build-shared] (generated): Add tst-bz24228.mtrace and
3144 tst-bz24228.check.
3145 [run-built-tests && build-shared] (tests-special): Add
3146 $(objpfx)tst-bz24228-mem.out.
3147 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3148 ($(objpfx)tst-bz24228-mem.out): New rule.
3149
3150 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3151
3152 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3153 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3154 (__FPU_MFFSL): Likewise.
3155 (_FPU_SETCW): Likewise.
3156
3157 2019-06-19 Stan Shebs <stanshebs@google.com>
3158 Raoni Fassina Firmino <raoni@linux.ibm.com>
3159
3160 [BZ #24640]
3161 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3162 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3163 static-linking version.
3164 * sysdeps/unix/sysv/linux/powerpc/Makefile
3165 (tests-static): Add test-gettimebasefreq-static.
3166 (tests): Likewise.
3167 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3168 New file.
3169
3170 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
3171
3172 [BZ #24614]
3173 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3174 between the currency symbol and the minus sign).
3175 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3176
3177 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3178
3179 [BZ #24556]
3180 * string/test-strcasestr.c (check_result): Add NULL check.
3181 * nss/tst-field.c (check_rewrite): Likewise.
3182 * benchtests/bench-strstr.c (do_one_test): Likewise.
3183 * string/test-strstr.c (check_result): Likewise.
3184 * argp/argp-test.c (popt): Increase size of buf to 12.
3185 * benchtests/bench-malloc-simple.c (bench):
3186 Do not initialize tests array out of bounds.
3187
3188 2019-06-19 Florian Weimer <fweimer@redhat.com>
3189
3190 [BZ #24166]
3191 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3192 dls_serpath field.
3193
3194 2019-06-18 Florian Weimer <fweimer@redhat.com>
3195
3196 [BZ #24323]
3197 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3198 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3199 fail when called from dlopen.
3200 * elf/Makefile [have-fpie && build-shared] (tests): Add
3201 tst-dlopen-pie.
3202 (tst-dlopen-pie): Link with -ldl.
3203 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3204 * elf/tst-dlopen-pie.c (do_test): New file.
3205
3206 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
3207
3208 [BZ #24614]
3209 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3210 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3211 between the currency symbol and the minus sign).
3212 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3213 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3214
3215 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3216
3217 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3218 sysdep-rtld-routines): Remove rules.
3219 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3220 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3221 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3222 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3223 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3224 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3225 vDSO path for SHARED.
3226 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3227 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3228 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3229 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3230 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3231 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3232
3233 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3234 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3235 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3236 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3237 CFLAGS-s_llround-power5+.c): New rule.
3238 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3239 New file.
3240 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3241 Likewise.
3242 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3243 Likewise.
3244 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3245 Likewise.
3246 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3247 Likewise.
3248 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3249 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3251 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3253 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3254 * sysdeps/powerpc/powerpc64/fpu/Makefile
3255 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3256 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3257 (libm-sysdep_routines): Remove s_llround-* objects.
3258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3259 file.
3260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3261 Likewise.
3262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3263 Likewise.
3264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3265 Likewise.
3266 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3267 Likewise.
3268 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3269 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3270 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3271 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3272 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3273 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3274 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3275 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3276 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3277 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3278 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3279 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3280 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3281 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3282
3283 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3284 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3285 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3286 * sysdeps/powerpc/powerpc32/fpu/Makefile
3287 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3288 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3289 optimization.
3290 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3291 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3292 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3294 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3295 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3296 CFLAGS-s_lrint-ppc32.c): New rule.
3297 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3298 Remove file.
3299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3300 Likewise.
3301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3302 Likewise.
3303 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3304 Likewise.
3305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3306 Likewise.
3307 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3308 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3309 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3310 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3311 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3312 New file.
3313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3314 Likewise.
3315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3316 Likewise.
3317 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3318 Likewise.
3319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3320 Likewise.
3321
3322 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3323 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3324 s_llrint-ppc64.
3325 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3326 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3327 file.
3328 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3329 Likewise.
3330 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3331 Likewise.
3332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3333 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3335 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3337 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3338 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3339 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3340 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3341 (libm-sysdep_routines): Remove s_llrint-* objects.
3342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3343 file.
3344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3345 Likewise.
3346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3347 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3348 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3349 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3350 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3351 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3352 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3353 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3354 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3355 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3356
3357 2019-06-14 Florian Weimer <fweimer@redhat.com>
3358
3359 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3360 argument to __glibc_has_include to inhibit macro expansion.
3361
3362 2019-06-14 Florian Weimer <fweimer@redhat.com>
3363
3364 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3365 function-like macro, so that __has_include can inhibit expansion
3366 of its argument.
3367
3368 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3369
3370 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3371 New macro.
3372
3373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3374 Allow memset in libc.so.
3375
3376 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3377
3378 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3379 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3380 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3381 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3382 symbols at load time.
3383 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3384
3385 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3386
3387 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3388 (DT_AARCH64_VARIANT_PCS): Define.
3389
3390 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3391
3392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3393 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3394 objects.
3395 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3396 Remove file.
3397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3398 Likewise.
3399 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3401 Likewise.
3402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3403 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3404 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3405 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3406 Remove s_finite* objects.
3407 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3408 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3409 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3410 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3411 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3413 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3414 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3415 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3416 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3417
3418 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3419 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3420
3421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3422 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3423 objects.
3424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3425 Remove file.
3426 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3427 Likewise.
3428 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3429 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3430 Likewise.
3431 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3432 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3433 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3434 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3435 Remove s_isinf* and s_isinf* objects.
3436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3442 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3443 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3444 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3445 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3446
3447 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3448 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3449
3450 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3451 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3452 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3453 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3454 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3455 s_isnanf-* objects.
3456 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3457 Remove file
3458 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3459 Likewise.
3460 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3461 Likewise.
3462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3463 Likewise.
3464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3465 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3466 Likewise.
3467 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3468 Likewise.
3469 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3470 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3471 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3472 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3473 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3474 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3475 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3476 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3477 Remove s_isnan-* and s_isnanf-* objects.
3478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3481 Likewise.
3482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3487 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3488 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3489 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3490 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3491 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3492 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3493 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3494 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3495
3496 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3497 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3498
3499 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3500 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3501 CFLAGS-bench-isfinite.c): New rule.
3502 * benchtests/isnan-input: New file.
3503 * benchtests/isinf-input: New file.
3504 * benchtests/isfinite-input: New file.
3505
3506 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3507 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3508 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3509 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3511 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3512 s_copysign-ppc32.
3513 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3514 Remove file.
3515 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3516 Likewise.
3517 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3518 Likewise.
3519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3520 Likewise.
3521 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3522 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3523 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3524 Remove s_copysign-power6 s_copysign-ppc64.
3525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3526 Remove file.
3527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3528 Likewise.
3529 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3531 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3532 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3533 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3534 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3535
3536 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3537 round_to_integer_float, round_mode): Add RINT handling.
3538 (reset_fenv_mode): New symbol.
3539 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3540 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3541 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3542 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3543 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3544 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3545
3546 2019-06-12 Florian Weimer <fweimer@redhat.com>
3547
3548 [BZ #24632]
3549 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3550 * libio/freopen.c (freopen): Use it.
3551
3552 2019-06-12 Florian Weimer <fweimer@redhat.com>
3553
3554 Linux: Deprecate sysctl.
3555 * include/sysctl.h (__sysctl): Remove declaration.
3556 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3557 check.
3558 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3559 (sysctl): Add deprecation attribute.
3560 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3561 directly, to avoid the deprecation warning. Do not include
3562 <string.h>.
3563 (__sysctl): Remove hidden alias.
3564
3565 2019-06-12 Florian Weimer <fweimer@redhat.com>
3566
3567 Linux: Use kernel headers for statx definitions if available.
3568 * include/bits/statx-generic.h: New file.
3569 * include/bits/types/struct_statx.h: Likewise.
3570 * include/bits/types/struct_statx_timestamp.h: Likewise.
3571 * io/Makefile (headers): Add bits/statx-generic.h.
3572 * io/bits/statx-generic.h: New file. Partly copied from
3573 io/bits/statx.h.
3574 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3575 define original_statx.
3576 * io/bits/types/struct_statx.h: Likewise.
3577 * io/bits/types/struct_statx_timestamp.h: Likewise.
3578 (statx_generic): Use original_statx.
3579 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3580 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3581
3582 2019-06-12 Florian Weimer <fweimer@redhat.com>
3583
3584 * misc/sys/cdefs.h (__glibc_has_include): Define.
3585
3586 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3587
3588 * string/memmem.c (__memmem): Rewrite to improve performance.
3589
3590 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3591
3592 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3593 warning.
3594 (two_way_long_needle): Block inlining.
3595 * string/strstr.c (strstr2): Add new function.
3596 (strstr3): Likewise.
3597 (STRSTR): Completely rewrite strstr to improve performance.
3598
3599 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3600
3601 * benchtests/bench-strstr.c (test_hard_needle): New function.
3602
3603 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3604
3605 * malloc/tst-calloc.c: Include <libc-diag.h>.
3606 (null_test): Ignore -Wunused-result around calls to calloc.
3607 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3608 (do_test): Ignore -Wunused-result around call to malloc.
3609
3610 2019-06-07 Florian Weimer <fweimer@redhat.com>
3611
3612 Linux: Add getdents64 system call.
3613 * include/dirnent.h (getdents): Add comment and change buffer
3614 argument type to void *.
3615 (getdents64): Likewise. Add hidden prototype.
3616 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3617 getdents64.
3618 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3619 Add tst-getdents64.
3620 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3621 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3622 argument type to void *.
3623 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3624 Add hidden definition and getdents64 alias.
3625 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3626 Likewise.
3627 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3628 * manual/filesys.texi (Accessing Directories): Add Low-level
3629 Directory Access node reference.
3630 (Opening a Directory): Cross-reference it.
3631 (Low-level Directory Access): New node.
3632 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3633 getdents64.
3634 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3635 Likewise.
3636 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3637 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3638 Likewise.
3639 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3640 Likewise.
3641 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3642 Likewise.
3643 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3644 Likewise.
3645 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3646 Likewise.
3647 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3648 Likewise.
3649 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3650 Likewise.
3651 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3652 (GLIBC_2.30): Likewise.
3653 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3654 (GLIBC_2.30): Likewise.
3655 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3656 (GLIBC_2.30): Likewise.
3657 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3658 (GLIBC_2.30): Likewise.
3659 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3660 Likewise.
3661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3662 (GLIBC_2.30): Likewise.
3663 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3664 (GLIBC_2.30): Likewise.
3665 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3666 (GLIBC_2.30): Likewise.
3667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3668 (GLIBC_2.30): Likewise.
3669 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3670 Likewise.
3671 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3672 Likewise.
3673 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3674 Likewise.
3675 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3676 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3677 Likewise.
3678 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3679 Likewise.
3680 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3681 Likewise.
3682 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3683 Likewise.
3684
3685 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3686
3687 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3688 (__FPU_MFFS): New.
3689 (__FPU_MFFSL): New.
3690 (_FPU_GET_RC): New.
3691 (_FPU_GETCW): Use __FPU_MFFS().
3692 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3693
3694 2019-06-06 Florian Weimer <fweimer@redhat.com>
3695
3696 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3697 internal GCC preprocessor identifier __has_include__.
3698
3699 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3700
3701 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3702 with call to equivalent function.
3703
3704 2019-06-04 Florian Weimer <fweimer@redhat.com>
3705
3706 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3707 (do_release_shlib): Adjust for __twalk_r.
3708 (__gconv_release_shlib): Call __twalk_r.
3709
3710 2019-06-04 Andreas Schwab <schwab@suse.de>
3711
3712 [BZ #18830]
3713 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3714 no irreversible characters occurred.
3715 * iconv/gconv_simple.c (internal_ucs4_loop)
3716 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3717 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3718 (ucs4_internal_loop_single, internal_ucs4le_loop)
3719 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3720 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3721 (ucs4le_internal_loop_single): Add const to outend.
3722 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3723 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3724 * iconv/Makefile (tests): Add tst-iconv7.
3725 * iconv/tst-iconv7.c: New file.
3726
3727 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3728
3729 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3730
3731 2019-06-01 Florian Weimer <fweimer@redhat.com>
3732
3733 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3734 * sysdeps/unix/sysv/linux/arm/Makefile
3735 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3736 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3737 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3738 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3739 compatibility symbols.
3740
3741 2019-05-31 Florian Weimer <fweimer@redhat.com>
3742
3743 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3744 system calls for the arm architecture: breakpoint, get_tls,
3745 set_tls, usr26, usr32.
3746
3747 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3748
3749 * sysdeps/powerpc/Makefile
3750 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3751 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3752 Declare '.machine power7' to get support for ldbrx.
3753 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3754 directive based on the directory of the file.
3755 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3756 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3757 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3758 '.machine' directive.
3759 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3760 (VADDUQM_V7_V8): Remove.
3761 (__STRCASECMP): Replace macros with actual instructions.
3762 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3763 '.machine' directive.
3764 (VCLZD_V8_v7): Remove.
3765 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3766
3767 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3768
3769 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3770 Remove file.
3771 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3772
3773 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3774
3775 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3776 NEARBYINT handling.
3777 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3778 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3779 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3780 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3781 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3782 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3783
3784 2019-05-28 mansayk <6688000@gmail.com>
3785
3786 [BZ #24370]
3787 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3788
3789 2019-05-28 mansayk <6688000@gmail.com>
3790
3791 [BZ #24369]
3792 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3793 (abmon): Likewise, but remove the trailing dots.
3794
3795 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3796
3797 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3798
3799 2019-05-27 Florian Weimer <fweimer@redhat.com>
3800
3801 * nptl/nptl-init.c: Add comment.
3802
3803 2019-05-24 Florian Weimer <fweimer@redhat.com>
3804
3805 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3806 struct in_addr/struct in6_addr alignment.
3807
3808 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3809
3810 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3811 (F_SEAL_FUTURE_WRITE): New macro.
3812
3813 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3814
3815 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3816 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3817 * elf/tst-ldconfig_aux-cache.root: New directory.
3818 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3819 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3820 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3821
3822 2019-05-22 Zack Weinberg <zackw@panix.com>
3823
3824 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3825 host type.
3826 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3827 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3828
3829 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3832 Delete.
3833
3834 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3835 Issue an #error if used with a compiler in SPE-float mode.
3836 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3837 * sysdeps/powerpc/powerpc32/setjmp_common.S
3838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3840 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3844 Remove code to preserve SPE register state.
3845
3846 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3847 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3848 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3849 Remove __SPE__ ifndefs.
3850
3851 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3852
3853 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3854 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3855 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3856 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3857 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3858 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3859 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3860 (INNER_LOOP_ITERS_MEDIUM): New define.
3861 (INNER_LOOP_ITERS_SMALL): New define.
3862 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3863 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3864 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3865 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3866 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3867
3868 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3869
3870 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3871 New define.
3872 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3873 (SEMTIMEDOP_IPC_ARGS): Likewise.
3874
3875 2019-05-21 Florian Weimer <fweimer@redhat.com>
3876
3877 [BZ #24584]
3878 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3879 before updating __counter field and release it afterwards. Add
3880 overflow check.
3881 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3882 requirement for __counter member.
3883
3884 2019-05-21 Florian Weimer <fweimer@redhat.com>
3885
3886 [BZ #24583]
3887 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3888 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3889 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3890 instead of __gconv_release_step.
3891 * libio/Makefile (tests): Add tst-wfile-gconv.
3892 (tests-container): Add tst-wfile-ascii.
3893 (tst-wfile-gconv-ENV): Enable mtrace.
3894 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3895 (tests-special): Add tst-wfile-gconv-mem.out.
3896 (tst-wfile-gconv.out): Depend on locales.
3897 (tst-wfile-gconv-mem.out): Add mtrace rule.
3898 * libio/tst-wfile-ascii.c: New file.
3899 * libio/tst-wfile-gconv.c: Likewise.
3900
3901 2019-05-20 Florian Weimer <fweimer@redhat.com>
3902
3903 [BZ #24588]
3904 libio: Remove codecvt vtable.
3905 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3906 __libio_codecvt.
3907 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3908 __libio_codecvt_encoding.
3909 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3910 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3911 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3912 * libio/iofwide.c (__libio_codecvt): Remove variable.
3913 (_IO_fwide): Do not copy __libio_codecvt.
3914 (__libio_codecvt_out): Rename from do_out and export.
3915 (do_unshift): Remove function.
3916 (__libio_codecvt_in): Rename from do_in and export.
3917 (__libio_codecvt_encoding): Rename from do_encoding and export.
3918 (do_always_noconv): Remove function.
3919 (__libio_codecvt_length): Rename from do_length and export.
3920 (do_max_length): Remove function.
3921 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3922 to libioP.h.
3923 (struct _IO_codecvt): Remove fields __codecvt_destr,
3924 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3925 __codecvt_do_encoding, __codecvt_do_always_noconv,
3926 __codecvt_do_length, __codecvt_do_max_length.
3927 * libio/libioP.h (enum __codecvt_result): Define; moved from
3928 libio.h.
3929 (__libio_codecvt_out, __libio_codecvt_in)
3930 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3931 functions.
3932 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3933 (_IO_wfile_underflow): Call __libio_codecvt_in.
3934 (_IO_wfile_underflow): Likewise.
3935 (_IO_wfile_underflow_mmap): Likewise.
3936 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3937 __libio_codecvt_length.
3938 (adjust_wide_data): Call __libio_codecvt_encoding,
3939 __libio_codecvt_in.
3940 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3941 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3942 __libio_codecvt_length.
3943
3944 2019-05-20 Florian Weimer <fweimer@redhat.com>
3945
3946 * support/support.h (support_sbindir_prefix): Declare.
3947 (support_install_rootsbindir): Update comment.
3948 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3949 * support/support_paths.c (support_sbindir_prefix): Define.
3950
3951 2019-05-20 Mike Crowe <mac@mcrowe.com>
3952
3953 * support/timespec.c: Add backslash to correct newline in failure
3954 message.
3955
3956 * support/timespec.h: Correct confusing comment.
3957
3958 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3959
3960 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3961 define.
3962 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3963 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3964 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3965 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3966
3967 [BZ #24570]
3968 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3969 usage.
3970
3971 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3972
3973 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3974 (NT_ARM_PACG_KEYS): Likewise.
3975
3976 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3977
3978 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3979 (tcache_put): Remove redundant assert.
3980 (tcache_get): Remove redundant asserts.
3981 (__libc_malloc): Check tcache count is not zero.
3982 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3983
3984 2019-05-17 Florian Weimer <fweimer@redhat.com>
3985
3986 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3987
3988 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3989
3990 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3991 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3992 0x050100].
3993 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3994 Likewise.
3995 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3996 (__ASSUME_STATX): Likewise.
3997
3998 2019-05-16 Florian Weimer <fweimer@redhat.com>
3999
4000 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
4001 flags argument.
4002 (LINE_PARSER): Do not map IPv4 addresses.
4003 (internal_nis_gethostent_r): Remove flags argument. Adjust call
4004 to parse_line.
4005 (_nss_nis_gethostent_r): Always pass AF_INET to
4006 internal_nis_gethostent_r.
4007 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4008 to parse_line.
4009 (_nss_nis_gethostbyname2_r): Adjust call to
4010 internal_nis_gethostent_r.
4011 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
4012 call to internal_nis_gethostent_r.
4013 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
4014 from parse_line.
4015 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
4016 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4017 Remove flags argument. Do not map IPv4 addresses.
4018 (internal_nisplus_gethostent_r): Adjust call to
4019 _nss_nisplus_parse_hostent.
4020 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4021 to _nss_nisplus_parse_hostent.
4022 (_nss_nisplus_gethostbyname2_r): Adjust call to
4023 internal_gethostbyname2_r.
4024 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
4025 Adjust call to internal_gethostbyname2_r.
4026 (_nss_nisplus_gethostbyaddr_r): Adjust call to
4027 _nss_nisplus_parse_hostent.
4028 (_nss_nisplus_gethostbyname4_r): Adjust call to
4029 internal_gethostbyname2_r.
4030
4031 2019-05-16 Florian Weimer <fweimer@redhat.com>
4032
4033 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
4034 Remove flags.
4035 (LINE_PARSER): Remove address mapping.
4036 (EXTRA_ARGS_VALUE): Remove flags argument.
4037 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
4038 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
4039 gethostbyname3_multi.
4040 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
4041 _nss_files_gethostbyname3_r.
4042 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
4043
4044 2019-05-16 Florian Weimer <fweimer@redhat.com>
4045
4046 * support/support_test_compare_blob.c (report_blob): Report
4047 incorrect NULL blobs.
4048
4049 2019-05-15 Mark Wielaard <mark@klomp.org>
4050
4051 [BZ# 24476]
4052 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
4053 __libc_once_get (once) and static_buf == NULL.
4054 (__dlerror): Check we have a valid key, set result to static_buf
4055 otherwise.
4056
4057 2019-05-15 Andreas Schwab <schwab@suse.de>
4058
4059 [BZ #20568]
4060 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
4061 __codecvt_do_length.
4062 * libio/Makefile (tests): Add tst-wfile-sync.
4063 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
4064 * libio/tst-wfile-sync.c: New file.
4065 * libio/tst-wfile-sync.input: New file.
4066
4067 2019-05-15 Florian Weimer <fweimer@redhat.com>
4068
4069 nss: Turn __nss_database_lookup into a compatibility symbol.
4070 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
4071 __nss_database_lookup.
4072 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
4073 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
4074 __nss_database_lookup.
4075 (__nss_next): Move to …
4076 * nss/compat-lookup.c (nss_next): … here. Change it to fail
4077 unconditionally.
4078 (__nss_database_lookup): New function.
4079 * nss/Versions (GLIBC_2.0): Update comment.
4080 (GLIBC_PRIVATE): Export __nss_database_lookup2.
4081 * grp/initgroups.c (internal_getgrouplist): Call
4082 __nss_database_lookup2 instead of __nss_database_lookup.
4083 * nscd/aicache.c (addhstaiX): Likewise.
4084 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4085 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
4086 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
4087 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
4088 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
4089 Likewise.
4090 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
4091 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
4092 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4093
4094 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
4095
4096 * support/support.h (support_install_rootsbindir): New variable.
4097 * support/support_paths.c: Likewise.
4098 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
4099
4100 2019-05-15 Florian Weimer <fweimer@redhat.com>
4101
4102 * iconv/gconv.h (__gconv_transliterate): Move declaration …
4103 * iconv/gconv_int.h (__gconv_transliterate): … here.
4104 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4105 * iconv/skeleton.c: Likewise.
4106
4107 2019-05-14 Florian Weimer <fweimer@redhat.com>
4108
4109 Linux: Add the tgkill function.
4110 * bits/signal_ext.h: New file.
4111 * manual/signal.texi (Signaling Another Process): Document tgkill.
4112 * signal/Makefile (headers): Add bits/signal_ext.h.
4113 * signal/signal.h: Include <bits/signal_ext.h>.
4114 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4115 (tst-tgkill): Link with libpthread.
4116 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4117 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4118 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4119 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4120 tgkill.
4121 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4122 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4123 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4124 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4125 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4126 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4127 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4128 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4129 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4130 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4131 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4132 Likewise.
4133 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4134 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4135 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4136 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4137 Likewise.
4138 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4139 Likewise.
4140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4141 Likewise.
4142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4143 Likewise.
4144 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4145 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4146 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4147 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4148 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4149 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4150 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4151 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4152
4153 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4154
4155 * manual/search.texi (Tree Search Function): Adjust twalk_r
4156 documentation.
4157
4158 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4159
4160 [BZ #24544]
4161 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4162 pre-defined value.
4163
4164 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4165 * support/support.h (support_bindir_prefix): New variable.
4166 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4167
4168 * config.make.in (bindir): New variable.
4169
4170 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4171 (lll_trylock): Call __lll_trylock.
4172 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4173 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4174 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4175 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4176 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4177 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4178 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4179 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4180 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4181 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4182 lowlevellock-futex.h.
4183
4184 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4185 initialization for LLL_LOCK_INITIALIZER different than 0.
4186 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4187 Assume LLL_LOCK_INITIALIZER being 0.
4188 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4189 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4190 Likewise.
4191 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4192 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4193
4194 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4195 Optimize futex call and add systemtap probe.
4196
4197 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4198 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4199 __libc_disable_asynccancel, __librt_enable_asynccancel,
4200 __libc_disable_asynccancel, __librt_enable_asynccancel,
4201 __librt_disable_asynccancel): Move to ...
4202 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4203 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4204 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4205 * sysdeps/generic/single-thread.h: New file.
4206 * sysdeps/unix/sysdep.h: Include single-thread.h.
4207 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4208 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4209
4210 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4211
4212 [BZ #24535]
4213 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4214 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4215 Unicode 12.1.0.
4216 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4217 * localedata/unicode-gen/PropList.txt: Likewise.
4218 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4219 * localedata/charmaps/UTF-8: Regenerate.
4220 * localedata/locales/i18n_ctype: Likewise.
4221 * localedata/locales/tr_TR: Likewise.
4222 * localedata/locales/translit_circle: Likewise.
4223 * localedata/locales/translit_cjk_compat: Likewise.
4224 * localedata/locales/translit_combining: Likewise.
4225 * localedata/locales/translit_compat: Likewise.
4226 * localedata/locales/translit_font: Likewise.
4227 * localedata/locales/translit_fraction: Likewise.
4228
4229 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4230
4231 [BZ #24531]
4232 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4233 (do_set_tcache_count): Only update if count is small enough.
4234 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4235
4236 2019-05-10 Florian Weimer <fweimer@redhat.com>
4237
4238 * nptl/sem_close.c (struct walk_closure): Define.
4239 (walker): Adjust for __twalk_r.
4240 (sem_close): Call __twalk_r.
4241
4242 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4243
4244 * support/timespec.c (test_timespec_before_impl,
4245 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4246 insted of long int.
4247
4248 2019-05-09 Mike Crowe <mac@mcrowe.com>
4249
4250 * nptl/tst-abstime.c: Use libsupport.
4251
4252 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4253 small bug where only tv.tv_usec was checked which could cause an
4254 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4255 than a second.
4256
4257 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4258 libsupport.
4259
4260 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4261 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4262
4263 * nptl/tst-cond11.c: Use libsupport.
4264
4265 * support/timespec.h: New file. Provide timespec helper functions
4266 along with macros in the style of those in check.h.
4267 * support/timespec.c: New file. Implement check functions declared
4268 in support/timespec.h.
4269 * support/timespec-add.c: New file from gnulib containing
4270 timespec_add implementation that handles overflow.
4271 * support/timespec-sub.c: New file from gnulib containing
4272 timespec_sub implementation that handles overflow.
4273 * support/README: Mention timespec.h.
4274
4275 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4276
4277 [BZ #24537]
4278 * nptl/Makefile: Move tst-eintr1 to xtests.
4279
4280 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4281
4282 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4283 TRUNC handling.
4284 (round_mode): Add definition for TRUNC.
4285 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4286 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4287 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4288 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4289 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4290 Likewise.
4291 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4292 Likewise.
4293 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4294 Likewise.
4295 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4296 Likewise.
4297 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4298 file.
4299 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4300 Likewise.
4301 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4302 Likewise.
4303 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4304 Likewise.
4305 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4306 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4307 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4308 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4309 s_truncf-power5+, and s_truncf-ppc64.
4310 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4311 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4312 file.
4313 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4315 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4316 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4317 file.
4318 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4319 Likewise.
4320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4321 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4322 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4323 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4324 s_truncf-power5+, and s_truncf-ppc64.
4325 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4326 file.
4327 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4328 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4329 Likewise.
4330 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4331 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4332 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4333 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4334 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4335
4336 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4337 ROUND handling.
4338 (round_mode): Add definition for ROUND.
4339 (round_to_integer_float): Likewise.
4340 * sysdeps/powerpc/fpu/s_round.c: New file.
4341 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4342 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4343 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4344 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4345 Likewise.
4346 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4347 Likewise.
4348 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4349 Likewise.
4350 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4351 Likewise.
4352 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4353 file.
4354 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4355 Likewise.
4356 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4357 Likewise.
4358 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4359 Likewise.
4360 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4361 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4362 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4363 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4364 s_roundf-power5+, and s_roundf-ppc64.
4365 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4366 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4367 file.
4368 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4369 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4370 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4371 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4372 file.
4373 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4374 Likewise.
4375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4376 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4377 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4378 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4379 s_roundf-power5+, and s_roundf-ppc64.
4380 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4381 file.
4382 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4383 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4384 Likewise.
4385 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4386 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4387 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4388 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4389 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4390
4391 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4392 Add FLOOR option.
4393 (round_mode): Add definition for FLOOR.
4394 * sysdeps/powerpc/fpu/s_floor.c: New file.
4395 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4396 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4397 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4398 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4399 Remove file.
4400 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4401 Likewise
4402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4403 Likewise.
4404 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4405 Likewise.
4406 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4407 New file.
4408 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4409 Likewise.
4410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4411 Likewise.
4412 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4413 Likewise.
4414 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4415 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4416 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4417 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4418 s_floorf-power5+, and s_floorf-ppc64.
4419 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4420 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4421 file.
4422 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4423 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4424 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4425 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4426 file.
4427 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4428 Likewise.
4429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4430 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4431 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4432 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4433 s_floorf-power5+, and s_floorf-ppc64.
4434 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4435 file.
4436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4437 file.
4438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4439 Likewise.
4440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4441 Likewise.
4442 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4443 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4444 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4445 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4446
4447 2019-05-08 Mike Crowe <mac@mcrowe.com>
4448
4449 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4450 clock_gettime wrapper for use in tests that fails the test rather
4451 than returning failure.
4452
4453 * support/xtime.h: New file to declare xclock_gettime.
4454
4455 * support/Makefile: Add xclock_gettime.c.
4456
4457 * support/README: Mention xtime.h.
4458
4459 2019-05-08 Florian Weimer <fweimer@redhat.com>
4460
4461 malloc/tst-mallocfork2: Use process-shared barriers.
4462 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4463 (signal_count, sigusr1_sender_pid): Remove.
4464 (iterations): Define constant.
4465 (shared): New variable.
4466 (sigusr1_received): Update comment.
4467 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4468 (signal_sender): Optional use barriers to avoid sending signals
4469 during irrelevant times.
4470 (do_it): Initialize variable shared. Use xfork for error
4471 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4472 the iteration count, independent of signal delivery. Check for
4473 deadlocks in fork. Introduce barriers for reducing signal
4474 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4475 replaced by the barriers. Count signals during fork/free/malloc
4476 and report them.
4477 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4478
4479 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4480
4481 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4482 version to 5.1.
4483 (clock_adjtime64) New syscall.
4484 (clock_getres_time64) Likewise.
4485 (clock_gettime64) Likewise.
4486 (clock_nanosleep_time64) Likewise.
4487 (clock_settime64) Likewise.
4488 (futex_time64) Likewise.
4489 (io_pgetevents_time64) Likewise.
4490 (io_uring_enter) Likewise.
4491 (io_uring_register) Likewise.
4492 (io_uring_setup) Likewise.
4493 (mq_timedreceive_time64) Likewise.
4494 (mq_timedsend_time64) Likewise.
4495 (pidfd_send_signal) Likewise.
4496 (ppoll_time64) Likewise.
4497 (pselect6_time64) Likewise.
4498 (recvmmsg_time64) Likewise.
4499 (rt_sigtimedwait_time64) Likewise.
4500 (sched_rr_get_interval_time64) Likewise.
4501 (semtimedop_time64) Likewise.
4502 (timer_gettime64) Likewise.
4503 (timer_settime64) Likewise.
4504 (timerfd_gettime64) Likewise.
4505 (timerfd_settime64) Likewise.
4506 (utimensat_time64) Likewise.
4507
4508 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4509 version to 9 branch.
4510
4511 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4512
4513 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4514 __memmove_thunderx2 to the list of implementations
4515 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4516 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4517 (__memmove_thunderx2): Rewritten using SIMD ld/st
4518 (__memcpy_thunderx2): Fixed handling overlapping cases.
4519 Used ldp/stp instead of ldr/str if possible. Made loops
4520 tails branchless.
4521
4522 2019-05-03 Florian Weimer <fweimer@redhat.com>
4523
4524 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4525
4526 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4527
4528 [BZ #24506]
4529 * elf/tst-pldd.c (in_str_list): New function.
4530 (do_test): Add default names for ld and libc as one option.
4531
4532 2019-05-02 Florian Weimer <fweimer@redhat.com>
4533
4534 misc: Add twalk_r function.
4535 * include/search.h (__twalk_r): Declare.
4536 * manual/examples/twalk.c: New file.
4537 * manual/search.texi (Tree Search Function): Document twalk_r.
4538 * misc/Versions (2.30): Export twalk_r.
4539 (GLIBC_PRIVATE): Export __twalk_r.
4540 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4541 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4542 (twalk_r): Add weak alias.
4543 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4544 (walk_trace): New variable.
4545 (struct twalk_with_twalk_r_closure): Define.
4546 (twalk_with_twalk_r_action): New function.
4547 (twalk_with_twalk_r): Likewise.
4548 (walk_action): Call walk_trace_add.
4549 (walk_tree_with): Rename from walk_tree. Add walk argument.
4550 (walk_tree): New function.
4551 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4552 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4553 Likewise.
4554 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4555 Likewise.
4556 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4557 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4558 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4559 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4560 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4561 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4562 Likewise.
4563 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4564 Likewise.
4565 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4566 Likewise.
4567 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4568 (GLIBC_2.30): Likewise.
4569 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4570 (GLIBC_2.30): Likewise.
4571 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4572 (GLIBC_2.30): Likewise.
4573 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4574 (GLIBC_2.30): Likewise.
4575 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4576 Likewise.
4577 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4578 (GLIBC_2.30): Likewise.
4579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4580 (GLIBC_2.30): Likewise.
4581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4582 (GLIBC_2.30): Likewise.
4583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4584 (GLIBC_2.30): Likewise.
4585 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4586 Likewise.
4587 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4588 Likewise.
4589 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4590 Likewise.
4591 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4592 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4593 Likewise.
4594 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4595 Likewise.
4596 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4597 Likewise.
4598 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4599 Likewise.
4600
4601 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4602
4603 Make mktime etc. compatible with __time64_t
4604 Keep these functions compatible with Gnulib while adding
4605 __time64_t support. The basic idea is to move private API
4606 declarations from include/time.h to time/mktime-internal.h, since
4607 the former file cannot easily be shared with Gnulib whereas the
4608 latter can.
4609 Also, do some other minor cleanup while in the neighborhood.
4610 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4611 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4612 since Gnulib needs it.
4613 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4614 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4615 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4616 (in_time_t_range): New static function.
4617 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4618 so that glibc users are not tempted to use __time64_t.
4619 * time/mktime-internal.h: Rewrite so that it does both glibc
4620 and Gnulib work. Include time.h if not _LIBC.
4621 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4622 (__time64_t): New type or macro, moved here from
4623 posix/bits/types.h.
4624 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4625 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4626 from include/time.h.
4627 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4628 New macros, taken from GNulib.
4629 (__mktime_internal): New prototype, moved here from include/time.h.
4630 * time/mktime.c (mktime_min, mktime_max, convert_time)
4631 (ranged_convert, __mktime_internal, __mktime64):
4632 * time/timegm.c (__timegm64):
4633 Use __time64_t, not time_t.
4634 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4635 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4636 Rename from mktime.
4637 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4638 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4639 for libc_hidden_def.
4640 Include errno.h.
4641 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4642 Rename from timegm.
4643 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4644
4645 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4646
4647 [BZ #19444]
4648 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4649 from `-Wmaybe-uninitialized'.
4650 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4651
4652 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4653
4654 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4655 function.
4656 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4657 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4658 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4659 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4660 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4661 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4662 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4663 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4664 Remove file.
4665 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4666 Likewise.
4667 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4668 Likewise.
4669 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4670 Likewise.
4671 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4672 New file.
4673 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4674 Likewise.
4675 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4676 Likewise.
4677 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4678 Likewise.
4679 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4680 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4681 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4682 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4683 Likewise.
4684 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4685 Likewise.
4686 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4687 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4688 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4689 file.
4690 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4691 Likewise.
4692 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4693 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4694 * here.
4695 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4696 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4697 s_ceilf-power5+, and s_ceilf-ppc64.
4698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4699 file.
4700 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4701 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4703 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4704 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4705 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4706 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4707
4708 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4709 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4710 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4711
4712 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4713
4714 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4715 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4716 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4717 (sem_getvalue): Likewise.
4718
4719 2019-04-26 Florian Weimer <fweimer@redhat.com>
4720
4721 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4722 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4723
4724 2019-04-26 Florian Weimer <fweimer@redhat.com>
4725
4726 Makeconfig: Move -Wl,-rpath-link options before library references.
4727 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4728 (link-libc): Remove $(link-libc-rpath-link).
4729
4730 2019-04-25 Florian Weimer <fweimer@redhat.com>
4731
4732 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4733 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4734 (+link-static-before-libc): Remove $(CC).
4735 (+link-static, +link-static-tests): Add $(CC).
4736 (+link-before-libc): Remove $(CC).
4737 (+link, +link-pie, +link-pie-printers): Add $(CC).
4738
4739 2019-04-26 Florian Weimer <fweimer@redhat.com>
4740
4741 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4742 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4743 (+link-static-before-libc): Remove $(CC).
4744 (+link-static, +link-static-tests): Add $(CC).
4745 (+link-before-libc): Remove $(CC).
4746 (+link, +link-pie, +link-pie-printers): Add $(CC).
4747
4748 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4749
4750 [BZ#24484]
4751 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4752
4753 2019-04-25 Florian Weimer <fweimer@redhat.com>
4754
4755 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4756 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4757 (bench-link-targets): New variable.
4758 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4759
4760 2019-04-25 Florian Weimer <fweimer@redhat.com>
4761
4762 Also enable BIND_NOW for programs if --enable-bind-now.
4763 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4764 (+link-pie): Use $(link-extra-flags).
4765 (+link-static): Likewise.
4766 [! $(build-pie-default)] (+link): Likewise.
4767 * manual/install.texi (Configuring and compiling): Update
4768 --enable-bind-now description.
4769 * INSTALL: Regenerated.
4770
4771 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4772
4773 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4774 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4775
4776 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4777
4778 [BZ #18465]
4779 * malloc/Makefile (others): Add memusagestat.
4780 ($(objpfx)memusagestat): Delete rule.
4781 (LDLIBS-memusagestat): New variable.
4782
4783 2019-04-24 Florian Weimer <fweimer@redhat.com>
4784
4785 * locale/Makefile (tests-special): Guard setting by
4786 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4787 to run while cross-compiling.
4788
4789 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4790
4791 [BZ #18035]
4792 * elf/Makefile (tests-container): Add tst-pldd.
4793 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4794 (E(find_maps)): Avoid use alloca, use default read file operations
4795 instead of explicit LFS names, and fix infinite loop.
4796 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4797 (get_process_info): Use _Static_assert instead of assert, use default
4798 directory operations instead of explicit LFS names, and free some
4799 leadek pointers.
4800 * elf/tst-pldd.c: New file.
4801
4802 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4803
4804 * malloc/arena.c (do_set_mallopt_check): Removed.
4805
4806 2019-04-23 Florian Weimer <fweimer@redhat.com>
4807
4808 locale: Add LOCPATH diagnostics to the locale program.
4809 * locale/programs/locale.c (setlocale_failed): New variable.
4810 (try_setlocale): New function.
4811 (quote_string): Likewise.
4812 (setlocale_diagnostics): Likewise.
4813 (main): Call try_setlocale instead of setlocale. Call
4814 setlocale_diagnostics.
4815 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4816 (tst-locale-locpath.out): New target.
4817 * locale/tst-locale-locpath.sh: New file.
4818
4819 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4820
4821 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4822 to 2.30 notes.
4823
4824 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4825
4826 [BZ #23741]
4827 * malloc/hooks.c (malloc_check, realloc_check): Use
4828 __builtin_add_overflow on overflow check and adapt to
4829 checked_request2size change.
4830 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4831 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4832 allocation size to PTRDIFF_MAX.
4833 (REQUEST_OUT_OF_RANGE): Remove macro.
4834 (checked_request2size): Change to inline function and limit maximum
4835 requested size to PTRDIFF_MAX.
4836 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4837 maximum allocation size to PTRDIFF_MAX.
4838 (_mid_memalign): Use _int_memalign call for overflow check.
4839 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4840 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4841 limit maximum requested size to PTRDIFF_MAX.
4842 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4843 valloc, pvalloc): Add __attribute_alloc_size__.
4844 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4845 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4846 larger than PTRDIFF_MAX.
4847 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4848 around tests of malloc with negative sizes.
4849 * malloc/tst-posix_memalign.c (do_test): Likewise.
4850 * malloc/tst-pvalloc.c (do_test): Likewise.
4851 * malloc/tst-valloc.c (do_test): Likewise.
4852 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4853 with resulting size allocation larger than PTRDIFF_MAX with
4854 reallocarray_nowarn.
4855 (reallocarray_nowarn): New function.
4856 * NEWS: Mention the malloc function semantic change.
4857
4858 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4859
4860 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4861 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4862
4863 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4864 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4865 * sysdeps/powerpc/fpu/s_fma.c: New file.
4866 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4867
4868 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4869 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4870
4871 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4872 the magic flag store.
4873 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4874 Likewise.
4875 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4876 Likewise.
4877 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4878 Remove rt_sigreturn call.
4879
4880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4881 Remove rt_sigreturn call.
4882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4883 Likewise.
4884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4886
4887 * support/Makefile (libsupport-routines): Add support_subprocess,
4888 xposix_spawn, xposix_spawn_file_actions_addclose, and
4889 xposix_spawn_file_actions_adddup2.
4890 (tst-support_capture_subprocess-ARGS): New rule.
4891 * support/capture_subprocess.h (support_capture_subprogram): New
4892 prototype.
4893 * support/support_capture_subprocess.c (support_capture_subprocess):
4894 Refactor to use support_subprocess and support_capture_poll.
4895 (support_capture_subprogram): New function.
4896 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4897 str_to_write_mode, test_common, parse_int, handle_restart,
4898 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4899 (do_test): Add support_capture_subprogram tests.
4900 * support/subprocess.h: New file.
4901 * support/support_subprocess.c: Likewise.
4902 * support/xposix_spawn.c: Likewise.
4903 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4904 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4905 * support/xspawn.h: Likewise.
4906
4907 2019-04-17 Mike Gerow <gerow@google.com>
4908
4909 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4910 groups limit.
4911
4912 2019-04-11 Florian Weimer <fweimer@redhat.com>
4913
4914 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4915 domain with empty string.
4916 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4917
4918 2019-04-11 Florian Weimer <fweimer@redhat.com>
4919
4920 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4921 comment.
4922 (alloc_buffer_next): Change return type to non-const. Update
4923 comment.
4924
4925 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4926
4927 * manual/time.texi (Formatting Calendar Time): Add missing percent
4928 sign to conversion specifier.
4929
4930 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4931 Kwok Cheung Yeung <kcy@codesourcery.com>
4932
4933 [BZ #16573]
4934 * malloc/mtrace.c: Define prototypes for all hooks.
4935 (set_default_hooks): New function.
4936 (set_trace_hooks): Likewise.
4937 (save_default_hooks): Likewise.
4938 (tr_freehook): Use new s*_hooks functions.
4939 (tr_mallochook): Likewise.
4940 (tr_reallochook): Likewise.
4941 (tr_memalignhook): Likewise.
4942 (mtrace): Likewise.
4943 (muntrace): Likewise.
4944
4945 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4946
4947 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4948 (generic_stpcpy): New function.
4949 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4950 (generic_stpncpy): New function.
4951 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4952 (generic_strcat): New function.
4953 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4954 (generic_strcpy): New function.
4955 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4956 (STUPID_STRNCAT): Remove function.
4957 (generic_strncat): New function.
4958 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4959 (STUPID_STRNCPY): Remove function.
4960 (generic_strncpy): New function.
4961 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4962 (generic_strnlen): New function.
4963 (memchr_strnlen): New function.
4964 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4965 (memchr_strlen): Likewise.
4966
4967 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4968
4969 * benchtests/bench-strstr.c (input): Add realistic input text.
4970 (stupid_strstr): Remove function.
4971 (basic_strstr): Add function.
4972 (twoway_strstr): Add function.
4973 (do_one_test): Add result checking.
4974 (do_test): Use new input text. Remove accidental early matches.
4975 (test_main): Improve range of tests, reduce unaligned cases.
4976
4977 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4978
4979 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4980 (basic_memmem): Add function.
4981 (twoway_memmem): Add function.
4982
4983 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4984
4985 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4986 * benchtests/bench-malloc-thread.c: Likewise.
4987 * benchtests/bench-skeleton.c: Likewise.
4988 * benchtests/bench-strtod.c: Likewise.
4989 * benchtests/bench-timing.h: Likewise.
4990
4991 2019-04-08 Florian Weimer <fweimer@redhat.com>
4992
4993 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4994 definitions.
4995 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4996 RES_INSECURE2 security checks.
4997 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4998 RES_INSECURE2 handling.
4999
5000 2019-04-08 Florian Weimer <fweimer@redhat.com>
5001
5002 resolv: Remove support for RES_USE_INET6 and the inet6 option.
5003 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
5004 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
5005 GETHOSTBYNAME.
5006 * resolv/Makefile (tests): Remove tst-res_use_inet6.
5007 (tests-internal): Update justification for tst-resolv-res_init,
5008 tst-resolv-res_init-thread.
5009 (tst-res_use_inet6): Remove target.
5010 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
5011 * resolv/res_debug.c (p_option): Remove "inet6" support.
5012 * resolv/res_init.c (res_setoptions): Likewise.
5013 * resolv/res_use_inet6.h: Remove file.
5014 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
5015 definition.
5016 (res_use_inet6): Always return false.
5017 * resolv/resolv.h (RES_USE_INET6): Remove definition.
5018 * resolv/resolv_context.h: Adjust file comment.
5019 (struct resolv_context): Update comment on __next field.
5020 (__resolv_context_put): Update comment.
5021 * resolv/tst-res_use_inet6.c: Remove file.
5022 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
5023 "inet6" support.
5024 (test_cases): Adjust test case.
5025 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
5026 (thread_byname2_af_inet6): Use old byname_inet6 code.
5027 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
5028 (gai): Remove do_inet6 argument.
5029 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
5030 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
5031 (thread_gai_unspec_inet6): Remove functions.
5032 (do_test): Adjust thread_funcs.
5033 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
5034 RES_USE_INET6 flag.
5035 (gaih_inet): Do not disable RES_USE_INET6 flag.
5036
5037 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5038
5039 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
5040 and remove redundant code.
5041
5042 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5043
5044 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
5045 New rule.
5046 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
5047 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
5048 Likewise.
5049 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
5050 Likewise.
5051 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
5052 Likewise.
5053 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
5054 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
5055 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
5056 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
5057 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
5058 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
5059 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5060 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
5061 wcsrchr-power7.
5062 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
5063 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5064 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5065 Remove wcsrchr optimizations.
5066 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5067
5068 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
5069 the loop unroll.
5070
5071 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
5072 New rule.
5073 * sysdeps/powerpc/power6/wcschr.c: Remove file.
5074 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
5075 Likewise.
5076 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
5077 Likewise.
5078 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
5079 Likewise.
5080 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
5081 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
5082 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
5083 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
5084 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
5085 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
5086 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5087 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
5088 wcschr-power7.
5089 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
5090 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5091 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5092 Remove wcschr optimizations.
5093 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5094
5095 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
5096 the loop unroll.
5097
5098 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
5099 New rule.
5100 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5101 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5102 Likewise.
5103 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5104 Likewise.
5105 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5106 Likewise.
5107 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5108 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5109 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5110 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5111 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5112 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5113 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5114 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5115 wcscpy-power7.
5116 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5117 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5118 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5119 Remove wcscpy optimizations.
5120 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5121
5122 * include/loop_unroll.h: New file.
5123 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5124 besides generic implementation.
5125
5126 2019-04-03 DJ Delorie <dj@redhat.com>
5127
5128 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5129 snprintf truncating output.
5130
5131 2019-04-02 DJ Delorie <dj@redhat.com>
5132
5133 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5134 warning.
5135
5136 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5137
5138 [BZ #22964]
5139 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5140 era.
5141 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5142 (mkreftable): Add rules for the new Japanese era and the new dates.
5143
5144 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5145 Rafał Lużyński <digitalfreak@lingonborough.com>
5146
5147 * time/tst-strftime2.c (date_t): Explicitly define the type.
5148 (dates): Use natural month and year numbers to express a date.
5149 (is_before): New function to compare dates.
5150 (mkreftable): Minor improvements to simplify maintenance.
5151 (do_test): Reflect the changes in dates array.
5152
5153 [BZ #24293]
5154 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5155 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5156 * time/tst-strftime2.c (locales): Likewise.
5157 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5158 2010-04-01, and 2011-04-01.
5159 (mkreftable): Add rules for the new locales and the new dates.
5160
5161 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5162
5163 * localedata/locales/ja_JP: Add comments to era entries.
5164
5165 2019-04-01 DJ Delorie <dj@redhat.com>
5166
5167 [BZ #24394]
5168 * time/strptime_l.c (%Ey): Fix fencepost error.
5169 * time/tst-strftime3.c: New.
5170 * time/Makefile (tests): Add tst-strftime3.
5171
5172 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
5173
5174 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5175 conditional branch to DIVBYZERO. Fix unwind info.
5176 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5177 excb after conditional branch to $powerof2. Add missing unop
5178 instructions and .align directives and reorder instructions to
5179 match __divqu.
5180
5181 2019-04-01 Richard Henderson <rth@twiddle.net>
5182
5183 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5184 Do not redefine.
5185 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5186 Do not redefine.
5187
5188 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5189
5190 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5191 $libc_cv_riscv_float_abi in `test' invocation.
5192 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5193
5194 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5195
5196 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5197 asm with builtin.
5198 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5199 Likewise.
5200 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5201 (_GET_SI_FPSCR): Likewise.
5202 (_SET_SI_FPSCR): Likewise.
5203
5204 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5205
5206 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5207 clang 2.8.
5208 (signbit): Use builtin for clang 3.3.
5209 (isinf): Use builtin for clang 3.7.
5210
5211 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5212
5213 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5214
5215 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5216
5217 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5218 quote in printf.
5219
5220 2019-03-25 Mike Crowe <mac@mcrowe.com>
5221
5222 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5223 pthread_rwlock_timedrdlock with calls to
5224 pthread_rwlock_timedwrlock to ensure that the latter is tested
5225 too. Use new function name in diagnostic messages too.
5226
5227 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5228 (do_test) Use libsupport test macros rather than hand-coded
5229 conditionals and error messages. Ensure that sem_init returns zero
5230 rather than not -1. Use <support/test-driver.c> rather than
5231 test-skeleton.c.
5232
5233 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5234 test macros rather than hand-coded conditionals and error messages.
5235 Use <support/test-driver.c> rather than test-skeleton.c.
5236
5237 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5238
5239 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5240
5241 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5242 (NT_MIPS_MSA): Likewise.
5243
5244 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5245
5246 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5247 * benchtests/README: Update description.
5248 * benchtests/bench-timing.h: Default to hp-timing.
5249 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5250 HP_TIMING_PRINT): Remove.
5251 (HP_TIMING_NOW): Add generic implementation.
5252 (hp_timing_t): Change to uint64_t.
5253
5254 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5255 HP_TIMING_INLINE.
5256 * nptl/descr.h: Likewise.
5257 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5258 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5259 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5260 Abstract hp-timing usage with RTLD_* macros.
5261 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5262 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5263 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5264 HP_TIMING_NONAVAIL): Likewise.
5265 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5266 Likewise.
5267 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5268 HP_SMALL_TIMING_AVAIL): Likewise.
5269 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5270 HP_SMALL_TIMING_AVAIL): Likewise.
5271 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5272 HP_SMALL_TIMING_AVAIL): Likewise.
5273 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5274 HP_SMALL_TIMING_AVAIL): Likewise.
5275 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5276 Likewise.
5277 * sysdeps/generic/hp-timing-common.h: Update comment with
5278 HP_TIMING_AVAIL removal.
5279
5280 * include/random-bits.h: New file.
5281 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5282 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5283 random_bits.
5284 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5285 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5286 Likewise.
5287
5288 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5289 * rt/Makefile (clock-routines): Remove get_clockfreq.
5290 * rt/get_clockfreq.c: Remove file.
5291 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5292 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5293 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5294 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5295 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5296
5297 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5298 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5299 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5300 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5301 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5302
5303 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5304 pthread_clock_settime.
5305 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5306 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5307 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5308 * elf/rtld.c (_dl_start_final): Likewise.
5309 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5310 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5311 Remove.
5312 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5313 (_dl_cpuclock_offset): Remove.
5314 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5315 cpuclock_offset_ununsed.
5316 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5317 cpuclock_offset set.
5318 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5319 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5320 * nptl/pthread_clock_gettime.c: Remove file.
5321 * nptl/pthread_clock_settime.c: Likewise.
5322 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5323 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5324 and CLOCK_PROCESS_CPUTIME_ID support.
5325 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5326 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5327 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5328 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5329 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5330 Likewise.
5331 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5332
5333 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5334
5335 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5336 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5337 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5338 New defines.
5339 * sysdeps/s390/memmem-arch13.S: New file.
5340 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5341 if it is only used as fallback.
5342 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5343 * sysdeps/s390/multiarch/ifunc-impl-list.c
5344 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5345
5346 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5347
5348 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5349 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5350 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5351 New defines.
5352 * sysdeps/s390/multiarch/ifunc-impl-list.c
5353 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5354 * sysdeps/s390/strstr-arch13.S: New file.
5355 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5356 if it is only used as fallback.
5357 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5358
5359 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5360
5361 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5362 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5363 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5364 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5365 ifunc selector.
5366 * sysdeps/s390/multiarch/ifunc-impl-list.c
5367 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5368 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5369 S390_IS_ARCH13_MIE3): New defines.
5370
5371 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5372
5373 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5374 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5375 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5376 * sysdeps/s390/configure: Regenerated.
5377
5378 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5379
5380 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5381 Add vxe2, vxp, dflt, sort flags.
5382 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5383 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5384 capabilities.
5385 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5386 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5387 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5388 HWCAP_S390_DFLT): Define.
5389
5390 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5391
5392 [BZ #24372]
5393 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5394 of compiler warning.
5395 * locale/programs/ld-collate.c (collate_output): Likewise.
5396
5397 2019-03-21 DJ Delorie <dj@redhat.com>
5398
5399 [BZ #24372]
5400 * iconv/iconvconfig.c (write_output): Replace floating point math
5401 with integer math to avoid imprecise results.
5402 * locale/programs/ld-collate.c (collate_output): Likewise.
5403
5404 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5405
5406 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5407 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5408
5409 2019-03-20 mansayk <6688000@gmail.com>
5410
5411 [BZ #24296]
5412 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5413 (abday): Likewise, but remove the trailing dots.
5414
5415 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5416
5417 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5418 macro.
5419 (HWCAP_PACA): Likewise.
5420 (HWCAP_PACG): Likewise.
5421 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5422 Increase to 32.
5423 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5424
5425 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5426
5427 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5428 should be handled.
5429
5430 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5431
5432 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5433 version to 5.0.
5434 (old_getpagesize): New syscall.
5435
5436 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5437
5438 [BZ #24293]
5439 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5440 * localedata/locales/cmn_TW (era): Likewise.
5441 * localedata/locales/hak_TW (era): Likewise.
5442 * localedata/locales/lzh_TW (era): Likewise.
5443 * localedata/locales/nan_TW (era): Likewise.
5444
5445 2019-03-14 Adam Maris <amaris@redhat.com>
5446
5447 * malloc/malloc.c (_int_malloc): Check for large bin list
5448 corruption when inserting unsorted chunk.
5449
5450 2019-03-14 Florian Weimer <fweimer@redhat.com>
5451
5452 Remove obsolete, never-implemented XSI STREAMS declarations.
5453 * manual/terminal.texi (Allocation): Remove portability note and
5454 adjust example.
5455 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5456 _SC_STREAMS.
5457 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5458 * sysdeps/unix/inet/Subdirs (streams): Remove.
5459 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5460 (conformtest-headers-UNIX98): Likewise.
5461 (conformtest-headers-XOPEN2K): Likewise.
5462 (conformtest-headers-POSIX2008): Likewise.
5463 * posix/compat-streams.c: New file.
5464 * posix/Makefile (routines): Add it.
5465 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5466 getpmsg, isastream, putmsg, putpmsg.
5467 (GLIBC_2.30): New section.
5468 * bits/stropts.h: Remove file.
5469 * bits/xtitypes.h: Likewise.
5470 * conform/data/stropts.h-data: Likewise.
5471 * include/stropts.h: Likewise.
5472 * include/sys/stropts.h: Likewise.
5473 * include/xtitypes.h: Likewise.
5474 * streams/Makefile: Likewise.
5475 * streams/fattach.c: Likewise.
5476 * streams/fdetach.c: Likewise.
5477 * streams/getmsg.c: Likewise.
5478 * streams/getpmsg.c: Likewise.
5479 * streams/isastream.c: Likewise.
5480 * streams/putmsg.c: Likewise.
5481 * streams/putpmsg.c: Likewise.
5482 * streams/stropts.h: Likewise.
5483 * streams/sys/stropts.h: Likewise.
5484 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5485 * sysdeps/s390/bits/xtitypes.h: Likewise.
5486 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5487 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5488 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5489 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5490 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5491 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5492 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5493 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5494 * sysdeps/x86/bits/xtitypes.h: Likewise.
5495
5496 2019-03-14 Florian Weimer <fweimer@redhat.com>
5497
5498 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5499 libnss_files.
5500 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5501 but not with libnss_files.
5502 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5503
5504 2019-03-14 Zack Weinberg <zackw@panix.com>
5505
5506 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5507 Specify encoding="utf-8" when opening headers to check.
5508
5509 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5510
5511 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5512 version to 5.0.
5513 (Context.checkout_tar): Handle variable major version for Linux
5514 kernel.
5515
5516 2019-03-13 Florian Weimer <fweimer@redhat.com>
5517
5518 [BZ #24047]
5519 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5520
5521 2019-03-13 Zack Weinberg <zackw@panix.com>
5522
5523 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5524 Move to stdlib.
5525 * include/inttypes.h: Adjust to match.
5526 * include/stdint.h: New wrapper.
5527
5528 2019-03-13 Zack Weinberg <zackw@panix.com>
5529
5530 * scripts/check-obsolete-constructs.py: New test script.
5531 * scripts/check-installed-headers.sh: Remove tests for
5532 obsolete typedefs, superseded by check-obsolete-constructs.py.
5533 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5534 as a special test. Update commentary.
5535 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5536 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5537 Update commentary.
5538 * posix/sys/types.h (__u_intN_t): Remove.
5539 (u_int8_t): Typedef using __uint8_t.
5540 (u_int16_t): Typedef using __uint16_t.
5541 (u_int32_t): Typedef using __uint32_t.
5542 (u_int64_t): Typedef using __uint64_t.
5543
5544 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5545
5546 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5547 call _dl_procinfo.
5548 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5549 Ignore types other than AT_HWCAP.
5550 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5551 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5552 Likewise.
5553 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5554 in the case of falling back to generic output mechanism.
5555 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5556 Likewise.
5557
5558 2019-03-12 Florian Weimer <fweimer@redhat.com>
5559
5560 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5561
5562 2019-03-12 Florian Weimer <fweimer@redhat.com>
5563
5564 [BZ #24047]
5565 resolv: Enable full ICMP errors for UDP DNS sockets
5566 * resolv/res_enable_icmp.c: New file.
5567 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5568 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5569 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5570 socket.
5571
5572 2019-03-11 Mao Han <han_mao@c-sky.com>
5573
5574 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5575 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5576
5577 2019-03-11 Mao Han <han_mao@c-sky.com>
5578
5579 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5580 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5581 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5582
5583 2019-03-11 Mao Han <han_mao@c-sky.com>
5584
5585 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5586 directly.
5587 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5588 definition.
5589
5590 2019-03-11 Mao Han <han_mao@c-sky.com>
5591
5592 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5593 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5594 in mcontext_t
5595
5596 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5597
5598 [BZ #24307]
5599 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5600 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5601 Unicode 12.0.0.
5602 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5603 * localedata/unicode-gen/PropList.txt: Likewise.
5604 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5605 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5606 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5607 * localedata/charmaps/UTF-8: Regenerate.
5608 * localedata/locales/i18n_ctype: Likewise.
5609 * localedata/locales/tr_TR: Likewise.
5610 * localedata/locales/translit_circle: Likewise.
5611 * localedata/locales/translit_cjk_compat: Likewise.
5612 * localedata/locales/translit_combining: Likewise.
5613 * localedata/locales/translit_compat: Likewise.
5614 * localedata/locales/translit_font: Likewise.
5615 * localedata/locales/translit_fraction: Likewise.
5616
5617 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5618
5619 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5620 than after operators.
5621 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5622 (setitimer_locked): Likewise.
5623 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5624 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5625 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5626 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5627 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5628 (PPC_CPU_SUPPORTED): Likewise.
5629 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5630 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5631 (stat_overflow): Likewise.
5632 (statfs_overflow): Likewise.
5633 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5634 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5635 (eq_ttyname_r): Likewise.
5636 (run_chroot_tests): Likewise.
5637
5638 2019-03-07 Florian Weimer <fweimer@redhat.com>
5639
5640 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5641 header check.
5642
5643 2019-03-07 Martin Liska <mliska@suse.cz>
5644
5645 * math/Makefile: Change location where math-vector-fortran.h is
5646 installed.
5647 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5648 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5649 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5650 * scripts/check-installed-headers.sh: Skip Fortran header files.
5651 * scripts/check-wrapper-headers.py: Likewise.
5652
5653 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5654
5655 * nptl/nptl-init.c (__have_futex_clock_realtime,
5656 __have_futex_clock_realtime): Remove definition.
5657 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5658 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5659 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5660 __ASSUME_FUTEX_CLOCK_REALTIME support.
5661 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5662 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5663 * sysdeps/unix/sysv/linux/kernel-features.h
5664 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5665 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5666 Adjust comment.
5667
5668 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5669
5670 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5671 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5672 __GI___wcscpy and wcscpy.
5673
5674 2019-03-04 Florian Weimer <fweimer@redhat.com>
5675
5676 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5677 declaration.
5678 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5679 defined.
5680
5681 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5682
5683 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5684 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5685
5686 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5687
5688 [BZ #24162]
5689 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5690 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5691
5692 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5693
5694 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5695 tests.
5696 (do_test): Likewise.
5697 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5698 (do_test_call_varg): Likewise.
5699 (do_test_call_rarg): Likewise.
5700 * sysdeps/ieee754/ldbl-opt/Makefile
5701 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5702 tst-nldbl-error.
5703 ($(objpfx)tst-nldbl-warn.c): New rule.
5704 ($(objpfx)tst-nldbl-error.c): Likewise.
5705 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5706 New variables.
5707
5708 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5709
5710 [BZ #23984]
5711 * include/bits/error-ldbl.h: New file.
5712 * include/error.h: Include stdarg.h. Declare internal functions
5713 __error_internal and __error_at_line_internal.
5714 * misc/Makefile (headers): Add bits/error-ldbl.h.
5715 * misc/bits/error-ldbl.h: New file.
5716 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5717 avoid the inclusion of bits/error.h.
5718 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5719 and __nldbl_error_at_line.
5720 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5721 (__nldbl_error, __ndlbl_error_at_line): New functions.
5722 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5723 Redirect error and error_at_line.
5724 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5726 Likewise.
5727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5728 Likewise.
5729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5730 Likewise.
5731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5732 Likewise.
5733 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5734 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5735 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5736
5737 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5738
5739 [BZ #23984]
5740 * include/bits/err-ldbl.h: New file.
5741 * include/err.h: Add prototypes for the internal functions:
5742 __vwarnx_internal and __vwarn_internal.
5743 * misc/Makefile (headers): Add bits/err-ldbl.h.
5744 * misc/bits/err-ldbl.h: New file.
5745 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5746 defined, i.e.: when -mlong-double-64 is in use.
5747 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5748 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5749 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5750 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5751 (VA_CALL): New macro.
5752 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5753 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5754 functions.
5755 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5756 declare prototypes for the new functions.
5757 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5759 Likewise.
5760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5761 Likewise.
5762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5763 Likewise.
5764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5765 Likewise.
5766 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5767 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5768 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5769
5770 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5771
5772 * sysdeps/ieee754/ldbl-opt/Makefile
5773 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5774 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5775 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5776
5777 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5778
5779 [BZ #23983]
5780 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5781 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5782 * argp/bits/argp-ldbl.h: New file.
5783 * include/argp.h: Include stdarg.h. Add prototypes for internal
5784 functions: __argp_error_internal and __argp_failure_internal.
5785 * include/bits/argp-ldbl.h: New file.
5786 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5787 __nldbl_argp_error and __nldbl_argp_failure.
5788 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5789 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5790 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5791 Redirect argp_error and argp_failure calls.
5792 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5794 Likewise.
5795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5796 Likewise.
5797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5798 Likewise.
5799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5800 Likewise.
5801 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5802 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5803 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5804
5805 2019-03-01 Florian Weimer <fweimer@redhat.com>
5806
5807 [BZ #20419]
5808 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5809 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5810 code, to avoid creating an ABI tag note.
5811 (modules-names-nobuild): Add tst-big-note-lib.
5812
5813 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5814
5815 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5816 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5817
5818 2019-03-01 Florian Weimer <fweimer@redhat.com>
5819
5820 [BZ #20271]
5821 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5822 (__netlink_assert_response): Add additional missing newlines.
5823
5824 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5825
5826 * sysdeps/powerpc/powerpc32/dl-machine.c
5827 (__elf_machine_fixup_plt): Use space before '('.
5828 (__process_machine_rela): Likewise.
5829 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5830 Likewise.
5831 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5832 Likewise.
5833 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5834 Likewise.
5835 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5836 (pattern): Likewise.
5837 (delta): Likewise.
5838 (check_result): Likewise.
5839 (check_excepts): Likewise.
5840 (check_op): Likewise.
5841 (fail_xr): Likewise.
5842 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5843 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5844 (SCNHSZ): Likewise.
5845 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5846 Likewise.
5847 (ARGS): Likewise.
5848 (__makecontext): Likewise.
5849 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5850 Likewise.
5851
5852 2019-02-28 Florian Weimer <fweimer@redhat.com>
5853
5854 [BZ #23937]
5855 elf: Add test with a local IFUNC resolver.
5856 * elf/ifuncmain9.c: New file.
5857 * elf/ifuncmain9pic.c: Likewise.
5858 * elf/ifuncmain9picstatic.c: Likewise.
5859 * elf/ifuncmain9pie.c: Likewise.
5860 * elf/ifuncmain9static.c: Likewise.
5861 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5862 ifuncmain9static, ifuncmain9picstatic.
5863 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5864 Add ifuncmain9, ifuncmain9pic.
5865 * elf/Makefile [multi-arch && build-shared && have-fpie]
5866 (ifunc-pie-tests): Add ifuncmain9pie.
5867 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5868 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5869 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5870
5871 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5872
5873 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5874 * configure: Regenerated.
5875 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5876
5877 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5878
5879 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5880 symbol as __wcspcy instead of wcscpy.
5881
5882 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5883
5884 * include/stdio.h (__renameat2): New hidden prototype.
5885 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5886 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5887 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5888 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5889
5890 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5891
5892 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5893 if statement.
5894
5895 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5896 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5897 * benchtests/bench-strlen.c (do_test): Likewise.
5898 (test_main): Likewise.
5899 * catgets/gencat.c (read_old): Likewise.
5900 * elf/cache.c (load_aux_cache): Likewise.
5901 * iconvdata/bug-iconv8.c (do_test): Likewise.
5902 * math/test-tgmath-ret.c (do_test): Likewise.
5903 * nis/nis_call.c (rec_dirsearch): Likewise.
5904 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5905 * nptl/tst-audit-threads.c (do_test): Likewise.
5906 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5907 * nss/nss_test1.c (init): Likewise.
5908 * nss/test-netdb.c (test_hosts): Likewise.
5909 * posix/execvpe.c (maybe_script_execute): Likewise.
5910 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5911 * stdio-common/tst-printf.c (do_test): Likewise.
5912 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5913 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5914 * stdlib/qsort.c (STACK_SIZE): Likewise.
5915 * stdlib/test-canon.c (do_test): Likewise.
5916 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5917 * string/memcmp.c (OPSIZ): Likewise.
5918 * string/test-strcpy.c (do_test): Likewise.
5919 (do_random_tests): Likewise.
5920 * string/test-strlen.c (do_test): Likewise.
5921 (test_main): Likewise.
5922 * string/test-strrchr.c (do_test): Likewise.
5923 (do_random_tests): Likewise.
5924 * string/tester.c (test_memrchr): Likewise.
5925 (test_memchr): Likewise.
5926 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5927 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5928 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5929 (read_encoded_value_with_base): Likewise.
5930 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5931 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5932 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5933 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5934 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5935 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5936 Likewise.
5937 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5938 Likewise.
5939 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5940 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5941 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5942 Likewise.
5943 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5944 Likewise.
5945 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5946 Likewise.
5947 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5948 Likewise.
5949 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5950 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5951 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5952 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5953 * time/test_time.c (main): Likewise.
5954
5955 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5956
5957 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5958
5959 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5960 wmemcpy.
5961
5962 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5963 wmemcpy.
5964
5965 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5966
5967 * include/wchar.h (__wcscpy): New prototype.
5968 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5969 (__wcscpy): Route internal symbol to generic implementation.
5970 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5971 Add internal __wcscpy alias.
5972 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5973 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5974 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5975 * wcsmbs/wcscpy.c (wcscpy): Add
5976 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5977 use generic implementation.
5978 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5979
5980 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5981 wmemset.
5982
5983 * sysdeps/m68k/wcpcpy.c: Remove file.
5984 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5985
5986 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5987
5988 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5989 than after operators.
5990 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5991 * sysdeps/mach/hurd/getcwd.c
5992 (__hurd_canonicalize_directory_name_internal): Likewise.
5993 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5994 (pthread_mutex_consistent): Likewise.
5995 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5996 Likewise.
5997 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5998 (__pthread_mutex_transfer_np): Likewise.
5999 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
6000 (__pthread_mutex_unlock): Likewise.
6001 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
6002 (mtx_owned_p): Likewise.
6003 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
6004 (pthread_mutexattr_getrobust): Likewise.
6005 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
6006 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6007 Likewise.
6008 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6009 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
6010 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
6011 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
6012 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6013 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6014 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
6015 Likewise.
6016 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
6017 Likewise.
6018 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
6019 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
6020 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
6021 (____longjmp_chk): Likewise.
6022 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
6023 Likewise.
6024 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
6025 (INTERNAL_SYSCALL): Likewise.
6026 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6027 (INTERNAL_SYSCALL): Likewise.
6028 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6029 (__get_clockfreq_via_cpuinfo): Likewise.
6030
6031 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
6032 comments.
6033 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
6034 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
6035 (WORD_COPY_BWD): Likewise.
6036 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6037 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6038 Likewise.
6039 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
6040 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
6041 comment.
6042 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6043
6044 2019-02-25 Joseph Myers <joseph@codesourcery.com>
6045
6046 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
6047 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
6048 rather than after operators.
6049 * elf/cache.c (print_cache): Likewise.
6050 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
6051 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
6052 * hurd/hurdinit.c (_hurd_setproc): Likewise.
6053 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
6054 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
6055 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
6056 (reauth_proc): Likewise.
6057 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
6058 (__file_name_split_at): Likewise.
6059 (__directory_name_split_at): Likewise.
6060 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6061 * hurd/port2fd.c (_hurd_port2fd): Likewise.
6062 * iconv/gconv_dl.c (do_print): Likewise.
6063 * inet/netinet/in.h (struct sockaddr_in): Likewise.
6064 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
6065 * locale/setlocale.c (new_composite_name): Likewise.
6066 * malloc/memusagestat.c (main): Likewise.
6067 * misc/fstab.c (fstab_convert): Likewise.
6068 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
6069 Likewise.
6070 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
6071 (getgrent_next_file): Likewise.
6072 (internal_getgrnam_r): Likewise.
6073 (internal_getgrgid_r): Likewise.
6074 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
6075 Likewise.
6076 (internal_getgrent_r): Likewise.
6077 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
6078 (getpwent_next_nss): Likewise.
6079 (getpwent_next_file): Likewise.
6080 (internal_getpwnam_r): Likewise.
6081 (internal_getpwuid_r): Likewise.
6082 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
6083 Likewise.
6084 (getspent_next_nss): Likewise.
6085 (internal_getspnam_r): Likewise.
6086 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
6087 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
6088 * string/strchr.c (STRCHR): Likewise.
6089 * string/strchrnul.c (STRCHRNUL): Likewise.
6090 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
6091 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6092 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
6093 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
6094 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
6095 Likewise.
6096 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
6097 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6098 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6099 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
6100 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6101 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6102 (open_file): Likewise.
6103 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6104 (pthread_mutexattr_setprotocol): Likewise.
6105 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6106 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6107 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6108 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6109 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6110 Likewise.
6111 (elf_machine_rela): Likewise.
6112 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6113 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6114 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6115 * sysdeps/posix/rename.c (rename): Likewise.
6116 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6117 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6118 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6119 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6120 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6121 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6122 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6123 Likewise.
6124 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6125 Likewise.
6126 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6127 * time/tzfile.c (__tzfile_compute): Likewise.
6128
6129 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6130
6131 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6132 rather than after operators.
6133 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6134 * crypt/md5.c (md5_finish_ctx): Likewise.
6135 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6136 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6137 * elf/cache.c (load_aux_cache): Likewise.
6138 * elf/dl-load.c (open_verify): Likewise.
6139 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6140 * elf/readelflib.c (process_elf_file): Likewise.
6141 * elf/rtld.c (dl_main): Likewise.
6142 * elf/sprof.c (generate_call_graph): Likewise.
6143 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6144 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6145 * hurd/dtable.c (reauth_dtable): Likewise.
6146 * hurd/getdport.c (__getdport): Likewise.
6147 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6148 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6149 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6150 Likewise.
6151 * hurd/hurdioctl.c (fioctl): Likewise.
6152 * hurd/hurdselect.c (_hurd_select): Likewise.
6153 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6154 (STOPSIGS): Likewise.
6155 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6156 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6157 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6158 * hurd/msgportdemux.c (msgport_server): Likewise.
6159 * hurd/setauth.c (_hurd_setauth): Likewise.
6160 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6161 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6162 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6163 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6164 * login/tst-utmp.c (do_check): Likewise.
6165 (simulate_login): Likewise.
6166 * mach/lowlevellock.h (lll_lock): Likewise.
6167 (lll_trylock): Likewise.
6168 * math/test-fenv.c (ALL_EXC): Likewise.
6169 * math/test-fenvinline.c (ALL_EXC): Likewise.
6170 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6171 * nis/nis_call.c (__do_niscall3): Likewise.
6172 * nis/nis_callback.c (cb_prog_1): Likewise.
6173 * nis/nis_defaults.c (searchaccess): Likewise.
6174 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6175 * nis/nis_ismember.c (internal_ismember): Likewise.
6176 * nis/nis_local_names.c (nis_local_principal): Likewise.
6177 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6178 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6179 Likewise.
6180 * nis/ypclnt.c (yp_match): Likewise.
6181 (yp_first): Likewise.
6182 (yp_next): Likewise.
6183 (yp_master): Likewise.
6184 (yp_order): Likewise.
6185 * nscd/hstcache.c (cache_addhst): Likewise.
6186 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6187 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6188 (internal_getpwuid_r): Likewise.
6189 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6190 * posix/glob.h (__GLOB_FLAGS): Likewise.
6191 * posix/regcomp.c (peek_token): Likewise.
6192 (peek_token_bracket): Likewise.
6193 (parse_expression): Likewise.
6194 * posix/regexec.c (sift_states_iter_mb): Likewise.
6195 (check_node_accept_bytes): Likewise.
6196 * posix/tst-spawn3.c (do_test): Likewise.
6197 * posix/wordexp-test.c (testit): Likewise.
6198 * posix/wordexp.c (parse_tilde): Likewise.
6199 (exec_comm): Likewise.
6200 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6201 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6202 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6203 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6204 * stdio-common/tst-fileno.c (do_test): Likewise.
6205 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6206 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6207 * stdlib/strtod_l.c (round_and_return): Likewise.
6208 (____STRTOF_INTERNAL): Likewise.
6209 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6210 * string/strcspn.c (STRCSPN): Likewise.
6211 * string/test-memmem.c (simple_memmem): Likewise.
6212 * termios/tcsetattr.c (tcsetattr): Likewise.
6213 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6214 * time/asctime.c (asctime_internal): Likewise.
6215 * time/strptime_l.c (__strptime_internal): Likewise.
6216 * time/sys/time.h (timercmp): Likewise.
6217 * time/tzfile.c (__tzfile_compute): Likewise.
6218
6219 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6220
6221 [BZ #21915]
6222 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6223
6224 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6225
6226 * argp/argp-help.c (__argp_error_internal): New function,
6227 renamed from __argp_error, but that takes a 'mode_flags'
6228 parameter to control the format of long double parameters.
6229 (__argp_error): Converted into a call __argp_error_internal.
6230 (__argp_failure_internal): New function, renamed from
6231 __argp_failure, but that takes a 'mode_flags' parameter.
6232 (__argp_failure): Converted into a call __argp_failure_internal.
6233 * misc/err.c (__vwarnx_internal): New function, renamed from
6234 vwarnx, but that takes a 'mode_flags' parameter.
6235 (vwarnx): Converted into a call to __vwarnx_internal.
6236 (__vwarn_internal): New function, renamed from vwarn, but that
6237 takes a 'mode_flags' parameter.
6238 (vwarn): Converted into a call to __vwarn_internal.
6239 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6240 call to __vfxprintf with 'mode_flags'.
6241 (__error_internal): New function, renamed from error, but that
6242 takes a 'mode_flags' parameter.
6243 (error): Converted into a call to __error_internal.
6244 (__error_at_line_internal): New function, renamed from
6245 error_at_line, but that takes a 'mode_flags' parameter.
6246 (error_at_line): Converted into a call to
6247 __error_at_line_internal.
6248 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6249 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6250 Likewise.
6251
6252 2019-02-20 Martin Liska <mliska@suse.cz>
6253
6254 * math/Makefile: Install math-vector-fortran.h.
6255 * bits/math-vector-fortran.h: New file.
6256 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6257
6258 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6259
6260 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6261 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6262
6263 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6264
6265 * nptl/pthread_mutex_trylock.c: Fix comment.
6266
6267 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6268
6269 * nptl/pthread_tryjoin.c: Fix comment.
6270
6271 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6272
6273 [BZ #24231]
6274 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6275 after R_SPARC_H34 case.
6276
6277 2019-02-18 Florian Weimer <fweimer@redhat.com>
6278
6279 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6280 (getanswer): Do not call Dprintf.
6281 (res_gethostbyname2_context): Likewise.
6282 (res_gethostbyaddr_context): Likewise.
6283
6284 2019-02-18 Florian Weimer <fweimer@redhat.com>
6285
6286 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6287 declaration.
6288 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6289 Remove definitions.
6290 * libio/stdfiles.c: Update comment.
6291 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6292 set _IO_stdin, _IO_stdout, _IO_stderr.
6293 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6294 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6295 inline function.
6296 (_IO_deallocate_file): New inline function.
6297 * libio/iolibio.h (_IO_vprintf): Remove definition.
6298 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6299 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6300 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6301 _IO_legacy_file.
6302 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6303 __builtin_expect. Use _IO_legacy_file.
6304
6305 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6306
6307 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6308 Initialize ctid with a known value and remove update of ctid
6309 after clone.
6310 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6311 as assumed current value of ctid_ptr.
6312
6313 2019-02-16 Florian Weimer <fweimer@redhat.com>
6314
6315 Check that non-sysdeps headers have wrapper headers.
6316 * scripts/check-wrapper-headers.py: New file.
6317 * Makefile (tests-special): Add check-wrapper-headers.out.
6318 (check-wrapper-headers.out): New target.
6319 * Rules (tests-special): Add check-wrapper-headers.out.
6320 (check-wrapper-headers.out): New target.
6321
6322 2019-02-16 Florian Weimer <fweimer@redhat.com>
6323
6324 Add missing header wrappers under include/.
6325 * include/ar.h: New file.
6326 * include/bits/mqueue2.h: Likewise.
6327 * include/bits/stdio.h: Likewise.
6328 * include/bits/stdio2.h: Likewise.
6329 * include/fstab.h: Likewise.
6330 * include/fts.h: Likewise.
6331 * include/lastlog.h: Likewise.
6332 * include/netinet/icmp6.h: Likewise.
6333 * include/netinet/igmp.h: Likewise.
6334 * include/netinet/ip6.h: Likewise.
6335 * include/re_comp.h: Likewise.
6336 * include/regexp.h: Likewise.
6337 * include/rpcsvc/bootparam.h: Likewise.
6338 * include/rpcsvc/yp_prot.h: Likewise.
6339 * include/sys/random.h: Likewise.
6340 * include/sys/stropts.h: Likewise.
6341 * include/sys/ttychars.h: Likewise.
6342 * include/sys/vfs.h: Likewise.
6343 * include/wait.h: Likewise.
6344
6345 2019-02-16 Florian Weimer <fweimer@redhat.com>
6346
6347 * nptl_db/proc_service.h: Move to ...
6348 * sysdeps/nptl/proc_service.h: ... here.
6349 * nptl_db/thread_db.h: Move to ...
6350 * sysdeps/nptl/thread_db.h: ... here.
6351 * nptl/descr.h: Include <thread_db.h>.
6352
6353 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6354
6355 * io/Makefile (tests): Add tst-lockf.
6356 * io/lockf.c (lockf): Use __fcntl and only define for
6357 !__OFF_T_MATCHES_OFF64_T.
6358 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6359 __OFF_T_MATCHES_OFF64_T case.
6360 * io/tst-lockf.c: New file.
6361 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6362 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6363 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6364 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6365 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6367 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6368 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6369 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6370
6371 2019-02-15 Florian Weimer <fweimer@redhat.com>
6372
6373 [BZ #24211]
6374 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6375 pd->result after the thread descriptor has been freed.
6376
6377 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6378
6379 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6380 from function return type.
6381
6382 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6383
6384 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6385
6386 * scripts/test_printers_common.py: Set TERM to a known harmless
6387 value.
6388
6389 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6390
6391 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6392 (xdr_u_int): Likewise.
6393 (xdr_enum): Likewise.
6394 (xdr_bytes): Reword fall-through comment.
6395 (xdr_string): Likewise.
6396
6397 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6398
6399 [BZ #2421]
6400 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6401 (tests): Add tst-join8 tst-join9.
6402 * nptl/lll_timedwait_tid.c: Remove file.
6403 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6404 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6405 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6406 * nptl/pthread_join_common.c (timedwait_tid): New function.
6407 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6408 is set.
6409 * nptl/tst-join5.c (thread_join): New function.
6410 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6411 check.
6412 * nptl/tst-join8.c: New file.
6413 * nptl/tst-join9.c: Likewise.
6414 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6415 lll_futex_timed_wait_cancel): Add generic macros.
6416 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6417 Remove definitions.
6418 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6419 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6420 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6421 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6422 Remove function.
6423 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6424 Likewise.
6425 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6426 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6427 (lll_futex_timed_wait_cancel): New macro.
6428
6429 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6430
6431 * benchtests/Makefile: Add malloc-simple benchmark.
6432 * benchtests/bench-malloc-simple.c: New benchmark.
6433
6434 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6435
6436 * benchtests/bench-memmove.c (do_one_test): Remove unused
6437 ORIG_SRC.
6438 (do_test): Adjust.
6439 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6440 ORIG_SRC.
6441 (do_test): Adjust.
6442
6443 2019-01-13 Jim Wilson <jimw@sifive.com>
6444
6445 [BZ #24040]
6446 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6447 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6448 (func): New.
6449 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6450 call func directly.
6451 * nptl/Makefile (tests): Add tst-unwind-thread.
6452 (CFLAGS-tst-unwind-thread.c): Define.
6453 * nptl/tst-unwind-thread.c: New file.
6454 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6455 as undefined.
6456
6457 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6458
6459 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6460 comment wording.
6461 * nis/nis_call.c (__do_niscall3): Likewise.
6462
6463 * catgets/gencat.c (normalize_line): Use braces around empty
6464 'else' body.
6465 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6466 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6467 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6468 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6469 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6470 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6471 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6472 definition.
6473
6474 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6475 execlp returns.
6476
6477 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6478
6479 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6480 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6481 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6482 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6483 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6484 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6485 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6486 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6487 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6488 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6489 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6490 * benchtests/bench-bcopy.c: Delete file.
6491 * benchtests/bench-bzero.c: Likewise.
6492 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6493 (simple_memccpy): Remove.
6494 (generic_memccpy): Add function.
6495 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6496 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6497 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6498 (generic_mempcpy): Add new function.
6499 * benchtests/bench-memset.c (simple_bzero): Remove.
6500 (builtin_bzero): Remove.
6501 (builtin_memset): Remove.
6502 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6503 (generic_rawmemchr): Add new function.
6504
6505 2019-02-12 Florian Weimer <fweimer@redhat.com>
6506
6507 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6508
6509 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6510
6511 [BZ #24122]
6512 * elf/Makefile (tests): Add tst-audit13.
6513 (modules-names): Add tst-audit13mod1.
6514 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6515 rule.
6516 * elf/tst-audit13.c: New file.
6517 * elf/tst-audit13mod1.c: Likewise.
6518
6519 2019-02-12 Florian Weimer <fweimer@redhat.com>
6520
6521 [BZ #24122]
6522 * elf/rtld.c (unload_audit_module): New function.
6523 (report_audit_module_load_error): Likewise.
6524 (load_audit_module): Likewise. Extracted from dl_main. Call
6525 _dl_close if the laversion symbol cannot be found. Use early
6526 returns for error handling. Add malloc error check. Check for a
6527 zero return value from la_version. Remove spurious comment about
6528 static TLS initialization. Remove useless casts.
6529 (notify_audit_modules_of_loaded_object): New function. Extracted
6530 from dl_main.
6531 (load_audit_module): Likewise.
6532 (dl_main): Call load_audit_modules.
6533
6534 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6535
6536 * elf/dl-exception.c (_dl_exception_create_format): Add
6537 fall-through comments.
6538 * elf/ldconfig.c (parse_conf_include): Likewise.
6539 * elf/rtld.c (print_statistics): Likewise.
6540 * locale/programs/charmap.c (parse_charmap): Likewise.
6541 * misc/mntent_r.c (__getmntent_r): Likewise.
6542 * posix/wordexp.c (parse_arith): Likewise.
6543 (parse_backtick): Likewise.
6544 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6545 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6546 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6547
6548 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6549
6550 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6551 Use float instead of double.
6552
6553 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6554
6555 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6556
6557 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6558
6559 * sysdeps/powerpc/bits/mathinline.h: Remove.
6560
6561 2019-02-08 Florian Weimer <fweimer@redhat.com>
6562
6563 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6564 * math/bits/math-finite.h: Move to ...
6565 * bits/math-finite.h: ... here.
6566
6567 2019-02-08 Florian Weimer <fweimer@redhat.com>
6568
6569 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6570 * bits/unistd_ext.h: here.
6571
6572 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6573
6574 [BZ #21915]
6575 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6576 * nss/tst-nss-files-hosts-long.c: New file.
6577 * nss/tst-nss-files-hosts-long.root: New directory.
6578 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6579 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6580
6581 2019-02-08 Florian Weimer <fweimer@redhat.com>
6582
6583 * include/bits/unistd_ext.h: Remove file.
6584 * posix/bits/unistd_ext.h: Move to ...
6585 * sysdeps/generic/bits/unistd_ext.h: ... here.
6586
6587 2019-02-08 Florian Weimer <fweimer@redhat.com>
6588
6589 * include/bits/unistd_ext.h: New file.
6590
6591 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6592
6593 * time/tst-strftime2.c: Use array_length macros instead of magic
6594 numbers.
6595
6596 2019-02-08 Florian Weimer <fweimer@redhat.com>
6597
6598 [BZ #24161]
6599 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6600 argument.
6601 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6602 locking if the new do_locking argument is true.
6603 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6604 __run_fork_handlers.
6605
6606 2019-02-08 Florian Weimer <fweimer@redhat.com>
6607
6608 [BZ #6399]
6609 Linux: Add gettid system call wrapper.
6610 * posix/Makefile (headers): Add bits/unistd_ext.h.
6611 * posix/bits/unistd_ext.h: New file.
6612 * posix/unistd.h: Include it.
6613 * manual/process.texi (Process Identification): Document gettid.
6614 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6615 tst-gettid, tst-gettid-kill.
6616 (tst-gettid): Link with $(shared-thread-library).
6617 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6618 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6619 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6620 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6621 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6622 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6623 Add gettid.
6624 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6625 Likewise.
6626 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6627 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6628 Likewise.
6629 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6630 Likewise.
6631 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6632 Likewise.
6633 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6634 Likewise.
6635 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6636 Likewise.
6637 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6638 Likewise.
6639 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6640 Likewise.
6641 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6642 (GLIBC_2.30): Likewise.
6643 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6644 (GLIBC_2.30): Likewise.
6645 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6646 (GLIBC_2.30): Likewise.
6647 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6648 (GLIBC_2.30): Likewise.
6649 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6650 Likewise.
6651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6652 (GLIBC_2.30): Likewise.
6653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6654 (GLIBC_2.30): Likewise.
6655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6656 (GLIBC_2.30): Likewise.
6657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6658 (GLIBC_2.30): Likewise.
6659 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6660 Likewise.
6661 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6662 Likewise.
6663 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6664 Likewise.
6665 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6666 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6667 Likewise.
6668 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6669 Likewise.
6670 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6671 Likewise.
6672 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6673 Likewise.
6674 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6675
6676 2019-02-08 Florian Weimer <fweimer@redhat.com>
6677
6678 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6679 compatibility symbols.
6680
6681 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6682
6683 [BZ #24180]
6684 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6685 Add compiler barriers and comments.
6686
6687 2019-02-07 Florian Weimer <fweimer@redhat.com>
6688
6689 * include/array_length.h (array_length): Do not use a statement
6690 expression and _Static_assert, so that array_length can be used at
6691 file scope and as a constant expression.
6692
6693 2019-02-07 Florian Weimer <fweimer@redhat.com>
6694
6695 * support/xdlfcn.h (xdlmopen): Declare.
6696 * support/xdlmopen.c: New file.
6697 * support/Makefile (libsupport-routines): Add xdlmopen.
6698
6699 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6700
6701 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6702 before return type, without separate inline.
6703 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6704 * elf/dl-tunables.h (tunable_is_name): Likewise.
6705 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6706 (do_set_top_pad): Likewise.
6707 (do_set_mmap_threshold): Likewise.
6708 (do_set_mmaps_max): Likewise.
6709 (do_set_mallopt_check): Likewise.
6710 (do_set_perturb_byte): Likewise.
6711 (do_set_arena_test): Likewise.
6712 (do_set_arena_max): Likewise.
6713 (do_set_tcache_max): Likewise.
6714 (do_set_tcache_count): Likewise.
6715 (do_set_tcache_unsorted_limit): Likewise.
6716 * nis/nis_subr.c (count_dots): Likewise.
6717 * nptl/allocatestack.c (advise_stack_range): Likewise.
6718 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6719 (do_sin): Likewise.
6720 (reduce_sincos): Likewise.
6721 (do_sincos): Likewise.
6722 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6723 (do_set_elision_enable): Likewise.
6724 (TUNABLE_CALLBACK_FNDECL): Likewise.
6725
6726 2019-02-06 Florian Weimer <fweimer@redhat.com>
6727
6728 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6729 (xdlsym): Use dlerror to detect a NULL symbol.
6730
6731 2019-02-06 Florian Weimer <fweimer@redhat.com>
6732
6733 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6734 <stap-probe.h>.
6735 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6736
6737 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6738
6739 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6740
6741 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6742
6743 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6744 __wmemcmp and weak alias to wmemcmp.
6745
6746 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6747
6748 [BZ #23403]
6749 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6750 TLS_TCB_AT_TP tls variant.
6751 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6752 Add alignment checks.
6753 * support/Makefile (libsupport-routines): Add xposix_memalign and
6754 xpthread_setstack.
6755 * support/support.h: Add xposix_memalign.
6756 * support/xthread.h: Add xpthread_attr_setstack.
6757 * support/xposix_memalign.c: New File.
6758 * support/xpthread_attr_setstack.c: Likewise.
6759
6760 2019-02-05 Florian Weimer <fweimer@redhat.com>
6761
6762 [BZ #24164]
6763 arm: Use "nr" constraint for Systemtap probes, to avoid the
6764 compiler using memory operands for constants, due to the "o"
6765 alternative in the default "nor" constraint.
6766 * include/stap-probe.h [USE_STAP_PROBE]: Include
6767 <stap-probe-machine.h>
6768 * sysdeps/generic/stap-probe-machine.h: New file.
6769 * sysdeps/arm/stap-probe-machine.h: Likewise.
6770
6771 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6772
6773 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6774 with 0, not tcache->entries[tc_idx].
6775
6776 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6777 once.
6778
6779 2019-02-04 Andreas Schwab <schwab@suse.de>
6780
6781 [BZ #16976]
6782 [BZ #17396]
6783 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6784 looking up collating elements match against (wide) character
6785 sequence instead of name. Correct alignment adjustment.
6786 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6787 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6788 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6789 (LOCALES): Add cs_CZ.ISO-8859-2.
6790 * posix/tst-fnmatch4.c: New file.
6791 * posix/tst-fnmatch5.c: New file.
6792 * include/wchar.h (__wmemcmp): Declare.
6793 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6794 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6795 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6796 * sysdeps/s390/wmemcmp.c: Likewise.
6797
6798 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6799
6800 [BZ #24155]
6801 CVE-2019-7309
6802 * NEWS: Updated for CVE-2019-7309.
6803 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6804 upper 32 bits of RDX register for x32. Use unsigned Jcc
6805 instructions, instead of signed.
6806 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6807 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6808
6809 2019-02-04 Florian Weimer <fweimer@redhat.com>
6810
6811 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6812 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6813 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6814 Likewise.
6815 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6816 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6817 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6818 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6819 Likewise.
6820 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6821 Likewise.
6822 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6823 Likewise.
6824 (posix_spawn_file_actions_addopen): Likewise.
6825 (posix_spawn_file_actions_addclose): Likewise.
6826 (posix_spawn_file_actions_adddup2): Likewise.
6827 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6828 qualifiers.
6829 (posix_spawn_file_actions_addfchdir_np): Likewise.
6830
6831 2019-02-04 David Newall <glibc@davidnewall.com>
6832
6833 elf: Implement --preload option for the dynamic linker.
6834 * elf/rtld.c (preloadarg): New variable.
6835 (handle_preload_list): Pass through “where” argument to
6836 do_preload.
6837 (dl_main): Handle "--preload" and add second call to
6838 handle_preload_list.
6839 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6840 (tst-rtld-preload-OBJS): Set variable.
6841 (tst-rtld-preload.out): New target.
6842 * elf/tst-rtld-preload.sh: New file.
6843
6844 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6845
6846 * Makefile (testrun.sh): Exit in case of incorrect argument.
6847
6848 2019-02-04 Florian Weimer <fweimer@redhat.com>
6849
6850 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6851 alignment gaps.
6852
6853 2019-02-03 Florian Weimer <fweimer@redhat.com>
6854
6855 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6856 implicit overflow checks.
6857
6858 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6859
6860 * stdlib/isomac.c: Include <unistd.h>.
6861
6862 2019-02-03 Florian Weimer <fweimer@redhat.com>
6863
6864 * include/time.h (__tzfile_default): Use int, not long int, for
6865 the GMT offsets.
6866 * time/tzfile.c (struct ttinfo): Change type of the offset member
6867 to int.
6868 (__tzfile_read): Remove useless cast.
6869 (__tzfile_default): Adjust prototype.
6870 * time/tzset.c (tz_rule): Change type of the offset member to int.
6871 (parse_offset): Change the type of the sign variable to int.
6872
6873 2019-02-03 Florian Weimer <fweimer@redhat.com>
6874
6875 [BZ #24153]
6876 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6877 * libio/getchar.c (getchar): Likewise.
6878 * libio/getchar_u.c (getchar_unlocked): Likewise.
6879 * libio/getwchar.c (getwchar): Likewise.
6880 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6881 * libio/iogets.c (_IO_gets): Likewise.
6882 * libio/vscanf.c (_IO_vscanf): Likewise.
6883 * libio/vwscanf.c (__vwscanf): Likewise.
6884 * libio/tst-bz24153.c: New file.
6885 * libio/Makefile (tests): Add it.
6886
6887 2019-02-02 Florian Weimer <fweimer@redhat.com>
6888
6889 [BZ #14829]
6890 * manual/resource.texi (Basic Scheduling Functions): Add
6891 portability note. Change process to task throughout the section.
6892 Remove incorrect comment about sched_yield as it affects
6893 tasks/threads, not entire processes.
6894 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6895 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6896
6897 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6898
6899 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6900 * configure: Regenerated.
6901 * manual/install.texi (Tools for Compilation): Update minimum GCC
6902 version.
6903 * INSTALL: Regenerated.
6904
6905 2019-02-01 Florian Weimer <fweimer@redhat.com>
6906
6907 * support/support_test_compare_string.c
6908 (support_test_compare_string): Use "string" in error message.
6909 * support/tst-test_compare_string.c (do_test): Adjust.
6910
6911 2019-02-01 Florian Weimer <fweimer@redhat.com>
6912
6913 * support/support_format_address_family.c
6914 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6915
6916 2019-02-01 Florian Weimer <fweimer@redhat.com>
6917
6918 * manual/socket.texi (Internet Address Formats): Clarify the byte
6919 order of struct sockaddr_in, struct sockaddr_in6. Document
6920 sin6_flowinfo and sin6_scope_id.
6921
6922 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6923
6924 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6925 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6926 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6927 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6928 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6929 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6930
6931 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6932
6933 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6934 [!MEMCHR](MEMCHR): Set to __memchr.
6935 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6936 Add memchr_generic and memchr_nosimd.
6937 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6938 (__libc_ifunc_impl_list): Add memchr ifuncs.
6939 * sysdeps/aarch64/multiarch/memchr.c: New file.
6940 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6941 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6942
6943 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6944
6945 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6946 Add memset_emag.
6947 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6948 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6949 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6950 Add IS_EMAG check for ifunc dispatch.
6951 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6952 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6953
6954 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6955
6956 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6957 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6958 Add emag.
6959 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6960 New macro.
6961
6962 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6963
6964 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6965
6966 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6967
6968 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6969 syscall-template file.
6970
6971 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6972 Torvald Riegel <triegel@redhat.com>
6973 Rik Prohaska <prohaska7@gmail.com>
6974
6975 [BZ# 23844]
6976 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6977 tst-rwlock-trywrlock-stall.
6978 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6979 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6980 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6981 Set __wrphase_fute to 1 only if we started the write phase.
6982 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6983 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6984 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6985 * support/xpthread_rwlock_destroy.c: New file.
6986 * support/xthread.h: Declare xpthread_rwlock_destroy.
6987
6988 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6989
6990 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6991 version to 4.0.2.
6992
6993 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6994
6995 [BZ #24051]
6996 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6997 * libio/fileops.c (_IO_new_file_underflow): Likewise
6998 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6999 * libio/putchar.c (putchar): Likewise.
7000 * libio/putchar_u.c (putchar_unlocked): Likewise.
7001 * libio/putwchar.c (putchar): Likewise.
7002 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
7003 * libio/tst-bz24051.c: New test.
7004 * libio/Makefile (tests): Add tst-bz24051
7005
7006 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
7007
7008 CVE-2019-9169
7009 regex: fix read overrun [BZ #24114]
7010 Problem found by AddressSanitizer, reported by Hongxu Chen in:
7011 https://debbugs.gnu.org/34140
7012 * posix/regexec.c (proceed_next_node):
7013 Do not read past end of input buffer.
7014
7015 2019-01-31 Florian Weimer <fweimer@redhat.com>
7016
7017 [BZ #24059]
7018 * nss/nss_files/files-alias.c (get_next_alias): Handle
7019 continuation line without newline at the end.
7020 * nss/tst-nss-files-alias-truncated.c: New file.
7021 * nss/Makefile [$(build-shared)] (tests): Add
7022 tst-nss-files-alias-truncated.
7023 (tst-nss-files-alias-truncated): Link with libnss_files.so.
7024 * support/namespace.h (struct support_chroot_configuration): Add
7025 aliases member.
7026 (struct support_chroot): Add path_aliases member.
7027 * support/support_chroot.c (support_chroot_create): Handle
7028 aliases.
7029 (support_chroot_free): Free path_aliases.
7030
7031 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
7032
7033 * version.h (RELEASE): Set to "development".
7034 (VERSION): Set to "2.29.9000".
7035 * NEWS: Add section for 2.30.
7036
7037 * version.h (RELEASE): Set to "stable".
7038 (VERSION): Set to "2.29".
7039 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
7040
7041 * NEWS: Add the list of bugs fixed in 2.29.
7042 * manual/contrib.texi: Update contributors list with some more
7043 names.
7044 * manual/install.texi: Update latest versions of packages
7045 tested.
7046 * INSTALL: Regenerated.
7047
7048 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
7049
7050 * po/be.po: Update translations.
7051 * po/bg.po: Likewise.
7052 * po/ca.po: Likewise.
7053 * po/cs.po: Likewise.
7054 * po/da.po: Likewise.
7055 * po/de.po: Likewise.
7056 * po/el.po: Likewise.
7057 * po/eo.po: Likewise.
7058 * po/es.po: Likewise.
7059 * po/fi.po: Likewise.
7060 * po/fr.po: Likewise.
7061 * po/gl.po: Likewise.
7062 * po/hr.po: Likewise.
7063 * po/hu.po: Likewise.
7064 * po/ia.po: Likewise.
7065 * po/id.po: Likewise.
7066 * po/it.po: Likewise.
7067 * po/ja.po: Likewise.
7068 * po/ko.po: Likewise.
7069 * po/lt.po: Likewise.
7070 * po/nb.po: Likewise.
7071 * po/nl.po: Likewise.
7072 * po/pl.po: Likewise.
7073 * po/pt_BR.po: Likewise.
7074 * po/ru.po: Likewise.
7075 * po/rw.po: Likewise.
7076 * po/sk.po: Likewise.
7077 * po/sl.po: Likewise.
7078 * po/sv.po: Likewise.
7079 * po/tr.po: Likewise.
7080 * po/uk.po: Likewise.
7081 * po/vi.po: Likewise.
7082 * po/zh_CN.po: Likewise.
7083 * po/zh_TW.po: Likewise.
7084
7085 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7086
7087 [BZ #24130]
7088 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
7089 of $f3 register on $y_is_neg path.
7090
7091 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
7092
7093 [BZ #24110]
7094 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
7095 sigaltstack.ss_flags.
7096
7097 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
7098
7099 [BZ #23758]
7100 * manual/time.texi (strftime): Document "%Ey".
7101 * time/strftime_l.c (__strftime_internal): Set the default width
7102 padding with zero of "%Ey" to 2.
7103
7104 [BZ #24096]
7105 * manual/time.texi (strftime): Document "%EC" and "%EY".
7106 * time/Makefile (tests): Add tst-strftime2.
7107 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7108 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7109 override padding for "%Ey".
7110 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7111 "%Ey" in the subformat as if decorated with that flag.
7112 * time/tst-strftime2.c: New file.
7113
7114 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7115
7116 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7117 are not defined.
7118
7119 [BZ #24122]
7120 * elf/Makefile (tests): Add tst-audit13.
7121 (modules-names): Add tst-audit13mod1.
7122 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7123 rule.
7124 * elf/rtld.c (dl_main): Handle invalid audit module version.
7125 * elf/tst-audit13.c: New file.
7126 * elf/tst-audit13mod1.c: Likewise.
7127
7128 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7129
7130 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7131 returned by __hurd_at_flags.
7132 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7133 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7134 directly instead of __hurd_file_name_lookup.
7135
7136 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7137
7138 * scripts/build-many-glibcs.py (Context.checkout): Default
7139 binutils version to 2.32 branch.
7140
7141 2019-01-21 Florian Weimer <fweimer@redhat.com>
7142
7143 [BZ #20018]
7144 CVE-2016-10739
7145 resolv: Reject trailing characters in host names
7146 * include/arpa/inet.h (__inet_aton_exact): Declare.
7147 (inet_aton): Remove hidden prototype. No longer used internally.
7148 * nscd/gai.c (__inet_aton): Do not define.
7149 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7150 * nss/digits_dots.c (__inet_aton): Likewise.
7151 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7152 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7153 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7154 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7155 (tst-resolv-trailing): Likewise.
7156 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7157 libc.
7158 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7159 Make static. Add endp parameter.
7160 (__inet_aton_exact): New function.
7161 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7162 (__inet_addr): Call inet_aton_end.
7163 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7164 not just IPv6. Call __inet_aton_exact.
7165 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7166 (tests): Make const. Add additional test cases with trailing
7167 characters.
7168 (do_test): Use array_length.
7169 * resolv/tst-inet_aton_exact.c: New file.
7170 * resolv/tst-resolv-trailing.c: Likewise.
7171 * resolv/tst-resolv-nondecimal.c: Likewise.
7172 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
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/strlen-avx2.S: Use RSI_LP for length.
7179 Clear the upper 32 bits of RSI register.
7180 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7181 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7182 and tst-size_t-wcsnlen.
7183 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7184 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7185
7186 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7187
7188 [BZ# 24097]
7189 CVE-2019-6488
7190 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7191 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7192 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7193 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7194 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7195
7196 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7197
7198 [BZ# 24097]
7199 CVE-2019-6488
7200 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7201 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7202 * sysdeps/x86_64/strcmp.S: Likewise.
7203 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7204 tst-size_t-strncmp and tst-size_t-wcsncmp.
7205 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7206 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7207 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7208
7209 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7210
7211 [BZ# 24097]
7212 CVE-2019-6488
7213 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7214 RDX_LP for length. Clear the upper 32 bits of RDX register.
7215 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7216 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7217 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7218 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7219
7220 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7221
7222 [BZ# 24097]
7223 CVE-2019-6488
7224 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7225 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7226 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7227 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7228
7229 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7230
7231 [BZ# 24097]
7232 CVE-2019-6488
7233 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7234 length. Clear the upper 32 bits of RDX register.
7235 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7236 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7237 Likewise.
7238 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7239 Likewise.
7240 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7241 tst-size_t-wmemchr.
7242 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7243
7244 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7245
7246 [BZ# 24097]
7247 CVE-2019-6488
7248 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7249 length. Clear the upper 32 bits of RDX register.
7250 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7251 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7252 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7253 tst-size_t-wmemcmp.
7254 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7255 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7256
7257 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7258
7259 [BZ# 24097]
7260 CVE-2019-6488
7261 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7262 upper 32 bits of RDX register.
7263 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7264 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7265 tst-size_t-wmemchr.
7266 * sysdeps/x86_64/x32/test-size_t.h: New file.
7267 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7268 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7269
7270 2019-01-18 Florian Weimer <fweimer@redhat.com>
7271
7272 [BZ #24112]
7273 resolv: Do not send queries for non-host-names in nss_dns.
7274 * resolv/nss_dns/dns-host.c (check_name): New function.
7275 (_nss_dns_gethostbyname2_r): Use it.
7276 (_nss_dns_gethostbyname_r): Likewise.
7277 (_nss_dns_gethostbyname4_r): Likewise.
7278
7279 2019-01-21 Florian Weimer <fweimer@redhat.com>
7280
7281 * resolv/inet_addr.c: Reformat to GNU style.
7282 (__inet_addr, __inet_aton): Update comment.
7283
7284 2019-01-18 Florian Weimer <fweimer@redhat.com>
7285
7286 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7287 ("malloc: Use current (C11-style) atomics for fastbin access").
7288 This commit introduces a substantial performance regression on
7289 POWER and Aarch64.
7290 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7291 (REMOVE_FB): Define.
7292 (_int_malloc): Use it and reindent.
7293 (_int_free): Use CAS loop with
7294 catomic_compare_and_exchange_val_rel.
7295 (malloc_consolidate): Use atomic_exchange_acq.
7296
7297
7298 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7299
7300 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7301 -Wl,-z,now.
7302 (LDFLAGS-tst-minsigstksz-2): Likewise.
7303 (LDFLAGS-tst-minsigstksz-3): Likewise.
7304 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7305 (LDFLAGS-tst-minsigstksz-4): Likewise.
7306
7307 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7308
7309 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7310 than "alternate".
7311
7312 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7313
7314 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7315
7316 2019-01-16 Zack Weinberg <zackw@panix.com>
7317
7318 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7319 (xget_sigstack_location): New test support functions.
7320 * support/xsigstack.c: New file, implementing them.
7321 * support/tst-xsigstack.c: New test for them.
7322 * support/Makefile: Update.
7323
7324 * signal/tst-minsigstksz-1.c
7325 * signal/tst-minsigstksz-2.c
7326 * signal/tst-minsigstksz-3.c
7327 * signal/tst-minsigstksz-3a.c
7328 * signal/tst-minsigstksz-4.c: New tests.
7329 * signal/Makefile: Run them.
7330
7331 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7332
7333 * po/libc.pot: Regenerate.
7334
7335 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7336
7337 * math/libm-test-fma.inc (fma_test_data): Set
7338 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7339
7340 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7341
7342 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7343 (do_test): Changed __vector __int128_t to __vector unsigned int.
7344
7345 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7346
7347 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7348 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7349 stpcpy-avx2 and stpncpy-avx2.
7350 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7351 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7352 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7353 and __stpncpy_avx2.
7354 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7355 ifunc-strcpy.h}: rename header for a more generic name.
7356 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7357 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7358 AVX unaligned load is fast and vzeroupper is preferred.
7359 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7360 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7361 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7362 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7363 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7364 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7365
7366 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7367
7368 * argp/argp-help.c: Fix typo in comment.
7369 * misc/sys/cdefs.h: Likewise.
7370 * posix/regexec.c (sift_states_iter_mb): Likewise.
7371 * socket/sockatmark.c: Likewise.
7372 * socket/sys/socket.h: Likewise.
7373 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7374 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7375 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7376 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7377 * sysdeps/unix/sockatmark.c: Likewise.
7378 * time/strptime_l.c: Likewise.
7379
7380 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7381
7382 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7383 missing space after the cast of "_NL_CURRENT".
7384
7385 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7386
7387 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7388 ifdef to fix read of VSCR.
7389 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7390 tst-ucontext-ppc64-vscr.c to test list.
7391 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7392
7393 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7394
7395 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7396 fall-through.
7397
7398 2019-01-09 Jim Wilson <jimw@sifive.com>
7399
7400 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7401
7402 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7403
7404 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7405 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7406 __memcpy_falkor for ares.
7407 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7408 Add new define.
7409 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7410 Add ares cpu.
7411
7412 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7413
7414 [BZ #24066]
7415 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7416 4_FP_W_TYPEs are used for IEEE quad precision.
7417 * soft-fp/extendhftf2.c: Likewise.
7418 * soft-fp/extendsftf2.c: Likewise.
7419 * soft-fp/extendxftf2.c: Likewise.
7420 * soft-fp/trunctfdf2.c: Likewise.
7421 * soft-fp/trunctfhf2.c: Likewise.
7422 * soft-fp/trunctfsf2.c: Likewise.
7423 * soft-fp/trunctfxf2.c: Likewise.
7424 * sysdeps/alpha/ots_cvttx.c: Likewise.
7425 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7426 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7427 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7428 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7429 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7430 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7431 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7432 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7433 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7434 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7435 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7436 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7437 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7438 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7439 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7440 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7441 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7442
7443 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7444
7445 [BZ #24024]
7446 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7447 code with -fmath-errno.
7448 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7449 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7450 * string/test-strerror-errno.c: New file.
7451
7452 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7453
7454 [BZ #24046]
7455 * localedata/locales/en_US (date_fmt): Add, set to
7456 "%a %d %b %Y %r %Z".
7457
7458 2019-01-07 Florian Weimer <fweimer@redhat.com>
7459
7460 [BZ #24063]
7461 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7462 instead of @var{errno}.
7463 (Parsing of Integers): Likewise.
7464 (Parsing of Floats): Likewise.
7465 * manual/filesys.texi (Working with Directory Trees): Likewise.
7466 (Temporary Files): Likewise.
7467 * manual/job.texi (Terminal Access Functions): Likewise.
7468 * manual/llio.texi (Synchronizing I/O): Likewise.
7469 * manual/math.texi (SVID Random): Likewise.
7470 * manual/message.texi (The catgets Functions): Likewise.
7471 (Translation with gettext): Likewise.
7472 (Locating gettext catalog): Likewise.
7473 (Charset conversion in gettext): Likewise.
7474 * manual/nss.texi (NSS Module Function Internals): Likewise.
7475 * manual/search.texi (Hash Search Function): Likewise.
7476 * manual/setjmp.texi (System V contexts): Likewise.
7477 * manual/time.texi (Sleeping): Likewise.
7478 * manual/users.texi (Lookup User): Likewise.
7479 (Lookup Group): Likewise.
7480
7481 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7482
7483 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7484 fix typo.
7485
7486 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7487
7488 [BZ #19444]
7489 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7490 __builtin_unreachable for default case in switch.
7491 (__ieee754_yn): Likewise.
7492 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7493 (__ieee754_ynl): Likewise.
7494 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7495 (__ieee754_ynl): Likewise.
7496 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7497 (__ieee754_ynl): Likewise.
7498
7499 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7500
7501 * manual/maint.texi: Use @{ and @}.
7502
7503 2019-01-04 Florian Weimer <fweimer@redhat.com>
7504
7505 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7506 function.
7507 (do_in_chroot_1): Call it.
7508 (run_chroot_tests):
7509 Improve error reporting in case it is not possible to create a
7510 collision for the PTY name required by the test.
7511
7512 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7513
7514 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7515 lll_wait_tid with timeout.
7516 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7517 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7518 futex_reltimed_wait_cancelable for cancelabla mode.
7519 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7520 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7521 macros.
7522 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7523 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7524 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7525 SYSCALL_CANCEL_NCS): New macro.
7526 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7527 (lll_timedwait_tid): Remove macro.
7528 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7529 Likewise.
7530 (lll_timedwait_tid): Likewise.
7531 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7532 Likewise.
7533 (lll_timedwait_tid): Likewise.
7534 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7535 Likewise.
7536 (lll_timedwait_tid): Likewise.
7537 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7538 Use INTERNAL_SYSCALL_CANCEL.
7539 * sysdeps/unix/sysv/linux/futex-internal.h
7540 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7541 instead of __pthread_{enable,disable}_asynccancel.
7542 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7543 (lll_futex_wait_cancel): New macro.
7544
7545 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7546 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7547
7548 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7549 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7550
7551 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7552 in backtrace analysis.
7553 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7554 side-effects.
7555 (tf_send): Likewise.
7556
7557 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7558 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7559 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7560 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7561 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7562 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7563 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7564 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7565 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7566 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7567 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7568 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7569 Likewise.
7570 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7571 tst-cancel-wrappers.sh.
7572 (generated): Remove tst-cancel-wrappers.out.
7573 (tst-cancel-wrappers.out): Remove rule.
7574 * nptl/tst-cancel-wrappers.sh: Remove file.
7575
7576 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7577
7578 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7579 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7580 Update.
7581
7582 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7583
7584 [BZ #23640]
7585 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7586 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7587 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7588 close-on-exec reset for adddup2 file action.
7589 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7590
7591 2019-01-03 Zack Weinberg <zackw@panix.com>
7592
7593 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7594 parameter. Only use deprecated scanf when __USE_GNU is defined
7595 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7596 than 201103L, whichever is relevant for the language being compiled.
7597
7598 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7599 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7600 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7601 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7602 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7603
7604 * libio/iovsscanf.c
7605 * libio/fwscanf.c
7606 * libio/iovswscanf.c
7607 * libio/swscanf.c
7608 * libio/vscanf.c
7609 * libio/vwscanf.c
7610 * libio/wscanf.c
7611 * stdio-common/fscanf.c
7612 * stdio-common/scanf.c
7613 * stdio-common/vfscanf.c
7614 * stdio-common/vfwscanf.c
7615 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7616 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7617 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7618 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7619 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7620 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7621 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7622 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7623 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7624 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7625 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7626 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7627 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7628 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7629 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7630
7631 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7632 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7633 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7634 not sscanf.
7635 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7636 with a preprocessor macro.
7637
7638 * stdio-common/bug21.c, stdio-common/scanf14.c:
7639 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7640 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7641 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7642 to xscanf, xfscanf, xsscanf.
7643
7644 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7645 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7646 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7647 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7648 xfscanf, xsscanf.
7649 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7650 override feature selection macros or provide definitions of u_char etc.
7651 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7652 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7653 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7654 with -std=gnu89.
7655
7656 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7657
7658 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7659 bits/termios-misc.h.
7660 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7661 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7662 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7663 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7664 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7665 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7666
7667 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7668 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7669 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7670 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7671 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7672 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7673 termios-misc.h.
7674 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7675 (sysdep_headers): Add termios-misc.h.
7676
7677 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7678 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7679 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7680
7681 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7682 termios-tcflow.h.
7683 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7684 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7685 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7686 TCSAFLUSH): Move to termios-tcflow.h.
7687 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7688 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7689 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7690 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7691
7692 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7693 termios-c_lflag.h.
7694 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7695 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7696 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7697 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7698 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7699 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7700 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7701 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7702 Likewise.
7703 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7704 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7705 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7706 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7707
7708 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7709 termios-c_cflag.h.
7710 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7711 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7712 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7713 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7714 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7715 termios-c_cflag.h.
7716 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7717 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7718 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7719 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7720
7721 [BZ #23783]
7722 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7723 termios-baud.h.
7724 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7725 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7726 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7727 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7728 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7729 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7730 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7731 __MAX_BAUD): Move to termios-baud.h.
7732 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7733 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7734 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7735 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7736 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7737
7738 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7739 termios-c_oflag.h.
7740 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7741 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7742 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7743 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7744 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7745 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7746 termios-c_oflag.h.
7747 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7748 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7749 FFR1): Likewise.
7750 [USE_MISC] (XTABS): Likewise.
7751 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7752 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7753 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7754 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7755
7756 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7757 termios-c_iflag.h.
7758 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7759 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7760 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7761 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7762 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7763 IUTF8): Move to termios-c_iflag.h.
7764 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7765 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7766 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7767 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7768
7769 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7770 termios-cc.h.
7771 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7772 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7773 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7774 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7775 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7776 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7777 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7778 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7779 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7780 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7781 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7782 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7783
7784 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7785 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7786 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7787 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7788 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7789 termios-struct.h.
7790 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7791 termios-struct.h.
7792 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7793 Likewise.
7794 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7795 Likewise.
7796 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7797 Likewise.
7798 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7799 Likewise.
7800 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7801 _HAVE_C_OSPEED): Define.
7802 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7803 _HAVE_C_OSPEED): Likewise.
7804 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7805 _HAVE_C_OSPEED): Likewise.
7806 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7807 (cfsetospeed): Check for define value instead of existence.
7808 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7809 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7810 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7811 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7812 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7813
7814 [BZ #17783]
7815 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7816 Define.
7817 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7818 (TIOCSER_TEMT): Likewise.
7819 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7820 (TEOCSER_TEMT): Likewise.
7821
7822 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7823
7824 [BZ #24011]
7825 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7826
7827 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7828
7829 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7830
7831 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7832
7833 * sysdeps/htl/pt-barrierattr-setpshared.c
7834 (pthread_barrierattr_setpshared): Add stub warning.
7835 * sysdeps/htl/pt-condattr-setpshared.c
7836 (pthread_condattr_setpshared): Likewise.
7837 * sysdeps/htl/pt-mutexattr-setpshared.c
7838 (pthread_mutexattr_setpshared): Likewise.
7839 * sysdeps/htl/pt-rwlockattr-setpshared.c
7840 (pthread_rwlockattr_setpshared): Likewise.
7841 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7842 (pthread_mutexattr_setpshared): Likewise.
7843
7844 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7845
7846 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7847 constants to match with Linux 4.20.
7848
7849 * sysdeps/mips/mips32/libm-test-ulps: Update.
7850 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7851
7852 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7853
7854 [BZ #24034]
7855 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7856 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7857 than __typeof (...) for the a_ptr variable.
7858
7859 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7860
7861 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7862 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7863 * libio/Makefile (tests): Add tst-sprintf-ub and
7864 tst-sprintf-chk-ub.
7865 (CFLAGS-tst-sprintf-ub.c): New variable.
7866 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7867 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7868 destination buffer and check for overflows in fortified mode.
7869 * libio/libioP.h (PRINTF_CHK): New macro.
7870 * libio/tst-sprintf-chk-ub.c: New file.
7871 * libio/tst-sprintf-ub.c: Likewise.
7872
7873 2019-01-02 Florian Weimer <fweimer@redhat.com>
7874
7875 [BZ #24018]
7876 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7877 failure.
7878
7879 2019-01-02 Florian Weimer <fweimer@redhat.com>
7880
7881 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7882
7883 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7884
7885 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7886 macro.
7887
7888 * sysdeps/unix/sysv/linux/netpacket/packet.h
7889 (PACKET_IGNORE_OUTGOING): New macro.
7890
7891 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7892 macro.
7893
7894 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7895 version to 4.20.
7896 (riscv_flush_icache): New syscall.
7897
7898 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7899 trailing whitespace removed.
7900 * scripts/config.guess: Update to version 2019-01-01.
7901 * scripts/config.sub: Update to version 2019-01-01.
7902 * scripts/move-if-change: Update from gnulib.
7903
7904 * NEWS: Update copyright dates.
7905 * catgets/gencat.c (print_version): Likewise.
7906 * csu/version.c (banner): Likewise.
7907 * debug/catchsegv.sh: Likewise.
7908 * debug/pcprofiledump.c (print_version): Likewise.
7909 * debug/xtrace.sh (do_version): Likewise.
7910 * elf/ldconfig.c (print_version): Likewise.
7911 * elf/ldd.bash.in: Likewise.
7912 * elf/pldd.c (print_version): Likewise.
7913 * elf/sotruss.sh: Likewise.
7914 * elf/sprof.c (print_version): Likewise.
7915 * iconv/iconv_prog.c (print_version): Likewise.
7916 * iconv/iconvconfig.c (print_version): Likewise.
7917 * locale/programs/locale.c (print_version): Likewise.
7918 * locale/programs/localedef.c (print_version): Likewise.
7919 * login/programs/pt_chown.c (print_version): Likewise.
7920 * malloc/memusage.sh (do_version): Likewise.
7921 * malloc/memusagestat.c (print_version): Likewise.
7922 * malloc/mtrace.pl: Likewise.
7923 * manual/libc.texinfo: Likewise.
7924 * nptl/version.c (banner): Likewise.
7925 * nscd/nscd.c (print_version): Likewise.
7926 * nss/getent.c (print_version): Likewise.
7927 * nss/makedb.c (print_version): Likewise.
7928 * posix/getconf.c (main): Likewise.
7929 * scripts/test-installation.pl: Likewise.
7930 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7931
7932 * All files with FSF copyright notices: Update copyright dates
7933 using scripts/update-copyrights.
7934 * locale/programs/charmap-kw.h: Regenerated.
7935 * locale/programs/locfile-kw.h: Likewise.
7936
7937 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7938
7939 * timezone/zdump.c: Update from tzcode 2018i.
7940 * timezone/zic.c: Likewise.
7941
7942 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7943
7944 regex: improve Gnulib port to AIX
7945 From the glibc point of view, this removes duplicate macro
7946 definitions and is obviously safe.
7947 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7948 * posix/regex_internal.h:
7949 (__attribute__, __attribute_warn_unused_result__):
7950 Remove; already defined elsewhere.
7951
7952 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7953
7954 [BZ #24027]
7955 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7956 copying operation. (ncopies had the wrong type, resulting in an
7957 integer wraparound and too few elements being copied.)
7958
7959 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7960
7961 [BZ #24022]
7962 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7963 <asm/syscalls.h> exists with __has_include__ before including it.
7964
7965 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7966
7967 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7968 version to 4.20.
7969
7970 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7971
7972 * hurd/lookup-retry: Include <unistd.h>.
7973 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7974 Release it on return. Handle "pid" magical lookup retry.
7975
7976 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7977
7978 [BZ #10496]
7979 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7980 (t_fmt_ampm): Likewise.
7981 * localedata/locales/aa_ER (t_fmt): Likewise.
7982 (t_fmt_ampm): Likewise.
7983 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7984 (t_fmt_ampm): Likewise.
7985 * localedata/locales/aa_ET (t_fmt): Likewise.
7986 (t_fmt_ampm): Likewise.
7987 * localedata/locales/am_ET (t_fmt): Likewise.
7988 (t_fmt_ampm): Likewise.
7989 * localedata/locales/byn_ER (t_fmt): Likewise.
7990 (t_fmt_ampm): Likewise.
7991 * localedata/locales/om_ET (t_fmt): Likewise.
7992 (t_fmt_ampm): Likewise.
7993 * localedata/locales/sid_ET (t_fmt): Likewise.
7994 (t_fmt_ampm): Likewise.
7995 * localedata/locales/so_DJ (t_fmt): Likewise.
7996 (t_fmt_ampm): Likewise.
7997 * localedata/locales/so_ET (t_fmt): Likewise.
7998 (t_fmt_ampm): Likewise.
7999 * localedata/locales/so_SO (t_fmt): Likewise.
8000 (t_fmt_ampm): Likewise.
8001 * localedata/locales/ti_ER (t_fmt): Likewise.
8002 (t_fmt_ampm): Likewise.
8003 * localedata/locales/ti_ET (t_fmt): Likewise.
8004 (t_fmt_ampm): Likewise.
8005 * localedata/locales/tig_ER (t_fmt): Likewise.
8006 (t_fmt_ampm): Likewise.
8007 * localedata/locales/wal_ET (t_fmt): Likewise.
8008 (t_fmt_ampm): Likewise.
8009
8010 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
8011 * localedata/locales/ar_IN (t_fmt): Likewise.
8012 * localedata/locales/bhb_IN (t_fmt): Likewise.
8013 * localedata/locales/bho_IN (t_fmt): Likewise.
8014 * localedata/locales/bi_VU (t_fmt): Likewise.
8015 * localedata/locales/bn_BD (t_fmt): Likewise.
8016 * localedata/locales/bn_IN (t_fmt): Likewise.
8017 * localedata/locales/brx_IN (t_fmt): Likewise.
8018 * localedata/locales/doi_IN (t_fmt): Likewise.
8019 * localedata/locales/en_HK (t_fmt): Likewise.
8020 (t_fmt_ampm): Likewise.
8021 * localedata/locales/en_IN (t_fmt): Likewise.
8022 * localedata/locales/en_PH (t_fmt): Likewise.
8023 * localedata/locales/gu_IN (t_fmt): Likewise.
8024 * localedata/locales/hi_IN (t_fmt): Likewise.
8025 * localedata/locales/hif_FJ (t_fmt): Likewise.
8026 * localedata/locales/hne_IN (t_fmt): Likewise.
8027 * localedata/locales/kn_IN (t_fmt): Likewise.
8028 * localedata/locales/kok_IN (t_fmt): Likewise.
8029 * localedata/locales/ks_IN (t_fmt): Likewise.
8030 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
8031 * localedata/locales/mag_IN (t_fmt): Likewise.
8032 * localedata/locales/mai_IN (t_fmt): Likewise.
8033 * localedata/locales/mjw_IN (t_fmt): Likewise.
8034 * localedata/locales/ml_IN (t_fmt): Likewise.
8035 * localedata/locales/mni_IN (t_fmt): Likewise.
8036 * localedata/locales/mr_IN (t_fmt): Likewise.
8037 * localedata/locales/ms_MY (t_fmt): Likewise.
8038 * localedata/locales/pa_IN (t_fmt): Likewise.
8039 * localedata/locales/raj_IN (t_fmt): Likewise.
8040 * localedata/locales/sa_IN (t_fmt): Likewise.
8041 * localedata/locales/sat_IN (t_fmt): Likewise.
8042 * localedata/locales/sd_IN (t_fmt): Likewise.
8043 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
8044 * localedata/locales/tcy_IN (t_fmt): Likewise.
8045 * localedata/locales/the_NP (t_fmt): Likewise.
8046 * localedata/locales/to_TO (t_fmt): Likewise.
8047 * localedata/locales/ur_IN (t_fmt): Likewise.
8048
8049 * localedata/locales/hif_FJ (d_t_fmt): Set to
8050 "%A %d %b %Y %I:%M:%S %p".
8051 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
8052
8053 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
8054 * localedata/locales/ar_BH (t_fmt): Likewise.
8055 * localedata/locales/ar_DZ (t_fmt): Likewise.
8056 * localedata/locales/ar_EG (t_fmt): Likewise.
8057 * localedata/locales/ar_IQ (t_fmt): Likewise.
8058 * localedata/locales/ar_JO (t_fmt): Likewise.
8059 * localedata/locales/ar_KW (t_fmt): Likewise.
8060 * localedata/locales/ar_LB (t_fmt): Likewise.
8061 * localedata/locales/ar_LY (t_fmt): Likewise.
8062 * localedata/locales/ar_OM (t_fmt): Likewise.
8063 * localedata/locales/ar_QA (t_fmt): Likewise.
8064 * localedata/locales/ar_SD (t_fmt): Likewise.
8065 * localedata/locales/ar_SS (t_fmt): Likewise.
8066 * localedata/locales/ar_SY (t_fmt): Likewise.
8067 * localedata/locales/ar_TN (t_fmt): Likewise.
8068 * localedata/locales/ar_YE (t_fmt): Likewise.
8069
8070 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
8071 (t_fmt_ampm): Likewise.
8072 * localedata/locales/gez_ET (t_fmt): Likewise.
8073 (t_fmt_ampm): Likewise.
8074
8075 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
8076 (t_fmt_ampm): Likewise.
8077 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
8078
8079 * localedata/locales/zh_HK (t_fmt):
8080 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
8081
8082 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
8083 because this locale does not use the 12-hour clock.
8084 (t_fmt): Set to "%Z %H:%M:%S".
8085 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
8086
8087 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
8088 because this locale does not use the 12-hour clock.
8089 (t_fmt): Set to "%H:%M:%S %Z".
8090 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
8091
8092 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
8093 because this locale does not use the 12-hour clock.
8094 (t_fmt): Set to "%T".
8095 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
8096 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
8097
8098 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
8099 because this locale does not use the 12-hour clock.
8100 (t_fmt): Set to "%H:%M:%S %Z".
8101 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8102
8103 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8104 because this locale does not use the 12-hour clock.
8105 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8106 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8107
8108 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
8109
8110 [BZ #10496]
8111 [BZ #23724]
8112 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8113 (t_fmt_ampm): Likewise.
8114 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8115 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8116 (d_fmt): Set to "%-d.%-m.%y".
8117
8118 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8119
8120 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8121 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8122 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8123 Likewise.
8124 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8125 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8126 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8127 function.
8128 * support/blob_repeat.c (check_mul_overflow_size_t,
8129 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8130
8131 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8132
8133 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8134
8135 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8136
8137 regex: simplify Gnulib port
8138 This simplifies the code, by removing stuff intended for porting
8139 to Gnulib but no longer needed there.
8140 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8141 uses of libc_hidden_def, weak_alias.
8142 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8143 _Restrict_ except for public-facing headers.
8144 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8145 Remove; already defined elsewhere.
8146 * posix/regex.c, posix/regex_internal.h:
8147 Use __GNUC_PREREQ instead of rolling our own.
8148 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8149
8150 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8151
8152 * benchtests/bench-strlen.c (generic_strlen): New function.
8153 (memchr_strlen): New function.
8154
8155 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8156
8157 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8158 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8159 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8160
8161 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8162
8163 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8164
8165 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8166
8167 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8168 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8169 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8170 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8171 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8172 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8173 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8174
8175 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8176
8177 [BZ #24023]
8178 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8179 PLT reference in libc.so.
8180 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8181 _Q_lltoq and _Q_qtod PLT references in libc.so.
8182
8183 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8184
8185 * benchtests/bench-memchr.c: Cleanup defines.
8186 * benchtests/bench-memcmp.c: Likewise.
8187 * benchtests/bench-memset.c: Likewise.
8188 * benchtests/bench-memset-large.c: Likewise.
8189 * benchtests/bench-memset-walk.c: Likewise.
8190 * benchtests/bench-stpcpy.c: Likewise.
8191 * benchtests/bench-stpncpy.c: Likewise.
8192 * benchtests/bench-strcat.c: Likewise.
8193 * benchtests/bench-strchr.c: Likewise.
8194 * benchtests/bench-strcmp.c: Likewise.
8195 * benchtests/bench-strcpy.c: Likewise.
8196 * benchtests/bench-strcspn.c: Likewise.
8197 * benchtests/bench-string.h: Likewise.
8198 * benchtests/bench-strlen.c: Likewise.
8199 * benchtests/bench-strncat.c: Likewise.
8200 * benchtests/bench-strncmp.c: Likewise.
8201 * benchtests/bench-strncpy.c: Likewise.
8202 * benchtests/bench-strnlen.c: Likewise.
8203 * benchtests/bench-strpbrk.c: Likewise.
8204 * benchtests/bench-strrchr.c: Likewise.
8205 * benchtests/bench-strspn.c: Likewise.
8206
8207 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8208
8209 * stdlib/longlong.h: Update from GCC.
8210
8211 [BZ #23993]
8212 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8213 * configure: Regenerated.
8214 * manual/install.texi (Tools for Compilation): Update minimum GCC
8215 version.
8216 * INSTALL: Regenerated.
8217
8218 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8219
8220 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8221
8222 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8223
8224 * malloc/malloc.c (mremap_chunk): Additional checks.
8225
8226 2018-12-21 Mao Han <han_mao@c-sky.com>
8227
8228 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8229 * scripts/build-many-glibcs.py: Add C-SKY targets.
8230 * sysdeps/csky/Implies: New file.
8231 * sysdeps/csky/Makefile: Likewise.
8232 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8233 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8234 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8235 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8236 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8237 * sysdeps/csky/abiv2/memmove.S: Likewise.
8238 * sysdeps/csky/abiv2/memset.S: Likewise.
8239 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8240 * sysdeps/csky/abiv2/start.S: Likewise.
8241 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8242 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8243 * sysdeps/csky/abiv2/strlen.S: Likewise.
8244 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8245 * sysdeps/csky/abort-instr.h: Likewise.
8246 * sysdeps/csky/atomic-machine.h: Likewise.
8247 * sysdeps/csky/bits/endian.h: Likewise.
8248 * sysdeps/csky/bits/fenv.h: Likewise.
8249 * sysdeps/csky/bits/link.h: Likewise.
8250 * sysdeps/csky/bits/setjmp.h: Likewise.
8251 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8252 * sysdeps/csky/bsd-setjmp.S: Likewise.
8253 * sysdeps/csky/configure: Likewise.
8254 * sysdeps/csky/configure.ac: Likewise.
8255 * sysdeps/csky/dl-machine.h: Likewise.
8256 * sysdeps/csky/dl-procinfo.c: Likewise.
8257 * sysdeps/csky/dl-procinfo.h: Likewise.
8258 * sysdeps/csky/dl-sysdep.h: Likewise.
8259 * sysdeps/csky/dl-tls.h: Likewise.
8260 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8261 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8262 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8263 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8264 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8265 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8266 * sysdeps/csky/fpu/fegetround.c: Likewise.
8267 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8268 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8269 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8270 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8271 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8272 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8273 * sysdeps/csky/fpu/fesetround.c: Likewise.
8274 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8275 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8276 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8277 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8278 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8279 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8280 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8281 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8282 * sysdeps/csky/fpu_control.h: Likewise.
8283 * sysdeps/csky/gccframe.h: Likewise.
8284 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8285 * sysdeps/csky/ldsodefs.h: Likewise.
8286 * sysdeps/csky/libc-tls.c: Likewise.
8287 * sysdeps/csky/linkmap.h: Likewise.
8288 * sysdeps/csky/machine-gmon.h: Likewise.
8289 * sysdeps/csky/memusage.h: Likewise.
8290 * sysdeps/csky/nofpu/Implies: Likewise.
8291 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8292 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8293 * sysdeps/csky/nptl/Makefile: Likewise.
8294 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8295 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8296 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8297 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8298 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8299 * sysdeps/csky/nptl/tls.h: Likewise.
8300 * sysdeps/csky/preconfigure: Likewise.
8301 * sysdeps/csky/sfp-machine.h: Likewise.
8302 * sysdeps/csky/sotruss-lib.c: Likewise.
8303 * sysdeps/csky/stackinfo.h: Likewise.
8304 * sysdeps/csky/sysdep.h: Likewise.
8305 * sysdeps/csky/tininess.h: Likewise.
8306 * sysdeps/csky/tst-audit.h: Likewise.
8307 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8308 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8309 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8310 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8311 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8312 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8313 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8314 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8315 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8316 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8317 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8318 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8319 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8320 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8321 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8322 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8323 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8324 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8325 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8326 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8327 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8328 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8329 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8330 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8331 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8332 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8333 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8334 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8335 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8336 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8337 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8338 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8339 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8340 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8341 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8342 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8343 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8344 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8345 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8346 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8347 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8348 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8349 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8350 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8351
8352 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8353
8354 * include/time.h (__difftime64): Add.
8355 * time/difftime.c (subtract): convert to 64-bit time.
8356 * time/difftime.c (__difftime64): Add.
8357 * time/difftime.c (__difftime): Wrap around __difftime64.
8358
8359 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8360
8361 * manual/examples/add.c: Remove redundant "if not".
8362 * manual/examples/argp-ex1.c: Likewise.
8363 * manual/examples/argp-ex2.c: Likewise.
8364 * manual/examples/argp-ex3.c: Likewise.
8365 * manual/examples/argp-ex4.c: Likewise.
8366 * manual/examples/atexit.c: Likewise.
8367 * manual/examples/db.c: Likewise.
8368 * manual/examples/dir.c: Likewise.
8369 * manual/examples/dir2.c: Likewise.
8370 * manual/examples/execinfo.c: Likewise.
8371 * manual/examples/filecli.c: Likewise.
8372 * manual/examples/filesrv.c: Likewise.
8373 * manual/examples/fmtmsgexpl.c: Likewise.
8374 * manual/examples/genpass.c: Likewise.
8375 * manual/examples/inetcli.c: Likewise.
8376 * manual/examples/inetsrv.c: Likewise.
8377 * manual/examples/isockad.c: Likewise.
8378 * manual/examples/longopt.c: Likewise.
8379 * manual/examples/memopen.c: Likewise.
8380 * manual/examples/memstrm.c: Likewise.
8381 * manual/examples/mkdirent.c: Likewise.
8382 * manual/examples/mkfsock.c: Likewise.
8383 * manual/examples/mkisock.c: Likewise.
8384 * manual/examples/mygetpass.c: Likewise.
8385 * manual/examples/pipe.c: Likewise.
8386 * manual/examples/popen.c: Likewise.
8387 * manual/examples/rprintf.c: Likewise.
8388 * manual/examples/search.c: Likewise.
8389 * manual/examples/select.c: Likewise.
8390 * manual/examples/setjmp.c: Likewise.
8391 * manual/examples/sigh1.c: Likewise.
8392 * manual/examples/sigusr.c: Likewise.
8393 * manual/examples/stpcpy.c: Likewise.
8394 * manual/examples/strdupa.c: Likewise.
8395 * manual/examples/strftim.c: Likewise.
8396 * manual/examples/subopt.c: Likewise.
8397 * manual/examples/swapcontext.c: Likewise.
8398 * manual/examples/termios.c: Likewise.
8399 * manual/examples/testopt.c: Likewise.
8400 * manual/examples/testpass.c: Likewise.
8401 * manual/examples/timeval_subtract.c: Likewise.
8402
8403 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8404
8405 * sysdeps/x86/fpu/math_private.h: New file.
8406 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8407
8408 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8409 definition.
8410 (cosh): Likewise.
8411 (tanh): Likewise.
8412
8413 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8414
8415 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8416 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8417 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8418 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8419 fields.
8420 (_dl_show_auxv): Give a special treatment to
8421 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8422 and AT_L3_CACHEGEOMETRY.
8423 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8424 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8425 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8426 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8427
8428 2018-12-19 Andreas Schwab <schwab@suse.de>
8429
8430 * nscd/connections.c (check_use): Don't abort on invalid len.
8431
8432 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8433
8434 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8435 values in the 64bit value cases.
8436
8437 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8438
8439 * include/time.h
8440 (__ctime64_r): Add.
8441 * time/ctime_r.c
8442 (__ctime64_r): Add.
8443 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8444
8445 * include/time.h
8446 (__ctime64): Add.
8447 * time/gmtime.c
8448 (__ctime64): Add.
8449 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8450
8451 * include/time.h
8452 (__gmtime64_r): Add.
8453 * time/gmtime.c
8454 (__gmtime64_r): Add.
8455 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8456
8457 * include/time.h
8458 (__gmtime64): Add.
8459 * time/gmtime.c
8460 (__gmtime64): Add.
8461 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8462
8463 * include/time.h
8464 (__localtime64_r): Add.
8465 * time/localtime.c
8466 (__localtime64_r): Add.
8467 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8468
8469 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8470
8471 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8472 kernel_sigction definition.
8473
8474 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8475
8476 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8477
8478 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8479 __syscall_rt_sigaction.
8480 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8481 (kernel_sigaction): Use Linux generic defintion.
8482 (STUB): Define.
8483 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8484 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8485 (__syscall_rt_sigaction): Remove implementation.
8486 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8487 hidden.
8488 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8489 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8490 INTERNAL_SYSCALL): Remove definitions.
8491 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8492 action and signal set size.
8493 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8494 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8495
8496 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8497 James Clarke <jrtc27@jrtc27.com>
8498
8499 [BZ #23967]
8500 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8501 Define if SA_RESTORER is defined.
8502 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8503 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8504 already defined.
8505 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8506 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8507 definitions.
8508 (HAS_SA_RESTORER): Define.
8509 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8510 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8511 (HAS_SA_RESTORER): Define.
8512 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8513 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8514 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8515 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8516 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8517
8518 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8519
8520 * sysdeps/unix/sysv/linux/kernel-features.h
8521 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8522 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8523 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8524 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8525 (__ASSUME_ST_INO_64_BIT): Likewise.
8526 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8527 <kernel-features.h>.
8528 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8529 Remove conditional code.
8530 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8531 <kernel-features.h>.
8532 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8533 Remove conditional code.
8534 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8535 <kernel-features.h>.
8536 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8537 Remove conditional code.
8538 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8539 <kernel-features.h>.
8540 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8541 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8542
8543 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8544
8545 * sysdeps/s390/multiarch/ifunc-resolve.h
8546 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8547 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8548 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8549 Delete macro definition.
8550 (s390_libc_ifunc_init): Rename to
8551 s390_libc_ifunc_expr_stfle_init.
8552 * sysdeps/s390/bzero: Use
8553 s390_libc_ifunc_expr_stfle_init instead of
8554 s390_libc_ifunc_init.
8555 * sysdeps/s390/memcmp.c: Likewise.
8556 * sysdeps/s390/memcpy.c: Likewise.
8557 * sysdeps/s390/mempcpy.c: Likewise.
8558 * sysdeps/s390/memset.c: Likewise.
8559
8560 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8561
8562 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8563 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8564
8565 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8566
8567 * sysdeps/s390/multiarch/Makefile
8568 (sysdep_routines): Remove wmemcmp variants.
8569 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8570 * sysdeps/s390/multiarch/ifunc-impl-list.c
8571 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8572 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8573 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8574 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8575 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8576 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8577 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8578 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8579
8580 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8581
8582 * sysdeps/s390/multiarch/Makefile
8583 (sysdep_routines): Remove wmemset variants.
8584 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8585 * sysdeps/s390/multiarch/ifunc-impl-list.c
8586 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8587 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8588 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8589 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8590 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8591 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8592 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8593 * sysdeps/s390/ifunc-wmemset.h: New file.
8594
8595 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8596
8597 * sysdeps/s390/multiarch/Makefile
8598 (sysdep_routines): Remove wmemchr variants.
8599 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8600 * sysdeps/s390/multiarch/ifunc-impl-list.c
8601 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8602 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8603 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8604 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8605 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8606 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8607 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8608 * sysdeps/s390/ifunc-wmemchr.h: New file.
8609
8610 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8611
8612 * sysdeps/s390/multiarch/Makefile
8613 (sysdep_routines): Remove wcscspn variants.
8614 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8615 * sysdeps/s390/multiarch/ifunc-impl-list.c
8616 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8617 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8618 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8619 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8620 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8621 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8622 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8623 * sysdeps/s390/ifunc-wcscspn.h: New file.
8624
8625 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8626
8627 * sysdeps/s390/multiarch/Makefile
8628 (sysdep_routines): Remove wcspbrk variants.
8629 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8630 * sysdeps/s390/multiarch/ifunc-impl-list.c
8631 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8632 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8633 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8634 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8635 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8636 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8637 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8638 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8639
8640 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8641
8642 * sysdeps/s390/multiarch/Makefile
8643 (sysdep_routines): Remove wcsspn variants.
8644 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8645 * sysdeps/s390/multiarch/ifunc-impl-list.c
8646 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8647 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8648 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8649 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8650 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8651 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8652 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8653 * sysdeps/s390/ifunc-wcsspn.h: New file.
8654
8655 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8656
8657 * sysdeps/s390/multiarch/Makefile
8658 (sysdep_routines): Remove wcsrchr variants.
8659 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8660 * sysdeps/s390/multiarch/ifunc-impl-list.c
8661 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8662 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8663 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8664 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8665 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8666 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8667 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8668 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8669
8670 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8671
8672 * sysdeps/s390/multiarch/Makefile
8673 (sysdep_routines): Remove wcschrnul variants.
8674 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8675 * sysdeps/s390/multiarch/ifunc-impl-list.c
8676 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8677 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8678 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8679 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8680 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8681 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8682 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8683 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8684
8685 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8686
8687 * sysdeps/s390/multiarch/Makefile
8688 (sysdep_routines): Remove wcschr variants.
8689 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8690 * sysdeps/s390/multiarch/ifunc-impl-list.c
8691 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8692 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8693 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8694 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8695 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8696 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8697 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8698 * sysdeps/s390/ifunc-wcschr.h: New file.
8699
8700 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8701
8702 * sysdeps/s390/multiarch/Makefile
8703 (sysdep_routines): Remove wcsncmp variants.
8704 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8705 * sysdeps/s390/multiarch/ifunc-impl-list.c
8706 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8707 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8708 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8709 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8710 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8711 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8712 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8713 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8714
8715 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8716
8717 * sysdeps/s390/multiarch/Makefile
8718 (sysdep_routines): Remove wcscmp variants.
8719 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8720 * sysdeps/s390/multiarch/ifunc-impl-list.c
8721 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8722 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8723 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8724 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8725 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8726 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8727 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8728 * sysdeps/s390/ifunc-wcscmp.h: New file.
8729
8730 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8731
8732 * sysdeps/s390/multiarch/Makefile
8733 (sysdep_routines): Remove wcsncat variants.
8734 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8735 * sysdeps/s390/multiarch/ifunc-impl-list.c
8736 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8737 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8738 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8739 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8740 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8741 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8742 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8743 * sysdeps/s390/ifunc-wcsncat.h: New file.
8744
8745 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8746
8747 * sysdeps/s390/multiarch/Makefile
8748 (sysdep_routines): Remove wcscat variants.
8749 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8750 * sysdeps/s390/multiarch/ifunc-impl-list.c
8751 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8752 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8753 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8754 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8755 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8756 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8757 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8758 * sysdeps/s390/ifunc-wcscat.h: New file.
8759
8760 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8761
8762 * sysdeps/s390/multiarch/Makefile
8763 (sysdep_routines): Remove wcpncpy variants.
8764 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8765 * sysdeps/s390/multiarch/ifunc-impl-list.c
8766 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8767 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8768 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8769 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8770 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8771 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8772 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8773 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8774
8775 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8776
8777 * sysdeps/s390/multiarch/Makefile
8778 (sysdep_routines): Remove wcsncpy variants.
8779 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8780 * sysdeps/s390/multiarch/ifunc-impl-list.c
8781 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8782 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8783 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8784 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8785 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8786 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8787 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8788 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8789
8790 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8791
8792 * sysdeps/s390/multiarch/Makefile
8793 (sysdep_routines): Remove wcpcpy variants.
8794 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8795 * sysdeps/s390/multiarch/ifunc-impl-list.c
8796 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8797 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8798 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8799 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8800 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8801 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8802 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8803 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8804
8805 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8806
8807 * sysdeps/s390/multiarch/Makefile
8808 (sysdep_routines): Remove wcscpy variants.
8809 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8810 * sysdeps/s390/multiarch/ifunc-impl-list.c
8811 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8812 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8813 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8814 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8815 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8816 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8817 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8818 * sysdeps/s390/ifunc-wcscpy.h: New file.
8819
8820 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8821
8822 * sysdeps/s390/multiarch/Makefile
8823 (sysdep_routines): Remove wcsnlen variants.
8824 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8825 * sysdeps/s390/multiarch/ifunc-impl-list.c
8826 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8827 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8828 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8829 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8830 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8831 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8832 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8833 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8834
8835 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8836
8837 * sysdeps/s390/multiarch/Makefile
8838 (sysdep_routines): Remove wcslen variants.
8839 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8840 * sysdeps/s390/multiarch/ifunc-impl-list.c
8841 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8842 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8843 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8844 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8845 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8846 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8847 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8848 * sysdeps/s390/ifunc-wcslen.h: New file.
8849
8850 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8851
8852 * sysdeps/s390/multiarch/Makefile
8853 (sysdep_routines): Remove memrchr variants.
8854 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8855 * sysdeps/s390/multiarch/ifunc-impl-list.c
8856 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8857 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8858 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8859 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8860 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8861 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8862 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8863 * sysdeps/s390/ifunc-memrchr.h: New file.
8864
8865 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8866
8867 * sysdeps/s390/multiarch/Makefile
8868 (sysdep_routines): Remove memccpy variants.
8869 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8870 * sysdeps/s390/multiarch/ifunc-impl-list.c
8871 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8872 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8873 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8874 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8875 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8876 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8877 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8878 * sysdeps/s390/ifunc-memccpy.h: New file.
8879
8880 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8881
8882 * sysdeps/s390/multiarch/Makefile
8883 (sysdep_routines): Remove rawmemchr variants.
8884 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8885 * sysdeps/s390/multiarch/ifunc-impl-list.c
8886 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8887 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8888 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8889 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8890 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8891 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8892 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8893 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8894
8895 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8896
8897 * sysdeps/s390/multiarch/Makefile
8898 (sysdep_routines): Remove memchr variants.
8899 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8900 * sysdeps/s390/multiarch/ifunc-impl-list.c
8901 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8902 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8903 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8904 * sysdeps/s390/multiarch/memchr.c: Move to ...
8905 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8906 * sysdeps/s390/ifunc-memchr.h: New file.
8907 * sysdeps/s390/s390-64/memchr.S: Move to ...
8908 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8909 for 31/64bit and ifunc handling.
8910 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8911 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8912 * sysdeps/s390/s390-32/memchr.S: Likewise.
8913
8914 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8915
8916 * sysdeps/s390/multiarch/Makefile
8917 (sysdep_routines): Remove strcspn variants.
8918 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8919 * sysdeps/s390/multiarch/ifunc-impl-list.c
8920 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8921 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8922 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8923 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8924 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8925 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8926 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8927 * sysdeps/s390/ifunc-strcspn.h: New file.
8928
8929 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8930
8931 * sysdeps/s390/multiarch/Makefile
8932 (sysdep_routines): Remove strpbrk variants.
8933 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8934 * sysdeps/s390/multiarch/ifunc-impl-list.c
8935 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8936 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8937 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8938 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8939 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8940 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8941 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8942 * sysdeps/s390/ifunc-strpbrk.h: New file.
8943
8944 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8945
8946 * sysdeps/s390/multiarch/Makefile
8947 (sysdep_routines): Remove strspn variants.
8948 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8949 * sysdeps/s390/multiarch/ifunc-impl-list.c
8950 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8951 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8952 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8953 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8954 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8955 * sysdeps/s390/multiarch/strspn.c: Move to ...
8956 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8957 * sysdeps/s390/ifunc-strspn.h: New file.
8958
8959 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8960
8961 * sysdeps/s390/multiarch/Makefile
8962 (sysdep_routines): Remove strrchr variants.
8963 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8964 * sysdeps/s390/multiarch/ifunc-impl-list.c
8965 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8966 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8967 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8968 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8969 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8970 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8971 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8972 * sysdeps/s390/ifunc-strrchr.h: New file.
8973
8974 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8975
8976 * sysdeps/s390/multiarch/Makefile
8977 (sysdep_routines): Remove strchrnul variants.
8978 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8979 * sysdeps/s390/multiarch/ifunc-impl-list.c
8980 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8981 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8982 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8983 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8984 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8985 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8986 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8987 * sysdeps/s390/ifunc-strchrnul.h: New file.
8988
8989 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8990
8991 * sysdeps/s390/multiarch/Makefile
8992 (sysdep_routines): Remove strchr variants.
8993 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8994 * sysdeps/s390/multiarch/ifunc-impl-list.c
8995 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8996 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8997 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8998 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8999 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
9000 * sysdeps/s390/multiarch/strchr.c: Move to ...
9001 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
9002 * sysdeps/s390/ifunc-strchr.h: New file.
9003
9004 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9005
9006 * sysdeps/s390/multiarch/Makefile
9007 (sysdep_routines): Remove strncmp variants.
9008 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
9009 * sysdeps/s390/multiarch/ifunc-impl-list.c
9010 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
9011 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
9012 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
9013 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
9014 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
9015 * sysdeps/s390/multiarch/strncmp.c: Move to ...
9016 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
9017 * sysdeps/s390/ifunc-strncmp.h: New file.
9018
9019 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9020
9021 * sysdeps/s390/multiarch/Makefile
9022 (sysdep_routines): Remove strcmp variants.
9023 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
9024 * sysdeps/s390/multiarch/ifunc-impl-list.c
9025 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
9026 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
9027 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
9028 * sysdeps/s390/multiarch/strcmp.c: Move to ...
9029 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
9030 * sysdeps/s390/ifunc-strcmp.h: New file.
9031 * sysdeps/s390/s390-64/strcmp.S: Move to ...
9032 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
9033 for 31/64bit and ifunc handling.
9034 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
9035 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
9036 * sysdeps/s390/s390-32/strcmp.S: Likewise.
9037
9038 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9039
9040 * sysdeps/s390/multiarch/Makefile
9041 (sysdep_routines): Remove strncat variants.
9042 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
9043 * sysdeps/s390/multiarch/ifunc-impl-list.c
9044 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
9045 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
9046 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
9047 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
9048 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
9049 * sysdeps/s390/multiarch/strncat.c: Move to ...
9050 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
9051 * sysdeps/s390/ifunc-strncat.h: New file.
9052
9053 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9054
9055 * sysdeps/s390/multiarch/Makefile
9056 (sysdep_routines): Remove strcat variants.
9057 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
9058 * sysdeps/s390/multiarch/ifunc-impl-list.c
9059 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
9060 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
9061 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
9062 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
9063 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
9064 * sysdeps/s390/multiarch/strcat.c: Move to ...
9065 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
9066 * sysdeps/s390/ifunc-strcat.h: New file.
9067
9068 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9069
9070 * sysdeps/s390/multiarch/Makefile
9071 (sysdep_routines): Remove stpncpy variants.
9072 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
9073 * sysdeps/s390/multiarch/ifunc-impl-list.c
9074 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
9075 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
9076 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
9077 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
9078 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
9079 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
9080 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
9081 * sysdeps/s390/ifunc-stpncpy.h: New file.
9082
9083 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9084
9085 * sysdeps/s390/multiarch/Makefile
9086 (sysdep_routines): Remove strncpy variants.
9087 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
9088 * sysdeps/s390/multiarch/ifunc-impl-list.c
9089 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
9090 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
9091 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
9092 * sysdeps/s390/multiarch/strncpy.c: Move to ...
9093 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
9094 * sysdeps/s390/ifunc-strncpy.h: New file.
9095 * sysdeps/s390/s390-64/strncpy.S: Move to ...
9096 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
9097 and adjust ifunc handling.
9098 * sysdeps/s390/s390-32/strncpy.S: Move to ...
9099 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
9100 and adjust ifunc handling.
9101 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9102 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9103
9104 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9105
9106 * sysdeps/s390/multiarch/Makefile
9107 (sysdep_routines): Remove stpcpy variants.
9108 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9109 * sysdeps/s390/multiarch/ifunc-impl-list.c
9110 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9111 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9112 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9113 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9114 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9115 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9116 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9117 * sysdeps/s390/ifunc-stpcpy.h: New file.
9118
9119 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9120
9121 * sysdeps/s390/multiarch/Makefile
9122 (sysdep_routines): Remove strcpy variants.
9123 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9124 * sysdeps/s390/multiarch/ifunc-impl-list.c
9125 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9126 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9127 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9128 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9129 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9130 * sysdeps/s390/ifunc-strcpy.h: New file.
9131 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9132 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9133 for 31/64bit and ifunc handling.
9134 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9135 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9136 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9137
9138 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9139
9140 * sysdeps/s390/multiarch/Makefile
9141 (sysdep_routines): Remove strnlen variants.
9142 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9143 * sysdeps/s390/multiarch/ifunc-impl-list.c
9144 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9145 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9146 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9147 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9148 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9149 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9150 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9151 * sysdeps/s390/ifunc-strnlen.h: New file.
9152
9153 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9154
9155 * sysdeps/s390/multiarch/Makefile
9156 (sysdep_routines): Remove strlen variants.
9157 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9158 * sysdeps/s390/multiarch/ifunc-impl-list.c
9159 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9160 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9161 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9162 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9163 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9164 * sysdeps/s390/multiarch/strlen.c: Move to ...
9165 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9166 * sysdeps/s390/ifunc-strlen.h: New file.
9167
9168 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9169
9170 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9171 * sysdeps/s390/multiarch/ifunc-impl-list.c
9172 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9173 * sysdeps/s390/ifunc-memmem.h: New file.
9174 * sysdeps/s390/memmem.c: Likewise.
9175 * sysdeps/s390/memmem-c.c: Likewise.
9176 * sysdeps/s390/memmem-vx.c: Likewise.
9177
9178 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9179
9180 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9181 * sysdeps/s390/multiarch/ifunc-impl-list.c
9182 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9183 * sysdeps/s390/ifunc-strstr.h: New file.
9184 * sysdeps/s390/strstr.c: Likewise.
9185 * sysdeps/s390/strstr-c.c: Likewise.
9186 * sysdeps/s390/strstr-vx.c: Likewise.
9187
9188 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9189
9190 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9191 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9192 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9193 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9194 New defines.
9195 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9196 * sysdeps/s390/memmove-c.c: New file.
9197 * sysdeps/s390/memmove.c: Likewise.
9198 * sysdeps/s390/multiarch/ifunc-impl-list.c
9199 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9200
9201 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9202
9203 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9204 * sysdeps/s390/configure.ac: Add check for z13 support.
9205 * sysdeps/s390/configure: Regenerated.
9206
9207 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9208
9209 * sysdeps/s390/memcopy.h: New file.
9210
9211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9212
9213 * sysdeps/s390/s390-32/bcopy.S: Remove.
9214 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9215
9216 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9217
9218 * sysdeps/s390/ifunc-memcpy.h: New File.
9219 * sysdeps/s390/memcpy.S: Move to ...
9220 * sysdeps/s390/memcpy-z900.S ... here.
9221 Move implementations from memcpy-s390x.s to here.
9222 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9223 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9224 Remove memcpy/mempcpy variants.
9225 * sysdeps/s390/Makefile (sysdep_routines):
9226 Add memcpy/mempcpy variants.
9227 * sysdeps/s390/multiarch/ifunc-impl-list.c
9228 (__libc_ifunc_impl_list): Adjust ifunc variants for
9229 memcpy and mempcpy.
9230 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9231 to ...
9232 * sysdeps/s390/memcpy.c: ... here.
9233 Adjust ifunc variants for memcpy.
9234 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9235 * sysdeps/s390/mempcpy.c: ... here.
9236 Adjust ifunc variants for mempcpy.
9237 * sysdeps/s390/mempcpy.S: Delete file.
9238
9239 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9240
9241 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9242 * sysdeps/s390/memcpy.S: ... here.
9243 Adjust to be usable for 31/64bit.
9244 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9245 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9246 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9247 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9248 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9249 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9250 Adjust to be usable for 31/64bit.
9251 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9252 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9253 * sysdeps/s390/multiarch/memcpy.c: ... here.
9254 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9255
9256 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9257
9258 * sysdeps/s390/ifunc-memcmp.h: New File.
9259 * sysdeps/s390/memcmp.S: Move to ...
9260 * sysdeps/s390/memcmp-z900.S ... here.
9261 Move implementations from memcmp-s390x.s to here.
9262 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9263 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9264 Remove memcmp variants.
9265 * sysdeps/s390/Makefile (sysdep_routines):
9266 Add memcmp variants.
9267 * sysdeps/s390/multiarch/ifunc-impl-list.c
9268 (__libc_ifunc_impl_list): Adjust ifunc variants for
9269 memcmp.
9270 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9271 to ...
9272 * sysdeps/s390/memcmp.c: ... here.
9273 Adjust ifunc variants for memcmp.
9274
9275 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9276
9277 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9278 * sysdeps/s390/memcmp.S: ... here.
9279 Adjust to be usable for 31/64bit.
9280 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9281 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9282 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9283 Remove memcmp.
9284 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9285 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9286 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9287 Adjust to be usable for 31/64bit.
9288 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9289 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9290 * sysdeps/s390/multiarch/memcmp.c: ... here.
9291 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9292
9293 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9294
9295 * sysdeps/s390/s390-32/bzero.S: Delete file.
9296 * sysdeps/s390/s390-64/bzero.S: Likewise.
9297 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9298 * sysdeps/s390/bzero.c: New file.
9299 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9300 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9301 * sysdeps/s390/multiarch/ifunc-impl-list.c
9302 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9303
9304 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9305
9306 * sysdeps/s390/ifunc-memset.h: New File.
9307 * sysdeps/s390/memset.S: Move to ...
9308 * sysdeps/s390/memset-z900.S ... here.
9309 Move implementations from memset-s390x.s to here.
9310 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9311 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9312 Remove memset variants.
9313 * sysdeps/s390/Makefile (sysdep_routines):
9314 Add memset variants.
9315 * sysdeps/s390/multiarch/ifunc-impl-list.c
9316 (__libc_ifunc_impl_list): Adjust ifunc variants for
9317 memset.
9318 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9319 to ...
9320 * sysdeps/s390/memset.c: ... here.
9321 Adjust ifunc variants for memset.
9322
9323 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9324
9325 * sysdeps/s390/s390-64/memset.S: Move to ...
9326 * sysdeps/s390/memset.S: ... here.
9327 Adjust to be usable for 31/64bit.
9328 * sysdeps/s390/s390-32/memset.S: Delete File.
9329 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9330 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9331 Remove memset.
9332 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9333 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9334 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9335 Adjust to be usable for 31/64bit.
9336 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9337 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9338 * sysdeps/s390/multiarch/memset.c: ... here.
9339 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9340
9341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9342
9343 * sysdeps/s390/multiarch/ifunc-resolve.h
9344 (s390_libc_ifunc_init, s390_libc_ifunc,
9345 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9346
9347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9348
9349 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9350 * sysdeps/s390/configure.ac: Add check for z10 support.
9351 * sysdeps/s390/configure: Regenerated.
9352
9353 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9354
9355 * sysdeps/i386/atomic-machine.h: Merged with ...
9356 * sysdeps/x86_64/atomic-machine.h: To ...
9357 * sysdeps/x86/atomic-machine.h: This. New file.
9358
9359 2018-12-18 Florian Weimer <fweimer@redhat.com>
9360
9361 Rewrite locale/gen-translit.pl in Python.
9362 * locale/Makefile (generated): Add C-translit.h.
9363 (before-compile): Add $(objpfx)C-translit.h.
9364 (C-translit.h): Move to $(objpfx). Create target directory.
9365 Build using Python script.
9366 * locale/gen-translit.py: New file.
9367 * locale/gen-translit.pl: Remove file.
9368 * locale/C-translit.h.in: Change comment character to '#' for
9369 easier parsing without a C preprocessor.
9370 * locale/C-translit.h: Remove generated file.
9371 * manual/install.texi (Tools for Compilation): Do not mention
9372 C-translit.h.
9373 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9374 Remove locale/C-translit.h.
9375 * scripts/update-copyrights: Likewise.
9376 * INSTALL: Regenerate.
9377
9378 2018-12-18 Florian Weimer <fweimer@redhat.com>
9379
9380 [BZ #23995]
9381 * localedata/locales/bi_VU: Remove executable bit from file.
9382
9383 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9384
9385 * include/time.h
9386 (__localtime64): Add.
9387 * manual/maint.texi: Document Y2038 symbol handling.
9388 * time/localtime.c
9389 (__localtime64): Add.
9390 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9391
9392 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9393
9394 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9395 Do not clobber r12.
9396
9397 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9398 to allow extra macros from first or second sources.
9399 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9400 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9401 (tests-special): Add $(objpfx)tst-mman-consts.out.
9402 ($(objpfx)tst-mman-consts.out): New makefile target.
9403
9404 2018-12-17 Mao Han <han_mao@c-sky.com>
9405
9406 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9407 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9408 without stat64 system call support.
9409 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9410 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9411 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9412 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9413 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9414 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9415 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9416 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9417 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9418 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9419 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9420
9421 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9422
9423 regex: fix storage-exhaustion error
9424 [BZ #18040]
9425 * posix/regexec.c (get_subexp):
9426 Do not continue if storage is exhausted.
9427
9428 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9429
9430 regex: fix heap-use-after-free error
9431 [BZ #18040]
9432 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9433 https://debbugs.gnu.org/32592
9434 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9435 call extend_buffers which reallocates the re_string_t internal buffer.
9436 Local variable 'buf' was not updated in such case, resulting in
9437 use-after-free.
9438 * posix/regexec.c (get_subexp): Update 'buf' after call to
9439 get_subexp_sub.
9440
9441 2018-12-15 Florian Weimer <fweimer@redhat.com>
9442
9443 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9444 (minimum_stride_size): Use it.
9445 (support_blob_repeat_allocate): Likewise.
9446
9447 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9448
9449 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9450 definition.
9451 (acosh): Likewise.
9452 (atanh): Likewise.
9453
9454 2018-12-14 Florian Weimer <fweimer@redhat.com>
9455
9456 * manual/process.texi (Process Creation Concepts): Remove
9457 documentation of process (ID) lifetime. List more process
9458 creation functions. Reference Process Identification section.
9459 (Process Identification): Add information about process ID
9460 lifetime. Describe Linux thread/task IDs.
9461 * manual/signal.texi (Signaling Another Process): Mention that the
9462 signal is always sent to the process.
9463
9464 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9465
9466 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9467 and tst-ldbl-efgcvt.
9468 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9469 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9470 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9471 (fcvt_tests, output_error, output_r_error, do_test): Use the
9472 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9473 select the type of floating-point variables and arguments; to
9474 produce extra tests for double and conversion specifiers for
9475 printf; and to set the names of called functions.
9476 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9477 in tst-efgcvt-template.c.
9478 * misc/tst-ldbl-efgcvt.c: Likewise.
9479
9480 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9481
9482 * nss/Makefile (tst-nss-test3.out): New rule.
9483
9484 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9485
9486 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9487 clobber sp.
9488
9489 2018-12-13 fanjinke <fanjinke@hygon.cn>
9490
9491 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9492 "HygonGenuine".
9493
9494 2018-12-13 Andreas Schwab <schwab@suse.de>
9495
9496 [BZ #23861]
9497 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9498 (__pthread_rwlock_rdlock_full): Update expected value for
9499 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9500 * nptl/tst-rwlock-pwn.c: New file.
9501 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9502
9503 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9504
9505 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9506 definition.
9507
9508 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9509
9510 * benchtests/scripts/compare_bench.py (do_compare): write to
9511 stderr in casestat is not present.
9512 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9513 stderr in case timings field is not present. Also string showing
9514 the output filename goes into the stderr.
9515
9516 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9517
9518 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9519 and ZeroDivisorError exceptions.
9520 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9521 argument to loop through user provided statistics.
9522 * benchtests/scripts/compare_bench.py (main): Include the --stats
9523 argument.
9524
9525 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9526
9527 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9528 instead of return.
9529
9530 2018-12-12 Florian Weimer <fweimer@redhat.com>
9531
9532 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9533 clause to copyright header.
9534
9535 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9536
9537 [BZ #23614]
9538 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9539 registers saved in the stack frame.
9540 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9541 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9542
9543 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9544
9545 * include/bits/monetary-ldbl.h: New file.
9546 * include/bits/printf-ldbl.h: Likewise.
9547 * include/bits/stdio-ldbl.h: Likewise.
9548 * include/bits/stdlib-ldbl.h: Likewise.
9549 * include/bits/syslog-ldbl.h: Likewise.
9550 * include/bits/wchar-ldbl.h: Likewise.
9551
9552 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9553
9554 * libio/libio.h: Remove redirection for _IO_vfprintf.
9555
9556 2018-12-11 Andreas Schwab <schwab@suse.de>
9557
9558 * Makerules: Remove all references to abilist-pattern.
9559 (update-all-abi): Simplify find expression.
9560
9561 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9562
9563 [BZ #23961]
9564 * math/auto-libm-test-in: Add new test case.
9565 * math/auto-libm-test-out-pow: Regenerated.
9566 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9567
9568 2018-12-10 DJ Delorie <dj@redhat.com>
9569
9570 [BZ #23948]
9571 * support/test-container.c: Move postclean step to before we
9572 change namespaces.
9573
9574 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9575
9576 * scripts/gen-as-const.py (main): Handle --python option.
9577 * scripts/gen-py-const.awk: Remove.
9578 * Makerules (py-const-script): Use gen-as-const.py.
9579 ($(py-const)): Likewise.
9580 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9581 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9582 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9583 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9584 ~PTHREAD_MUTEX_NO_ELISION_NP.
9585 * manual/README.pretty-printers: Update reference to
9586 gen-py-const.awk.
9587
9588 * scripts/glibcextract.py: New file.
9589 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9590 or tempfile. Import glibcexctract.
9591 (compute_c_consts): Remove. Moved to glibcextract.py.
9592 (gen_test): Update reference to compute_c_consts.
9593 (main): Likewise.
9594 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9595 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9596 * sysdeps/unix/sysv/linux/Makefile
9597 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9598 Redirect stderr as well as stdout.
9599
9600 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9601
9602 [BZ #19767]
9603 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9604 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9605 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9606 ALWAYS_USE_VSYSCALL.
9607 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9608 ALWAYS_USE_VSYSCALL.
9609 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9610 ALWAYS_USE_VSYSCALL.
9611
9612 2018-12-10 Florian Weimer <fweimer@redhat.com>
9613
9614 [BZ #23972]
9615 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9616 offset instead of count for clarity. Fix typo in comment.
9617 (__old_getdents64): Keep track of previous offset. Use it to call
9618 handle_overflow.
9619 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9620 that d_off is never zero.
9621
9622 2018-12-10 Andreas Schwab <schwab@suse.de>
9623
9624 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9625 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9627 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9628 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9629
9630 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9631
9632 * timezone/private.h: Update from tzcode 2018g.
9633 * timezone/tzfile.h: Likewise.
9634 * timezone/tzselect.ksh: Likewise.
9635 * timezone/zdump.c: Likewise.
9636 * timezone/zic.c: Likewise.
9637
9638 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9639
9640 [BZ #23490]
9641 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9642 (do_test): Adjust buffer size and fix format.
9643
9644 2018-12-07 DJ Delorie <dj@redhat.com>
9645
9646 [BZ #23907]
9647 * malloc/tst-tcfree3.c: New.
9648 * malloc/Makefile: Add it.
9649
9650 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9651
9652 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9653
9654 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9655
9656 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9657 used as a mask for the mode argument of __vfscanf_internal and
9658 __vfwscanf_internal.
9659 * stdio-common/vfscanf-internal.c
9660 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9661 (__strtof128_internal): Define to __wcstof128_internal.
9662 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9663 __strtof128_internal or __wcstof128_internal when the format of
9664 long double is the same as _Float128.
9665
9666 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9667
9668 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9669 * posix/confstr.c (confstr): Rename to __confstr.
9670 (__confstr): Add hidden def.
9671 (confstr): Add weak alias for __confstr.
9672 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9673 confstr.
9674
9675 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9676
9677 * NEWS: Mention getcpu.
9678 * include/sched.h (__getcpu): New libc_hidden_proto.
9679 * manual/resource.texi: Document getcpu.
9680 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9681 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9682 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9683 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9684 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9685 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9686 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9687 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9688 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9689 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9690 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9691 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9692 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9693 Likewise.
9694 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9695 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9696 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9697 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9698 Likewise.
9699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9700 Likewise.
9701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9702 Likewise.
9703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9704 Likewise.
9705 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9706 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9707 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9708 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9709 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9710 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9711 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9712 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9713 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9714 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9715 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9716 Also check getcpu.
9717
9718 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9719
9720 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9721 functions.
9722 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9723
9724 2018-12-07 Florian Weimer <fweimer@redhat.com>
9725
9726 [BZ #17405]
9727 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9728 * posix/Versions (GLIBC_2.29): Export
9729 posix_spawn_file_actions_addfchdir_np.
9730 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9731 * posix/spawn_faction_destroy.c
9732 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9733 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9734 and the field action.fchdir_action.
9735 * posix/tst-spawn-chdir.c (add_chdir): New function.
9736 (do_test): Add do_fchdir loop. Call add_chdir.
9737 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9738 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9739 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9740 posix_spawn_file_actions_addfchdir_np.
9741 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9742 Likewise.
9743 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9744 Likewise.
9745 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9746 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9747 Likewise.
9748 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9749 Likewise.
9750 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9751 Likewise.
9752 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9753 Likewise.
9754 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9755 Likewise.
9756 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9757 Likewise.
9758 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9759 (GLIBC_2.29): Likewise.
9760 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9761 (GLIBC_2.29): Likewise.
9762 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9763 (GLIBC_2.29): Likewise.
9764 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9765 (GLIBC_2.29): Likewise.
9766 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9767 Likewise.
9768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9769 (GLIBC_2.29): Likewise.
9770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9771 (GLIBC_2.29): Likewise.
9772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9773 (GLIBC_2.29): Likewise.
9774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9775 (GLIBC_2.29): Likewise.
9776 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9777 Likewise.
9778 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9779 Likewise.
9780 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9781 Likewise.
9782 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9783 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9784 Likewise.
9785 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9786 Likewise.
9787 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9788 Likewise.
9789 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9790 Likewise.
9791
9792 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9793
9794 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9795 trailing whitespace removed.
9796 * scripts/config.guess: Update to version 2018-11-28.
9797 * scripts/config.sub: Update to version 2018-11-28.
9798 * scripts/install-sh: Update to version 2018-03-11.20.
9799 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9800 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9801
9802 2018-12-07 Florian Weimer <fweimer@redhat.com>
9803
9804 [BZ #23927]
9805 CVE-2018-19591
9806 * inet/tst-if_index-long.c: New file.
9807 * inet/Makefile (tests): Add tst-if_index-long.
9808
9809 2018-12-07 Florian Weimer <fweimer@redhat.com>
9810
9811 * support/check.h (support_record_failure_is_failed): Declare.
9812 * support/descriptors.h: New file.
9813 * support/support_descriptors.c: Likewise.
9814 * support/tst-support_descriptors.c: Likewise.
9815 * support/support_record_failure.c
9816 (support_record_failure_is_failed): New function.
9817 * support/Makefile (libsupport-routines): Add support_descriptors.
9818 (tests): Add tst-support_descriptors.
9819
9820 2018-12-05 Zack Weinberg <zackw@panix.com>
9821 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9822
9823 * stdio-common/vfprintf-internal.c
9824 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9825 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9826 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9827 and __no_long_double.
9828 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9829 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9830 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9831 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9832 and __nldbl_*syslog* functions.
9833 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9834 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9835 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9836 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9837 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9838 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9839 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9840 (__nldbl_vwprintf, __nldbl_wprintf):
9841 Directly call the appropriate __v*printf_internal routine, passing
9842 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9843 variable names.
9844 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9845 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9846 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9847 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9848 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9849 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9850 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9851 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9852 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9853 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9854 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9855 (__nldbl_syslog, __nldbl_vsyslog):
9856 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9857 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9858 appropriate.
9859 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9860 appropriate.
9861
9862 2018-12-05 Zack Weinberg <zackw@panix.com>
9863 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9864
9865 [BZ #11319]
9866 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9867 Moved here from debug/vsprintf_chk.c.
9868 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9869 and completion logic for the strfile to match exactly what
9870 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9871 _IO_str_init_static_internal instead of maxlen-1.
9872 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9873 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9874 __vsprintf_internal.
9875
9876 * debug/vsprintf_chk.c (__vsprintf_chk)
9877 * debug/sprintf_chk.c (__sprintf_chk):
9878 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9879 'flags' argument is positive, and slen as maxlen. No need to lock
9880 the FILE and/or construct a temporary FILE. Minimize and normalize
9881 header inclusions and variable names. Do not libc_hidden_def anything.
9882
9883 * debug/asprintf_chk.c (__asprintf_chk)
9884 * debug/dprintf_chk.c (__dprintf_chk)
9885 * debug/fprintf_chk.c (__fprintf_chk)
9886 * debug/fwprintf_chk.c (__fwprintf_chk)
9887 * debug/printf_chk.c (__printf_chk)
9888 * debug/snprintf_chk.c (__snprintf_chk)
9889 * debug/swprintf_chk.c (__swprintf_chk)
9890 * debug/vasprintf_chk.c (__vasprintf_chk)
9891 * debug/vdprintf_chk.c (__vdprintf_chk)
9892 * debug/vfprintf_chk.c (__vfprintf_chk)
9893 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9894 * debug/vprintf_chk.c (__vprintf_chk)
9895 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9896 * debug/vswprintf_chk.c (__vswprintf_chk)
9897 * debug/vwprintf_chk.c (__vwprintf_chk)
9898 * debug/wprintf_chk.c (__wprintf_chk):
9899 Directly call the corresponding vxxprintf_internal function, passing
9900 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9901 the FILE and/or construct a temporary FILE. Minimize and normalize
9902 header inclusions and variable names. Do not libc_hidden_def anything.
9903
9904 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9905 __obstack_vprintf_internal.
9906 (__obstack_vprintf_chk): Convert into a wrapper that calls
9907 __obstack_vprintf_internal (these two functions already had the
9908 same code) and move to new file...
9909 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9910 file.
9911 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9912 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9913 * debug/Makefile (routines): Add vobprintf_chk.
9914
9915 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9916 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9917 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9918 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9919 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9920 (__nldbl___obstack_vfprintf_chk):
9921 Directly call the corresponding vxxprintf_internal function,
9922 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9923 duplicate comparison of slen with 0 or maxlen from the corresponding
9924 non-__nldbl function.
9925
9926 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9927 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9928 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9929 Remove libc_hidden_proto.
9930
9931 * stdio-common/vfprintf-internal.c
9932 (__vfprintf_internal, __vfwprintf_internal):
9933 Do not check _IO_FLAGS2_FORTIFY.
9934 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9935 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9936 a comment explaining why it has the maxlen argument.
9937 (_IO_acquire_lock_clear_flags2_fct): Remove.
9938 (_IO_acquire_lock_clear_flags2): Remove.
9939 (_IO_release_lock): Remove conditional statement which will
9940 now never execute.
9941 (_IO_acquire_lock): Remove variable which is now unused.
9942 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9943 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9944
9945 * stdio-common/Makefile (tests): Add tst-bz11319 and
9946 tst-bz11319-fortify2.
9947 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9948 * stdio-common/tst-bz11319-fortify2.c: New file.
9949 * stdio-common/tst-bz11319.c: Likewise.
9950
9951 2018-12-05 Zack Weinberg <zackw@panix.com>
9952 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9953
9954 * misc/syslog.c: Include libioP.h, not iolibio.h.
9955 (__vsyslog_internal): New function with the former body of
9956 __vsyslog_chk; takes mode_flags argument same as
9957 __v*printf_internal. Call __vfprintf_internal directly.
9958
9959 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9960 Remove libc_hidden_def.
9961 (__syslog, __syslog_chk): Use __vsyslog_internal.
9962 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9963
9964 * include/sys/syslog.h: Add multiple inclusion guard.
9965 Add prototype for __vsyslog_internal.
9966 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9967
9968 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9969 Use __vsyslog_internal.
9970
9971 2018-12-05 Zack Weinberg <zackw@panix.com>
9972 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9973
9974 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9975 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9976 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9977 New functions.
9978 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9979 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9980
9981 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9982 Include wctype.h here if COMPILE_WPRINTF is defined.
9983 Define __vfprintf_internal or __vfwprintf_internal, depending
9984 on COMPILE_WPRINTF.
9985 Temporarily, on entry to this function, update mode_flags
9986 according to the environmental settings corresponding to
9987 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9988 Throughout, check mode_flags instead of __ldbl_is_dbl and
9989 _IO_FLAGS2_FORTIFY on the destination FILE.
9990 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9991 Include vfprintf-internal.c. Don't include wctype.h.
9992 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9993 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9994 and vfprintf.
9995 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9996 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9997 and vfwprintf.
9998 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9999
10000 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
10001 and add mode_flags argument; use __vfprintf_internal.
10002 (__vdprintf): New function. Alias vdprintf to this.
10003 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
10004 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
10005 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
10006 (__obstack_printf): Use __obstack_printf_internal.
10007 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
10008 public aliases __vsnprintf and vsnprintf.
10009 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
10010 called internally.
10011 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
10012 public aliases _IO_vsprintf and vsprintf.
10013 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
10014 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
10015 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
10016 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
10017 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
10018
10019 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
10020 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
10021 * stdio-common/fprintf.c, stdio-common/fxprintf.c
10022 * stdio-common/printf.c: Use __vfprintf_internal.
10023
10024 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
10025 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
10026 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
10027
10028 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
10029 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
10030 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
10031 __vfwprintf_internal.
10032
10033 * libio/libio.h: Remove libc_hidden_proto and declaration for
10034 _IO_vfprintf.
10035 Remove declaration of _IO_vfwprintf.
10036 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
10037 _IO_vsprintf.
10038 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
10039 _IO_obstack_printf.
10040 * include/stdio.h: Add prototype for __vasprintf.
10041 (__vsnprintf): Remove declaration, because there are no more
10042 internal calls.
10043 * include/wchar.h (__vfwprintf, __vswprintf): Remove
10044 declaration, because there are no more internal calls.
10045
10046 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
10047 __vsnprintf_internal, instead of _IO_vsnprintf.
10048 * argp/argp-help.c (__argp_error, __argp_failure): Use
10049 __vasprintf_internal, instead of _IO_vasprintf.
10050 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
10051 redefine, because there are no more internal calls.
10052
10053 2018-12-05 Zack Weinberg <zackw@panix.com>
10054 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10055
10056 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
10057 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
10058 Include libio/strfile.h instead of libioP.h.
10059 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
10060 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
10061 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
10062 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
10063 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
10064 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
10065 necessary. Do not set __no_long_double. Normalize variable names.
10066 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
10067 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
10068 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
10069 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
10070 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
10071 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
10072 Call __vfscanf_internal / __vfwscanf_internal directly, passing
10073 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
10074 Do not set __no_long_double. Normalize variable names.
10075
10076 2018-12-05 Zack Weinberg <zackw@panix.com>
10077 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10078
10079 * stdio-common/isoc99_scanf.c
10080 * stdio-common/isoc99_fscanf.c
10081 * stdio-common/isoc99_sscanf.c
10082 * stdio-common/isoc99_vscanf.c
10083 * stdio-common/isoc99_vfscanf.c
10084 * stdio-common/isoc99_vsscanf.c
10085 * wcsmbs/isoc99_wscanf.c
10086 * wcsmbs/isoc99_fwscanf.c
10087 * wcsmbs/isoc99_swscanf.c
10088 * wcsmbs/isoc99_vwscanf.c
10089 * wcsmbs/isoc99_vfwscanf.c
10090 * wcsmbs/isoc99_vswscanf.c:
10091 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
10092 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
10093 No need to lock and unlock the FILE passed to that function.
10094
10095 * stdio-common/vfscanf-internal.c
10096 (__vfscanf_internal, __vfwscanf_internal):
10097 Don't look at _IO_FLAGS2_SCANF_STD.
10098 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
10099 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
10100 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10101
10102 2018-12-05 Zack Weinberg <zackw@panix.com>
10103 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10104
10105 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10106 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10107 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10108 * libio/strfile.h: Add multiple inclusion guard.
10109 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10110
10111 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10112 consistency with the other version of this file.
10113 (ldbl_compat_symbol): New macro.
10114 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10115 New macro.
10116
10117 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10118 Define __vfscanf_internal or __vfwscanf_internal, depending on
10119 COMPILE_WSCANF; don't define any other public symbols.
10120 Remove errval and code to set errp.
10121 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10122 as the mode_flags argument.
10123 (encode_error, conv_error, input_error): Don't set errval.
10124 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10125 Include vfscanf-internal.c.
10126 * stdio-common/vfscanf.c: New file defining the public entry
10127 point vfscanf, which calls __vfscanf_internal.
10128 * stdio-common/vfwscanf.c: New file defining the public entry
10129 point vfwscanf, which calls __vfwscanf_internal.
10130
10131 * stdio-common/iovfscanf.c: New file.
10132 * stdio-common/iovfwscanf.c: Likewise.
10133
10134 * stdio-common/Makefile (routines): Add vfscanf-internal,
10135 vfwscanf-internal, iovfscanf, iovfwscanf.
10136 * stdio-common/Versions: Mention GLIBC_2.29, so that
10137 it can be used in SHLIB_COMPAT expressions.
10138 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10139 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10140 Call __vfscanf_internal, instead of _IO_vfscanf.
10141 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10142 _IO_vfscanf.
10143 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10144 _IO_vfwscanf.
10145
10146 * libio/iovsscanf.c: Clean up includes, when possible. Use
10147 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10148 __vfscanf_internal or __vfwscanf_internal directly.
10149 * libio/iovswscanf.c: Likewise.
10150 * libio/swscanf.c: Likewise.
10151 * libio/vscanf.c: Likewise.
10152 * libio/vwscanf.c: Likewise.
10153 * libio/wscanf.c: Likewise.
10154 * stdio-common/isoc99_fscanf.c: Likewise.
10155 * stdio-common/isoc99_scanf.c: Likewise.
10156 * stdio-common/isoc99_sscanf.c: Likewise.
10157 * stdio-common/isoc99_vfscanf.c: Likewise.
10158 * stdio-common/isoc99_vscanf.c: Likewise.
10159 * stdio-common/isoc99_vsscanf.c: Likewise.
10160 * stdio-common/scanf.c: Likewise.
10161 * stdio-common/sscanf.c: Likewise.
10162 * wcsmbs/isoc99_fwscanf.c: Likewise.
10163 * wcsmbs/isoc99_swscanf.c: Likewise.
10164 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10165 * wcsmbs/isoc99_vswscanf.c: Likewise.
10166 * wcsmbs/isoc99_vwscanf.c: Likewise.
10167 * wcsmbs/isoc99_wscanf.c: Likewise.
10168
10169 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10170
10171 * include/time.h
10172 (__tz_compute): Replace time_t with __time64_t.
10173 (__tz_convert): Replace time_t* with __time64_t.
10174 (__offtime): Replace time_t* with __time64_t.
10175 * time/gmtime.c
10176 (__gmtime_r): Adjust call to __tz_convert.
10177 (gmtime): Likewise.
10178 * time/localtime.c
10179 (__localtime_r): Likewise.
10180 (localtime): Likewise.
10181 * time/offtime.c: Replace time_t with __time64_t.
10182 * time/tzset.c: Likewise.
10183
10184 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10185
10186 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10187 dynamic linker unless [$(run-built-tests) = yes].
10188
10189 2018-12-03 DJ Delorie <dj@delorie.com>
10190
10191 * support/test-container.c (check_for_unshare_hints): New.
10192 (main): Call it if unshare fails. Add support for "su" scriptlet
10193 command.
10194
10195 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10196
10197 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10198 'START' to indicate that start text should be output.
10199 (gen_test): Likewise.
10200 (main): Generate 'START' for first symbol or '--' line, or at end
10201 of input if not previously generated.
10202
10203 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10204
10205 [BZ #19767]
10206 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10207 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10208 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10209 ALWAYS_USE_VSYSCALL.
10210
10211 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10212
10213 [BZ #23913]
10214 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10215 new_argv by one.
10216
10217 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10218
10219 [BZ #23923]
10220 * locale/programs/localedef.c: Declare boolean hard_links default true.
10221 (options): Add --no-hard-links option.
10222 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10223 * locale/programs/localedef.h: Declare prototype for hard_links.
10224 * locale/programs/locfile.c (write_locale_data): Don't use hard
10225 links if hard_links is false.
10226
10227 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10228
10229 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10230 cpu_features_basic.
10231 (__cache_sysconf): Likewise.
10232 (init_cacheinfo): Likewise.
10233 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10234 populate COMMON_CPUID_INDEX_80000007 and
10235 COMMON_CPUID_INDEX_80000008.
10236 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10237 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10238 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10239 (init_cpu_features): Use _Static_assert on
10240 index_arch_Fast_Unaligned_Load.
10241 __get_cpuid_registers and __get_arch_feature. Updated for
10242 cpu_features_basic. Set stepping in cpu_features.
10243 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10244 (FEATURE_INDEX_2): New.
10245 (FEATURE_INDEX_MAX): Changed to enum.
10246 (COMMON_CPUID_INDEX_D_ECX_1): New.
10247 (COMMON_CPUID_INDEX_80000007): Likewise.
10248 (COMMON_CPUID_INDEX_80000008): Likewise.
10249 (cpuid_registers): Likewise.
10250 (cpu_features_basic): Likewise.
10251 (CPU_FEATURE_USABLE): Likewise.
10252 (bit_arch_XXX_Usable): Likewise.
10253 (cpu_features): Use cpuid_registers and cpu_features_basic.
10254 (bit_arch_XXX): Reweritten.
10255 (bit_cpu_XXX): Likewise.
10256 (index_cpu_XXX): Likewise.
10257 (reg_XXX): Likewise.
10258 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10259 <support/check.h>.
10260 (CHECK_CPU_FEATURE): New.
10261 (CHECK_CPU_FEATURE_USABLE): Likewise.
10262 (cpu_kinds): Likewise.
10263 (do_test): Print vendor, family, model and stepping. Check
10264 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10265 (TEST_FUNCTION): Removed.
10266 Include <support/test-driver.c> instead of
10267 "../../test-skeleton.c".
10268 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10269 Check POPCNT instead of POPCOUNT.
10270 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10271
10272 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10273
10274 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10275 there is no element in `consts'.
10276
10277 2018-12-01 Florian Weimer <fweimer@redhat.com>
10278
10279 * support/support_capture_subprocess.c
10280 (support_capture_subprocess): Check that pipe descriptors have
10281 expected values. Close original pipe descriptors in subprocess.
10282
10283 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10284
10285 [BZ #23032]
10286 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10287 attr with __pthread_default_barrierattr.
10288 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10289 attr with __pthread_default_condattr.
10290 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10291 attr with __pthread_default_mutexattr.
10292 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10293 attr with __pthread_default_rwlockattr.
10294
10295 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10296
10297 * manual/tunables.texi (POSIX Thread Tunables): New node.
10298 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10299 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10300 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10301 __pthread_tunables_init.
10302 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10303 (max_adaptive_count): Define.
10304 * nptl/pthread_mutex_conf.c: New file.
10305 * nptl/pthread_mutex_conf.h: New file.
10306 * sysdeps/generic/adaptive_spin_count.h: New file.
10307 * sysdeps/nptl/dl-tunables.list: New file.
10308 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10309 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10310 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10311 Likewise.
10312
10313 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10314
10315 [BZ #20544]
10316 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10317 * stdlib/on_exit.c (__on_exit): Likewise.
10318 * stdlib/Makefile (tests): Add tst-bz20544.
10319 * stdlib/tst-bz20544.c: New test.
10320
10321 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10322
10323 [BZ #19767]
10324 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10325 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10326 New.
10327
10328 2018-11-30 Florian Weimer <fweimer@redhat.com>
10329
10330 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10331 Extend error logging.
10332 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10333 symbol.
10334
10335 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10336
10337 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10338 __sigismember instead of sigismember.
10339 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10340 cancel_handler): New definitions.
10341 (do_system): Use posix_spawn instead of fork and execl and remove
10342 reentracy code.
10343 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10344 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10345 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10346 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10347 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10348 * sysdeps/unix/sysv/linux/system.c: Likewise.
10349
10350 [BZ #22834]
10351 [BZ #17490]
10352 * NEWS: Add new semantic for atfork with popen and system.
10353 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10354 fork and execl.
10355
10356 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10357
10358 [BZ #23690]
10359 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10360 modification order when accessing reloc_result->addr.
10361 * include/link.h (reloc_result): Add field init.
10362 * nptl/Makefile (tests): Add tst-audit-threads.
10363 (modules-names): Add tst-audit-threads-mod1 and
10364 tst-audit-threads-mod2.
10365 Add rules to build tst-audit-threads.
10366 * nptl/tst-audit-threads-mod1.c: New file.
10367 * nptl/tst-audit-threads-mod2.c: Likewise.
10368 * nptl/tst-audit-threads.c: Likewise.
10369 * nptl/tst-audit-threads.h: Likewise.
10370
10371 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10372
10373 * scripts/gen-as-const.py: New file.
10374 * scripts/gen-as-const.awk: Remove.
10375 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10376 gen-as-const.py.
10377 ($(objpfx)test-as-const-%.c): Likewise.
10378
10379 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10380
10381 * elf/dl-exception.c: Include <_itoa.h>.
10382
10383 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10384
10385 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10386 returned by __f_setlk.
10387
10388 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10389 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10390
10391 * elf/Makefile (tests-internal): Add tst-create_format1.
10392 * elf/dl-exception.c (_dl_exception_create_format): Support
10393 %x, %lx and %zx.
10394 * elf/tst-create_format1.c: New file.
10395
10396 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10397
10398 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10399 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10400 gnulib.)
10401 * argp/argp-help.c (__argp_failure): Likewise.
10402
10403 2018-11-29 Mao Han <han_mao@c-sky.com>
10404
10405 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10406 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10407 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10408 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10409 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10410 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10411 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10412 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10413 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10414 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10415 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10416 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10417 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10418 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10419 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10420 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10421 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10422 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10423 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10424 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10425 (R_CKCORE_TLS_TPOFF32): New defines.
10426
10427 2018-11-29 Florian Weimer <fweimer@redhat.com>
10428
10429 * posix/Makefile (before-compile): Remove testcases.h and
10430 ptestcases.h.
10431 (generated): Add testcases.h and ptestcases.h.
10432 (testcases.h, ptestcases.h): Move to $(objpfx).
10433 (runtests.o): Add dependency on testcases.h.
10434 (runptests.o): Add dependency on ptestcases.h.
10435 * posix/testcases.h, posix/ptestcases.h: Remove files.
10436 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10437 not touch posix/testcases.h and posix/ptestcases.h.
10438
10439 2018-11-28 Florian Weimer <fweimer@redhat.com>
10440
10441 support: Add signal support to support_capture_subprocess_check.
10442 * support/capture_subprocess.h (support_capture_subprocess_check):
10443 Adjust comment and rename parameter.
10444 * support/support_capture_subprocess_check.c
10445 (print_actual_status): New function.
10446 (support_capture_subprocess_check): Support negative
10447 status_or_signal. Call print_actual_status.
10448 * support/tst-support_capture_subprocess.c (do_test): Call
10449 support_capture_subprocess_check.
10450 * libio/tst-vtables-common.c (termination_status)
10451 (init_termination_status): Remove.
10452 (check_for_termination): Adjust support_capture_subprocess_check
10453 call.
10454 (do_test): Remove call to init_termination_status.
10455
10456 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10457
10458 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10459 source directory instead of a copy.
10460 (CommandList.create_copy_dir): Remove.
10461
10462 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10463
10464 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10465
10466 2018-11-28 Florian Weimer <fweimer@redhat.com>
10467
10468 * support/support.h (support_quote_string): Do not use str
10469 parameter name.
10470
10471 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10472
10473 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10474 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10475
10476 2018-11-27 Florian Weimer <fweimer@redhat.com>
10477
10478 * support/support.h (support_quote_string): Declare.
10479 * support/support_quote_string.c: New file.
10480 * support/tst-support_quote_string.c: Likewise.
10481 * support/Makefile (libsupport-routines): Add
10482 support_quote_string.
10483 (tests): Add tst-support_quote_string.
10484
10485 2018-11-27 Florian Weimer <fweimer@redhat.com>
10486
10487 [BZ #23927]
10488 CVE-2018-19591
10489 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10490 descriptor leak in case of ENODEV error.
10491
10492 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10493
10494 [BZ #19767]
10495 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10496 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10497 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10498
10499 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10500
10501 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10502 Error for unknown lines.
10503
10504 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10505
10506 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10507 Touch additional files.
10508
10509 2018-11-26 Florian Weimer <fweimer@redhat.com>
10510
10511 [BZ #23907]
10512 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10513 double-frees.
10514
10515 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10516
10517 [BZ #19767]
10518 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10519 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10520 SHARED. Include sysdep.h.
10521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10522 ALWAYS_USE_VSYSCALL.
10523 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10524 ALWAYS_USE_VSYSCALL.
10525
10526 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10527
10528 [BZ #19767]
10529 * nptl/Makefile (tests-static): Add tst-cond11-static.
10530 (tests): Likewise.
10531 * nptl/tst-cond11-static.c: New File.
10532 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10533 tst-affinity-static.
10534 (tests): Likewise.
10535 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10536 instead of SHARED.
10537 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10538 (USE_VSYSCALL): Likewise.
10539 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10540 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10541 instead of SHARED.
10542 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10543 SHARED.
10544 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10545 New.
10546
10547 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10548
10549 [BZ #23915]
10550 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10551 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10552 Undefine.
10553
10554 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10555
10556 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10557 (tst-cet-legacy-1a-ARGS): New.
10558 ($(objpfx)tst-cet-legacy-1a): New target.
10559 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10560
10561 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10562
10563 * conform/conformtest.py (CompileSubTest.__init__): Set
10564 self.run_early to False.
10565 (ExecuteSubTest.__init__): Likewise.
10566 (HeaderTests.run): Try running all non-optional, non-XFAILed
10567 compilation tests in a single execution of the compiler.
10568
10569 * conform/conformtest.py (CompileSubTest): New class.
10570 (ExecuteSubTest): Likewise.
10571 (ElementTest.run): Rename to gen_subtests. Append tests to
10572 self.subtests instead of running them.
10573 (ConstantTest.run): Likewise.
10574 (SymbolTest.run): Likewise.
10575 (TypeTest.run): Likewise.
10576 (TagTest.run): Likewise.
10577 (FunctionTest.run): Likewise.
10578 (VariableTest.run): Likewise.
10579 (MacroFunctionTest.run): Likewise.
10580 (MacroStrTest.run): Likewise.
10581 (HeaderTests.handle_test_line): Generate subtests for tests.
10582 (HeaderTests.run): Run subtests for tests.
10583
10584 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10585
10586 * math/Versions (GLIBC_2.29): Add pow.
10587 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10588 symbol.
10589 * math/w_pow.c: New file.
10590 * sysdeps/i386/fpu/w_pow.c: New file.
10591 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10592 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10593 and add necessary aliases.
10594 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10595 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10596 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10597 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10598 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10599 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10600 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10601 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10602 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10603 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10604 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10605 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10606 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10607 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10608 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10613 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10614 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10615 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10616 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10617 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10618 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10619 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10620 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10621 __pow.
10622 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10623 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10624 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10625
10626 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10627
10628 * math/Versions (GLIBC_2.29): Add log2.
10629 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10630 symbol.
10631 * math/w_log2.c: New file.
10632 * sysdeps/i386/fpu/w_log2.c: New file.
10633 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10634 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10635 and add necessary aliases.
10636 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10637 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10638 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10639 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10640 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10641 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10642 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10643 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10644 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10645 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10646 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10647 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10648 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10649 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10650 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10655 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10656 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10657 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10658 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10659 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10660 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10661 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10662
10663 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10664
10665 * math/Versions (GLIBC_2.29): Add log.
10666 * math/w_log_compat.c (__log_compat): Change to versioned compat
10667 symbol.
10668 * math/w_log.c: New file.
10669 * sysdeps/i386/fpu/w_log.c: New file.
10670 * sysdeps/ia64/fpu/e_log.S: Update.
10671 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10672 and add necessary aliases.
10673 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10674 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10675 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10676 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10677 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10678 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10679 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10680 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10681 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10682 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10683 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10684 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10685 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10686 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10687 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10692 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10693 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10694 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10695 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10696 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10697 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10698 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10699 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10700 __log.
10701 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10702 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10703 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10704 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10705
10706 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10707
10708 * math/Versions (GLIBC_2.29): Add exp and exp2.
10709 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10710 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10711 * math/w_exp_compat.c (__exp_compat): Likewise.
10712 * math/w_exp.c: New file.
10713 * math/w_exp2.c: New file.
10714 * sysdeps/i386/fpu/w_exp.c: New file.
10715 * sysdeps/i386/fpu/w_exp2.c: New file.
10716 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10717 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10718 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10719 and add necessary aliases.
10720 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10721 and add necessary aliases.
10722 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10723 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10724 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10725 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10726 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10727 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10728 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10729 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10730 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10731 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10732 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10733 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10734 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10735 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10736 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10737 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10738 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10739 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10741 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10743 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10744 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10745 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10746 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10747 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10748 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10749 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10750 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10751 (__ieee754_exp): Rename to __exp.
10752 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10753 (__ieee754_exp): Rename to __exp.
10754 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10755 (__ieee754_exp): Rename to __exp.
10756 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10757 __exp.
10758 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10759
10760 2018-11-20 DJ Delorie <dj@redhat.com>
10761
10762 * malloc/malloc.c (tcache_entry): Add key field.
10763 (tcache_put): Set it.
10764 (tcache_get): Likewise.
10765 (_int_free): Check for double free in tcache.
10766 * malloc/tst-tcfree1.c: New.
10767 * malloc/tst-tcfree2.c: New.
10768 * malloc/Makefile: Run the new tests.
10769 * manual/probes.texi: Document memory_tcache_double_free probe.
10770
10771 * dlfcn/dlerror.c (check_free): Prevent double frees.
10772
10773 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10774
10775 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10776
10777 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10778
10779 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10780 in tests. Use names for format arguments.
10781 (ConstantTest.run): Likewise.
10782 (SymbolTest.run): Likewise.
10783 (TypeTest.run): Likewise.
10784 (TagTest.run): Likewise.
10785 (FunctionTest.run): Likewise.
10786 (VariableTest.run): Likewise.
10787 (MacroFunctionTest.run): Likewise.
10788 (MacroStrTest.run): Likewise.
10789 (HeaderTests.__init__): Set self.num_tests.
10790 (HeaderTests.handle_test_line): Set test.num. Increment
10791 self.num_tests.
10792
10793 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10794
10795 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10796 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10797 SEEK_SET.
10798
10799 2018-11-19 Mao Han <han_mao@c-sky.com>
10800
10801 * scripts/config.guess: Update to version 2018-08-29.
10802 * scripts/config.sub: Update to version 2018-08-29.
10803
10804 2018-11-19 Florian Weimer <fweimer@redhat.com>
10805
10806 support: Print timestamps in timeout handler.
10807 * support/support_test_main.c (print_timestamp): New function.
10808 (signal_handler): Use it to print the termination time and the
10809 time of the last write to standard output.
10810
10811 2018-11-16 Zack Weinberg <zackw@panix.com>
10812 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10813
10814 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10815 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10816 argument.
10817 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10818 and add flags argument. Check flags instead of __ldbl_is_dbl when
10819 deciding whether to set is_long_double.
10820 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10821 passing zero for flags argument.
10822 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10823
10824 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10825 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10826 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10827 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10828 variable names. Remove libc_hidden_def/libc_hidden_proto from
10829 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10830 longer called from within the library.
10831 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10832 for __nldbl___vstrfmon_l, declare it explicitly.
10833
10834 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10835
10836 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10837
10838 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10839 macros
10840 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10841 F_SETLK64, F_SETLKW64, respectively.
10842 * sysdeps/mach/hurd/f_setlk.c: New file.
10843 * sysdeps/mach/hurd/f_setlk.h: New file.
10844 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10845 f_setlk.
10846 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10847 (__libc_fcntl): Move non-flock operations to...
10848 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10849 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10850
10851 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10852
10853 mktime: DEBUG_MKTIME cleanup
10854 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10855 And it’s no longer needed now that glibc and Gnulib both have
10856 their own testing mechanisms for mktime.
10857 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10858
10859 mktime: fix non-EOVERFLOW errno handling
10860 [BZ#23789]
10861 mktime was not properly reporting failures when the underlying
10862 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10863 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10864 The problem could happen on non-glibc platforms, with Gnulib.
10865 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10866 (tm_diff): ... this simpler function, which does not change errno.
10867 All callers changed to deal with errno themselves.
10868 (ranged_convert, __mktime_internal): Return failure immediately if
10869 the underlying function reports any failure other than EOVERFLOW.
10870 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10871 gap code fails.
10872
10873 mktime: fix bug with Y2038 DST transition
10874 [BZ#23789]
10875 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10876 mishandle a DST transition that jumps over the Y2038 boundary.
10877 No such DST transitions are known so this is only a theoretical
10878 bug, but we might as well do things right.
10879
10880 mktime: make more room for overflow
10881 [BZ#23789]
10882 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10883 This is so that we can add tm_diff results to a previous guess,
10884 which will be useful in a later patch.
10885
10886 mktime: simplify offset guess
10887 [BZ#23789]
10888 * time/mktime.c (__mktime_internal): Omit excess precision.
10889
10890 mktime: new test for mktime failure
10891 [BZ#23789]
10892 Based on a test suggested by Albert Aribaud in:
10893 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10894 * time/Makefile (tests): Add bug-mktime4.
10895 * time/bug-mktime4.c: New file.
10896
10897 mktime: fix EOVERFLOW bug
10898 [BZ#23789]
10899 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10900 Include libc-config.h, not config.h, for __set_errno.
10901 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10902
10903 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10904
10905 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10906 __attribute_copy__ to copy attributes from name. Drop static qualifier
10907 to avoid warnings about leaf attribute not having effect on static
10908 functions.
10909
10910 2018-11-13 Florian Weimer <fweimer@redhat.com>
10911
10912 * malloc/malloc.c (fastbin_push_entry): New function.
10913 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10914 (REMOVE_FB): Remove macro.
10915 (_int_malloc): Use fastbin_pop_entry and reindent.
10916 (_int_free): Use fastbin_push_entry.
10917 (malloc_consolidate): Use atomic_exchange_acquire.
10918
10919 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10920
10921 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10922 alias attribute, not with strong_alias.
10923
10924 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10925 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10926 with additional parameter thread.
10927 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10928 in terms of __hidden_ver2.
10929 (hidden_tls_def): New macro.
10930 (libc_hidden_tls_def): Likewise.
10931 (rtld_hidden_tls_def): Likewise.
10932 (libm_hidden_tls_def): Likewise.
10933 (libmvec_hidden_tls_def): Likewise.
10934 (libresolv_hidden_tls_def): Likewise.
10935 (librt_hidden_tls_def): Likewise.
10936 (libdl_hidden_tls_def): Likewise.
10937 (libnss_files_hidden_tls_def): Likewise.
10938 (libnsl_hidden_tls_def): Likewise.
10939 (libnss_nisplus_hidden_tls_def): Likewise.
10940 (libutil_hidden_tls_def): Likewise.
10941 (libutil_hidden_tls_def): Likweise.
10942 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10943 libc_hidden_tls_def.
10944 (__sim_disabled_exceptions_thread): Likewise.
10945 (__sim_round_mode_thread): Likewise.
10946
10947 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10948 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10949 copy attributes from name.
10950
10951 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10952
10953 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10954 Use __attribute_copy__ to copy attributes from name.
10955
10956 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10957 with __hidden_ver1 call.
10958 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10959 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10960 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10961 (__cosf): Do not declare here.
10962 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10963 (__sincosf): Do not declare here.
10964 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10965 (__sinf): Do not declare here.
10966
10967 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10968 (__BIG_ENDIAN): Likewise.
10969 (__BYTE_ORDER): Likewise.
10970 (strong_alias): Likewise.
10971 (_strong_alias): Likewise.
10972
10973 2018-11-12 Florian Weimer <fweimer@redhat.com>
10974
10975 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10976 function. Move after the definition of in_smallbin_range. Do not
10977 use __builtin_expect for paths that lead to a noreturn function.
10978 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10979 because it is unclear whether this is in fact an unlikely
10980 condition.
10981 (_int_malloc, _int_free): Adjust.
10982 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10983 variables.
10984 * malloc/arena.c (heap_trim): Likewise.
10985
10986 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10987
10988 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10989 it, free it if needed.
10990 (reauthenticate): Test and use ccwdir.
10991 (child_init_port): In non-resetids case, test and use ccwdir.
10992 (child_chdir): New nested function to set ccwdir.
10993 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10994 * hurd/hurd/port.h (_hurd_port_move): New function.
10995 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10996 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10997 * hurd/Versions (_hurd_port_move): Export function.
10998 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10999 symbol.
11000 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
11001 of dtablesize for allocating dtable_cloexec.
11002
11003 2018-11-09 Martin Sebor <msebor@redhat.com>
11004
11005 * include/libc-symbols.h (__attribute_copy__): Define macro unless
11006 it's already defined.
11007 (_strong_alias): Use __attribute_copy__.
11008 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
11009 * misc/sys/cdefs.h (__attribute_copy__): New macro.
11010 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
11011 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
11012 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
11013 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
11014 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
11015 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
11016 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
11017 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
11018 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
11019 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
11020 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
11021 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
11022 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
11023 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
11024 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
11025 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
11026 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
11027
11028 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11029
11030 * misc/tst-efgcvt.c: Include support/check.h and
11031 support/test-driver.c. Do not include test-skeleton.c.
11032 (error_count): Remove.
11033 (output_error): Replace increments to error_count with calls to
11034 support_record_failure.
11035 (output_r_error): Likewise.
11036 (special): Likewise.
11037 (do_test): Unconditionally return zero.
11038 (TEST_FUNCTION): Remove.
11039
11040 2018-11-09 Joseph Myers <joseph@codesourcery.com>
11041
11042 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
11043 not $(@D)/scratch.
11044 ($(linknamespace-header-tests)): Likewise.
11045
11046 * conform/conformtest.py: New file.
11047 * conform/conformtest.pl: Remove.
11048 * conform/GlibcConform.pm: Likewise.
11049 * conform/glibcconform.py (KEYWORDS_C90): New constant.
11050 (KEYWORDS_C99): Likewise.
11051 (KEYWORDS): Likewise.
11052 * conform/Makefile ($(conformtest-header-tests)): Use
11053 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
11054 option. Use --header instead of --headers.
11055 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
11056 function entries.
11057 * conform/data/spawn.h-data: Likewise.
11058 * conform/data/fcntl.h-data (openat): Add space after function
11059 name.
11060 * conform/data/wchar.h-data (wcscasecmp): Likewise.
11061 (wcscasecmp_l): Likewise.
11062 * conform/data/termios.h-data (c_cc): Add space after element
11063 name.
11064
11065 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11066
11067 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
11068 instead of manually comparing and reporting mismatching strings.
11069 * misc/tst-ldbl-error.c (do_one_test): Likewise.
11070 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
11071
11072 2018-11-08 Joseph Myers <joseph@codesourcery.com>
11073
11074 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
11075 __ASSUME_SOCKETCALL.
11076 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11077 (__ASSUME_SOCKETCALL): Remove.
11078 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11079 (__ASSUME_SOCKETCALL): Likewise.
11080 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11081 (__ASSUME_SOCKETCALL): Likewise.
11082 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11083 (__ASSUME_SOCKETCALL): Likewise.
11084 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11085 (__ASSUME_SOCKETCALL): Likewise.
11086 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11087 (__ASSUME_SOCKETCALL): Likewise.
11088 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11089 (__ASSUME_SOCKETCALL): Likewise.
11090
11091 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
11092
11093 [BZ #23509]
11094 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
11095 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
11096 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
11097 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
11098 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
11099 lc_unknown.
11100
11101 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
11102
11103 [BZ #17630]
11104 * resolv/tst-resolv-network.c: Add test for getnetbyname.
11105
11106 2018-11-07 Joseph Myers <joseph@codesourcery.com>
11107
11108 [BZ #23867]
11109 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11110 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11111 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11112 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11113
11114 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11115
11116 * support/support_test_compare_string.c
11117 (support_test_compare_string): Fix printf format.
11118
11119 2018-11-07 Florian Weimer <fweimer@redhat.com>
11120
11121 Implement TEST_COMPARE_STRING.
11122 * support/check.h (TEST_COMPARE_STRING): Define.
11123 (support_test_compare_string): Declare.
11124 * support/Makefile (libsupport-routines): Add
11125 support_test_compare_string.
11126 (tests): Add tst-test_compare_string.
11127 * support/support_test_compare_string.c: New file.
11128 * support/tst-test_compare_string.c: Likewise.
11129
11130 2018-11-07 Andreas Schwab <schwab@suse.de>
11131
11132 [BZ #23864]
11133 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11134 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11135 Undef.
11136
11137 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11138
11139 [BZ #23862]
11140 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11141 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11142 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11143 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11144 Likewise.
11145
11146 2018-11-06 Florian Weimer <fweimer@redhat.com>
11147
11148 [BZ #17405]
11149 * posix/Makefile (routines): Add spawn_faction_addchdir.
11150 (tests): Add tst-spawn-chdir.
11151 * posix/Versions (GLIBC_2.29): Add
11152 posix_spawn_file_actions_addchdir_np.
11153 * posix/spawn_faction_addchdir.c: New file.
11154 * posix/spawn_faction_destroy.c
11155 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11156 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11157 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11158 chdir_action.
11159 * posix/tst-spawn-chdir.c: New file.
11160 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11161 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11162 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11163 posix_spawn_file_actions_addchdir_np.
11164 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11165 Likewise.
11166 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11167 Likewise.
11168 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11169 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11170 Likewise.
11171 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11172 Likewise.
11173 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11174 Likewise.
11175 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11176 Likewise.
11177 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11178 Likewise.
11179 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11180 Likewise.
11181 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11182 (GLIBC_2.29): Likewise.
11183 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11184 (GLIBC_2.29): Likewise.
11185 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11186 (GLIBC_2.29): Likewise.
11187 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11188 (GLIBC_2.29): Likewise.
11189 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11190 Likewise.
11191 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11192 (GLIBC_2.29): Likewise.
11193 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11194 (GLIBC_2.29): Likewise.
11195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11196 (GLIBC_2.29): Likewise.
11197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11198 (GLIBC_2.29): Likewise.
11199 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11200 Likewise.
11201 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11202 Likewise.
11203 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11204 Likewise.
11205 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11206 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11207 Likewise.
11208 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11209 Likewise.
11210 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11211 Likewise.
11212 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11213 Likewise.
11214
11215 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11216
11217 * misc/Makefile (tests): Add tst-ldbl-error.
11218 * misc/tst-ldbl-error.c: New file.
11219
11220 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11221
11222 * misc/Makefile (tests): Add tst-ldbl-warn.
11223 * misc/tst-ldbl-warn.c: New file.
11224
11225 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11226
11227 * argp/Makefile (tests): Add tst-ldbl-argp.
11228 * argp/tst-ldbl-argp.c: New file.
11229
11230 2018-11-05 Arjun Shankar <arjun@redhat.com>
11231
11232 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11233 __gconv_path_elem and call __gconv_get_path unconditionally.
11234
11235 2018-11-05 Andreas Schwab <schwab@suse.de>
11236
11237 [BZ #22927]
11238 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11239 creating the first helper thread failed.
11240
11241 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11242
11243 * sysdeps/mach/hurd/msync.c: New file.
11244
11245 2018-11-02 Florian Weimer <fweimer@redhat.com>
11246
11247 * support/shell-container.c (copy_func): Call
11248 support_copy_file_range instead of copy_file_range to support
11249 cross-device copies.
11250
11251 2018-11-02 Florian Weimer <fweimer@redhat.com>
11252
11253 * support/test-container.c: Include <libc-pointer-arith.h> for
11254 ALIGN_UP.
11255
11256 2018-11-01 Zong Li <zong@andestech.com>
11257
11258 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11259 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11260 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11261 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11262
11263 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11264 variable to avoid overlap arguments.
11265
11266 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11267
11268 * posix/bug-regex22.c (main): Use puts with distinct error
11269 messages for unexpected success of re_compile_pattern, not printf
11270 with NULL argument to %s.
11271
11272 * stdio-common/bug22.c: Include <libc-diag.h>.
11273 (do_test): Disable -Wformat-overflow= warnings around fprintf
11274 calls outputting more than INT_MAX characters.
11275 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11276 around printf call with NULL %s argument.
11277
11278 [BZ #23848]
11279 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11280 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11281 Undefine.
11282 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11283 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11284 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11285 (__ASSUME_SENDTO_SYSCALL): Likewise.
11286 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11287 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11288 [!__arch64__].
11289 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11290 (__ASSUME_CONNECT_SYSCALL): Likewise.
11291 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11292 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11293 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11294 Define.
11295 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11296 Likewise.
11297 [__LINUX_KERNEL_VERSION >= 0x040400]
11298 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11299 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11300 Remove.
11301 (listen): Likewise.
11302 (setsockopt): Likewise.
11303
11304 2018-11-01 Fredrik Noring <noring@nocrew.org>
11305
11306 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11307 with the ISA override.
11308
11309 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11310
11311 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11312 #endif.
11313
11314 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11315
11316 * manual/errno.texi (EIEIO): Document how translators should
11317 translate the error message.
11318 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11319 printing trailing whitespaces refused by git.
11320 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11321 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11322 * hurd/Makefile (user-interfaces): Add pci.
11323
11324 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11325
11326 * conform/linknamespace.py: New file.
11327 * conform/linknamespace.pl: Remove file.
11328 * conform/Makefile ($(linknamespace-header-tests)): Use
11329 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11330 option.
11331
11332 2018-10-30 Florian Weimer <fweimer@redhat.com>
11333
11334 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11335 memory leaks.
11336
11337 2018-10-30 Florian Weimer <fweimer@redhat.com>
11338
11339 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11340
11341 2018-10-30 Florian Weimer <fweimer@redhat.com>
11342
11343 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11344 support_blob_repeat.
11345
11346 2018-10-30 Florian Weimer <fweimer@redhat.com>
11347
11348 Avoid spurious test failures in stdlib/test-bz22786.
11349 * support/Makefile (libsupport-routines): Add blob_repeat.
11350 (tests): Add tst-support_blob_repeat.
11351 * support/blob_repeat.h: New file.
11352 * support/blob_repeat.c: Likewise.
11353 * support/tst-support_blob_repeat.c: Likewise.
11354 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11355 support_blob_repeat_allocate.
11356
11357 2018-10-30 Andreas Schwab <schwab@suse.de>
11358
11359 [BZ #23125]
11360 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11361 Don't use tail call.
11362 * elf/tst-unwind-main.c: New file.
11363 * elf/Makefile (tests): Add tst-unwind-main.
11364 (CFLAGS-tst-unwind-main.c): Define.
11365
11366 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11367
11368 [BZ #23791]
11369 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11370 n_cs_precedes to 0.
11371 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11372
11373 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11374
11375 * conform/glibcconform.py: Do not import shutil.
11376 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11377 of mkdtemp.
11378
11379 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11380 critic_missing for versions before 3.4.
11381 * configure: Regenerated.
11382 * manual/install.texi (Tools for Compilation): Document
11383 requirement for Python to build glibc.
11384 * INSTALL: Regenerated.
11385 * Rules [PYTHON]: Make code unconditional.
11386 * benchtests/Makefile [PYTHON]: Likewise.
11387 * conform/Makefile [PYTHON]: Likewise.
11388 * manual/Makefile [PYTHON]: Likewise.
11389 * math/Makefile [PYTHON]: Likewise.
11390
11391 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11392
11393 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11394 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11395 answer to interrupt_operation, return EIEIO instead of EINTR.
11396 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11397 _hurd_intr_rpc_msg_about_to global point to start of controlled
11398 assembly snippet. Make it check canceled flag.
11399 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11400 the _hurd_intr_rpc_msg_about_to point.
11401 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11402 issue, remove cancel flag check.
11403
11404 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11405
11406 * scripts/build-many-glibcs.py: Remove compatibility for missing
11407 os.cpu_count and re.fullmatch.
11408
11409 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11410
11411 [BZ #23822]
11412 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11413 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11414 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11415
11416 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11417
11418 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11419 macro.
11420
11421 2018-10-25 Florian Weimer <fweimer@redhat.com>
11422
11423 [BZ #23562]
11424 [BZ #23821]
11425 XFAIL siginfo_t si_band conform test on sparc64.
11426 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11427 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11428 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11429 (conformtest-xfail-conds): Add sparc64-linux.
11430 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11431 sparc64.
11432 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11433
11434 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11435
11436 * elf/elf.h (NT_MIPS_DSP): New macro.
11437 (NT_MIPS_FP_MODE): Likewise.
11438
11439 2018-10-25 Zong Li <zong@andestech.com>
11440
11441 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11442 name by adding the file extension (.so).
11443
11444 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11445
11446 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11447 (test-xfail-ISO11/threads.h/linknamespace,
11448 test-xfail-ISO11/threads.h/conform): Add.
11449
11450 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11451
11452 * math/gen-libm-test.py: Import os.
11453 (ALL_FLOATS_MANUAL): New constant.
11454 (ALL_FLOATS_SUFFIX): Likewise.
11455 (Ulps.all_functions): New function.
11456 (real_all_ulps): Likewise.
11457 (generate_err_table_sub): Likewise.
11458 (generate_err_table): Likewise.
11459 (main): Handle -s and -m options.
11460 * manual/libm-err-tab.pl: Remove.
11461 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11462 instead of libm-err-tab.pl.
11463 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11464 != no].
11465 * manual/install.texi (Tools for Compilation): Document
11466 requirement for Python to build manual.
11467 * INSTALL: Regenerated.
11468
11469 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11470
11471 * bits/time64.h: New file.
11472 * include/time.h: Replace internal_time_t with __time64_t.
11473 * posix/bits/types (__time64_t): Add.
11474 * stdlib/Makefile: Add bits/time64.h to includes.
11475 * time/tzfile.c: Replace internal_time_t with __time64_t.
11476
11477 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11478
11479 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11480 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11481 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11482 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11483 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11484 prototype.
11485 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11486 * posix/spawn_faction_addclose.c
11487 (__posix_spawn_file_actions_addclose): Add hidden definition.
11488 * posix/spawn_faction_adddup2.c
11489 (__posix_spawn_file_actions_adddup2): Likewise.
11490 * posix/spawn_faction_destroy.c
11491 (__posix_spawn_file_actions_destroy): Likewise.
11492 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11493 Likewise.
11494 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11495 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11496 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11497 Likewise.
11498 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11499 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11500 Likewise.
11501
11502 2018-10-24 Andreas Schwab <schwab@suse.de>
11503
11504 [BZ #18093]
11505 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11506 format cache.
11507 * elf/cache.c (print_cache): Likewise.
11508
11509 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11510
11511 * bits/timesize.h: New file.
11512 * stdlib/Makefile (headers): Add bits/timesize.h.
11513 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11514 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11515 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11516 (__SEM_PAD_AFTER_TIME): Likewise.
11517 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11518 (__SHM_PAD_AFTER_TIME): Likewise.
11519 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11520 (__MSQ_PAD_BEFORE_TIME): Likewise.
11521 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11522 (__SEM_PAD_BEFORE_TIME): Likewise.
11523 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11524 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11525 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11526 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11527 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11528 (__MSQ_PAD_BEFORE_TIME): Likewise.
11529 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11530 (__SEM_PAD_BEFORE_TIME): Likewise.
11531 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11532 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11533 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11534 (__MSQ_PAD_BEFORE_TIME): Likewise.
11535 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11536 (__SEM_PAD_BEFORE_TIME): Likewise.
11537 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11538 (__SHM_PAD_BEFORE_TIME): Likewise.
11539 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11540 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11541 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11542
11543 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11544
11545 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11546 USE_RDTSCP is defined.
11547 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11548 USE_RDTSCP is defined.
11549
11550 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11551
11552 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11553 defined.
11554
11555 [BZ #23709]
11556 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11557 independently of other flags.
11558
11559 2018-10-23 Florian Weimer <fweimer@redhat.com>
11560
11561 * time/tst-mktime2.c (N_STRINGS): Remove.
11562 (set_timezone): New function.
11563 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11564 (mktime_test1): Report localtime failure and check errno value.
11565 Use TEST_COMPARE.
11566 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11567 (do_test): Remove alarm call. Use set_timezone and array_length.
11568
11569 2018-10-23 Andreas Schwab <schwab@suse.de>
11570
11571 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11572 (__start_context): Use END instead of PSEUDO_END.
11573
11574 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11575
11576 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11577 version to 4.19.
11578
11579 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11580 version to 4.19.
11581
11582 [BZ #23793]
11583 * wcsmbs/c32rtomb.c: New file.
11584 * wcsmbs/mbrtoc32.c: Likewise.
11585 * wcsmbs/tst-c32-state.c: Likewise.
11586 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11587 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11588 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11589 (tests): Add tst-c32-state.
11590 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11591 $(gen-locales).
11592
11593 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11594
11595 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11596 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11597
11598 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11599
11600 [BZ #23794]
11601 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11602 pair and return 0 in that case, and use saved character to
11603 interpret following character.
11604 * wcsmbs/tst-c16-surrogate.c: New file.
11605 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11606 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11607 Depend on $(gen-locales)
11608
11609 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11610
11611 [BZ #23562]
11612 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11613 (struct siginfo_t): Use correct type for si_band.
11614
11615 2018-10-19 Florian Weimer <fweimer@redhat.com>
11616
11617 [BZ #23689]
11618 * resource/bits/types/struct_rusage.h (struct rusage): Update
11619 comment on struct. Remove extraneous field comment.
11620
11621 2018-10-18 David S. Miller <davem@davemloft.net>
11622
11623 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11624 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11625 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11626 sysdep_routines in subdir elf.
11627 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11628 version for __vdso_clock_gettime.
11629 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11630 Define.
11631 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11632 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11633
11634 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11635
11636 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11637
11638 * sysdeps/i386/init-arch.h: Removed.
11639 * sysdeps/i386/i586/init-arch.h: Likewise.
11640 * sysdeps/i386/i686/init-arch.h: Likewise.
11641 * sysdeps/i386/i686/hp-timing.h: Likewise.
11642 * sysdeps/x86_64/hp-timing.h: Likewise.
11643 * sysdeps/i386/isa.h: New file.
11644 * sysdeps/i386/i586/isa.h: Likewise.
11645 * sysdeps/i386/i686/isa.h: Likewise.
11646 * sysdeps/x86_64/isa.h: Likewise.
11647 * sysdeps/x86/hp-timing.h: New file.
11648 * sysdeps/x86/init-arch.h: Include <isa.h>.
11649
11650 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11651
11652 * math/libm-test-pow.inc (pow_test_data): Do not allow
11653 divide-by-zero exception for pow(+/- 0, -Inf).
11654
11655 2018-10-17 Zack Weinberg <zackw@panix.com>
11656
11657 * manual/job.texi (Job Control is Optional): Remove node, as
11658 job control has not been optional in quite some time.
11659 (Job Control): Mention briefly that systems older than
11660 POSIX.1-2001 might not support job control.
11661 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11662 defined on systems conforming to POSIX.1-2001.
11663
11664 2018-10-17 Arjun Shankar <arjun@redhat.com>
11665
11666 [BZ #22062]
11667 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11668 indentation.
11669 * (__gconv_read_conf): Mark function static.
11670 * (once): New static variable.
11671 * (__gconv_load_conf): New function.
11672 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11673 * iconv/gconv_db.c (once): Remove static variable.
11674 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11675 __gconv_read_conf.
11676 * (__gconv_find_transform): Likewise.
11677 * iconv/tst-iconv-mt.c: New test.
11678 * iconv/Makefile: Add tst-iconv_mt.
11679
11680 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11681
11682 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11683 bits/shm-pad.h.
11684 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11685 (shmatt_t): Define as __syscall_ulong_t.
11686 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11687 and [__SHM_PAD_AFTER_TIME].
11688 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11689 Define shm_segsz and associated padding based on
11690 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11691 Use __syscall_ulong_t instead of unsigned long int.
11692 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11693 unsigned long int.
11694 [__USE_MISC] (struct shm_info): Likewise.
11695 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11696 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11697 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11698 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11699 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11700 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11701 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11702 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11703 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11704 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11705 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11706
11707 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11708 bits/shmlba.h.
11709 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11710 (SHMLBA): Remove macro.
11711 (__getpagesize): Remove function declaration.
11712 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11713 <bits/shmlba.h>.
11714 (SHMLBA): Remove macro.
11715 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11716 <bits/shmlba.h>.
11717 (SHMLBA): Remove macro.
11718 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11719 <bits/shmlba.h>.
11720 (SHMLBA): Remove macro.
11721 (__getpagesize): Remove function declaration.
11722 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11723 <bits/shmlba.h>.
11724 (SHMLBA): Remove macro.
11725 (__getshmlba): Remove function declaration.
11726 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11727 (SHMLBA): Remove macro.
11728 (__getpagesize): Remove function declaration.
11729 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11730 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11731 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11732 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11733 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11734 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11735 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11736 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11737 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11738 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11739
11740 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11741
11742 [BZ #23275]
11743 * nptl/tst-mutex10.c: New File.
11744 * nptl/Makefile (tests): Add tst-mutex10.
11745 (tst-mutex10-ENV): New variable.
11746 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11747 Ensure that elision path is used if elision is available.
11748 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11749 Likewise.
11750 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11751 Likewise.
11752 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11753 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11754 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11755 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11756 Likewise.
11757 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11758 (__pthread_mutex_cond_lock_adjust): Likewise.
11759 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11760 Likewise.
11761 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11762 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11763 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11764 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11765 Add comments.
11766 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11767 Use atomic_load_relaxed and atomic_store_relaxed.
11768 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11769 Use atomic_store_relaxed.
11770
11771 2018-10-17 Andreas Schwab <schwab@suse.de>
11772
11773 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11774 * crypt/badsalttest.c (TIMEOUT): Likewise.
11775 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11776 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11777 * io/test-lfs.c (TIMEOUT): Likewise.
11778 * libio/tst-atime.c (TIMEOUT): Likewise.
11779 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11780 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11781 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11782 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11783 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11784 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11785 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11786 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11787 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11788 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11789 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11790 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11791 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11792 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11793 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11794 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11795 * nptl/tst-once2.c (TIMEOUT): Likewise.
11796 * nptl/tst-once3.c (TIMEOUT): Likewise.
11797 * nptl/tst-once4.c (TIMEOUT): Likewise.
11798 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11799 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11800 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11801 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11802 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11803 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11804 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11805 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11806 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11807 * posix/tst-chmod.c (TIMEOUT): Likewise.
11808 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11809 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11810 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11811 * posix/tst-regex2.c (TIMEOUT): Likewise.
11812 * posix/tst-waitid.c (TIMEOUT): Likewise.
11813 * rt/tst-aio.c (TIMEOUT): Likewise.
11814 * rt/tst-aio10.c (TIMEOUT): Likewise.
11815 * rt/tst-aio4.c (TIMEOUT): Likewise.
11816 * rt/tst-aio5.c (TIMEOUT): Likewise.
11817 * rt/tst-aio6.c (TIMEOUT): Likewise.
11818 * rt/tst-aio64.c (TIMEOUT): Likewise.
11819 * rt/tst-aio7.c (TIMEOUT): Likewise.
11820 * rt/tst-aio9.c (TIMEOUT): Likewise.
11821 * rt/tst-clock.c (TIMEOUT): Likewise.
11822 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11823 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11824 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11825 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11826 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11827 * rt/tst-timer4.c (TIMEOUT): Likewise.
11828 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11829 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11830 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11831 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11832 * time/tst-ftime.c (TIMEOUT): Likewise.
11833 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11834
11835 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11836
11837 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11838 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11839 for thunderX2.
11840
11841 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11842
11843 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11844 bits/sem-pad.h.
11845 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11846 instead of <bits/wordsize.h>.
11847 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11848 and [__SEM_PAD_AFTER_TIME].
11849 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11850 __syscall_ulong_t instead of unsigned long int.
11851 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11852 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11853 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11854 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11855 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11856 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11857 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11858 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11859 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11860 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11861 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11862
11863 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11864
11865 regex: simplify by using intprops.h
11866 [BZ#23744]
11867 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11868 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11869 intprops.h defines them.
11870
11871 regex: __builtin_expect → __glibc_unlikely
11872 [BZ#23744]
11873 This refactoring was prompted by a problem when the regex code is
11874 used as part of Gnulib and when the builder’s compiler does not grok
11875 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11876 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11877 Although this refactoring does not fix the problem directly,
11878 we might as well have Gawk use the now-preferred glibc style for when
11879 __builtin_expect is unavailable.
11880 * posix/regex_internal.h (BE): Remove.
11881 All uses replaced by __glibc_unlikely or __glibc_likely.
11882
11883 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11884
11885 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11886 bits/msq-pad.h.
11887 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11888 instead of <bits/wordsize.h>.
11889 (msgqnum_t): Define as __syscall_ulong_t.
11890 (msglen_t): Likewise.
11891 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11892 and [__MSQ_PAD_AFTER_TIME].
11893 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11894 __syscall_ulong_t instead of unsigned long int.
11895 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11896 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11897 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11898 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11899 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11900 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11901 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11902 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11903 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11904 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11905 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11906
11907 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11908
11909 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11910 (struct shmid_ds): Condition padding after time fields on
11911 [__WORDSIZE == 32].
11912 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11913 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11914 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11915
11916 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11917 (struct semid_ds): Condition padding after time fields on
11918 [__WORDSIZE == 32].
11919 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11920 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11921 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11922 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11923
11924 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11925 (struct msqid_ds): Condition padding after time fields on
11926 [__WORDSIZE == 32].
11927 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11928 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11929 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11930 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11931
11932 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11933
11934 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11935
11936 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11937
11938 * libio/tst-readline.c (TIMEOUT): Define.
11939
11940 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11941
11942 mktime fix for Gnulib + coreutils
11943 [BZ#23745]
11944 This fix affects only Gnulib. Problem discovered when
11945 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11946 * time/mktime.c:
11947 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11948 Do not define since it is not used. Defining an unused static
11949 function prompts a warning from GCC when Coreutils is configured
11950 with --enable-gcc-warnings.
11951
11952 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11953
11954 * benchtests/scripts/compare_bench.py (main): set float type on
11955 threshold argument.
11956
11957 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11958
11959 [BZ #23740]
11960 * localedata/locales/kl_GL (mon): Update, the relative case.
11961 (alt_mon): Add, fill with month names in the nominative case.
11962 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11963 (d_fmt): Set to "%b %d %Y".
11964
11965 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11966
11967 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11968 <bits/mman-linux.h>.
11969 (PROT_READ): Don't define here.
11970 (PROT_WRITE): Likewise.
11971 (PROT_EXEC): Likewise.
11972 (PROT_NONE): Likewise.
11973 (PROT_GROWSDOWN): Likewise.
11974 (PROT_GROWSUP): Likewise.
11975 (MAP_SHARED): Likewise.
11976 (MAP_PRIVATE): Likewise.
11977 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11978 [__USE_MISC] (MAP_FILE): Likewise.
11979 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11980 [__USE_MISC] (MAP_ANON): Likewise.
11981 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11982 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11983 (MCL_CURRENT): Likewise.
11984 (MCL_FUTURE): Likewise.
11985 (MCL_ONFAULT): Likewise.
11986 [__USE_MISC] (MADV_NORMAL): Likewise.
11987 [__USE_MISC] (MADV_RANDOM): Likewise.
11988 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11989 [__USE_MISC] (MADV_WILLNEED): Likewise.
11990 [__USE_MISC] (MADV_DONTNEED): Likewise.
11991 [__USE_MISC] (MADV_FREE): Likewise.
11992 [__USE_MISC] (MADV_REMOVE): Likewise.
11993 [__USE_MISC] (MADV_DONTFORK): Likewise.
11994 [__USE_MISC] (MADV_DOFORK): Likewise.
11995 [__USE_MISC] (MADV_HWPOISON): Likewise.
11996 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11997 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11998 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11999 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
12000 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
12001 (__MAP_ANONYMOUS): New macro.
12002 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
12003 <bits/mman-linux.h> inclusion.
12004 (MAP_FIXED): Likewise.
12005 (MS_SYNC): Likewise.
12006 (MS_ASYNC): Likewise.
12007 (MS_INVALIDATE): Likewise.
12008 [__USE_MISC] (MADV_MERGEABLE): Likewise.
12009 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
12010 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
12011 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
12012 [__USE_MISC] (MADV_DONTDUMP): Likewise.
12013 [__USE_MISC] (MADV_DODUMP): Likewise.
12014 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
12015 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
12016
12017 [BZ #23735]
12018 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
12019 Define.
12020 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
12021 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
12022 Add test-nldbl-redirect.
12023 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
12024 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
12025 $(objpfx)libnldbl_nonshared.a.
12026
12027 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
12028
12029 * support/support.h (support_objdir_elf_ldso): New variable.
12030 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
12031 * support/Makefile (CFLAGS-support_paths.c): Add definition
12032 for OBJDIR_ELF_LDSO_PATH.
12033 * support/test-container.c (main): Search for the ld.so
12034 which is also used by the testsuite.
12035
12036 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
12037
12038 [BZ #20209]
12039 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
12040 should be "sap" rather than "sab".
12041 (day): Fix spelling of Sunday, should be "sapaat" rather than
12042 "sabaat".
12043
12044 2018-10-02 Joseph Myers <joseph@codesourcery.com>
12045
12046 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12047
12048 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
12049
12050 [BZ #19444]
12051 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
12052 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
12053 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
12054
12055 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12056
12057 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
12058
12059 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
12060
12061 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
12062 Add -mrtm.
12063 (CFLAGS-elision-unlock.c): Likewise.
12064 (CFLAGS-elision-timed.c): Likewise.
12065 (CFLAGS-elision-trylock.c): Likewise.
12066 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
12067
12068 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12069
12070 [BZ #21037]
12071 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
12072 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
12073 new fd_to_filename interface.
12074 * libio/freopen64.c (freopen64): Likewise.
12075 * libio/tst-memstream.h: New file.
12076 * libio/tst-memstream4.c: Likewise.
12077 * libio/tst-wmemstream4.c: Likewise.
12078 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
12079 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
12080 and remove internal dynamic allocation.
12081
12082 2018-10-01 Joseph Myers <joseph@codesourcery.com>
12083
12084 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
12085 (MREMAP_MAYMOVE): Do not define here.
12086 [__USE_GNU] (MREMAP_FIXED): Likewise.
12087 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
12088 (MREMAP_MAYMOVE): Define here instead.
12089 [__USE_GNU] (MREMAP_FIXED): Likewise.
12090 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
12091 (MREMAP_MAYMOVE): Remove.
12092 [__USE_GNU] (MREMAP_FIXED): Likewise.
12093
12094 2018-09-28 Joseph Myers <joseph@codesourcery.com>
12095
12096 * math/fromfp.h: Do not include <math_private.h>.
12097 * math/s_cacosh_template.c: Likewise.
12098 * math/s_casin_template.c: Likewise.
12099 * math/s_casinh_template.c: Likewise.
12100 * math/s_ccos_template.c: Likewise.
12101 * math/s_cproj_template.c: Likewise.
12102 * math/s_fdim_template.c: Likewise.
12103 * math/s_fmaxmag_template.c: Likewise.
12104 * math/s_fminmag_template.c: Likewise.
12105 * math/s_iseqsig_template.c: Likewise.
12106 * math/s_ldexp_template.c: Likewise.
12107 * math/s_nextdown_template.c: Likewise.
12108 * math/w_log1p_template.c: Likewise.
12109 * math/w_scalbln_template.c: Likewise.
12110 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12111 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12112 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12113 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12114 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12115 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12116 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12117 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12118 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12119 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12120 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12121 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12122 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12123 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12124 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12125 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12126 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12127 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12128 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12129 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12130 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12131 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12132 * sysdeps/ieee754/k_standardf.c: Likewise.
12133 * sysdeps/ieee754/k_standardl.c: Likewise.
12134 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12135 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12136 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12137 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12138 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12139 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12140 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12141 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12142 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12143 * sysdeps/ieee754/s_signgam.c: Likewise.
12144 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12145 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12146 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12147 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12148 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12149 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12150 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12151 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12152 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12153 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12154 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12155 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12156 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12157 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12158 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12159 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12160 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12161 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12162 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12163 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12164 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12165 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12166 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12167 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12168 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12169 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12170 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12171 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12172 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12173 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12174 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12175 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12176 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12177 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12178 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12179 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12180 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12181 <math_private.h>.
12182 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12183
12184 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12185
12186 [BZ #23716]
12187 * sysdeps/i386/dl-cet.c: Removed.
12188 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12189 prototype.
12190 (_dl_runtime_profile_shstk): Likewise.
12191 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12192 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12193
12194 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12195
12196 [BZ #23579]
12197 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12198 do_test_with_invalid_iov): New tests.
12199 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12200 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12201 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12202 errno is ENOSYS.
12203 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12204 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12205 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12206
12207 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12208
12209 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12210 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12211 (MATH_REDIRECT_BINARY_ARGS): New macro.
12212 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12213 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12214 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12215 header inclusion.
12216 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12217 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12218 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12219 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12220 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12221 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12222 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12223 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12224 Likewise.
12225 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12226 Likewise.
12227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12229 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12230 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12231 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12232 Likewise.
12233 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12234 Likewise.
12235 * sysdeps/generic/math_private_calls.h
12236 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12237 Do not declare and define as an inline function.
12238 * math/divtc3.c (__divtc3): Use copysign functions instead of
12239 __copysign variants.
12240 * math/multc3.c (__multc3): Likewise.
12241 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12242 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12243 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12244 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12245 Likewise.
12246 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12247 (__ieee754_yn): Likewise.
12248 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12249 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12250 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12251 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12252 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12253 (__sin): Likewise.
12254 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12255 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12256 Likewise.
12257 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12258 Likewise.
12259 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12260 Likewise.
12261 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12262 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12263 Likewise.
12264 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12265 (__ieee754_ynf): Likewise.
12266 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12267 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12268 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12269 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12270 Likewise.
12271 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12272 (__ieee754_ynl): Likewise.
12273 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12274 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12275 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12276 Likewise.
12277 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12278 (__ieee754_ynl): Likewise.
12279 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12280 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12281 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12282 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12283 Likewise.
12284 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12285 (__ieee754_ynl)
12286 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12287 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12288 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12289 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12290 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12291
12292 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12293 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12294 using MATH_REDIRECT.
12295 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12296 header inclusion.
12297 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12298 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12299 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12300 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12301 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12302 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12303 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12304 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12306 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12307 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12308 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12309 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12310 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12311 (round): Redirect to __round.
12312 (__roundl): Call round instead of __round.
12313 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12314 Remove macro.
12315 [_ARCH_PWR5X] (__roundf): Likewise.
12316 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12317 functions instead of __round variants.
12318 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12319 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12320 Likewise.
12321 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12322 Likewise.
12323 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12324 Likewise.
12325 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12326 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12327 __lroundl.
12328 (__ieee754_expl): Call roundl instead of __roundl.
12329
12330 2018-09-27 Andreas Schwab <schwab@suse.de>
12331
12332 [BZ #23717]
12333 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12334 (do_test): Make st1 static.
12335
12336 2018-09-26 Andreas Schwab <schwab@suse.de>
12337
12338 [BZ #23707]
12339 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12340 * elf/Makefile (tests): Add tst-unwind-ctor.
12341 (modules-names): Add tst-unwind-ctor-lib.
12342 ($(objpfx)tst-unwind-ctor): Depend on
12343 $(objpfx)tst-unwind-ctor-lib.so.
12344
12345 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12346
12347 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12348 file. Most contents moved from ....
12349 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12350 and include <bits/mman-map-flags-generic.h>.
12351 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12352 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12353 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12354 <bits/mman-map-flags-generic.h>.
12355 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12356 macros defined in <bits/mman-map-flags-generic.h>.
12357 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12358 <bits/mman-map-flags-generic.h>.
12359 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12360 defined in <bits/mman-map-flags-generic.h>.
12361
12362 2018-09-26 Andreas Schwab <schwab@suse.de>
12363
12364 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12365 output.
12366
12367 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12368 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12369 Fangrui Song <maskray@google.com>
12370
12371 [BZ #20480]
12372 * config.make.in (have-textrel_ifunc): New define.
12373 * configure.ac: Add check if linker supports textrel relocation with
12374 ifunc.
12375 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12376 tst-ifunc-textrel.
12377 (CFLAGS-tst-ifunc-textrel.c): New rule.
12378 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12379 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12380 * elf/tst-ifunc-textrel.c: New file.
12381
12382 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12383
12384 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12385 <bits/procfs-prregset.h>.
12386 (prgregset_t): Define using __prgregset_t.
12387 (prfpregset_t): Define using __prfpregset_t.
12388 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12389 (sysdep_headers): Add bits/procfs-prregset.h.
12390 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12391 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12392 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12393 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12394
12395 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12396 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12397 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12398 pr_uid and pr_gid.
12399 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12400 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12401 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12402 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12403 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12404 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12405 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12406 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12407 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12408 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12409 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12410 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12411 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12412 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12413 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12414 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12415 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12416 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12417 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12418 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12419 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12420 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12421 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12422 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12423
12424 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12425 AArch64 version. Include <bits/procfs.h>.
12426 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12427 (sysdep_headers): Add bits/procfs.h.
12428 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12429 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12430 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12431 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12432 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12433 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12434 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12435 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12436 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12437 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12438 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12439 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12440 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12441 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12442 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12443 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12444 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12445
12446 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12447
12448 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12449 Use libsupport.
12450
12451 2018-09-25 Arjun Shankar <arjun@redhat.com>
12452
12453 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12454 (__gconv_max_path_elem_len): Likewise.
12455 (__gconv_nmodules): Likewise.
12456 (__gconv_get_path): Likewise.
12457 (path_elem): Move to ...
12458 * iconv/gconv_conf.c: ... here.
12459 (__gconv_get_path): Mark function static.
12460 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12461 * iconv/gconv_open.c: ... here.
12462
12463 2018-09-24 Andreas Schwab <schwab@suse.de>
12464
12465 * scripts/haveversions.awk: New file.
12466 * Makerules ($(common-objpfx)Versions.def)
12467 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12468 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12469 Move rules ...
12470 * Makeconfig ($(common-objpfx)Versions.def)
12471 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12472 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12473 ... here.
12474 ($(common-objpfx)Versions.mk): New rule. Include it.
12475 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12476 Emit error if build-obsolete-nsl = yes.
12477 * manual/install.texi (Configuring and compiling): Describe
12478 --enable-obsolete-nsl as unavaiable after version 2.28.
12479 * INSTALL: Regenerate.
12480
12481 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12482
12483 * NEWS: Add note about new TLE support on powerpc64le.
12484 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12485 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12486 __ununsed1.
12487 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12488 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12489 * sysdeps/powerpc/powerpc32/sysdep.h,
12490 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12491 ABORT_TRANSACTION): Remove macros.
12492 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12493 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12494 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12496 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12497 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12498 usage.
12499 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12500
12501 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12502
12503 [BZ #10425]
12504 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12505 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12506 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12507 which is the same as in it_IT.
12508 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12509 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12510
12511 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12512
12513 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12514 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12515 using MATH_REDIRECT.
12516 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12517 header inclusion.
12518 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12519 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12520 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12521 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12522 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12523 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12524 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12528 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12529 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12530 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12531 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12532 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12533 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12534 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12535 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12536 (ceil): Redirect to __ceil.
12537 (floor): Redirect to __floor.
12538 (trunc): Redirect to __trunc.
12539 (__truncl): Call trunc instead of __trunc.
12540 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12541 Remove macro.
12542 [_ARCH_PWR5X] (__truncf): Likewise.
12543 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12544 trunc functions instead of __trunc variants.
12545 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12546 Likewise.
12547 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12548 Likewise.
12549 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12550 Likewise.
12551 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12552 Likewise.
12553
12554 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12555 [__i586__ || __pentium__].
12556 [__i486__]: Handle explicitly.
12557 (HAS_CPUID): Define to 1 if above macros are undefined.
12558 (HAS_I586): Likewise.
12559 (HAS_I686): Likewise.
12560
12561 2018-09-20 Florian Weimer <fweimer@redhat.com>
12562
12563 * misc/tst-gethostid.c: New file.
12564 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12565 (tst-gethostid): Link with -ldl.
12566
12567 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12568
12569 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12570 value from gethostbyname_r.
12571
12572 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12573
12574 * stdlib/tst-setcontext9.c (f1): Rename to...
12575 (f1a): ... this.
12576 (f1b): New function implementing lower half of f1 in alternate stack.
12577
12578 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12579
12580 Fix mktime localtime offset confusion
12581 [BZ #23603]
12582 * include/time.h (__mktime_internal): The localtime offset is now
12583 of type long int instead of time_t. This is the longstanding type
12584 in glibc, and it is more than enough to represent difference
12585 between localtime and gmtime even if it is 32 bits and time_t is
12586 64. Changing it now will let us avoid an unnecessary change when
12587 time_t is widened to 64 bits on 32-bit platforms.
12588 * time/mktime-internal.h (mktime_offset_t): Now long int.
12589
12590 Merge mktime, timegm from upstream Gnulib
12591 [BZ #23603][BZ #16346]
12592 This fixes some obscure problems with integer overflow.
12593 Although it looks scary, it is almost all a byte-for-byte copy
12594 from Gnulib, and the Gnulib code has been tested reasonably well.
12595 * include/intprops.h: New file, copied from Gnulib.
12596 * include/verify.h, time/mktime-internal.h:
12597 New tiny files, simplified from Gnulib.
12598 * time/mktime.c: Copy from Gnulib. This has the following changes:
12599 Do not include config.h if DEBUG_MKTIME is nonzero.
12600 Include stdbool.h, intprops.h, verify.h.
12601 Include string.h only if needed.
12602 Include stdlib.h on MS-Windows.
12603 Include mktime-internal.h.
12604 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12605 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12606 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12607 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12608 simplify later conditionals; default the others to zero. Use
12609 these conditionals to express only the code needed on the current
12610 platform. In uses of these conditionals, explicitly spell out how
12611 _LIBC affects things, so it’s easier to review from a glibc
12612 viewpoint.
12613 (WRAPV): Remove; no longer needed now that we have
12614 systematic overflow checking.
12615 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12616 compartmentalize tzset issues. Move system-dependent tzsettish
12617 code here from mktime.
12618 (verify): Remove; now done by verify.h. All uses changed.
12619 (long_int): Use a more-conservative definition, to avoid
12620 integer overflow.
12621 (SHR): Remove, replacing with ...
12622 (shr): New function, which means we needn’t worry about side
12623 effects in args, and conversion analysis is simpler.
12624 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12625 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12626 (time_t_avg, time_t_add_ok): Remove.
12627 (mktime_min, mktime_max): New constants.
12628 (leapyear, isdst_differ): Use bool for booleans.
12629 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12630 Use long_int, not time_t, for mktime differences.
12631 (long_int_avg): New function, replacing time_t_avg.
12632 INT_ADD_WRAPV replaces time_t_add_ok.
12633 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12634 All uses changed.
12635 (convert_time): New function.
12636 (ranged_convert): Use it.
12637 (__mktime_internal): Last arg now points to mktime_offset_t, not
12638 time_t. All uses changed. This is a no-op on glibc, where
12639 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12640 offset guess. Directly check for integer overflow instead of
12641 using a heuristic that works only 99.9...% of the time.
12642 Access *OFFSET only once, to avoid an unlikely race if the
12643 compiler delays a load and if this cascades into a signed integer
12644 overflow.
12645 (mktime): Move tzsettish code to my_tzset, and move
12646 localtime_offset to within mktime so that it doesn’t
12647 need a separate ifdef.
12648 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12649 instead of localtime.
12650 * time/timegm.c: Copy from Gnulib. This has the following changes:
12651 Include mktime-internal.h.
12652 [!_LIBC]: Include config.h and time.h. Do not include
12653 timegm.h or time_r.h. Make __mktime_internal a macro,
12654 and include mktime-internal.h to get its declaration.
12655 (timegm): Temporary is now mktime_offset_t, not time_t.
12656 This affects only Gnulib.
12657
12658 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12659
12660 [BZ #23637]
12661 * string/test-strstr.c (pr23637): New function.
12662 (test_main): Add tests with longer needles.
12663 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12664 * string/strstr.c (AVAILABLE): Likewise.
12665
12666 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12667
12668 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12669
12670 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12671
12672 * NEWS: Mention pow improvements.
12673 * math/Makefile (type-double-routines): Add e_pow_log_data.
12674 * sysdeps/generic/math_private.h (__exp1): Remove.
12675 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12676 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12677 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12678 contraction.
12679 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12680 (exp_inline): Remove.
12681 (__ieee754_exp): Only single double input is handled.
12682 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12683 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12684 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12685 (__pow_log_data): Define.
12686 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12687 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12688 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12689 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12690 contraction.
12691 (CFLAGS-e_pow-fma4.c): Likewise.
12692
12693 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12694
12695 Simplify tzfile fstat failure code
12696 [BZ #21716]
12697 * time/tzfile.c (__tzfile_read): Simplify slightly.
12698
12699 Fix tzfile low-memory assertion failure
12700 [BZ #21716]
12701 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12702 when registering time zone abbreviations.
12703
12704 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12705
12706 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12707 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12708 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12709 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12710 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12711 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12712 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12713 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12714 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12715
12716 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12717 __ceil.
12718 (__ceill): Call ceil instead of __ceil.
12719 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12720 __floor.
12721 (__floorl): Call floor instead of __floor.
12722
12723 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12724
12725 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12726 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12727 using MATH_REDIRECT.
12728 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12729 header inclusion.
12730 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12731 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12732 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12733 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12734 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12735 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12736 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12737 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12738 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12739 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12740 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12742 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12743 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12744 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12745 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12746 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12747 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12748 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12749 Remove macro.
12750 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12751 functions instead of __ceil variants.
12752 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12753 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12754 Likewise.
12755 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12756 Likewise.
12757 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12758 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12759 Likewise.
12760 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12761 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12762
12763 [BZ #21286]
12764 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12765 constant.
12766 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12767 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12768 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12769 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12770 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12771 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12772 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12773 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12774 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12775 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12776 (ILL_BADIADDR): Remove constant.
12777 (TRAP_BRANCH): Likewise.
12778 (TRAP_HWBKPT): Likewise.
12779
12780 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12781
12782 [BZ #23656]
12783 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12784 Remove [_MIPS_SIM = _ABIN32] conditional case.
12785 (struct elf_prpsinfo): Likewise.
12786
12787 [BZ #23649]
12788 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12789 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12790 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12791 Likewise.
12792 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12793 elf_prpsinfo): Likewise.
12794 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12795 elf_prpsinfo): Likewise.
12796 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12797 Likewise.
12798
12799 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12800 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12801 using MATH_REDIRECT.
12802 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12803 header inclusion.
12804 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12805 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12806 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12807 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12808 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12809 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12810 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12811 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12812 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12813 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12814 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12815 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12816 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12817 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12818 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12819 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12820 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12821 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12822 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12823 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12825 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12826 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12827 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12828 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12829 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12830 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12831 __rint variants.
12832 * math/e_scalbf.c (invalid_fn): Likewise.
12833 * math/e_scalbl.c (invalid_fn): Likewise.
12834 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12835 Likewise.
12836 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12837 Likewise.
12838 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12839 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12840 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12841 Likewise.
12842 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12843 Likewise.
12844 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12845 Likewise.
12846 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12847 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12848
12849 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12850 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12851 New macro.
12852 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12853 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12854 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12855 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12856 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12857 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12858 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12859 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12860 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12861 && !NO_MATH_REDIRECT] (floor): Likewise.
12862 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12863 header inclusion.
12864 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12865 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12866 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12867 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12868 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12869 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12870 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12871 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12872 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12873 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12875 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12876 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12877 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12878 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12879 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12880 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12881 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12882 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12883 Remove macro.
12884 [_ARCH_PWR5X] (__floorf): Likewise.
12885 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12886 inline function.
12887 [__SSE4_1__] (__floorf): Likewise.
12888 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12889 instead of __floor variants.
12890 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12891 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12892 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12893 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12894 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12895 * math/w_tgamma_compat.c (__tgamma): Likewise.
12896 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12897 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12898 * math/w_tgammal_compat.c (__tgammal): Likewise.
12899 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12900 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12901 Likewise.
12902 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12903 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12904 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12905 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12906 Likewise.
12907 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12908 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12909 Likewise.
12910 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12911 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12912 Likewise.
12913 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12914 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12915 Likewise.
12916 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12917 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12918 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12919 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12920 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12921 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12922
12923 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12924
12925 * elf/Makefile (modules-names-tests): New variable.
12926
12927 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12928
12929 * NEWS: Mention log2 improvements.
12930 * math/Makefile (type-double-routines): Add e_log2_data.
12931 * sysdeps/i386/fpu/e_log2_data.c: New file.
12932 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12933 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12934 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12935 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12936 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12937 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12938
12939 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12940
12941 * NEWS: Mention log improvement.
12942 * math/Makefile (type-double-routines): Add e_log_data.
12943 * sysdeps/i386/fpu/e_log_data.c: New file.
12944 * sysdeps/ia64/fpu/e_log_data.c: New file.
12945 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12946 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12947 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12948 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12949 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12950 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12951
12952 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12953 Xuepeng Guo <xuepeng.guo@intel.com>
12954
12955 [BZ #23606]
12956 * sysdeps/i386/start.S: Include <sysdep.h>
12957 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12958 enabled. Add cfi_undefined (eip).
12959
12960 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12961
12962 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12963 (MOVQ): Likewise.
12964 (EXTRACT_WORDS64): Likewise.
12965 (INSERT_WORDS64): Likewise.
12966 (GET_FLOAT_WORD): Likewise.
12967 (SET_FLOAT_WORD): Likewise.
12968
12969 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12970 argument.
12971 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12972 build, but not for second build if --full-gcc. Use
12973 --enable-languages=all for second build if --full-gcc.
12974 (get_parser): Add --full-gcc option.
12975 (main): Update call to Context.
12976
12977 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12978
12979 [BZ #10797]
12980 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12981 Single Quotation Mark).
12982 (thousands_sep): Likewise.
12983 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12984 * localedata/locales/it_IT (thousands_sep): Use ".".
12985 (grouping): Use "3;3".
12986
12987 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12988
12989 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12990 x86_64 and i686 configs using --enable-obsolete-rpc
12991 --enable-obsolete-nsl.
12992
12993 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12994
12995 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12996
12997 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12998
12999 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
13000 Increment size of new_argv by one.
13001
13002 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
13003
13004 [BZ #17426]
13005 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
13006 * localedata/locales/ar_IN (d_fmt): Likewise.
13007 * localedata/locales/bhb_IN (d_fmt): Likewise.
13008 * localedata/locales/bho_IN (d_fmt): Likewise.
13009 * localedata/locales/bn_BD (d_fmt): Likewise.
13010 * localedata/locales/bn_IN (d_fmt): Likewise.
13011 * localedata/locales/doi_IN (d_fmt): Likewise.
13012 * localedata/locales/gu_IN (d_fmt): Likewise.
13013 * localedata/locales/hi_IN (d_fmt): Likewise.
13014 * localedata/locales/hne_IN (d_fmt): Likewise.
13015 * localedata/locales/kn_IN (d_fmt): Likewise.
13016 * localedata/locales/mag_IN (d_fmt): Likewise.
13017 * localedata/locales/mai_IN (d_fmt): Likewise.
13018 * localedata/locales/mjw_IN (d_fmt): Likewise.
13019 * localedata/locales/ml_IN (d_fmt): Likewise.
13020 * localedata/locales/mni_IN (d_fmt): Likewise.
13021 * localedata/locales/mr_IN (d_fmt): Likewise.
13022 * localedata/locales/pa_IN (d_fmt): Likewise.
13023 * localedata/locales/raj_IN (d_fmt): Likewise.
13024 * localedata/locales/sat_IN (d_fmt): Likewise.
13025 * localedata/locales/sd_IN (d_fmt): Likewise.
13026 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
13027 * localedata/locales/ta_IN (d_fmt): Likewise.
13028 * localedata/locales/ta_LK (d_fmt): Likewise.
13029 * localedata/locales/tcy_IN (d_fmt): Likewise.
13030 * localedata/locales/ur_IN (d_fmt): Likewise.
13031
13032 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
13033 * localedata/locales/ks_IN (d_fmt): Likewise.
13034 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
13035
13036 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
13037 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
13038 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
13039 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
13040
13041 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
13042
13043 * NEWS: Mention exp and exp2 improvements.
13044 * math/Makefile (libm-support): Remove t_exp.
13045 (type-double-routines): Add math_err and e_exp_data.
13046 * sysdeps/aarch64/libm-test-ulps: Update.
13047 * sysdeps/arm/libm-test-ulps: Update.
13048 * sysdeps/i386/fpu/e_exp_data.c: New file.
13049 * sysdeps/i386/fpu/math_err.c: New file.
13050 * sysdeps/i386/fpu/t_exp.c: Remove.
13051 * sysdeps/ia64/fpu/e_exp_data.c: New file.
13052 * sysdeps/ia64/fpu/math_err.c: New file.
13053 * sysdeps/ia64/fpu/t_exp.c: Remove.
13054 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
13055 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
13056 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
13057 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
13058 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
13059 * sysdeps/ieee754/dbl-64/math_config.h: New file.
13060 * sysdeps/ieee754/dbl-64/math_err.c: New file.
13061 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
13062 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
13063 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
13064 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
13065 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
13066 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
13067 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
13068 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13069 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13070
13071 2018-09-05 Joseph Myers <joseph@codesourcery.com>
13072
13073 * sysdeps/alpha/fpu/math_private.h: Remove.
13074
13075 * sysdeps/generic/math_private.h
13076 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
13077 Move this inline function ....
13078 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
13079 * include/math.h [!_ISOMAC]: To here....
13080
13081 2018-09-04 Joseph Myers <joseph@codesourcery.com>
13082
13083 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
13084 code ....
13085 [!FE_HAVE_ROUNDING_MODES]: And this code ....
13086 * include/fenv.h [!_ISOMAC]: ... to here.
13087 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
13088 (feraiseexcept): Likewise.
13089 * math/fromfp.h: Do not include <fenv_private.h>.
13090 * math/s_cexp_template.c: Likewise.
13091 * math/s_csin_template.c: Likewise.
13092 * math/s_csinh_template.c: Likewise.
13093 * math/s_ctan_template.c: Likewise.
13094 * math/s_ctanh_template.c: Likewise.
13095 * math/s_iseqsig_template.c: Likewise.
13096 * math/w_acos_compat.c: Likewise.
13097 * math/w_acosf_compat.c: Likewise.
13098 * math/w_acosl_compat.c: Likewise.
13099 * math/w_asin_compat.c: Likewise.
13100 * math/w_asinf_compat.c: Likewise.
13101 * math/w_asinl_compat.c: Likewise.
13102 * math/w_j0_compat.c: Likewise.
13103 * math/w_j0f_compat.c: Likewise.
13104 * math/w_j0l_compat.c: Likewise.
13105 * math/w_j1_compat.c: Likewise.
13106 * math/w_j1f_compat.c: Likewise.
13107 * math/w_j1l_compat.c: Likewise.
13108 * math/w_jn_compat.c: Likewise.
13109 * math/w_jnf_compat.c: Likewise.
13110 * math/w_log10_compat.c: Likewise.
13111 * math/w_log10f_compat.c: Likewise.
13112 * math/w_log10l_compat.c: Likewise.
13113 * math/w_log2_compat.c: Likewise.
13114 * math/w_log2f_compat.c: Likewise.
13115 * math/w_log2l_compat.c: Likewise.
13116 * math/w_log_compat.c: Likewise.
13117 * math/w_logf_compat.c: Likewise.
13118 * math/w_logl_compat.c: Likewise.
13119 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13120 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13121 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13122 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13123 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13124 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13125 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13126 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13127 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13128 * sysdeps/ieee754/k_standardl.c: Likewise.
13129 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13130 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13131 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13132 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13133 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13134 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13135 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13136 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13137 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13138 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13139 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13140 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13141 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13142 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13143 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13144 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13145 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13146 * math/w_ilogb_template.c: Include <fenv.h> instead of
13147 <fenv_private.h>.
13148 * math/w_llogb_template.c: Likewise.
13149 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13150 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13151
13152 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13153
13154 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13155 * math/fromfp.h: Include <fenv_private.h>.
13156 * math/math-narrow.h: Likewise.
13157 * math/s_cexp_template.c: Likewise.
13158 * math/s_csin_template.c: Likewise.
13159 * math/s_csinh_template.c: Likewise.
13160 * math/s_ctan_template.c: Likewise.
13161 * math/s_ctanh_template.c: Likewise.
13162 * math/s_iseqsig_template.c: Likewise.
13163 * math/w_acos_compat.c: Likewise.
13164 * math/w_acosf_compat.c: Likewise.
13165 * math/w_acosl_compat.c: Likewise.
13166 * math/w_asin_compat.c: Likewise.
13167 * math/w_asinf_compat.c: Likewise.
13168 * math/w_asinl_compat.c: Likewise.
13169 * math/w_ilogb_template.c: Likewise.
13170 * math/w_j0_compat.c: Likewise.
13171 * math/w_j0f_compat.c: Likewise.
13172 * math/w_j0l_compat.c: Likewise.
13173 * math/w_j1_compat.c: Likewise.
13174 * math/w_j1f_compat.c: Likewise.
13175 * math/w_j1l_compat.c: Likewise.
13176 * math/w_jn_compat.c: Likewise.
13177 * math/w_jnf_compat.c: Likewise.
13178 * math/w_llogb_template.c: Likewise.
13179 * math/w_log10_compat.c: Likewise.
13180 * math/w_log10f_compat.c: Likewise.
13181 * math/w_log10l_compat.c: Likewise.
13182 * math/w_log2_compat.c: Likewise.
13183 * math/w_log2f_compat.c: Likewise.
13184 * math/w_log2l_compat.c: Likewise.
13185 * math/w_log_compat.c: Likewise.
13186 * math/w_logf_compat.c: Likewise.
13187 * math/w_logl_compat.c: Likewise.
13188 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13189 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13190 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13191 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13192 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13193 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13194 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13195 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13196 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13197 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13198 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13199 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13200 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13201 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13202 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13203 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13204 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13205 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13206 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13207 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13208 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13209 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13210 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13211 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13212 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13213 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13214 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13215 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13216 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13217 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13218 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13219 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13220 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13221 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13222 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13223 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13224 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13225 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13226 * sysdeps/ieee754/k_standardl.c: Likewise.
13227 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13228 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13229 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13230 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13231 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13232 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13233 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13234 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13235 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13236 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13237 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13238 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13239 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13240 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13241 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13242 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13243 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13244 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13245 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13246 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13247 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13248 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13249 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13250 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13251 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13252 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13253 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13254 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13255 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13256 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13257 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13258 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13259 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13260 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13261 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13262 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13263 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13264 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13265 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13266 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13267 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13268 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13269 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13270 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13271 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13272 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13273 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13274 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13275 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13276 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13277 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13278 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13279 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13280 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13281 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13282 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13283 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13284 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13285 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13286 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13287 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13288 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13289 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13290 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13291 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13292 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13293 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13294 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13295 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13296 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13297 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13298
13299 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13300
13301 [BZ #20271]
13302 * include/stdio.h (__libc_fatal): Mention newline in comment.
13303 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13304 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13305 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13306 * nss/nsswitch.c (__nss_next2): Likewise.
13307 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13308 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13309 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13310 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13311 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13312 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13313 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13314 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13315 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13316 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13317 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13318 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13319 (__netlink_assert_response): Likewise.
13320
13321 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13322
13323 * conform/glibcconform.py: New file.
13324 * conform/list-header-symbols.py: Likewise.
13325 * conform/list-header-symbols.pl: Remove.
13326 * conform/Makefile (tests-special): Only add linknamespace tests
13327 if [PYTHON].
13328 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13329
13330 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13331
13332 [BZ #23597]
13333 * support/Makefile (libsupport-routines): Add
13334 support_copy_file_range and xcopy_file_range.
13335 * support/support.h: Include <sys/types.h>.
13336 (support_copy_file_range): New prototype.
13337 * support/support_copy_file_range.c: New file. Copied and
13338 modified from io/copy_file_range-compat.c.
13339 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13340 instead of copy_file_range.
13341 * support/xcopy_file_range.c: New file.
13342 * support/xunistd.h (xcopy_file_range): New prototype.
13343
13344 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13345
13346 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13347 xpthread_create and xpthread_join.
13348
13349 2018-08-30 Florian Weimer <fweimer@redhat.com>
13350
13351 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13352
13353 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13354
13355 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13356 if malloc fails.
13357
13358 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13359
13360 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13361 and minus_oflow as non-finite.
13362
13363 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13364
13365 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13366 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13367 moved to fenv_private.h except for ...
13368 (TOINT_INTRINSICS): Kept in math_private.h.
13369 (roundtoint): Likewise.
13370 (converttoint): Likewise.
13371 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13372 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13373 * sysdeps/arm/math_private.h: Remove.
13374 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13375 ....
13376 * sysdeps/generic/math_private.h: ... this file. Include
13377 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13378 Include <fenv_private.h>. Remove functions and macros moved to
13379 fenv_private.h.
13380 * sysdeps/i386/fpu/math_private.h: Remove.
13381 * sysdeps/mips/math_private.h: Move to ....
13382 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13383 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13384 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13385 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13386 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13387 * sysdeps/powerpc/fpu/math_private.h: Do not include
13388 <fenv_private.h>.
13389 * sysdeps/riscv/rvf/math_private.h: Move to ....
13390 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13391 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13392 <fenv_private.h>.
13393 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13394 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13395 * sysdeps/sparc/fpu/math_private.h: Remove.
13396 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13397 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13398 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13399 <fenv_private.h>.
13400 * sysdeps/x86_64/fpu/math_private.h: Do not include
13401 <sysdeps/i386/fpu/fenv_private.h>.
13402
13403 2018-08-28 Florian Weimer <fweimer@redhat.com>
13404
13405 [BZ #23578]
13406 * posix/tst-regcomp-truncated.c: New file.
13407 * posix/Makefile (tests): Add it.
13408 (tst-regcomp-truncated.out): Depend on generated locales.
13409
13410 2018-08-28 Florian Weimer <fweimer@redhat.com>
13411
13412 * support/test-container.c (main): Treat unshare failure with
13413 EPERM as an unsupported test.
13414
13415 2018-08-28 Florian Weimer <fweimer@redhat.com>
13416
13417 [BZ #23520]
13418 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13419 * nscd/netgroupcache.c
13420 (addgetnetgrentX): Add tofreep parameter. Do not free
13421 heap-allocated buffer.
13422 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13423 (addgetnetgrentX_ignore): New function.
13424 (addgetnetgrent): Call it.
13425 (readdgetnetgrent): Likewise.
13426
13427 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13428
13429 * string/memmem.c: Use memcmp for first match.
13430
13431 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13432
13433 [BZ #17426]
13434 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13435
13436 2018-08-27 DJ Delorie <dj@redhat.com>
13437
13438 * support/Makefile (others): Don't list programs explicitly as a
13439 dependency of "others".
13440
13441 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13442
13443 * sysdeps/generic/math-tests-trap-force.h: New file.
13444 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13445 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13446 * sysdeps/powerpc/math-tests.h: Remove file.
13447 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13448
13449 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13450 Torvald Riegel <triegel@redhat.com>
13451
13452 [BZ #23538]
13453 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13454 Update r to include the set wake-request flag if waiters are
13455 remaining after spinning.
13456
13457 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13458
13459 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13460
13461 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13462
13463 [BZ #23578]
13464 regex: fix uninitialized memory access
13465 I introduced this bug into gnulib in commit
13466 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13467 eventually it was merged into glibc. The bug was found by
13468 project-repo <bugs@feusi.co> and reported here:
13469 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13470 Diagnosis and draft fix reported by Assaf Gordon here:
13471 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13472 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13473 * posix/regex_internal.c (build_wcs_upper_buffer):
13474 Fix bug when mbrtowc returns 0.
13475
13476 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13477
13478 * po/be.po: Update translation.
13479
13480 2018-08-24 DJ Delorie <dj@delorie.com>
13481
13482 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13483 $(libunwind).
13484
13485 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13486
13487 [BZ #23400]
13488 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13489 create temporary files in source tree.
13490
13491 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13492
13493 * sysdeps/generic/math-tests-trap.h: New file.
13494 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13495 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13496 * sysdeps/aarch64/math-tests.h: Remove file.
13497 * sysdeps/arm/math-tests.h: Likewise.
13498 * sysdeps/riscv/math-tests.h: Likewise.
13499 * sysdeps/aarch64/math-tests-trap.h: New file.
13500 * sysdeps/arm/math-tests-trap.h: Likewise.
13501 * sysdeps/riscv/math-tests-trap.h: Likewise.
13502
13503 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13504
13505 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13506 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13507 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13508 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13509 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13510 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13511 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13512 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13513 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13514 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13515 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13516 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13517 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13518 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13519 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13520 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13521 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13522 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13523
13524 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13525
13526 * sysdeps/generic/math-tests-exceptions.h: New file.
13527 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13528 (EXCEPTION_TESTS_float): Do not define here.
13529 (EXCEPTION_TESTS_double): Likewise.
13530 (EXCEPTION_TESTS_long_double): Likewise.
13531 (EXCEPTION_TESTS_float128): Likewise.
13532 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13533 Likewise.
13534 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13535 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13536 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13537 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13538 * sysdeps/mips/math-tests.h: Likewise.
13539 * sysdeps/nios2/math-tests.h: Likewise.
13540 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13541 (EXCEPTION_TESTS_float): Do not define here.
13542 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13543 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13544 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13545
13546 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13547
13548 * NEWS: Move optimized sinf entry to 2.29.
13549
13550 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13551
13552 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13553
13554 2018-08-22 DJ Delorie <dj@redhat.com>
13555
13556 * Makefile (testroot.pristine): New rules to initialize the
13557 test-in-container "testroot".
13558 * Makerules (all-testsuite): Add tests-container.
13559 * Rules (tests-expected): Add tests-container.
13560 (binaries-all-tests): Likewise.
13561 (tests-container): New, run these tests in the testroot container.
13562 * support/Makefile (others): Add *-container, support_paths.c,
13563 xmkdirp, and links-dso-program.
13564 * support/links-dso-program-c.c: New.
13565 * support/links-dso-program.cc: New.
13566 * support/test-container.c: New.
13567 * support/shell-container.c: New.
13568 * support/echo-container.c: New.
13569 * support/true-container.c: New.
13570 * support/xmkdirp.c: New.
13571 * support/xsymlink.c: New.
13572 * support/support_paths.c: New.
13573 * support/support.h: Add support paths prototypes.
13574 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13575
13576 * nss/tst-nss-test3.c: Convert to test-in-container.
13577 * nss/tst-nss-test3.root/: New.
13578
13579 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13580
13581 regex: port Gnulib code to z/OS POSIX environment
13582 Problem reported by Arnold Robbins in:
13583 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13584 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13585 Undef.
13586
13587 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13588
13589 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13590 (ROUNDING_TESTS_double): Remove.
13591 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13592 (ROUNDING_TESTS_double): Remove.
13593 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13594 (ROUNDING_TESTS_double): Remove.
13595 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13596 (ROUNDING_TESTS_float): Remove.
13597 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13598 (ROUNDING_TESTS_float): Remove.
13599 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13600 (ROUNDING_TESTS_float): Remove.
13601 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13602 !TEST_MATHVEC here.
13603 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13604 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13605
13606 * sysdeps/generic/math-tests-rounding.h: New file.
13607 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13608 (ROUNDING_TESTS_float): Do not define here.
13609 (ROUNDING_TESTS_double): Likewise.
13610 (ROUNDING_TESTS_long_double): Likewise.
13611 (ROUNDING_TESTS_float128): Likewise.
13612 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13613 (ROUNDING_TESTS_double): Undefine before defining.
13614 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13615 (ROUNDING_TESTS_double): Undefine before defining.
13616 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13617 (ROUNDING_TESTS_double): Undefine before defining.
13618 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13619 (ROUNDING_TESTS_float): Undefine before defining.
13620 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13621 (ROUNDING_TESTS_float): Undefine before defining.
13622 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13623 (ROUNDING_TESTS_float): Undefine before defining.
13624 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13625 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13626 not define here.
13627 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13628 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13629 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13630 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13631 (ROUNDING_TESTS_float): Do not define here.
13632 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13633 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13634 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13635 (ROUNDING_TESTS_float): Likewise.
13636 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13637 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13638 * sysdeps/mips/math-tests.h [__mips_soft_float]
13639 (ROUNDING_TESTS_float): Likewise.
13640 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13641 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13642 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13643 (ROUNDING_TESTS_double): Likewise.
13644 (ROUNDING_TESTS_long_double): Likewise.
13645
13646 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13647
13648 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13649 (PF_XDP): New macro.
13650 (AF_XDP): New macro.
13651 (SOL_XDP): New macro.
13652
13653 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13654
13655 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13656 (TCP_INQ): Likewise.
13657 (TCP_CM_INQ): Likewise.
13658 (TCP_REPAIR_ON): Likewise.
13659 (TCP_REPAIR_OFF): Likewise.
13660 (TCP_REPAIR_OFF_NO_WP): Likewise.
13661 (struct tcp_zerocopy_receive): New type.
13662
13663 2018-08-21 Florian Weimer <fweimer@redhat.com>
13664
13665 * support/support.h (support_descriptor_supports_holes): Declare.
13666 * support/Makefile (libsupport-routines): Add
13667 support_descriptor_supports_holes.
13668 * support/support_descriptor_supports_holes.c: New file.
13669 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13670 and stop testing if holes are not supported.
13671 * io/test-lfs.c (do_prepare): Likewise.
13672 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13673 Likewise.
13674 * timezone/tst-tzset.c (create_tz_file): Likewise.
13675 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13676 variable.
13677 (do_prepare): Set it.
13678 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13679
13680 2018-08-21 Florian Weimer <fweimer@redhat.com>
13681
13682 [BZ #17248]
13683 * Makeconfig (+cflags): Do not sort (and deduplicate).
13684
13685 2018-08-21 Florian Weimer <fweimer@redhat.com>
13686
13687 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13688 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13689
13690 2018-08-20 Florian Weimer <fweimer@redhat.com>
13691
13692 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13693 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13694
13695 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13696
13697 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13698 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13699 and ssi_arch members.
13700
13701 * elf/elf.c (NT_VMCOREDD): New macro.
13702 (AT_MINSIGSTKSZ): Likewise.
13703
13704 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13705
13706 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13707 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13708 s_cosf-ppc64 and s_cosf-power8.
13709 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13710 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13711 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13712 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13714 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13715 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13719 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13720 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13721
13722 2018-08-17 Florian Weimer <fweimer@redhat.com>
13723
13724 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13725
13726 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13727
13728 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13729
13730 2018-08-16 Florian Weimer <fweimer@redhat.com>
13731
13732 * configure.ac: Add --with-nonshared-cflags option.
13733 * config.make.in (extra-nonshared-cflags): Set variable.
13734 * Makeconfig (CFLAGS-.oS): Use it.
13735 * manual/install.texi (Configuring and compiling): Document
13736 --with-nonshared-cflags.
13737 * configure: Regenerate.
13738 * INSTALL: Likewise.
13739
13740 2018-08-16 Florian Weimer <fweimer@redhat.com>
13741
13742 * Makeconfig (ASFLAGS): Always append required assembler flags.
13743
13744 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13745
13746 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13747 (malloc_consolidate): Likewise.
13748
13749 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13750
13751 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13752
13753 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13754
13755 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13756 every strlen call.
13757
13758 * benchtests/bench-strlen.c: Print performance numbers in json.
13759
13760 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13761
13762 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13763 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13764 only for little endian.
13765 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13766 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13767 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13768 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13769 Add check for little endian.
13770 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13771 (__strcmp_power9): Add check for little endian.
13772 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13773 Add check for little endian.
13774 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13775 (__strncmp_power9): Add check for little endian.
13776 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13777 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13778 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13779 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13780 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13781
13782 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13783
13784 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13785 [!STRLEN](STRLEN): Set to __strlen.
13786 * sysdeps/aarch64/multiarch/strlen.c: New file.
13787 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13788 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13789 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13790 (__libc_ifunc_impl_list): Add strlen.
13791 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13792 strlen_generic and strlen_asimd.
13793
13794 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13795
13796 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13797 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13798 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13799
13800 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13801
13802 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13803
13804 2018-08-14 Florian Weimer <fweimer@redhat.com>
13805
13806 [BZ #23519]
13807 * include/stdio.h (__vfxprintf): Declare.
13808 * stdio-common/fxprintf.c (__vfxprintf): New function.
13809 (__fxprintf): Call it.
13810 * misc/err.c (convert_and_print): Remove function.
13811 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13812 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13813 * misc/Makefile (tests): Add tst-warn-wide.
13814 * misc/tst-warn-wide.c: New file.
13815
13816 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13817 Szabolcs Nagy <szabolcs.nagy@arm.com>
13818
13819 * NEWS: Mention sinf, cosf, sincosf.
13820 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13821 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13822 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13823 constants rather than including generic sincosf.h.
13824 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13825 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13826 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13827 (reduced_cos): Remove.
13828 (sinf_poly): New function.
13829 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13830
13831 2018-08-14 Florian Weimer <fweimer@redhat.com>
13832
13833 [BZ #23521]
13834 [BZ #23522]
13835 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13836 processing, bail out if no room, and close the stream before
13837 returning ERANGE.
13838 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13839 (tst-nss-files-alias-leak): Link with libdl.
13840 (tst-nss-files-alias-leak.out): Depend on nss_files.
13841
13842 * nss/tst-nss-files-alias-leak.c: New file.
13843
13844 2018-08-14 Florian Weimer <fweimer@redhat.com>
13845
13846 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13847 server_user, stat_user.
13848
13849 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13850
13851 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13852 version to 4.18.
13853 (io_pgetevents): New syscall.
13854 (rseq): Likewise.
13855
13856 * manual/install.texi (Configuring and compiling): Do not list
13857 tools used for testing pretty printers here.
13858 (Tools for Compilation): List Python, PExpect and GDB here.
13859 Update descriptions of uses of Perl and Python.
13860 * INSTALL: Regenerate.
13861
13862 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13863 version to 4.18.
13864
13865 2018-08-13 Florian Weimer <fweimer@redhat.com>
13866
13867 * misc/error.c (error): Add missing va_end call.
13868 (error_at_line): Likewise.
13869
13870 2018-08-13 Florian Weimer <fweimer@redhat.com>
13871
13872 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13873
13874 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13875
13876 * benchtests/scripts/benchout.schema.json (properties): Add
13877 new properties.
13878
13879 * benchtests/bench-skeleton.c (main): Add duration and
13880 iterations attributes.
13881
13882 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13883
13884 regex: Gnulib unibyte RRI uses bytes not chars
13885 Adjust the non-glibc code to agree with what Gawk needs for
13886 rational range interpretation (RRI) for regular expression ranges.
13887 In unibyte locales, Gawk wants ranges to use the underlying byte
13888 rather than the character code point. This change does not affect
13889 glibc proper.
13890 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13891 In unibyte locales, use the byte value rather than
13892 running it through btowc.
13893
13894 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13895
13896 * sysdeps/generic/math-tests-snan.h: New file.
13897 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13898 (SNAN_TESTS_float): Do not define here.
13899 (SNAN_TESTS_double): Likewise.
13900 (SNAN_TESTS_long_double): Likewise.
13901 (SNAN_TESTS_float128): Likewise.
13902 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13903 * sysdeps/i386/fpu/math-tests.h: Remove file.
13904 * sysdeps/ia64/math-tests-snan.h: New file.
13905 * sysdeps/ia64/math-tests.h: Remove file.
13906 * sysdeps/x86/math-tests.h: Likewise.
13907 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13908
13909 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13910 Szabolcs Nagy <szabolcs.nagy@arm.com>
13911
13912 * math/Makefile: Add s_sincosf_data.c.
13913 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13914 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13915 (sincosf_poly): Likewise.
13916 (reduce_small): Likewise.
13917 (reduce_large): Likewise.
13918 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13919 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13920 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13921 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13922
13923 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13924 Szabolcs Nagy <szabolcs.nagy@arm.com>
13925
13926 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13927 (converttoint): Use lround.
13928 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13929 document the semantics when TOINT_INTRINSICS is set.
13930 (converttoint): Likewise.
13931 (TOINT_RINT): Remove.
13932 (TOINT_SHIFT): Remove.
13933 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13934 path.
13935
13936 2018-08-10 Florian Weimer <fweimer@redhat.com>
13937
13938 [BZ #23497]
13939 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13940 function.
13941 (__old_getdents64): Use getdents64. Convert entries without
13942 moving them.
13943 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13944 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13945 tst-readdir64-compat.
13946
13947 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13948
13949 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13950 Fix unwind.
13951
13952 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13953
13954 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13955 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13956 code to s390x-mcount.h and #include it.
13957 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13958 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13959 (__fentry__): Add.
13960
13961 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13962
13963 * stdlib/Versions: Remove __fentry__.
13964 * sysdeps/i386/Versions: Add __fentry__.
13965 * sysdeps/x86_64/Versions: Add __fentry__.
13966
13967 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13968
13969 * sysdeps/s390/Makefile: Register the new tests.
13970 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13971 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13972 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13973 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13974 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13975 * sysdeps/s390/tst-dl-runtime.c: New file.
13976
13977 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13978
13979 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13980 Do not clobber R0.
13981
13982 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13983
13984 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13985 Do not clobber R0.
13986
13987 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13988
13989 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13990 Do not clobber R0.
13991
13992 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13993
13994 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13995 Do not clobber R0.
13996
13997 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13998
13999 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14000 Use symbolic offsets for stack variables.
14001
14002 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14003
14004 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14005 Use symbolic offsets for stack variables.
14006
14007 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14008
14009 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14010 Use symbolic offsets for stack variables.
14011
14012 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14013
14014 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14015 Use symbolic offsets for stack variables.
14016
14017 2018-08-09 Joseph Myers <joseph@codesourcery.com>
14018
14019 * math/gen-libm-test.py: New file.
14020 * math/gen-libm-test.pl: Remove.
14021 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
14022 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
14023 gen-libm-test.pl.
14024 ($(libm-test-c-noauto-obj)): Likewise.
14025 ($(libm-test-c-auto-obj)): Likewise.
14026 ($(libm-test-c-narrow-obj)): Likewise.
14027 (regen-ulps): Likewise.
14028 * math/README.libm-test: Update references to gen-libm-test.pl.
14029 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
14030 referencing gen-libm-test.pl.
14031 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
14032 * math/libm-test-support.c: Likewise.
14033 * math/libm-test-support.h: Likewise.
14034 * sysdeps/generic/libm-test-ulps: Likewise.
14035
14036 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
14037
14038 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
14039 Fix value.
14040
14041 2018-08-08 Joseph Myers <joseph@codesourcery.com>
14042
14043 * math/libm-test-nextdown.inc (do_test): Move comment to ....
14044 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
14045
14046 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14047
14048 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
14049 symbols.
14050 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
14051 __pthread_setspecific): Add hidden proto.
14052 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
14053 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
14054
14055 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14056
14057 * benchtests/bench-string.h (buf1_size, buf2_size): New
14058 variables.
14059 (init_sizes): New function.
14060 (test_init): Use it.
14061 (alloc_buf, exit_error): New functions.
14062 (alloc_bufs): Use ALLOC_BUF.
14063 (realloc_bufs): Remove.
14064 * benchtests/bench-memcmp.c (do_test): Adjust.
14065 * benchtests/bench-memset-large.c (do_test): Likewise.
14066 * benchtests/bench-memset-walk.c (do_test): Likewise.
14067 * benchtests/bench-memset.c (do_test): Likewise.
14068 * benchtests/bench-strncmp.c (do_test): Likewise.
14069
14070 2018-08-06 Andreas Schwab <schwab@suse.de>
14071
14072 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
14073 of CONST_THREAD_AREA.
14074
14075 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
14076
14077 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
14078 (STATE_SAVE_MASK): Likewise.
14079 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
14080 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
14081 (STATE_SAVE_MASK): Likewise.
14082 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
14083 instead of <cpu-features.h>.
14084
14085 2018-08-03 DJ Delorie <dj@redhat.com>
14086
14087 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
14088 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
14089
14090 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
14091
14092 2018-08-03 Joseph Myers <joseph@codesourcery.com>
14093
14094 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
14095 after TEST_* calls.
14096 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
14097 * math/libm-test-logb.inc (logb_test_data): Likewise.
14098
14099 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
14100
14101 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14102 * string/strstr.c (AVAILABLE): Likewise.
14103
14104 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14105
14106 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14107 <init-arch.h>.
14108 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14109 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14110 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14111
14112 2018-08-03 Carlos O'Donell <carlos@redhat.com>
14113
14114 * po/be.po: Update translation.
14115
14116 * po/be.po: Update translation.
14117
14118 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14119
14120 * sysdeps/x86/cpu-features-offsets.sym
14121 (rtld_global_ro_offsetof): Removed.
14122 (CPU_FEATURES_SIZE): Likewise.
14123 (CPUID_OFFSET): Likewise.
14124 (CPUID_SIZE): Likewise.
14125 (CPUID_EAX_OFFSET): Likewise.
14126 (CPUID_EBX_OFFSET): Likewise.
14127 (CPUID_ECX_OFFSET): Likewise.
14128 (CPUID_EDX_OFFSET): Likewise.
14129 (FAMILY_OFFSET): Likewise.
14130 (MODEL_OFFSET): Likewise.
14131 (FEATURE_OFFSET): Likewise.
14132 (FEATURE_SIZ): Likewise.
14133 (COMMON_CPUID_INDEX_1): Likewise.
14134 (COMMON_CPUID_INDEX_7): Likewise.
14135 (FEATURE_INDEX_1): Likewise.
14136 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14137
14138 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14139
14140 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14141 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14142 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14143 (install-locales): Depend on install-locale-archive.
14144 (install-locale-archive): Define.
14145 (install-locale-files): Define.
14146 (build-one-locale): Define macro.
14147 * manual/install.texi (Running make install): Document.
14148 * manual/INSTALL: Regenerate.
14149
14150 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14151
14152 * benchtests/scripts/compare_strings.py: Import traceback.
14153 (parse_file): Pretty-print error.
14154
14155 * NEWS: Mention the change.
14156 * elf/dl-tunables.list: Rename tune namespace to cpu.
14157 * sysdeps/powerpc/dl-tunables.list: Likewise.
14158 * sysdeps/x86/dl-tunables.list: Likewise.
14159 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14160 cpu.name.
14161 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14162 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14163 * manual/README.tunables: Likewise.
14164 * manual/tunables.texi: Likewise.
14165 * sysdeps/powerpc/cpu-features.c: Likewise.
14166 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14167 (init_cpu_features): Likewise.
14168 * sysdeps/x86/cpu-features.c: Likewise.
14169 * sysdeps/x86/cpu-features.h: Likewise.
14170 * sysdeps/x86/cpu-tunables.c: Likewise.
14171 * sysdeps/x86_64/Makefile: Likewise.
14172 * sysdeps/x86/dl-cet.c: Likewise.
14173
14174 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14175
14176 [BZ #23479]
14177 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14178 [__mips_hard_float].
14179 (FE_UNDERFLOW): Likewise.
14180 (FE_OVERFLOW): Likewise.
14181 (FE_DIVBYZERO): Likewise.
14182 (FE_INVALID): Likewise.
14183 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14184 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14185 (FE_UPWARD): Likewise.
14186 (FE_DOWNWARD): Likewise.
14187 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14188 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14189 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14190 [__mips_hard_float].
14191 (FP_ROUNDMODE): Likewise.
14192 (FP_RND_NEAREST): Likewise.
14193 (FP_RND_ZERO): Likewise.
14194 (FP_RND_PINF): Likewise.
14195 (FP_RND_MINF): Likewise.
14196 (FP_EX_INVALID): Likewise.
14197 (FP_EX_OVERFLOW): Likewise.
14198 (FP_EX_UNDERFLOW): Likewise.
14199 (FP_EX_DIVZERO): Likewise.
14200 (FP_EX_INEXACT): Likewise.
14201 (FP_INIT_ROUNDMODE): Likewise.
14202 * sysdeps/mips/nofpu/fesetenv.c: New file.
14203 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14204
14205 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14206
14207 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14208 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14209 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14210 conditional on [FE_UPWARD].
14211
14212 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14213
14214 regex: fix memory leak in Gnulib
14215 Problem and fix reported by Assaf Gordon in:
14216 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14217 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14218 range_ends members too, as they are defined in 'struct
14219 re_charset_t' even if not _LIBC. This affects only Gnulib.
14220
14221 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14222
14223 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14224 ...
14225 (get_common_indices): This.
14226 (init_cpu_features): Updated.
14227
14228 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14229
14230 * sysdeps/generic/math-tests-snan-payload.h: New file.
14231 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14232 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14233 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14234 * sysdeps/generic/math-tests.h: Include
14235 <math-tests-snan-payload.h>.
14236 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14237 * sysdeps/hppa/math-tests.h: Remove file.
14238 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14239 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14240 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14241 Likewise.
14242
14243 * sysdeps/generic/math-tests-snan-cast.h: New file.
14244 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14245 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14246 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14247 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14248
14249 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14250
14251 * version.h (RELEASE): Set to "development".
14252 (VERSION): Set to "2.28.9000".
14253 * NEWS (2.29): New section.
14254
14255 * version.h (RELEASE): Set to "stable".
14256 (VERSION): Set to "2.28".
14257 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14258 * NEWS: Add the list of bugs fixed in 2.28.
14259
14260 * po/ca.po: Update to latest version.
14261 * po/cs.po: Likewise
14262 * po/da.po: Likewise
14263 * po/el.po: Likewise
14264 * po/eo.po: Likewise
14265 * po/es.po: Likewise
14266 * po/fi.po: Likewise
14267 * po/fr.po: Likewise
14268 * po/gl.po: Likewise
14269 * po/hu.po: Likewise
14270 * po/ia.po: Likewise
14271 * po/id.po: Likewise
14272 * po/it.po: Likewise
14273 * po/ja.po: Likewise
14274 * po/ko.po: Likewise
14275 * po/lt.po: Likewise
14276 * po/nb.po: Likewise
14277 * po/nl.po: Likewise
14278 * po/pt_BR.po: Likewise
14279 * po/ru.po: Likewise
14280 * po/rw.po: Likewise
14281 * po/sk.po: Likewise
14282 * po/sl.po: Likewise
14283 * po/tr.po: Likewise
14284 * po/zh_CN.po: Likewise
14285 * po/zh_TW.po: Likewise
14286
14287 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14288
14289 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14290 initialization...
14291 (init): ... before initializing libpthread.
14292
14293 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14294 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14295 (__mach_setup_tls): ... new function.
14296 (mach_setup_tls): New alias.
14297 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14298 __mach_setup_thread.
14299 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14300 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14301 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14302 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14303
14304 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14305
14306 * manual/install.texi: Update versions.
14307 * INSTALL: Regenerate.
14308
14309 * manual/contrib.texi (Contributors): Update contributions.
14310
14311 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14312
14313 * po/be.po: Update translations.
14314
14315 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14316
14317 * sysdeps/sh/libm-test-ulps: Update.
14318
14319 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14320
14321 * po/bg.po: Update translations.
14322 * po/de.po: Likewise.
14323 * po/hr.po: Likewise.
14324 * po/pt_BR.po: Likewise.
14325 * po/sv.po: Likewise.
14326 * po/vi.po: Likewise.
14327
14328 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14329
14330 [BZ #23467]
14331 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14332 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14333 (CFLAGS-tst-cet-property-1.o): New.
14334 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14335 ($(objpfx)tst-cet-property-2): Likewise.
14336 ($(objpfx)tst-cet-property-2.out): Likewise.
14337 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14338 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14339 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14340 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14341 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14342
14343 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14344
14345 [BZ #23458]
14346 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14347
14348 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14349
14350 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14351 __sbrk): Do not set attribute_hidden.
14352 * sysdeps/mach/hurd/not-errno.h: New file.
14353 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14354 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14355
14356 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14357
14358 * po/uk.po: Update translations.
14359 * po/cs.po: Likewise.
14360 * po/pl.po: Likewise.
14361
14362 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14363
14364 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14365 parse beyond the note end.
14366
14367 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14368
14369 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14370 kernel does not support OFD locks.
14371 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14372
14373 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14374
14375 * sysdeps/mach/hurd/Versions (libc): Make __access and
14376 __access_noerrno external so they can override the ld symbols.
14377 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14378 __writev, __open64, __access_noerrno extern so they can be overrided.
14379 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14380 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14381
14382 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14383
14384 * po/libc.pot: Regenerate.
14385
14386 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14387
14388 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14389
14390 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14391
14392 [BZ #23459]
14393 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14394 function.
14395 (init_cpu_features): Call get_extended_indices for both Intel
14396 and AMD CPUs.
14397 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14398 Remove "for AMD" comment.
14399
14400 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14401
14402 [BZ # 23456]
14403 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14404 COMMON_CPUID_INDEX_80000001.
14405
14406 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14407
14408 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14409 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14410
14411 2018-07-26 Florian Weimer <fweimer@redhat.com>
14412
14413 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14414 aliases for symbols not in the implementation namespace.
14415
14416 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14417
14418 [BZ #23393]
14419 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14420 lowercase in LATIN script.
14421 * localedata/Makefile (test-input): Add en_US.UTF-8.
14422 * localedata/en_US.UTF-8.in: New file.
14423 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14424 and restore old tests.
14425 * posix/tst-regexloc.c (do_test): Add back range expression test.
14426
14427 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14428
14429 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14430
14431 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14432
14433 * nptl/threads.h: Move to ...
14434 * sysdeps/nptl/threads.h: ... here.
14435 * sysdeps/hurd/stdc-predef.h: New file.
14436
14437 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14438
14439 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14440 tst-cet-setcontext-1 if CET is enabled.
14441 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14442 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14443
14444 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14445
14446 * include/threads.h: Move to ...
14447 * sysdeps/nptl/threads.h: ... here.
14448 * sysdeps/htl/threads.h: New file.
14449 * conform/Makefile (linknamespace-libs-ISO11): Use
14450 static-thread-library instead of linking libpthread.
14451 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14452
14453 2018-07-25 Florian Weimer <fweimer@redhat.com>
14454
14455 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14456 nanoseconds into seconds.
14457 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14458 (do_test): Likewise.
14459 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14460 (do_test): Likewise. Avoid nanosecond overflow and spurious
14461 timeouts due to system load.
14462 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14463 (child_wait): Increment it.
14464 (do_test): Wait as long as necessary until all expected threads
14465 have arrived.
14466
14467 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14468 H.J. Lu <hongjiu.lu@intel.com>
14469
14470 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14471 __ssp.
14472 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14473 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14474 (__push___start_context): New.
14475 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14476 <asm/prctl.h>.
14477 (__getcontext): Record the current shadow stack base. Save the
14478 caller's shadow stack pointer and base.
14479 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14480 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14481 (__push___start_context): New prototype.
14482 (__makecontext): Call __push___start_context to allocate a new
14483 shadow stack, push __start_context onto the new stack as well
14484 as the new shadow stack.
14485 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14486 <asm/prctl.h>.
14487 (__setcontext): Restore the target shadow stack.
14488 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14489 <asm/prctl.h>.
14490 (__swapcontext): Record the current shadow stack base. Save
14491 the caller's shadow stack pointer and base. Restore the target
14492 shadow stack.
14493 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14494 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14495 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14496
14497 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14498
14499 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14500 tst-setcontext8 and tst-setcontext9.
14501 * stdlib/tst-setcontext6.c: New file.
14502 * stdlib/tst-setcontext7.c: Likewise.
14503 * stdlib/tst-setcontext8.c: Likewise.
14504 * stdlib/tst-setcontext9.c: Likewise.
14505
14506 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14507
14508 * stdlib/Makefile ((tests): Add tst-setcontext5.
14509 * stdlib/tst-setcontext5.c: New file.
14510
14511 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14512
14513 * stdlib/Makefile (tests): Add tst-setcontext4.
14514 * stdlib/tst-setcontext4.c: New file.
14515
14516 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14517
14518 * stdlib/Makefile (tests): Add tst-swapcontext1.
14519 * stdlib/tst-swapcontext1.c: New test.
14520
14521 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14522
14523 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14524 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14525 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14526 and tst-cet-legacy-4c.
14527 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14528 and tst-cet-legacy-mod-4.
14529 (CFLAGS-tst-cet-legacy-2.c): New.
14530 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14531 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14532 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14533 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14534 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14535 ($(objpfx)tst-cet-legacy-1): Likewise.
14536 ($(objpfx)tst-cet-legacy-2): Likewise.
14537 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14538 ($(objpfx)tst-cet-legacy-2a): Likewise.
14539 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14540 ($(objpfx)tst-cet-legacy-4): Likewise.
14541 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14542 ($(objpfx)tst-cet-legacy-4a): Likewise.
14543 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14544 (tst-cet-legacy-4a-ENV): Likewise.
14545 ($(objpfx)tst-cet-legacy-4b): Likewise.
14546 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14547 (tst-cet-legacy-4b-ENV): Likewise.
14548 ($(objpfx)tst-cet-legacy-4c): Likewise.
14549 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14550 (tst-cet-legacy-4c-ENV): Likewise.
14551 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14552 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14553 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14554 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14555 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14556 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14557 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14558 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14559 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14560 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14561 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14562
14563 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14564
14565 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14566 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14567 with ssp_base.
14568 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14569 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14570 with ssp_base.
14571
14572 2018-07-25 Andreas Schwab <schwab@suse.de>
14573
14574 [BZ #23442]
14575 * locale/weightwc.h (findidx): Handle the case where usrc is a
14576 prefix of cp but one character too short.
14577
14578 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14579
14580 * NEWS: Add ISO C threads addition.
14581
14582 2018-07-24 Florian Weimer <fweimer@redhat.com>
14583
14584 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14585 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14586 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14587 4.13.
14588
14589 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14590
14591 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14592 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14593 <sys/prctl.h> and <asm/prctl.h>.
14594 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14595 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14596 and <asm/prctl.h>.
14597 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14598 ARCH_CET_LEGACY_BITMAP.
14599 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14600 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14601 * sysdeps/x86/libc-start.c: Include <startup.h>.
14602
14603 2018-07-24 Florian Weimer <fweimer@redhat.com>
14604
14605 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14606 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14607
14608 2018-07-24 Rical Jasan <rj@2c3t.io>
14609 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14610 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14611
14612 [BZ #14092]
14613 * manual/debug.texi: Update adjacent chapter name.
14614 * manual/probes.texi: Likewise.
14615 * manual/threads.texi (ISO C Threads): New section.
14616 (POSIX Threads): Convert to a section.
14617
14618 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14619 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14620
14621 [BZ# 14092]
14622 * nptl/Makefile (tests): Add new test files.
14623 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14624 * nptl/tst-cnd-basic.c: Likewise.
14625 * nptl/tst-cnd-broadcast.c: Likewise.
14626 * nptl/tst-cnd-timedwait.c: Likewise.
14627 * nptl/tst-mtx-basic.c: Likewise.
14628 * nptl/tst-mtx-recursive.c: Likewise.
14629 * nptl/tst-mtx-timedlock.c: Likewise.
14630 * nptl/tst-mtx-trylock.c: Likewise.
14631 * nptl/tst-thrd-basic.c: Likewise.
14632 * nptl/tst-thrd-detach.c: Likewise.
14633 * nptl/tst-thrd-sleep.c: Likewise.
14634 * nptl/tst-tss-basic.c: Likewise.
14635
14636 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14637
14638 [BZ #14092]
14639 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14640 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14641 symbols.
14642 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14646 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14655 Likewise.
14656 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14657 Likewise.
14658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14659 Likewise.
14660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14663 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14664 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14665 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14666 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14667 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14668 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14669 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14670 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14671 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14672 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14673 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14674 Likewise.
14675 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14676 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14677 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14678 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14679 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14684 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14685 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14686 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14687 ikewise.
14688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14690 Likewise.
14691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14692 Likewise.
14693 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14694 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14695 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14696 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14697 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14698 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14699 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14700 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14701
14702 [BZ #14092]
14703 * conform/data/threads.h-data (thread_local): New macro.
14704 (TSS_DTOR_ITERATIONS): Likewise.
14705 (tss_t): New type.
14706 (tss_dtor_t): Likewise.
14707 (tss_create): New function.
14708 (tss_get): Likewise.
14709 (tss_set): Likewise.
14710 (tss_delete): Likewise.
14711 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14712 tss_get, and tss_set objects.
14713 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14714 * nptl/tss_create.c: New file.
14715 * nptl/tss_delete.c: Likewise.
14716 * nptl/tss_get.c: Likewise.
14717 * nptl/tss_set.c: Likewise.
14718 * sysdeps/nptl/threads.h (thread_local): New define.
14719 (TSS_DTOR_ITERATIONS): Likewise.
14720 (tss_t): New typedef.
14721 (tss_dtor_t): Likewise.
14722 (tss_create): New prototype.
14723 (tss_get): Likewise.
14724 (tss_set): Likewise.
14725 (tss_delete): Likewise.
14726
14727 [BZ #14092]
14728 * conform/data/threads.h-data (cnd_t): New type.
14729 (cnd_init): New function.
14730 (cnd_signal): Likewise.
14731 (cnd_broadcast): Likewise.
14732 (cnd_wait): Likewise.
14733 (cnd_timedwait): Likewise.
14734 (cnd_destroy): Likewise.
14735 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14736 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14737 object.
14738 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14739 * nptl/cnd_broadcast.c: New file.
14740 * nptl/cnd_destroy.c: Likewise.
14741 * nptl/cnd_init.c: Likewise.
14742 * nptl/cnd_signal.c: Likewise.
14743 * nptl/cnd_timedwait.c: Likewise.
14744 * nptl/cnd_wait.c: Likewise.
14745 * sysdeps/nptl/threads.h (cnd_t): New type.
14746 (cnd_init): New prototype.
14747 (cnd_signa): Likewise.
14748 (cnd_broadcast): Likewise.
14749 (cnd_wait): Likewise.
14750 (cnd_timedwait): Likewise.
14751 (cnd_destroy): Likewise.
14752
14753 [BZ #14092]
14754 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14755 (once_flag): New type.
14756 (call_once): New function.
14757 * nptl/Makefile (libpthread-routines): Add call_once object.
14758 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14759 * nptl/call_once.c: New file.
14760 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14761 (once_flag): New type.
14762 (call_once): New prototype.
14763
14764 [BZ #14092]
14765 * conform/data/threads.h-data (mtx_plain): New constant.
14766 (mtx_recursive): Likewise.
14767 (mtx_timed): Likewise.
14768 (mtx_t): New type.
14769 (mtx_init): New function.
14770 (mtx_lock): Likewise.
14771 (mtx_timedlock): Likewise.
14772 (mtx_trylock): Likewise.
14773 (mtx_unlock): Likewise.
14774 (mtx_destroy): Likewise.
14775 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14776 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14777 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14778 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14779 * nptl/mtx_destroy.c: New file.
14780 * nptl/mtx_init.c: Likewise.
14781 * nptl/mtx_lock.c: Likewise.
14782 * nptl/mtx_timedlock.c: Likewise.
14783 * nptl/mtx_trylock.c: Likewise.
14784 * nptl/mtx_unlock.c: Likewise.
14785 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14786 (mtx_recursive): Likewise.
14787 (mtx_timed): Likewise.
14788 (mtx_t): New type.
14789 (mtx_init): New prototype.
14790 (mtx_lock): Likewise.
14791 (mtx_timedlock): Likewise.
14792 (mtx_trylock): Likewise.
14793 (mtx_unlock): Likewise.
14794 (mtx_destroy): Likewise.
14795
14796 [BZ #14092]
14797 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14798 (linknamespace-libs-ISO11): Add libpthread.a.
14799 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14800 functions.
14801 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14802 * nptl/Makefile (headers): Add threads.h.
14803 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14804 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14805 thrd_yield.
14806 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14807 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14808 thrd_join, thrd_sleep, and thrd_yield symbols.
14809 * nptl/descr.h (struct pthread): Add c11 field.
14810 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14811 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14812 routine with expected function prototype.
14813 (__pthread_create_2_1): Add C11 threads check based on attribute
14814 value.
14815 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14816 * nptl/thrd_create.c: New file.
14817 * nptl/thrd_current.c: Likewise.
14818 * nptl/thrd_detach.c: Likewise.
14819 * nptl/thrd_equal.c: Likewise.
14820 * nptl/thrd_exit.c: Likewise.
14821 * nptl/thrd_join.c: Likewise.
14822 * nptl/thrd_priv.h: Likewise.
14823 * nptl/thrd_sleep.c: Likewise.
14824 * nptl/thrd_yield.c: Likewise.
14825 * include/threads.h: Likewise.
14826
14827 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14828
14829 * bits/indirect-return.h: New file.
14830 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14831 * sysdeps/x86/bits/indirect-return.h: Likewise.
14832 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14833 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14834 (swapcontext): Add __INDIRECT_RETURN.
14835 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14836 (prepare_test_buffer): Use it.
14837
14838 2018-07-24 Andreas Schwab <schwab@suse.de>
14839
14840 [BZ #23448]
14841 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14842 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14843
14844 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14845
14846 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14847 Redefine if shadow stack is enabled.
14848 (SYSCALL_ERROR_LABEL): Likewise.
14849 (__vfork): Pop shadow stack and jump back to to caller directly
14850 when shadow stack is in use.
14851 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14852 Redefine if shadow stack is enabled.
14853 (SYSCALL_ERROR_LABEL): Likewise.
14854 (__vfork): Pop shadow stack and jump back to to caller directly
14855 when shadow stack is in use.
14856
14857 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14858
14859 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14860 enabled.
14861 (foo): Likewise.
14862 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14863 (foo): Likewise.
14864
14865 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14866
14867 * scripts/build-many-glibcs.py (Context.checkout): Default
14868 binutils version to 2.31 branch.
14869
14870 2018-07-20 Zong Li <zong@andestech.com>
14871
14872 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14873 URL of gcc's tarball.
14874
14875 2018-07-20 Florian Weimer <fweimer@redhat.com>
14876
14877 [BZ #23396]
14878 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14879 not compare an extra byte after the end of the weights.
14880
14881 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14882
14883 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14884 to 1.
14885 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14886 hidden prototypes.
14887 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14888 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14889 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14890 list of libraries whose stack executability is expected.
14891 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14892 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14893 variable.
14894 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14895 libc.so libpthread.so.
14896
14897 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14898
14899 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14900 SOCK_NONBLOCK.
14901 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14902 and SOCK_NONBLOCK.
14903 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14904 implement __pipe2.
14905 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14906
14907 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14908
14909 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14910 library to improve command line parsing.
14911 (__main__): make schema file as optional parameter (--schema),
14912 defaulting to benchtests/scripts/benchout.schema.json.
14913 (main): move out of the parsing stuff to __main_  and leave it
14914 only as caller of main comparison functions.
14915
14916 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14917
14918 * NEWS: Add a note for Intel CET status.
14919 * manual/install.texi: Likewise.
14920 * INSTALL: Regenerated.
14921
14922 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14923
14924 [BZ #23140]
14925 * localedata/locales/oc_FR (mon): Rename to...
14926 (alt_mon): This, then update October (typo fix).
14927 (mon): New content (genitive case, month names preceded by
14928 "de" or "d’").
14929
14930 [BZ #23422]
14931 * localedata/locales/oc_FR (abday): Update all items.
14932 (day): Update Wednesday and Saturday (typo fixes).
14933 (abmon): Update all items, except May.
14934 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14935 (LC_IDENTIFICATION): Bump the revision number and date.
14936 Keep the "category" entries in alphabetic order.
14937 (LC_ADDRESS): Remove no longer needed comment.
14938 (LC_COLLATE): Use “copy "ca_ES"”.
14939 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14940 "name_mrs".
14941
14942 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14943
14944 * grp/tst_fgetgrent.c: Include <unistd.h>.
14945 (main): Use mkstemp instead of tmpnam.
14946 * io/test-utime.c (main): Likewise.
14947 * posix/annexc.c (macrofile): Change to modifiable array.
14948 (main): Remove macrofile here.
14949 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14950 macrofile here.
14951 (check_header): Do not remove macrofile here.
14952 * posix/bug-getopt1.c: Include <stdlib.h>.
14953 (do_test): Use mkstemp instead of tmpnam.
14954 * posix/bug-getopt2.c: Include <stdlib.h>.
14955 (do_test): Use mkstemp instead of tmpnam.
14956 * posix/bug-getopt3.c: Include <stdlib.h>.
14957 (do_test): Use mkstemp instead of tmpnam.
14958 * posix/bug-getopt4.c: Include <stdlib.h>.
14959 (do_test): Use mkstemp instead of tmpnam.
14960 * posix/bug-getopt5.c: Include <stdlib.h>.
14961 (do_test): Use mkstemp instead of tmpnam.
14962 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14963 (main): Use mkstemp instead of tmpnam.
14964 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14965 (main): Use mkstemp instead of tmpnam.
14966 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14967 (main): use mkstemp instead of tmpnam.
14968 * stdlib/isomac.c (macrofile): Change to modifiable array.
14969 (main): Remove macrofile here.
14970 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14971 macrofile here.
14972 (check_header): Do not remove macrofile here.
14973
14974 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14975
14976 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14977 glibc.tune.x86_shstk.
14978
14979 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14980
14981 * NEWS: Mention --enable-cet.
14982 * manual/install.texi: Document --enable-cet.
14983 * INSTALL: Regenerated.
14984
14985 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14986
14987 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14988 Add _CET_NOTRACK before indirect jump to jump table.
14989
14990 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14991
14992 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14993 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14994 to jump table.
14995
14996 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14997
14998 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14999 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15000 to jump table.
15001
15002 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15003
15004 * sysdeps/i386/i686/multiarch/strcpy-sse2.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/i386/i686/multiarch/memcpy-ssse3.S
15011 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15012 to jump table.
15013
15014 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15015
15016 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
15017 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15018 to jump table.
15019 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
15020
15021 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15022
15023 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
15024 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15025 to jump table.
15026
15027 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15028
15029 * sysdeps/i386/i686/multiarch/memset-sse2.S
15030 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15031 to jump table.
15032
15033 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15034
15035 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
15036 indirect jump to jump table.
15037
15038 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15039
15040 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
15041 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15042 to jump table.
15043 (MEMCPY): Likewise.
15044
15045 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15046
15047 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
15048 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15049 to jump table.
15050 (MEMCPY): Likewise.
15051
15052 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15053
15054 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15055 _CET_NOTRACK before indirect jump to jump table.
15056
15057 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15058
15059 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
15060 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15061 to jump table.
15062
15063 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15064
15065 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
15066 indirect jump to jump table.
15067
15068 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
15069
15070 [BZ #22241]
15071 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
15072 (LOCALES): Likewise.
15073 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
15074 * localedata/locales/sah_RU: New file.
15075 * localedata/sah_RU.UTF-8.in: New file.
15076
15077 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15078
15079 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
15080 "sysdep.h".
15081 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15082 _CET_ENDBR to indirect jump targets and adjust jump destination
15083 for _CET_ENDBR.
15084 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
15085 "sysdep.h".
15086 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15087 _CET_ENDBR to indirect jump targets and adjust jump destination
15088 for _CET_ENDBR.
15089 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
15090 "sysdep.h".
15091 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
15092 _CET_ENDBR to indirect jump targets and adjust jump destination
15093 for _CET_ENDBR.
15094
15095 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15096
15097 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15098 _CET_ENDBR.
15099
15100 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15101
15102 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15103 _CET_ENDBR.
15104 (_dl_tlsdesc_undefweak): Likewise.
15105 (_dl_tlsdesc_dynamic): Likewise.
15106 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15107 (_dl_tlsdesc_resolve_rel): Likewise.
15108 (_dl_tlsdesc_resolve_rela): Likewise.
15109 (_dl_tlsdesc_resolve_hold): Likewise.
15110 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15111 (_dl_tlsdesc_undefweak): Likewise.
15112 (_dl_tlsdesc_dynamic): Likewise.
15113 (_dl_tlsdesc_resolve_rela): Likewise.
15114 (_dl_tlsdesc_resolve_hold): Likewise.
15115
15116 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15117
15118 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15119 (_fini): Likewise.
15120 * sysdeps/x86_64/crti.S (_init): Likewise.
15121 (_fini): Likewise.
15122
15123 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
15124
15125 [BZ #23140]
15126 * localedata/locales/os_RU (mon): Rename to...
15127 (alt_mon): This.
15128 (mon): Import from CLDR (genitive case).
15129
15130 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15131
15132 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15133 cet-tunables.h> when CET is enabled.
15134
15135 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15136
15137 [BZ #21598]
15138 * configure.ac: Add --enable-cet.
15139 * configure: Regenerated.
15140 * elf/Makefille (all-built-dso): Add a comment.
15141 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15142 Include <dl-prop.h>.
15143 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15144 segment.
15145 * elf/dl-open.c: Include <dl-prop.h>.
15146 (dl_open_worker): Call _dl_open_check.
15147 * elf/rtld.c: Include <dl-prop.h>.
15148 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15149 _rtld_main_check.
15150 * sysdeps/generic/dl-prop.h: New file.
15151 * sysdeps/i386/dl-cet.c: Likewise.
15152 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15153 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15154 * sysdeps/x86/cet-tunables.h: Likewise.
15155 * sysdeps/x86/check-cet.awk: Likewise.
15156 * sysdeps/x86/configure: Likewise.
15157 * sysdeps/x86/configure.ac: Likewise.
15158 * sysdeps/x86/dl-cet.c: Likewise.
15159 * sysdeps/x86/dl-procruntime.c: Likewise.
15160 * sysdeps/x86/dl-prop.h: Likewise.
15161 * sysdeps/x86/libc-start.h: Likewise.
15162 * sysdeps/x86/link_map.h: Likewise.
15163 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15164 _CET_ENDBR.
15165 (_dl_runtime_profile): Likewise.
15166 (_dl_runtime_resolve_shstk): New.
15167 (_dl_runtime_profile_shstk): Likewise.
15168 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15169 if CET is enabled.
15170 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15171 (CFLAGS-.os): Likewise.
15172 (CFLAGS-.op): Likewise.
15173 (CFLAGS-.oS): Likewise.
15174 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15175 is enabled.
15176 (tests-special): Add $(objpfx)check-cet.out.
15177 (cet-built-dso): New.
15178 (+$(cet-built-dso:=.note)): Likewise.
15179 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15180 ($(objpfx)check-cet.out): New.
15181 (generated): Add check-cet.out.
15182 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15183 <cet-tunables.h>.
15184 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15185 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15186 (init_cpu_features): Call get_cet_status to check CET status
15187 and update dl_x86_feature_1 with CET status. Call
15188 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15189 (set_x86_shstk). Disable and lock CET in libc.a.
15190 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15191 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15192 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15193 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15194 (_CET_ENDBR): Define if not defined.
15195 (ENTRY): Add _CET_ENDBR.
15196 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15197 x86_shstk.
15198 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15199 _CET_ENDBR.
15200 (_dl_runtime_profile): Likewise.
15201
15202 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15203
15204 [BZ #21895]
15205 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15206 restore r2 on longjmp.
15207 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15208 test list.
15209 Added rules to build test tst-setjmp-bug21895-static.
15210 Added module setjmp-bug21895 and rules to build a shared object from it.
15211 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15212 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15213
15214 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15215
15216 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15217 * benchtests/bench-strstr.c: Likewise.
15218 * string/memmem.c (FASTSEARCH): Define.
15219 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15220 Add support for FASTSEARCH.
15221 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15222 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15223 (FASTSEARCH): Define.
15224 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15225 * string/test-strstr.c: Likewise.
15226
15227 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15228
15229 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15230 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15231
15232 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15233 H.J. Lu <hongjiu.lu@intel.com>
15234
15235 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15236 (__longjmp): Restore shadow stack pointer if shadow stack is
15237 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15238 isn't defined for __longjmp_cancel.
15239 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15240 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15241 and SHADOW_STACK_POINTER_OFFSET is defined.
15242 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15243 (setjmp): Save shadow stack pointer if shadow stack is enabled
15244 and SHADOW_STACK_POINTER_OFFSET is defined.
15245 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15246 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15247 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15248 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15249 <jmp_buf-ssp.h>.
15250 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15251 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15252 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15253 Remove jmp_buf-ssp.sym.
15254 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15255 <jmp_buf-ssp.h>.
15256 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15257 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15258 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15259 jmp_buf-ssp.sym.
15260 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15261 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15262 (__longjmp): Restore shadow stack pointer if shadow stack is
15263 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15264 isn't defined for __longjmp_cancel.
15265 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15266 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15267 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15268
15269 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15270
15271 [BZ #22563]
15272 * nptl/pthread_create.c: Include <tls-setup.h>.
15273 (__pthread_create_2_1): Call tls_setup_tcbhead.
15274 * sysdeps/generic/tls-setup.h: New file.
15275 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15276 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15277 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15278 Likewise.
15279 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15280 to feature_1.
15281 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15282 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15283 (X86_FEATURE_1_SHSTK): Likewise.
15284 (CET_ENABLED): Likewise.
15285 (IBT_ENABLED): Likewise.
15286 (SHSTK_ENABLED): Likewise.
15287
15288 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15289
15290 [BZ #23208]
15291 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15292 (LOCALES): Likewise.
15293 * localedata/dsb_DE.UTF-8.in: New file.
15294 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15295
15296 2018-07-12 Florian Weimer <fweimer@redhat.com>
15297
15298 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15299 __mprotect, not mprotect.
15300
15301 2018-07-11 Florian Weimer <fweimer@redhat.com>
15302
15303 * io/Makefile (headers): Add bits/statx.h.
15304
15305 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15306
15307 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15308 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15309 and headers.
15310 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15311 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15312 for utf8_gen.py
15313
15314 2018-07-10 Florian Weimer <fweimer@redhat.com>
15315
15316 * io/Makefile (routines): Add statx.
15317 (tests-internal): Add tst-statx.
15318 * io/Versions (GLIBC_2.28): Export statx.
15319 * io/bits/statx.h: New file.
15320 * io/sys/stat.h [__USE_GNU]: Include it.
15321 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15322 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15323 Define.
15324 * io/statx.c: New file.
15325 * io/statx_generic.: Likewise.
15326 * io/tst-statx.: Likewise.
15327 * include/bits/statx.h: Likewise.
15328 * sysdeps/unix/sysv/linux/kernel-features.h
15329 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15330 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15331 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15332 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15333 Undefine.
15334 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15335 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15336 * sysdeps/unix/sysv/linux/statx.c: New file.
15337 * manual/filesys.texi: Note that statx is undocumented.
15338 * sysdeps/**/libc*.abilist: Update.
15339
15340 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15341
15342 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15343 a kernel issue which lead to test failure in some cases.
15344
15345 2018-07-10 Florian Weimer <fweimer@redhat.com>
15346
15347 [BZ #23036]
15348 * posix/regexec.c (check_node_accept_bytes): When comparing
15349 weights, do not compare an extra byte after the end of the
15350 weights.
15351
15352 2018-07-10 Florian Weimer <fweimer@redhat.com>
15353
15354 * libio/readline.c: Fix copyright year.
15355 * libio/tst-readline.c Likewise.
15356 * nss/tst-nss-files-hosts-getent.c: Likewise.
15357
15358 2018-07-06 Florian Weimer <fweimer@redhat.com>
15359
15360 [BZ #18991]
15361 * nss/nss_files/files-XXX.c (internal_getent): Use
15362 __libc_readline_unlocked. Seek back to the start of the line if
15363 parsing failes with ERANGE.
15364 (get_contents_ret, get_contents): Remove.
15365 * nss/tst-nss-files-hosts-getent.c: New file.
15366 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15367 (tst-nss-files-hosts-getent): Link with -ldl.
15368
15369 2018-07-06 Florian Weimer <fweimer@redhat.com>
15370
15371 * include/stdio.h (__libc_readline_unlocked): Declare.
15372 (__ftello64, __fseeko64): Declare aliases.
15373 * libio/readline.c: New file.
15374 * libio/tst-readline.c: Likewise.
15375 (routines): Add readline.
15376 (tests-internal): Add tst-readlime.
15377 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15378 __libc_readline_unlocked.
15379 * libio/fseeko.c (__fseeko): Rename from fseeko.
15380 (fseeko): Add alias.
15381 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15382 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15383 (fseeko64): Add alias.
15384 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15385 * libio/ftello64.c (__ftello64): Rename from ftello64.
15386 (ftello64): Add alias.
15387
15388 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15389
15390 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15391 HWCAP_ATOMICS.
15392
15393 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15394
15395 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15396 Use dl_hwcap without masking.
15397 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15398 Remove HWCAP_CPUID.
15399
15400 2018-07-06 Florian Weimer <fweimer@redhat.com>
15401
15402 * conform/conformtest.pl (checknamespace): Escape literal braces
15403 in regular expressions.
15404
15405 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15406
15407 * sysdeps/x86/cpu-features.c (get_common_indeces):
15408 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15409 * sysdeps/x86/cpu-features.c (init_cpu_features):
15410 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15411
15412 2018-07-05 Florian Weimer <fweimer@redhat.com>
15413
15414 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15415 protector.
15416 (CFLAGS-elf-init.oS): Likewise.
15417
15418 2018-07-05 Florian Weimer <fweimer@redhat.com>
15419 Carlos O'Donell <carlos@redhat.com>
15420
15421 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15422 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15423 with stack protector enabled because there is no risk of infinite
15424 recursion.
15425
15426 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15427
15428 [BZ #19818]
15429 [BZ #23307]
15430 * libc-abis (ABSOLUTE): New ABI.
15431 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15432 * NEWS: Mention the new ABI.
15433
15434 2018-07-05 Florian Weimer <fweimer@redhat.com>
15435
15436 [BZ # 17662]
15437 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15438 (RENAME_WHITEOUT): Define.
15439 [__USE_GNU] (renameat2): Declare.
15440 * stdio-common/Makefile (routines): Add renameat2.
15441 (tests): Add tst-renameat2.
15442 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15443 * stdio-common/renameat2.c: New file.
15444 * stdio-common/tst-renameat2.c: Likewise.
15445 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15446 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15447 undocumented.
15448 * sysdeps/unix/sysv/linux/kernel-features.h
15449 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15450 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15451 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15452 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15453 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15454 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15455 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15456 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15457 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15458 * include/stdio.h (__renameat): Add alias for renameat.
15459 * stdio-common/renameat.c (__renameat): Rename from renameat.
15460 Add hidden definition and alias.
15461 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15462 * sysdeps/mach/hurd/renameat.c: Likewise.
15463 * sysdeps/**/libc*.abilist: Add renameat2.
15464
15465 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15466
15467 * posix/bug-regex33.c: Fix build after regex sync.
15468
15469 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15470
15471 [BZ #23164]
15472 * localedata/tst-langinfo-setlocale.c: New file.
15473 * localedata/tst-langinfo-setlocale-static.c: New file.
15474 * localedata/tst-langinfo-newlocale.c: New file.
15475 * localedata/tst-langinfo-newlocale-static.c: New file.
15476 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15477 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15478 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15479 (tests-static): Remove tst-langinfo-static. Add
15480 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15481 (tests-special): Remove $(objpfx)tst-langinfo.out,
15482 $(objpfx)tst-langinfo-static.out. Add
15483 $(objpfx)tst-langinfo-setlocale.out,
15484 $(objpfx)tst-langinfo-newlocale.out,
15485 $(objpfx)tst-langinfo-setlocale-static.out,
15486 $(objpfx)tst-langinfo-newlocale-static.out.
15487 ($(objpfx)tst-langinfo.out): Remove.
15488 ($(objpfx)tst-langinfo-static.out): Remove.
15489 ($(objpfx)tst-langinfo-newlocale.out): New target.
15490 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15491 (test-xfail-tst-langinfo-newlocale-static): Add.
15492 ($(objpfx)tst-langinfo-setlocale.out): New target.
15493 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15494 * localedata/tst-langinfo.c: Call test_locale.
15495 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15496 data.
15497
15498 2018-07-04 Florian Weimer <fweimer@redhat.com>
15499
15500 testrun.sh: Implement --tool=strace, --tool=valgrind
15501 * Makefile (testrun-script): Define variable.
15502 (testrun.sh): Use variable.
15503 * manual/install.texi (Tools for Compilation): make 4.0 or later
15504 is required.
15505 * configure.ac: Check for make 4.0 or later.
15506 * INSTALL: Regenerate.
15507 * configure: Likewise.
15508
15509 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15510
15511 [BZ #23233]
15512 [BZ #21163]
15513 [BZ #18986]
15514 [BZ #13762]
15515 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15516 * posix/PCRE.tests: Remove invalid test.
15517 * posix/bug-regex28.c: Fix expected values for used syntax.
15518 * posix/bug-regex37.c: New file.
15519 * posix/bug-regex38.c: Likewise.
15520 * posix/regcomp.c: Sync with gnulib.
15521 * posix/regex.c: Likewise.
15522 * posix/regex.h: Likewise.
15523 * posix/regex_internal.c: Likewise.
15524 * posix/regex_internal.h: Likewise.
15525 * posix/regexec.c: Likewise.
15526
15527 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15528
15529 [BZ #23308]
15530 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15531 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15532 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15533 * localedata/unicode-gen/PropList.txt: likewise.
15534 * localedata/unicode-gen/UnicodeData.txt: likewise.
15535 * localedata/charmaps/UTF-8: Regenerate.
15536 * localedata/locales/i18n_ctype: likewise.
15537 * localedata/locales/tr_TR: likewise.
15538 * localedata/locales/translit_circle: likewise.
15539 * localedata/locales/translit_cjk_compat: likewise.
15540 * localedata/locales/translit_combining: likewise.
15541 * localedata/locales/translit_compat: likewise.
15542 * localedata/locales/translit_font: likewise.
15543 * localedata/locales/translit_fraction: likewise.
15544
15545 2018-07-03 Florian Weimer <fweimer@redhat.com>
15546
15547 [BZ #23363]
15548 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15549 * stdio-common/tst-printf.sh: Adjust expected output.
15550 * LICENSES: Update.
15551
15552 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15553
15554 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15555 symbol.
15556
15557 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15558
15559 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15560 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15561 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15562 * stdio-common/tst-printfsz-islongdouble.c: New file.
15563 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15564 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15565 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15566 [subdir == stdio-common] (tests-internal): Add
15567 test-printf-size-ieee128, and test-printf-size-ibm128.
15568 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15569 (CFLAGS-test-printf-size-ibm128.c): New variables.
15570 [subdir == stdio-common] (tests-special): Add
15571 $(objpfx)test-printf-size-ieee128.out and
15572 $(objpfx)test-printf-size-ibm128.out.
15573 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15574 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15575 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15576 __printf_sizeieee128.
15577 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15578 New file.
15579 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15580 Likewise.
15581 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15582 Likewise.
15583
15584 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15585
15586 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15587 (exp2f_inline): Likewise.
15588 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15589 (__math_uflowf): Likewise.
15590 (__math_may_uflowf): Likewise.
15591 (__math_divzerof): Likewise.
15592 (__math_invalidf): Likewise.
15593 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15594 (__math_oflowf): Likewise.
15595 (__math_uflowf): Likewise.
15596 (__math_may_uflowf): Likewise.
15597 (__math_divzerof): Likewise.
15598 (__math_invalidf): Likewise.
15599
15600 2018-06-29 DJ Delorie <dj@redhat.com>
15601 Carlos O'Donell <carlos@redhat.com>
15602
15603 [BZ #23329]
15604 * include/libc-symbols.h: Comment the freeres framework.
15605 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15606 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15607 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15608 * dlfcn/dlerror.c: Include libc-symbols.h
15609 (__dlerror_main_freeres): New function.
15610 * dlfcn/dlfreeres.c: New file.
15611 * dlfcn/sdlfreeres.c: New file.
15612 * include/dlfcn.h: Declare __dlerror_main_freeres.
15613 * malloc/set-freeres.c: Declare __libdl_freeres, and
15614 __libpthread_freeres.
15615 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15616 the releavant libraries are loaded.
15617 * malloc/thread-freeres.c: Add comments.
15618 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15619 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15620 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15621 (__free_stacks): Rename to...
15622 (free_stacks): ...this. Mark static.
15623 (queue_stack): Call free_stacks.
15624 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15625 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15626 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15627 ptr_freeres element from struct.
15628 (pthread_functions): Remove .ptr_freeres from struct initializer.
15629 [SHARED] (nptl_freeres): Remove.
15630 * nptl/nptlfreeres.c: New file.
15631 * nptl/pthreadP.h
15632 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15633 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15634 attribute_hidden.
15635 (__free_stacks): Rename to...
15636 (__nptl_stacks_freeres): ...this.
15637 (__shm_directory_freeres): Declare.
15638 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15639 (__nptl_unwind_freeres): ...this.
15640 * resolv/res-close.c: Add comment.
15641 * resolv/resolv_conf.c: Include libc-symbols.h.
15642 * string/strerror_l.c: Include libc-symbols.h.
15643 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15644 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15645 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15646 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15647
15648 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15649
15650 * stdlib/tst-strfmon_l.c: Add tests for long double.
15651
15652 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15653
15654 [BZ #23208]
15655 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15656 * localedata/locales/dsb_DE: New file.
15657
15658 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15659
15660 [BZ #23140]
15661 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15662 genitive case).
15663 (alt_mon): New entry, import from CLDR (nominative case).
15664
15665 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15666
15667 [BZ #22996]
15668 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15669
15670 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15671
15672 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15673 Use vector registers.
15674
15675 * sysdeps/aarch64/multiarch/memmove_falkor.S
15676 (__memcpy_falkor): Use vector registers.
15677
15678 2018-06-29 Martin Sebor <msebor@redhat.com>
15679
15680 * manual/stdio.texi (Customizing Printf): Mention interaction
15681 with GCC built-ins.
15682
15683 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15684
15685 [BZ #23307]
15686 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15687 `st_value' is 0 if `st_shndx' is SHN_ABS.
15688 * elf/tst-absolute-zero.c: New file.
15689 * elf/tst-absolute-zero-lib.c: New file.
15690 * elf/tst-absolute-zero-lib.lds: New file.
15691 * elf/Makefile (tests): Add `tst-absolute-zero'.
15692 (modules-names): Add `tst-absolute-zero-lib'.
15693 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15694 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15695 ($(objpfx)tst-absolute-zero: New dependency.
15696
15697 2018-06-29 Zack Weinberg <zackw@panix.com>
15698
15699 * configure.ac: New command-line option --disable-crypt.
15700 Force --disable-nss-crypt when --disable-crypt is given, with a
15701 warning if it was explicitly enabled.
15702 * configure: Regenerate.
15703 * config.make.in: New boolean substitution variable $(build-crypt).
15704 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15705 when $(build-crypt).
15706 * manual/install.texi: Document --disable-crypt.
15707 * INSTALL: Regenerate.
15708
15709 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15710 which is never set.
15711 * conform/Makefile: Only include libcrypt.a in
15712 linknamespace-libs-xsi and linknamespace-libs-XPG4
15713 when $(build-crypt).
15714 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15715 USE_CRYPT to 1 when $(build-crypt).
15716 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15717 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15718 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15719
15720 2018-06-29 Zack Weinberg <zackw@panix.com>
15721
15722 * crypt/crypt.h, posix/unistd.h: Update comments and
15723 prototypes for crypt and crypt_r.
15724
15725 * manual/crypt.texi (Cryptographic Functions): New initial
15726 exposition.
15727 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15728 (Unpredictable Bytes): Improve initial exposition. Clarify error
15729 behavior of getentropy and getrandom.
15730 * manual/examples/genpass.c: Generate a salt using getentropy
15731 instead of the current time. Use hash $5$ (SHA-2-256).
15732 * manual/examples/testpass.c: Demonstrate validation against
15733 hashes generated with three different one-way functions.
15734
15735 * manual/intro.texi: crypt.texi does not need an overview
15736 anymore.
15737
15738 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15739 * manual/terminal.texi: Consistently refer to "passphrases"
15740 * instead of "passwords", and to the "user database" instead
15741 * of the "password database".
15742 * manual/users.texi: Similarly. Add notes about how actual
15743 passphrase hashes are now stored in the shadow database.
15744 Remove 20-year-old junk todo note.
15745
15746 2018-06-29 Zack Weinberg <zackw@panix.com>
15747
15748 * manual/crypt.texi: Use a normal top-level @node declaration.
15749 Move most of the introductory text to the 'crypt' section.
15750 Move the example programs below the @deftypefun for 'crypt_r'.
15751 Move the 'getpass' section...
15752 * manual/terminal.texi: ...here.
15753
15754 2018-06-29 Zack Weinberg <zackw@panix.com>
15755 Florian Weimer <fweimer@redhat.com>
15756
15757 * posix/unistd.h: Do not declare encrypt.
15758 (_XOPEN_CRYPT): Remove macro definition.
15759 (crypt): Declare only for _USE_MISC.
15760 * stdlib/stdlib.h: Do not declare setkey.
15761 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15762 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15763
15764 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15765 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15766 into compat symbols. Don't define initial_perm if it's not
15767 going to be used.
15768 * crypt/cert.c: Link explicitly with the expected versions for
15769 setkey and encrypt. If they are not available at all, mark
15770 the test as unsupported.
15771
15772 * sunrpc/des_crypt.c: Unconditionally block linkage with
15773 cbc_crypt and ecb_crypt for new binaries.
15774 * sunrpc/des_soft.c: Unconditionally block linkage with
15775 des_setparity for new binaries.
15776
15777 * manual/crypt.texi: Remove the entire "DES Encryption"
15778 section. Also remove the paragraph talking about FIPS 140-2
15779 from the introduction.
15780 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15781 of libgcrypt for "real" encryption, not DES.
15782 * manual/conf.texi (Constants for Sysconf): Mention that
15783 _XOPEN_CRYPT is no longer impelemented.
15784
15785 * conform/data/unistd.h-data: Remove crypt function declaration.
15786
15787 2018-06-29 Florian Weimer <fweimer@redhat.com>
15788
15789 [BZ #23351]
15790 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15791 (disallow_malloc_check): Remove variable.
15792 (__malloc_check_init): Adjust.
15793 (malloc_set_state): Update comment.
15794 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15795 declarations.
15796
15797 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15798
15799 [BZ #23140]
15800 * localedata/locales/ast_ES (mon): Rename to...
15801 (alt_mon): This.
15802 (mon): Import from CLDR (genitive case).
15803
15804 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15805 Jakub Sitnicki <jkbs@redhat.com>
15806
15807 [BZ #21812]
15808 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15809 on NLM_F_DUMP_INTR.
15810
15811 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15812
15813 * manual/llio.texi: Remove spurious space.
15814
15815 2018-06-28 Florian Weimer <fweimer@redhat.com>
15816
15817 [BZ #23349]
15818 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15819 _STRUCT_TIMESPEC.
15820
15821 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15822
15823 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15824 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15825 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15826 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15827 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15828 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15829 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15830
15831 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15832
15833 [BZ #23266]
15834 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15835 Copy and null-terminate entries that are not terminated, in
15836 addition to empty ones.
15837
15838 2018-06-27 Florian Weimer <fweimer@redhat.com>
15839
15840 [BZ #18023]
15841 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15842 (extend_alloca_account): Remove.
15843 * manual/stdio.texi (Variable Arguments Output): Update comment.
15844
15845 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15846
15847 * nptl/sockperf.c: Remove file.
15848
15849 2018-06-27 Florian Weimer <fweimer@redhat.com>
15850
15851 [BZ #18023]
15852 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15853 scratch_buffer instead of extend_alloca.
15854
15855 2018-06-27 Florian Weimer <fweimer@redhat.com>
15856
15857 [BZ #18023]
15858 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15859 scratch_buffer instead of extend_alloca. Update comments.
15860
15861 2018-06-27 Florian Weimer <fweimer@redhat.com>
15862
15863 [BZ #18023]
15864 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15865 instead of extend_alloca.
15866
15867 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15868
15869 [BZ #13888]
15870 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15871 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15872 /tmp.
15873 * scripts/test-installation.pl: Put temporary files in build
15874 directory, not /tmp.
15875 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15876 (CFLAGS-bug4.c): Likewise.
15877 (CFLAGS-bug5.c): Likewise.
15878 (CFLAGS-test-fseek.c): Likewise.
15879 (CFLAGS-test-popen.c): Likewise.
15880 (CFLAGS-test_rdwr.c): Likewise.
15881 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15882 /tmp.
15883 * stdio-common/bug4.c (main): Likewise.
15884 * stdio-common/bug5.c (main): Likewise.
15885 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15886 * stdio-common/test-popen.c (do_test): Likewise.
15887 * stdio-common/test_rdwr.c (main): Likewise.
15888
15889 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15890
15891 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15892 (sem_open): Set sem.newsem.pad to zero for valgrind.
15893
15894 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15895
15896 [BZ #20251]
15897 * NEWS: Mention fcntl64 addition.
15898 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15899 * login/utmp_file.c: Likewise.
15900 * sysdeps/posix/fdopendir.c: Likewise.
15901 * sysdeps/posix/opendir.c: Likewise.
15902 * sysdeps/unix/pt-fcntl.c: Likewise.
15903 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15904 __fcntl64_nocancel_adjusted): New prototype.
15905 (__fcntl_nocancel_adjusted): Remove prototype.
15906 * io/Makefile (routines): Add fcntl64.
15907 (CFLAGS-fcntl64.c): New rule.
15908 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15909 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15910 * io/fcntl.h (fcntl64): Add prototype and redirect if
15911 __USE_FILE_OFFSET64 is defined.
15912 * io/fcntl64.c: New file.
15913 * manual/llio.text: Add a note for which commands fcntl acts a
15914 cancellation point.
15915 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15916 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15917 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15918 New symbols.
15919 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15920 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15921 non-LFS case.
15922 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15923 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15924 to __fcntl64_nocancel.
15925 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15926 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15927 to __fcntl64_nocancel.
15928 * sysdeps/generic/not-cancel.h: Likewise.
15929 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15930 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15931 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15932 (fcntl64): New symbol.
15933 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15934 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15935 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15937 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15938 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15939 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15940 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15941 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15942 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15943 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15944 fcntl64): Likewise.
15945 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15946 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15947 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15948 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15949 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15950 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15951 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15952 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15953 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15955 Likewise.
15956 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15957 Likewise.
15958 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15959 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15960 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15961
15962 2018-06-26 Florian Weimer <fweimer@redhat.com>
15963
15964 Run thread shutdown functions in an explicit order.
15965 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15966 definition.
15967 (__libc_thread_freeres): Call thread shutdown functions
15968 explicitly.
15969 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15970 * include/string.h (__strerror_thread_freeres): Declare.
15971 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15972 arena_thread_freeres. No longer static. Remove thread shutdown
15973 hook registration.
15974 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15975 Declare.
15976 * resolv/res-close.c (__res_thread_freeres): Renamed from
15977 res_thread_freeres. No longer static. Remove thread shutdown
15978 hook registration.
15979 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15980 * resolv/resolv_conf.c (freeres): Remove incorrect section
15981 attribute and use libc_freeres_fn.
15982 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15983 strerror_thread_freeres. No longer static. Remove thread
15984 shutdown hook registration.
15985 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15986 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15987 shutdown hook registration.
15988 * Makerules (shlib.lds): Do not provide section boundary symbols
15989 for __libc_thread_subfreeres.
15990 * manual/memory.texi (Basic Allocation): Update comment.
15991
15992 2018-06-26 Florian Weimer <fweimer@redhat.com>
15993
15994 Remove always-defined _RPC_THREAD_SAFE_ macro.
15995 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15996 Do not define _RPC_THREAD_SAFE_.
15997 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15998 conditional.
15999 * sunrpc/clnt_perr.c: Likewise.
16000 * sunrpc/clnt_raw.c: Likewise.
16001 * sunrpc/clnt_simp.c: Likewise.
16002 * sunrpc/key_call.c: Likewise.
16003 * sunrpc/rpc_common.c: Likewise.
16004 * sunrpc/rpc_main.c: Likewise.
16005 * sunrpc/rpc_thread.c: Likewise.
16006 * sunrpc/svc.c: Likewise.
16007 * sunrpc/svc_raw.c: Likewise.
16008 * sunrpc/svc_simple.c: Likewise.
16009 * sumrpc/svcauth_des.c: Likewise.
16010
16011 2018-06-26 Florian Weimer <fweimer@redhat.com>
16012
16013 * libio/Makefile (tests-internal): Add tst-vtables,
16014 tst-vtables-interposed.
16015 * libio/tst-vtables.c: New file.
16016 * libio/tst-vtables-common.c: Likewise.
16017 * libio/tst-vtables-interposed.c: Likewise.
16018
16019 2018-06-26 Florian Weimer <fweimer@redhat.com>
16020
16021 * support/support_test_main.c (support_test_main): Only call
16022 setvbuf if not disables.
16023 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
16024 * support/test-driver.h (struct test_config): Add no_setvbuf member.
16025
16026 2018-06-26 Florian Weimer <fweimer@redhat.com>
16027
16028 [BZ #23313]
16029 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
16030
16031 2018-06-25 Florian Weimer <fweimer@redhat.com>
16032
16033 [BZ #18023]
16034 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16035 Use struct scratch_buffer instead of extend_alloca.
16036
16037 2018-06-25 Florian Weimer <fweimer@redhat.com>
16038
16039 [BZ #18023]
16040 * nss/getent.c (initgroups_keys): Use dynarray instead of
16041 extend_alloca.
16042
16043 2018-06-25 Florian Weimer <fweimer@redhat.com>
16044
16045 [BZ #18023]
16046 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
16047 Use struct scratch_buffer instead of extend_alloca.
16048
16049 2018-06-25 Florian Weimer <fweimer@redhat.com>
16050
16051 [BZ #18023]
16052 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
16053 back to malloc directly, without stack allocations.
16054
16055 2018-06-25 Florian Weimer <fweimer@redhat.com>
16056
16057 [BZ #18023]
16058 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
16059 of extend_alloca.
16060
16061 2018-06-25 Florian Weimer <fweimer@redhat.com>
16062
16063 [BZ #18023]
16064 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
16065 of extend_alloca.
16066 * nscd/hstcache.c (addhstbyX): Likewise.
16067 * nscd/pwdcache.c (addpwbyX): Likewise.
16068 * nscd/servicescache.c (addservbyX): Likewise.
16069
16070 2018-06-25 Florian Weimer <fweimer@redhat.com>
16071
16072 [BZ #18023]
16073 * nscd/connections.c (read_cmdline): New function.
16074 (restart): Use it. Update comment.
16075
16076 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
16077
16078 [BZ #23140]
16079 * localedata/locales/csb_PL (mon): Rename to...
16080 (alt_mon): This.
16081 (abmon): Rename to...
16082 (ab_alt_mon): This.
16083 (mon): Add with proper genitive forms, copy from Wikipedia.
16084 (abmon): Likewise.
16085
16086 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
16087
16088 [BZ #19485]
16089 * localedata/locales/csb_PL (mon): Fix typos:
16090 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
16091 (yesstr): Add, value is "jo".
16092 (nostr): Add, value is "nié".
16093
16094 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16095
16096 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
16097 all log1p and significand functions on m680x0.
16098 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
16099 of s_significand.c..
16100 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16101 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16102 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16103 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16104 s_log1p.c and include it..
16105
16106 2018-06-21 Vincent Chen <vincentc@andestech.com>
16107
16108 * elf/elf.h (R_NDS32_NONE): New define.
16109 (R_NDS32_32_RELA): Likewise.
16110 (R_NDS32_COPY): Likewise.
16111 (R_NDS32_GLOB_DAT): Likewise.
16112 (R_NDS32_JUMP_SLOT): Likewise.
16113 (R_NDS32_RELATIVE): Likewise.
16114 (R_NDS32_TLS_TPOFF): Likewise.
16115 (R_NDS32_TLS_DESC): Likewise.
16116
16117 2018-06-21 Mark Wielaard <mark@klomp.org>
16118
16119 * elf/elf.h (R_BPF_MAP_FD): Removed.
16120 (R_BPF_64_64, R_BPF_64_32): New.
16121
16122 2018-06-21 Florian Weimer <fweimer@redhat.com>
16123
16124 [BZ #23253]
16125 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16126 Renamed from libc_feholdsetround_ctx.
16127 (default_libc_feresetround_ctx): Renamed from
16128 libc_feresetround_ctx.
16129 (default_libc_feholdsetround_noex_ctx): Renamed from
16130 libc_feholdsetround_noex_ctx.
16131 (default_libc_feresetround_noex_ctx): Renamed from
16132 libc_feresetround_noex_ctx.
16133 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16134 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16135 forwardning to the old implementations under the new names.
16136 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16137 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16138 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16139 (libc_feresetround_ctx): Forward to default implements for i386
16140 and MATH_SET_BOTH_ROUNDING_MODES.
16141 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16142 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16143
16144 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16145
16146 * string/tst-cmp.c: Include <libc-diag.h>.
16147 (strncmp_max): Disable -Wstringop-overflow= around call to
16148 strncmp.
16149 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16150 strncasecmp.
16151
16152 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16153 (main): Disable -Wunused-value around call to strpbrk.
16154 * string/bug-strspn1.c: Include <libc-diag.h>.
16155 (main): Disable -Wunused-value around call to strspn.
16156
16157 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16158 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16159
16160 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16161 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16162
16163 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16164
16165 * math/Makefile (libm-calls): Move s_significandF to...
16166 (gen-libm-calls): ... here.
16167 * math/s_significand_template.c: New file.
16168 * math/s_significand.c: Removed.
16169 * math/s_significandf.c: Removed.
16170 * math/s_significandl.c: Removed.
16171 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16172 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16173
16174 * math/e_exp2_template.c (declare_mgen_finite_alias,
16175 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16176 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16177 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16178
16179 2018-06-20 Florian Weimer <fweimer@redhat.com>
16180
16181 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16182
16183 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16184
16185 [BZ #23280]
16186 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16187 floating-point number to strtod functions rather than possibly
16188 negating result of those functions.
16189 * stdio-common/tst-scanf-round.c: New file.
16190 * stdio-common/Makefile (tests): Add tst-scanf-round.
16191 ($(objpfx)tst-scanf-round): Depend on $(libm).
16192
16193 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16194
16195 * sysdeps/mach/hurd/localplt.data: Move to...
16196 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16197 R_386_GLOB_DAT like on Linux i386.
16198
16199 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16200
16201 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16202 (SHM_STAT_ANY): New macro.
16203 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16204 (SHM_STAT_ANY): Likewise.
16205 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16206 (SHM_STAT_ANY): Likewise.
16207 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16208 (SHM_STAT_ANY): Likewise.
16209 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16210 (SHM_STAT_ANY): Likewise.
16211 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16212 (SHM_STAT_ANY): Likewise.
16213 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16214 (SHM_STAT_ANY): Likewise.
16215 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16216 (SHM_STAT_ANY): Likewise.
16217 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16218 (SHM_STAT_ANY): Likewise.
16219 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16220 (SHM_STAT_ANY): Likewise.
16221 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16222 (SHM_STAT_ANY): Likewise.
16223 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16224 (SHM_STAT_ANY): Likewise.
16225
16226 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16227 (SEM_STAT_ANY): New macro.
16228 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16229 (SEM_STAT_ANY): Likewise.
16230 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16231 (SEM_STAT_ANY): Likewise.
16232 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16233 (SEM_STAT_ANY): Likewise.
16234 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16235 (SEM_STAT_ANY): Likewise.
16236 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16237 (SEM_STAT_ANY): Likewise.
16238 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16239 (SEM_STAT_ANY): Likewise.
16240 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16241 (SEM_STAT_ANY): Likewise.
16242 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16243 (SEM_STAT_ANY): Likewise.
16244 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16245 (SEM_STAT_ANY): Likewise.
16246
16247 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16248 (MSG_STAT_ANY): New macro.
16249 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16250 (MSG_STAT_ANY): Likewise.
16251 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16252 (MSG_STAT_ANY): Likewise.
16253 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16254 (MSG_STAT_ANY): Likewise.
16255 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16256 (MSG_STAT_ANY): Likewise.
16257 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16258 (MSG_STAT_ANY): Likewise.
16259 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16260 (MSG_STAT_ANY): Likewise.
16261 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16262 (MSG_STAT_ANY): Likewise.
16263 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16264 (MSG_STAT_ANY): Likewise.
16265 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16266 (MSG_STAT_ANY): Likewise.
16267
16268 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16269 (MAP_TYPE): Change value to 0x2b.
16270
16271 2018-06-18 Florian Weimer <fweimer@redhat.com>
16272
16273 [BZ #15722]
16274 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16275 socket with SOCK_CLOEXEC.
16276
16277 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16278
16279 [BZ #23303]
16280 * sysdeps/powerpc/powerpc64/le/Makefile
16281 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16282 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16283 (gnulib-tests): Also add $(f128-loader-link) for
16284 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16285
16286 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16287
16288 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16289 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16290 of sendfile.
16291 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16292 (sendfile64): New strong alias.
16293 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16294 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16295 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16296 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16297 attribute.
16298 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16299 ___pthread_get_cleanup_stack.
16300 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16301 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16302 * mach/shortcut.awk: Make syscall stubs include
16303 <mach-shortcuts-hidden.h> and add hidden definition.
16304 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16305 (__mach_msg): Add hidden prototype.
16306 * mach/msg.c: Include <mach.h>.
16307 (__mach_msg): Add hidden definition.
16308 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16309 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16310 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16311 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16312 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16313 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16314 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16315 prototype and definition.
16316 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16317 hidden target for _hurd_self_sigstate.
16318
16319 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16320
16321 [BZ #23007]
16322 * stdlib/tst-strtod-nan-sign-main.c: New file.
16323 * stdlib/tst-strtod-nan-sign.c: Likewise.
16324 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16325 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16326 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16327 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16328 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16329
16330 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16331
16332 [BZ #23007]
16333 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16334 appropriate sign.
16335
16336 2018-06-14 Florian Weimer <fweimer@redhat.com>
16337
16338 [BZ #23290]
16339 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16340 that the result stays within the ISO-8859-1 range.
16341 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16342 characters are defined in IBM273.
16343
16344 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16345
16346 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16347 __mach_task_self): Remove attribute_hidden.
16348
16349 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16350
16351 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16352 ignore -Wrestrict for one test.
16353
16354 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16355 Szabolcs Nagy <szabolcs.nagy@arm.com>
16356
16357 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16358
16359 2018-06-14 Florian Weimer <fweimer@redhat.com>
16360
16361 * scripts/update-abilist.sh: Accept empty list of files to patch.
16362
16363 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16364
16365 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16366 test-xfail-check-abi-libmachuser): Add.
16367 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16368 __libc_read and __libc_write to __read and __write.
16369 * sysdeps/hurd/include/hurd/port.h: New file.
16370 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16371 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16372 __thread_switch, __evc_wait): Move declarations to...
16373 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16374 attribute_hidden.
16375 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16376 use PLT to call _hurd_self_sigstate.
16377
16378 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16379
16380 [BZ #23279]
16381 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16382 MAX_EXP as overflowing.
16383 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16384 overflow flag.
16385 (round_str): Output also whether result overflows in each rounding
16386 mode.
16387 * stdlib/tst-strtod-round-data: Add more tests.
16388 * stdlib/tst-strtod-round-data.h: Regenerated.
16389 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16390 (TEST): Handle extra arguments for overflow flags.
16391 (struct test_overflow): New type.
16392 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16393 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16394 (test_in_one_mode): Take argument with overflow information.
16395 (do_test): Update calls to test_in_one_mode.
16396
16397 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16398
16399 * elf/dl-load (_dl_dst_substitute): Correct comment.
16400 (_dl_dst_count): Likewise.
16401
16402 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16403 lll_futex_timed_wait.
16404
16405 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16406
16407 [BZ #23277]
16408 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16409 attribute.
16410 * math/test-nan-const.c: New file.
16411 * math/Makefile (tests): Add test-nan-const.
16412 (CFLAGS-test-nan-const.c): New variable.
16413
16414 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16415
16416 * benchtests/scripts/compare_strings.py (process_results): Add
16417 funcs argument. Compare only functions which are selected.
16418 (main): Check if base function is among selected functions.
16419 Pass selected functions to process_results.
16420 (__main__): Add -f/--functions argument.
16421
16422 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16423 Hongbo Zhang <hongbo.zhang@linaro.org>
16424
16425 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16426 __memcpy_falkor for phecda core.
16427 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16428 __memmove_falkor for phecda core.
16429 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16430 __memset_falkor for phecda core.
16431 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16432 for phecda core.
16433 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16434 macro to identify phecda core.
16435
16436 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16437 Andreas Schwab <schwab@suse.de>
16438 Dmitry V. Levin <ldv@altlinux.org>
16439 Florian Weimer <fweimer@redhat.com>
16440
16441 [BZ #23102]
16442 [BZ #21942]
16443 [BZ #18018]
16444 [BZ #23259]
16445 CVE-2011-0536
16446 * elf/dl-dst.h: Remove DL_DST_COUNT.
16447 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16448 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16449 (is_dst): Comment. Support ELF gABI.
16450 (_dl_dst_count): Comment. Simplify and count DSTs.
16451 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16452 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16453 locals.
16454
16455 2018-06-12 Zack Weinberg <zackw@panix.com>
16456
16457 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16458 * sysdeps/unix/sysv/linux/dl-sysdep.c
16459 Include not-cancel.h. Use __close_nocancel instead of __close,
16460 __open64_nocancel instead of __open, __read_nocancel instead of
16461 __libc_read, and __write_nocancel instead of __libc_write.
16462
16463 * csu/check_fds.c (check_one_fd)
16464 * sysdeps/posix/fdopendir.c (__fdopendir)
16465 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16466 instead of __fcntl and/or __libc_fcntl.
16467
16468 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16469 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16470 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16471 Use __open64_nocancel instead of __open_nocancel.
16472
16473 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16474 hidden_proto declarations to the end and issue them if either
16475 IS_IN(libc) or IS_IN(rtld).
16476 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16477 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16478 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16479 read_nocancel, waitpid_nocancel, write_nocancel.
16480
16481 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16482 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16483 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16484
16485 * nptl/pt-fcntl.c: New file.
16486 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16487 (libpthread-routines): Add pt-fcntl.
16488 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16489 (__libc_fcntl): Remove attribute_hidden.
16490 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16491 __fcntl_nocancel_adjusted, not fcntl_common.
16492 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16493 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16494 to fcntl_nocancel.c.
16495 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16497 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16498 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16499
16500 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16501 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16502 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16503 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16504 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16505 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16506 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16507 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16508 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16509 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16510 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16511 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16512 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16513 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16514 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16515 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16516 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16517 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16518 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16519 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16520
16521 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16522 libpthread-routines.
16523 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16524 defines nothing.
16525
16526 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16527 __libc_read, and __write instead of __libc_write. Define
16528 __open64 in addition to __open.
16529
16530 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16531
16532 [BZ #23250]
16533 [BZ #10686]
16534 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16535 to _private_tm[3] and add __glibc_reserved2.
16536 Add _Static_assert of offset of __private_ss == 0x30.
16537 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16538 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16539
16540 2018-06-12 Florian Weimer <fweimer@redhat.com>
16541
16542 x86: Make strncmp usable from rtld.
16543 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16544 __strncmp_ia32 if in libc (and not in rtld).
16545 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16546 strncmp if not in libc (and not to __strncmp_sse2).
16547
16548 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16549
16550 [BZ #23140]
16551 * localedata/locales/gd_GB (mon): Rename to...
16552 (alt_mon): This.
16553 (mon): Import from CLDR (genitive case).
16554 * localedata/locales/hsb_DE (mon): Rename to...
16555 (alt_mon): This.
16556 (mon): Import from CLDR (genitive case).
16557 * localedata/locales/wa_BE (mon): Rename to...
16558 (alt_mon): This.
16559 (mon): Add, fill with the proper genitive forms, but CLDR data
16560 is incomplete; completed according to the comments in this file.
16561 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16562
16563 * localedata/locales/wa_BE (country_name): Reword
16564 "Beljike" -> "Beldjike".
16565
16566 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16567
16568 [BZ #23272]
16569 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16570 cases of non-finite arguments.
16571 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16572
16573 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16574
16575 [BZ #23174]
16576 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16577
16578 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16579
16580 [BZ #23264]
16581 * include/unistd.h (__execvpex): New prototype.
16582 * posix/Makefile (tests): Add tst-spawn4.
16583 (tests-internal): Add tst-spawn4-compat.
16584 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16585 * posix/tst-spawn4-compat.c: New file.
16586 * posix/tst-spawn4.c: Likewise.
16587 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16588 binaries as shell scripts.
16589 * sysdeps/posix/spawni.c (__spawni): Likewise.
16590
16591 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16592
16593 [BZ #23145]
16594 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16595 ($(all-built-dso:=.dynsym): New target.
16596 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16597 ($(objpfx)check-initfini.out): New target.
16598 (generated): Add check-initfini.out.
16599 * scripts/check-initfini.awk: New file.
16600 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16601 (_fini): Likewise.
16602 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16603 (_fini): Likewise.
16604 * sysdeps/arm/crti.S (_init): Mark as hidden.
16605 (_fini): Likewise.
16606 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16607 (_fini): Likewise.
16608 * sysdeps/i386/crti.S (_init): Mark as hidden.
16609 (_fini): Likewise.
16610 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16611 (_fini): Likewise.
16612 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16613 (_fini): Likewise.
16614 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16615 (_fini): Likewise.
16616 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16617 (_fini): Likewise.
16618 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16619 (_fini): Likewise.
16620 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16621 (_fini): Likewise.
16622 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16623 (_fini): Likewise.
16624 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16625 (_fini): Likewise.
16626 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16627 (_fini): Likewise.
16628 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16629 (_fini): Likewise.
16630 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16631 (_fini): Likewise.
16632 * sysdeps/sh/crti.S (_init): Mark as hidden.
16633 (_fini): Likewise.
16634 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16635 (_fini): Likewise.
16636 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16637 (_fini): Likewise.
16638
16639 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16640
16641 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16642 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16643 and TF redirection to KFtype and KF only when the default
16644 long double type is not the IEEE 128-bit floating point type.
16645
16646 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16647
16648 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16649 macro.
16650 (HWCAP_USCAT): Likewise.
16651 (HWCAP_ILRCPC): Likewise.
16652 (HWCAP_FLAGM): Likewise.
16653 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16654 Increase to 28.
16655 (_dl_aarch64_cap_flags): Add new flag names.
16656
16657 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16658 (MAP_FIXED_NOREPLACE): New macro.
16659 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16660 (MAP_FIXED_NOREPLACE): Likewise.
16661 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16662 (MAP_FIXED_NOREPLACE): Likewise.
16663 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16664 (MAP_FIXED_NOREPLACE): Likewise.
16665 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16666 (MAP_FIXED_NOREPLACE): Likewise.
16667 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16668 (MAP_FIXED_NOREPLACE): Likewise.
16669 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16670 (MAP_FIXED_NOREPLACE): Likewise.
16671 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16672 (MAP_FIXED_NOREPLACE): Likewise.
16673 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16674 (MAP_FIXED_NOREPLACE): Likewise.
16675 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16676 (MAP_FIXED_NOREPLACE): Likewise.
16677 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16678 (MAP_FIXED_NOREPLACE): Likewise.
16679 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16680 (MAP_FIXED_NOREPLACE): Likewise.
16681 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16682 (MAP_FIXED_NOREPLACE): Likewise.
16683 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16684 (MAP_FIXED_NOREPLACE): Likewise.
16685 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16686 (MAP_FIXED_NOREPLACE): Likewise.
16687
16688 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16689 version to 4.17.
16690
16691 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16692
16693 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16694 version to 4.17
16695
16696 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16697
16698 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16699 int.
16700 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16701
16702 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16703
16704 * benchtests/scripts/compare_string.py: (process_results) Catch
16705 exception in non-existent base_func and catch exception in
16706 non-existent attribute.
16707 (parse_file) Catch exception if input file does not exist.
16708
16709 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16710
16711 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16712 options to avoid diff calculation and omit header, respectively.
16713 (main): process --no-diff and --no-header
16714
16715 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16716 H.J. Lu <hongjiu.lu@intel.com>
16717
16718 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16719 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16720 wcsncmp-sse2.
16721 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16722 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16723 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16724 and __wcsncmp_sse2.
16725 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16726 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16727 AVX unaligned load is fast and vzeroupper is preferred.
16728 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16729 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16730 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16731 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16732 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16733 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16734 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16735 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16736 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16737 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16738 is undefined.
16739
16740 2018-06-01 Florian Weimer <fweimer@redhat.com>
16741
16742 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16743 configuring with --disable-multi-arch, building with
16744 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16745 Haswell-era CPU.
16746
16747 2018-06-01 Florian Weimer <fweimer@redhat.com>
16748
16749 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16750 results from building with “-march=x86-64 -mtune=generic
16751 -mfpmath=sse” and running on a Haswell-era CPU.
16752
16753 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16754
16755 [BZ #18473]
16756 * soft-fp/sqrttf2.c: Remove file.
16757 * soft-fp/sqrtdf2.c: Move to ....
16758 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16759 <shlib-compat.h>.
16760 (__sqrtdf2): Make conditional on
16761 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16762 symbol.
16763 * soft-fp/sqrtsf2.c: Move to ....
16764 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16765 <shlib-compat.h>.
16766 (__sqrtsf2): Make conditional on
16767 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16768 symbol.
16769 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16770 (gcc-double-routines): Remove sqrtdf2.
16771 (gcc-quad-routines): Remove sqrttf2.
16772 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16773 Do not filter out sqrtsf2 and sqrtdf2.
16774 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16775 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16776
16777 2018-06-01 Florian Weimer <fweimer@redhat.com>
16778
16779 * sysdeps/generic/libcidn.abilist: Remove file.
16780
16781 2018-06-01 Florian Weimer <fweimer@redhat.com>
16782
16783 [BZ #23236]
16784 * libio/strfile.h (struct _IO_str_fields): Rename members to
16785 discourage their use and add comment.
16786 (_IO_STR_DYNAMIC): Remove unused macro.
16787 * libio/strops.c (_IO_str_init_static_internal): Do not use
16788 callback pointers. Call malloc and free.
16789 (_IO_str_overflow): Do not use callback pointers. Call malloc
16790 and free.
16791 (enlarge_userbuf): Likewise.
16792 (_IO_str_finish): Call free.
16793 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16794 _allocate_buffer_unused.
16795 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16796 and free.
16797 (enlarge_userbuf): Likewise.
16798 (_IO_wstr_finish): Call free.
16799 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16800 _allocate_buffer_unused, _free_buffer_unused.
16801 * libio/memstream.c (__open_memstream): Likewise.
16802 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16803 * libio/wmemstream.c (open_wmemstream): Likewise.
16804
16805 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16806
16807 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16808 AMD Ryzen 7 1800X.
16809
16810 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16811
16812 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16813 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16814 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16815 New file.
16816 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16817 Likewise.
16818 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16819
16820 2018-05-29 Florian Weimer <fweimer@redhat.com>
16821
16822 * support/Makefile (libsupport-routines): Add
16823 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16824 xpthread_barrierattr_setpshared.
16825 * support/xpthread_barrierattr_destroy.c: New file.
16826 * support/xpthread_barrierattr_init.c: Likewise.
16827 * support/xpthread_barrierattr_setpshared.c: Likewise.
16828
16829 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16830
16831 [BZ #23206]
16832 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16833 _r_debug and update DT_DEBUG for debugger.
16834
16835 2018-05-29 Florian Weimer <fweimer@redhat.com>
16836
16837 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16838 (tst-strtod5i.out): Likewise.
16839
16840 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16841
16842 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16843 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16844 (sparc64-quad-routines): New variable. Moved from ....
16845 [$(subdir) = soft-fp] (sysdep_routines): Add
16846 $(sparc64-quad-routines). Moved from ....
16847 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16848 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16849 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16850 moved from ....
16851 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16852 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16853 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16854 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16855 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16856 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16857 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16858 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16859 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16860 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16861 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16862 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16863 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16864 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16865 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16866 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16867 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16868 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16869 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16870 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16871 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16872 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16873 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16874 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16875 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16876 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16877 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16878 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16879 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16880 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16881 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16882 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16883 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16884 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16885 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16886 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16887 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16888 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16889 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16890 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16891 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16892 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16893 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16894 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16895 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16896 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16897 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16898 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16899 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16900 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16901 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16902 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16903 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16904 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16905 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16906 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16907 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16908 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16909
16910 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16911 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16912 (sparc32-quad-routines): New variable. Moved from ....
16913 [$(subdir) = soft-fp] (sysdep_routines): Add
16914 $(sparc32-quad-routines). Moved from ....
16915 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16916 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16917 moved from ....
16918 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16919 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16920 * sysdeps/sparc/sparc32/q_add.c: ... here.
16921 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16922 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16923 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16924 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16925 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16926 * sysdeps/sparc/sparc32/q_div.c: ... here.
16927 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16928 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16929 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16930 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16931 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16932 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16933 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16934 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16935 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16936 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16937 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16938 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16939 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16940 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16941 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16942 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16943 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16944 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16945 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16946 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16947 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16948 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16949 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16950 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16951 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16952 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16953 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16954 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16955 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16956 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16957 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16958 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16959 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16960 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16961 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16962 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16963 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16964 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16965 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16966 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16967 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16968 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16969 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16970 * sysdeps/sparc/sparc32/q_util.c: ... here.
16971 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16972 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16973 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16974 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16975
16976 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16977 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16978
16979 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16980 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16981 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16982 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16983
16984 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16985
16986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16987 powerpc/soft-fp.
16988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16989 Likewise.
16990 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16991 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16992
16993 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16994
16995 [BZ #23171]
16996 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16997 double version.
16998
16999 2018-05-23 Joseph Myers <joseph@codesourcery.com>
17000
17001 * sysdeps/sh/Implies: Remove sh/soft-fp.
17002 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
17003 * sysdeps/sh/sfp-machine.h: ... here.
17004
17005 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17006
17007 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17008 (__mempcpy_erms): Skip zero length.
17009 (__memmove_erms): Likewise.
17010 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17011 (__memset_erms): Likewise.
17012
17013 2018-05-23 Joseph Myers <joseph@codesourcery.com>
17014
17015 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
17016 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17017 Add functions moved from ....
17018 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
17019 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
17020 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
17021 from ....
17022 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
17023 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
17024 * sysdeps/alpha/e_sqrtl.c: ... here.
17025 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
17026 * sysdeps/alpha/local-soft-fp.h: ... here.
17027 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
17028 * sysdeps/alpha/ots_add.c: ... here.
17029 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
17030 * sysdeps/alpha/ots_cmp.c: ... here.
17031 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
17032 * sysdeps/alpha/ots_cmpe.c: ... here.
17033 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
17034 * sysdeps/alpha/ots_cvtqux.c: ... here.
17035 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
17036 * sysdeps/alpha/ots_cvtqx.c: ... here.
17037 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
17038 * sysdeps/alpha/ots_cvttx.c: ... here.
17039 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
17040 * sysdeps/alpha/ots_cvtxq.c: ... here.
17041 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
17042 * sysdeps/alpha/ots_cvtxt.c: ... here.
17043 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
17044 * sysdeps/alpha/ots_div.c: ... here.
17045 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
17046 * sysdeps/alpha/ots_mul.c: ... here.
17047 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
17048 * sysdeps/alpha/ots_nintxq.c: ... here.
17049 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
17050 * sysdeps/alpha/ots_sub.c: ... here.
17051 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
17052 * sysdeps/alpha/sfp-machine.h: ... here.
17053
17054 2018-05-23 Florian Weimer <fweimer@redhat.com>
17055
17056 [BZ #19728]
17057 [BZ #19729]
17058 [BZ #22247]
17059 CVE-2016-6261
17060 CVE-2016-6263
17061 CVE-2017-14062
17062 Switch to extern IDNA implementation (libidn2).
17063 * libidn: Remove subdirectory.
17064 * LICENSES: Do not mention licensing conditions for the removed
17065 libidn code.
17066 * config.h.in (HAVE_LIBIDN): Remove.
17067 * include/dlfcn.h (__libc_dlopen): Update comment.
17068 * include/idna.h: Remove file.
17069 * inet/Makefile (routines): Add idna.
17070 (tests-static, tests-internal): Add tst-idna_name_classify.
17071 (LOCALES): Generate locales for tests.
17072 (tst-idna_name_classify.out): Depend on generated locales.
17073 * inet/idna_name_classify.c: New file.
17074 * inet/tst-idna_name_classify.c: Likewise.
17075 * inet/net-internal.h (__idna_to_dns_encoding)
17076 (__idna_from_dns_encoding): Declare.
17077 * inet/net-internal.h (enum idna_name_classification): Define.
17078 (__idna_name_classify): Declare.
17079 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
17080 __idna_from_dns_encoding.
17081 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
17082 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
17083 name as a fallback in case of encoding errors.
17084 (getnameinfo): Use DEPRECATED_NI_IDN.
17085 * inet/idna.c: New file.
17086 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
17087 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
17088 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
17089 (modules-names): Add tst-no-libidn2.
17090 (extra-test-objs): Add tst-no-libidn2.os.
17091 (LDFLAGS-tst-no-libidn2.so): Set soname.
17092 (LOCALES): Set, and generate locales.
17093 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
17094 (tst-resolv-ai_idn-latin1): Likewise.
17095 (tst-resolv-ai_idn-nolibidn2): Likewise.
17096 (tst-resolv-ai_idn.out): Depend on locales.
17097 (tst-resolv-ai_idn-latin1.out): Depend on locales.
17098 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
17099 tst-no-libidn2.so.
17100 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17101 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17102 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17103 * resolv/tst-resolv-ai_idn.c: New file.
17104 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17105 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17106 * resolv/tst-no-libidn2.c: Likewise.
17107 * support/support_format_addrinfo.c (format_ai_flags): Do not
17108 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17109 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17110 (gaih_inet): Call __idna_to_dns_encoding and
17111 __idna_from_dns_encoding, and use the original (punycode) name if
17112 __idna_from_dns_encoding fails due to an encoding error.
17113 (getaddrinfo): Use DEPRECATED_AI_IDN.
17114 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17115 * sysdeps/unix/inet/configure: Remove file.
17116 * sysdeps/unix/inet/configure.ac: Likewise.
17117
17118 2018-05-23 Florian Weimer <fweimer@redhat.com>
17119
17120 Implement allocate_once.
17121 * include/allocate_once.h: New file.
17122 * misc/allocate_once.c: Likewise.
17123 * misc/tst-allocate_once.c: Likewise.
17124 * misc/Makefile (routines): Add allocate_once.
17125 (tests-internal): Add tst-allocate_once.
17126 (generated): Add tst-allocate_once.mtrace,
17127 tst-allocate_once-mem.out.
17128 (tests-special): Add tst-allocate_once-mem.out.
17129 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17130 (tst-allocate_once-mem.out): Call mtrace.
17131 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17132
17133 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17134
17135 [BZ #23196]
17136 * string/test-memcpy.c (do_test1): New function.
17137 (test_main): Call it.
17138
17139 2018-05-23 Andreas Schwab <schwab@suse.de>
17140
17141 [BZ #23196]
17142 CVE-2018-11237
17143 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17144 (L(preloop_large)): Save initial destination pointer in %r11 and
17145 use it instead of %rax after the loop.
17146 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17147
17148 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17149
17150 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17151 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17152 -I../soft-fp. Moved from ....
17153 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17154 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17155 * sysdeps/aarch64/e_sqrtl.c: ... here.
17156 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17157 * sysdeps/aarch64/sfp-machine.h: ... here.
17158
17159 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17160 -Wmaybe-uninitialized around access to fq[0].
17161 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17162 Likewise.
17163
17164 [BZ #18471]
17165 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17166 aliases for non-libc case of versioned symbols.
17167 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17168 (llseek): Define as compat symbol if
17169 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17170 with link warning.
17171 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17172 Make into a compat symbol, disabled for minimum symbol version
17173 GLIBC_2.28 and later.
17174 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17175
17176 2018-05-22 Florian Weimer <fweimer@redhat.com>
17177
17178 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17179 not add -mpreferred-stack-boundary=4.
17180 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17181 (stack-align-test-flags): Likewise.
17182 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17183 Likewise.
17184 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17185 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17186 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17187 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17188 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17189 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17190 (CFLAGS-tst-align2.c): Likewise.
17191
17192 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17193
17194 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17195 (index_arch_Prefer_FSRM): Likewise.
17196 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17197 Also check Prefer_FSRM.
17198 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17199 Also return OPTIMIZE (erms) for Prefer_FSRM.
17200
17201 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17202
17203 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17204 (index_cpu_FSRM): Likewise.
17205 (reg_FSRM): Likewise.
17206
17207 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17208
17209 * math/gen-tgmath-tests.py: Import sys.
17210 (Tests.__init__): Initialize macros_seen.
17211 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17212 if requested to do so for this macro.
17213 (Tests.add_all_tests): Take argument for macro for which to
17214 generate tests.
17215 (Tests.check_macro_list): New function.
17216 (main): Handle check-list argument and argument specifying macro
17217 for which to generate tests.
17218 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17219 [PYTHON] (tgmath3-macro-tests): Likewise.
17220 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17221 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17222 not test-tgmath3.c.
17223 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17224 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17225 to CFLAGS.
17226 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17227 [PYTHON] ($(foreach
17228 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17229 rule.
17230 [PYTHON] (tests-special): Add
17231 $(objpfx)test-tgmath3-macro-list.out.
17232 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17233
17234 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17235 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17236 later.
17237
17238 [BZ #22639]
17239 * time/tzset.c (SECSPERDAY): Cast to time_t.
17240 * time/tst-y2039.c: New file.
17241 * time/Makefile (tests): Add tst-y2039.
17242
17243 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17244
17245 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17246 (PREFETCH_ONE_SET): Remove duplicate line.
17247
17248 2018-05-17 Florian Weimer <fweimer@redhat.com>
17249
17250 * sysdeps/generic/math-type-macros-double.h: Include
17251 <math-nan-payload-double.h> after <libm-alias-double.h>.
17252 * sysdeps/generic/math-type-macros-float.h: Include
17253 <math-nan-payload-float.h> after <libm-alias-float.h>.
17254 * sysdeps/generic/math-type-macros-float128.h: Include
17255 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17256 * sysdeps/generic/math-type-macros-ldouble.h: Include
17257 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17258
17259 2018-05-17 Andreas Schwab <schwab@suse.de>
17260
17261 * resolv/res_send.c (__res_context_send): Don't set errno when
17262 returing error after malloc failure.
17263
17264 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17265
17266 * nptl/allocatestack.c (allocate_stack): Remove the
17267 !__ASSUME_PRIVATE_FUTEX paths.
17268 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17269 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17270 Likewise.
17271 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17272 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17273 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17274 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17275 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17276 !__ASSUME_PRIVATE_FUTEX path.
17277 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17278 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17279 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17280 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17281 !__ASSUME_PRIVATE_FUTEX macros.
17282 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17283 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17284 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17285 * sysdeps/unix/sysv/linux/kernel-features.h
17286 (__ASSUME_PRIVATE_FUTEX): Removed.
17287
17288 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17289
17290 * math/Makefile (libm-narrow-fns): Add div.
17291 (libm-test-funcs-narrow): Likewise.
17292 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17293 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17294 * math/gen-auto-libm-tests.c (test_functions): Add div.
17295 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17296 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17297 (NARROW_DIV_TRIVIAL): Likewise.
17298 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17299 macro.
17300 (__ddivl): Likewise.
17301 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17302 ddiv.
17303 (CFLAGS-nldbl-ddiv.c): New variable.
17304 (CFLAGS-nldbl-fdiv.c): Likewise.
17305 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17306 __nldbl_ddivl.
17307 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17308 prototype.
17309 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17310 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17311 * math/auto-libm-test-in: Add tests of div.
17312 * math/auto-libm-test-out-narrow-div: New generated file.
17313 * math/libm-test-narrow-div.inc: New file.
17314 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17315 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17316 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17317 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17318 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17319 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17320 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17321 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17322 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17323 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17324 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17325 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17326 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17327 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17328 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17329 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17330 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17331 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17332 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17333 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17334 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17335 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17336 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17337 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17338 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17339 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17340 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17341 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17342 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17343 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17344 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17345 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17350 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17351 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17352 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17353 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17354 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17355 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17356 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17357 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17358
17359 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17360
17361 [BZ #23178]
17362 * nscd/nscd-client.h (sendfileall): Remove prototype.
17363 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17364 (handle_request): Use writeall instead of sendfileall.
17365 * nscd/aicache.c (addhstaiX): Likewise.
17366 * nscd/grpcache.c (cache_addgr): Likewise.
17367 * nscd/hstcache.c (cache_addhst): Likewise.
17368 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17369 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17370 * nscd/pwdcache.c (cache_addpw): Likewise.
17371 * nscd/servicescache.c (cache_addserv): Likewise.
17372 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17373 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17374 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17375 Remove define.
17376
17377 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17378
17379 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17380 Include <string/strncat.c>.
17381 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17382 alias.
17383 (__GI___strncat): New hidden alias.
17384
17385 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17386
17387 * sysdeps/mips/mips32/libm-test-ulps: Update.
17388 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17389
17390 2018-05-16 Florian Weimer <fweimer@redhat.com>
17391
17392 * support/Makefile (libsupport-routines): Add support_quote_blob,
17393 support_test_compare_blob.
17394 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17395 * support/check.h (TEST_COMPARE_BLOB): Define.
17396 (support_test_compare_blob): Declare.
17397 * support/support.h (support_quote_blob): Declare.
17398 * support/support_quote_blob.c: New file.
17399 * support/support_test_compare_blob.c: Likewise.
17400 * support/tst-support_quote_blob.c: Likewise.
17401 * support/tst-test_compare_blob.c: Likewise.
17402
17403 2018-05-16 Florian Weimer <fweimer@redhat.com>
17404
17405 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17406 of <strtod_nan_double.h>.
17407 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17408 instead of SET_MANTISSA.
17409 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17410 of include <strtod_nan_float.h>.
17411 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17412 instead of <strtod_nan_ldouble.h>.
17413 * stdlib/strtod_nan_double.h: Move to ...
17414 * sysdeps/generic/math-nan-payload-double.h: ... here.
17415 (FLOAT): Remove definition.
17416 (SET_MANTISSA): Rename to ...
17417 (SET_NAN_PAYLOAD): ... this.
17418 * stdlib/strtod_nan_float.h: Move to ...
17419 * sysdeps/generic/math-nan-payload-float.h: ... here.
17420 (FLOAT): Remove definition.
17421 (SET_MANTISSA): Rename to ...
17422 (SET_NAN_PAYLOAD): ... this.
17423 * sysdeps/generic/math-type-macros-double.h: Include
17424 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17425 instead of <math-svid-compat.h>.
17426 * sysdeps/generic/math-type-macros-float.h: Include
17427 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17428 instead of <math-svid-compat.h>.
17429 * sysdeps/generic/math-type-macros-float128.h: Include
17430 <math-nan-payload-float128.h>.
17431 * sysdeps/generic/math-type-macros-ldouble.h: Include
17432 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17433 instead of <math-svid-compat.h>.
17434 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17435 check for definition.
17436 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17437 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17438 Include <ieee754_float128.h>.
17439 (FLOAT): Remove definition.
17440 (SET_MANTISSA): Rename to ...
17441 (SET_NAN_PAYLOAD): ... this.
17442 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17443 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17444 Do not include <float128_private.h>.
17445 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17446 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17447 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17448 (FLOAT): Remove definition.
17449 (SET_MANTISSA): Rename to ...
17450 (SET_NAN_PAYLOAD): ... this.
17451 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17452 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17453 (FLOAT): Remove definition.
17454 (SET_MANTISSA): Rename to ...
17455 (SET_NAN_PAYLOAD): ... this.
17456 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17457 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17458 (FLOAT): Remove definition.
17459 (SET_MANTISSA): Rename to ...
17460 (SET_NAN_PAYLOAD): ... this.
17461 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17462 of "../stdlib/strtod_nan_double.h".
17463 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17464 of "../stdlib/strtod_nan_float.h".
17465 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17466 instead of "../stdlib/strtod_nan_ldouble.h".
17467 * manual/arith.texi (Parsing of Floats): Adjust comment.
17468
17469 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17470
17471 * math/Makefile (libm-narrow-fns): Add mul.
17472 (libm-test-funcs-narrow): Likewise.
17473 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17474 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17475 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17476 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17477 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17478 (NARROW_MUL_TRIVIAL): Likewise.
17479 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17480 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17481 macro.
17482 (__dmull): Likewise.
17483 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17484 dmul.
17485 (CFLAGS-nldbl-dmul.c): New variable.
17486 (CFLAGS-nldbl-fmul.c): Likewise.
17487 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17488 __nldbl_dmull.
17489 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17490 prototype.
17491 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17492 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17493 * math/auto-libm-test-in: Add tests of mul.
17494 * math/auto-libm-test-out-narrow-mul: New generated file.
17495 * math/libm-test-narrow-mul.inc: New file.
17496 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17497 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17498 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17499 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17500 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17501 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17502 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17503 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17504 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17505 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17506 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17507 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17508 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17509 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17510 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17511 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17512 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17513 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17514 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17515 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17516 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17517 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17518 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17519 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17520 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17521 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17522 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17523 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17524 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17525 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17526 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17527 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17532 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17533 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17534 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17535 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17536 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17537 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17538 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17539 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17540
17541 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17542
17543 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17544 with *%eax in call.
17545
17546 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17547
17548 * sysdeps/i386/ldsodefs.h: Removed.
17549 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17550 * sysdeps/x86/ldsodefs.h: This.
17551 (La_i86_regs): New.
17552 (La_i86_retval): Likewise.
17553 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17554 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17555
17556 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17557
17558 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17559 unnecessary testl.
17560
17561 2018-05-13 Alan Modra <amodra@gmail.com>
17562
17563 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17564 R_PARISC_TLS_DTPOFF32 reloc addend.
17565
17566 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17567
17568 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17569 * math/math.h: Restrict the prototype definition for the functions
17570 issignaling(_Float128) and iszero(_Float128); and template
17571 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17572 __HAVE_FLOAT128_UNLIKE_LDBL.
17573 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17574 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17575 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17576 __f128() constants; define the type _Float128 as long double;
17577 and reuse long double in __CFLOAT128.
17578
17579 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17580
17581 * sysdeps/generic/math_private.h: Do not include
17582 <math-barriers.h>.
17583 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17584 <math_private.h>.
17585 * math/fromfp.h: Include <math-barriers.h>.
17586 * math/math-narrow.h: Likewise.
17587 * math/s_nextafter.c: Likewise.
17588 * math/s_nexttowardf.c: Likewise.
17589 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17590 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17591 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17592 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17593 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17594 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17595 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17596 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17597 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17598 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17599 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17600 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17601 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17602 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17603 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17604 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17605 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17606 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17607 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17608 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17609 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17610 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17611 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17612 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17613 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17614 * sysdeps/ieee754/k_standardl.c: Likewise.
17615 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17616 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17617 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17618 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17619 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17620 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17621 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17622 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17623 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17624 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17625 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17626 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17627 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17628 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17629 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17630 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17631 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17632 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17633 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17634 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17635 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17636 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17637
17638 2018-05-11 Florian Weimer <fweimer@redhat.com>
17639
17640 Use 64-bit epoch values in the time zone file parser.
17641 * include/time.h (internal_time_t): Define.
17642 (__tzfile_compute): Use it.
17643 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17644 member.
17645 (transitions): Switch to internal_time_t.
17646 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17647 types.
17648 (__tzfile_compute): Use internal_time_t for timer argument. Check
17649 for truncation before calling __offtime.
17650
17651 2018-05-11 Florian Weimer <fweimer@redhat.com>
17652
17653 [BZ #23166]
17654 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17655 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17656 Likewise.
17657 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17658 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17659 export without --enable-obsolete-rpc.
17660 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17661 symbol. This should not have been exported, ever.
17662
17663 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17664
17665 [BZ #23152]
17666 * localedata/locales/gd_GB (abmon): Fix typo in May:
17667 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17668
17669 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17670
17671 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17672 Use multiple registers to copy data in loop tail.
17673
17674 * sysdeps/aarch64/multiarch/memmove_falkor.S
17675 (__memmove_falkor): Use multiple registers to move data in
17676 loop tail.
17677
17678 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17679
17680 * math/math-underflow.h: New file.
17681 * sysdeps/generic/math_private.h: Do not include <float.h>.
17682 (fabs_tg): Remove macro. Moved to math-underflow.h.
17683 (min_of_type_f): Likewise.
17684 (min_of_type_): Likewise.
17685 (min_of_type_l): Likewise.
17686 (min_of_type_f128): Likewise.
17687 (min_of_type): Likewise.
17688 (math_check_force_underflow): Likewise.
17689 (math_check_force_underflow_nonneg): Likewise.
17690 (math_check_force_underflow_complex): Likewise.
17691 * math/e_exp2_template.c: Include <math-underflow.h>.
17692 * math/k_casinh_template.c: Likewise.
17693 * math/s_catan_template.c: Likewise.
17694 * math/s_catanh_template.c: Likewise.
17695 * math/s_ccosh_template.c: Likewise.
17696 * math/s_cexp_template.c: Likewise.
17697 * math/s_clog10_template.c: Likewise.
17698 * math/s_clog_template.c: Likewise.
17699 * math/s_csin_template.c: Likewise.
17700 * math/s_csinh_template.c: Likewise.
17701 * math/s_csqrt_template.c: Likewise.
17702 * math/s_ctan_template.c: Likewise.
17703 * math/s_ctanh_template.c: Likewise.
17704 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17705 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17706 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17707 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17708 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17709 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17710 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17711 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17712 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17713 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17714 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17715 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17716 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17717 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17718 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17719 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17720 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17721 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17722 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17723 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17724 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17725 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17726 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17727 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17728 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17729 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17730 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17731 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17732 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17733 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17734 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17735 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17736 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17737 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17738 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17739 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17740 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17741 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17742 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17743 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17744 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17745 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17746 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17747 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17748 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17749 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17750 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17751 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17752 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17753 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17754 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17755 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17756 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17757 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17758 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17759 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17760 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17761 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17762 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17763 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17764 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17765 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17766 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17767 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17768 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17769 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17770 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17771 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17772 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17773 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17774 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17775 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17776 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17777 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17778 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17779 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17780 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17781 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17782 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17783 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17784 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17785 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17786 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17787 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17788
17789 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17790
17791 * sysdeps/generic/math-barriers.h: New file.
17792 * sysdeps/generic/math_private.h [!math_opt_barrier]
17793 (math_opt_barrier): Move to math-barriers.h.
17794 [!math_opt_barrier] (math_force_eval): Likewise.
17795 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17796 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17797 math-barriers.h.
17798 (math_force_eval): Likewise.
17799 * sysdeps/alpha/fpu/math-barriers.h: New file.
17800 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17801 math-barriers.h.
17802 (math_force_eval): Likewise.
17803 * sysdeps/x86/fpu/math-barriers.h: New file.
17804 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17805 math-barriers.h.
17806 (math_force_eval): Likewise.
17807 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17808 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17809 multiple-include guard for rename.
17810 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17811 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17812 math-barriers.h.
17813 (math_force_eval): Likewise.
17814
17815 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17816
17817 [BZ #22786]
17818 CVE-2018-11236
17819 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17820 computation.
17821 * stdlib/Makefile (test-bz22786): New test.
17822 * stdlib/test-bz22786.c: New test.
17823
17824 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17825
17826 * include/math-narrow-eval.h: New file. Contents moved from ....
17827 * sysdeps/generic/math_private.h: ... here.
17828 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17829 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17830 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17831 * stdlib/strtod_l.c: Likewise.
17832 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17833 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17834 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17835 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17836 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17837 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17838 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17839 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17840 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17841 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17842 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17843 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17844 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17845 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17846 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17847 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17848 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17849 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17850 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17851 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17852 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17853 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17854 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17855 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17856 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17857 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17858 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17859 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17860 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17861
17862 2018-05-08 Andreas Schwab <schwab@suse.de>
17863
17864 * sysdeps/nptl/internaltypes.h: Fix comment.
17865
17866 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17867
17868 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17869 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17870 hidden.
17871
17872 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17873
17874 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17875 of I into loop header.
17876 * benchtests/bench-memmove-walk.c
17877 (test_main): Likewise.
17878
17879 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17880
17881 Revert:
17882 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17883 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17884
17885 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17886
17887 [BZ #20419]
17888 * elf/dl-load.c (open_verify): Fix stack overflow.
17889 * elf/Makefile (tst-big-note): New test.
17890 * elf/tst-big-note-lib.S: New.
17891 * elf/tst-big-note.c: New.
17892
17893 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17894
17895 * scripts/abilist.awk: Ignore absolute symbols.
17896 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17897 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17898 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17899 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17900 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17901 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17902 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17903 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17904 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17905 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17906 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17907 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17911 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17912 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17915 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17916 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17923 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17924 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17925 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17926 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17929 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17933 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17943 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17956 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17957 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17960 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17961 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17962 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17963 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17964 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17965 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17967 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17968 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17970 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17971 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17972 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17973 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17974 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17975 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17976 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17977 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17978 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17979 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17980 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17981 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17982 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17983 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17984 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17985 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17986 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17988 Likewise.
17989 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17992 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17993 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17995 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17996 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17997 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17998 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17999 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
18000 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
18001 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
18002 Likewise.
18003 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18005 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
18006 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
18007 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18008 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
18009 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
18011 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
18012 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
18013 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
18014 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
18015 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
18016 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
18017 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18018 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
18019 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
18020 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18021 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
18022 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
18025 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
18026 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
18027 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18028 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
18029 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
18030 Likewise.
18031 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
18033 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
18034 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18036 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
18037 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
18040 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
18041 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
18042 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
18043 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
18044 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
18045 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
18046 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
18047 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
18048 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
18049 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
18050 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
18051 Likewise.
18052 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
18053 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
18054 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
18055 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18056 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
18057 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
18058 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
18059 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
18060 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
18061 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
18062 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18063 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
18064 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
18065 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18066 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
18067 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
18068 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
18069 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
18070 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18071 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
18072 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
18073 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18074 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
18075 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
18076 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
18077 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
18078 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
18079 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
18080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
18081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18082 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
18083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
18084 Likewise.
18085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
18086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
18087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
18088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
18089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
18090 Likewise.
18091 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
18092 Likewise.
18093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
18094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
18095 Likewise.
18096 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
18097 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18098 Likewise.
18099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18100 Likewise.
18101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18104 Likewise.
18105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18106 Likewise.
18107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18108 Likewise.
18109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18111 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18113 Likewise.
18114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18120 Likewise.
18121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18123 Likewise.
18124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18125 Likewise.
18126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18127 Likewise.
18128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18129 Likewise.
18130 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18132 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18133 Likewise.
18134 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18135 Likewise.
18136 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18137 Likewise.
18138 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18139 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18140 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18141 Likewise.
18142 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18143 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18144 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18145 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18146 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18147 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18148 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18149 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18150 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18151 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18152 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18153 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18154 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18155 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18156 Likewise.
18157 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18158 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18159 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18160 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18161 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18162 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18163 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18164 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18165 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18166 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18167 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18168 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18169 Likewise.
18170 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18171 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18172 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18173 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18174 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18175 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18176 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18177 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18178 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18179 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18180 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18181 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18182 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18183 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18184 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18185 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18186 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18187 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18188 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18189 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18190 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18191 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18192 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18193 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18194 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18195 Likewise.
18196 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18197 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18198 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18199 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18200 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18201 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18202 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18203 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18204 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18205 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18206 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18207 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18208 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18209 Likewise.
18210 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18211 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18212 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18213 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18214 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18215 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18216 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18217 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18218 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18219 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18220 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18221 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18222 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18223 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18224 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18225 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18226 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18227 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18228 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18229 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18230 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18231 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18232 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18233 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18234 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18235 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18236 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18237 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18238 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18239 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18240 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18241 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18242 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18243 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18244 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18245 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18246 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18247 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18248
18249 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18250
18251 [BZ #23137]
18252 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18253 Use atomic_load_acquire to load __tid.
18254
18255 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18256
18257 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18258 Restore the pointer into %rdx, after syscall and use %rdx,
18259 instead of %rsi, to restore context.
18260
18261 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18262
18263 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18264 Pop the pointer into %rdx after syscall and use %rdx, instead
18265 of %rsi, to restore context.
18266
18267 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18268
18269 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18270 handlers after setjmp.
18271 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18272 defined.
18273 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18274 <libc-pointer-arith.h>.
18275 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18276 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18277 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18278 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18279 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18280 * sysdeps/x86/__longjmp_cancel.S: New file.
18281 * sysdeps/x86/longjmp.c: Likewise.
18282 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18283
18284 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18285
18286 * NEWS: Add ustat.h deprecation entry.
18287 * bits/ustat.h: Remove file.
18288 * misc/sys/ustat.h: Likewise.
18289 * misc/ustat.h: Likewise.
18290 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18291 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18292 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18293 compatibility mode.
18294 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18295 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18296 generic Linux implementation.
18297
18298 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18299
18300 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18301 * math/w_expl_compat.c: Likewise.
18302 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18303
18304 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18305
18306 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18307
18308 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18309
18310 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18311 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18312 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18313 Remove.
18314 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18316 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18317 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18318 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18319 and SYSCALL_LL64.
18320
18321 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18322
18323 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18324
18325 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18326 * math/w_asin_template.c: Likewise.
18327 * math/w_atanh_template.c: Likewise.
18328
18329 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18330
18331 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18332 to powerpc/powerpc64/be for big-endian.
18333 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18334 little-endian.
18335
18336 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18337 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18338 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18339 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18340 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18341 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18342 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18343 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18344 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18345 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18346 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18347 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18348 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18349 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18350 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18351 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18352 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18353 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18354 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18355 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18356 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18357 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18358 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18359 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18360 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18361 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18362 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18363 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18364 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18365 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18366 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18367 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18368
18369 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18370 adjusted to imply powerpc64 and older processors on powerpc64/be.
18371 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18372 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18373 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18374 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18375 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18376 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18377 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18378 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18379 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18380 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18381 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18382 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18383 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18384 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18385 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18386 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18387 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18388 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18389 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18390 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18391 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18392 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18393 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18394 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18395 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18396 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18397 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18398 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18399 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18400 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18401 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18402
18403 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18404 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18405 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18406 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18407
18408 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18409 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18410 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18411 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18412
18413 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18414 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18415 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18416 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18417 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18418 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18419 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18420 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18421 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18422 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18423 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18424
18425 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18426 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18427 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18428 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18429 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18430 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18431 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18432 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18433 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18434 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18435 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18436
18437 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18438 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18439 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18440 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18441 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18442 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18443 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18444 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18445 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18446 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18447 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18448 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18449
18450 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18451 and adjusted to imply olders processors.
18452 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18453 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18454 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18455 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18456 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18457 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18458 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18459 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18460 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18461 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18462 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18463
18464 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18465 powerpc64/le.
18466 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18467 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18468
18469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18470 powerpc64le.
18471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18473
18474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18475 powerpc64/be.
18476 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18479
18480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18481 powerpc64 and adjusted.
18482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18485 Likewise.
18486
18487 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18488
18489 * sysdeps/tile: Remove.
18490 * sysdeps/unix/sysv/linux/tile: Likewise.
18491 * README (tilegx-*-linux-gnu): Remove from list of supported
18492 configurations.
18493 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18494 contribution of support for generic Linux kernel syscall
18495 interface.
18496 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18497 tilegx configurations.
18498 (Config.install_linux_headers): Do not handle tile.
18499 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18500 in comment.
18501 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18502 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18503 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18504 conditional undefine and redefine.
18505 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18506 in comment.
18507 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18508 conditional undefine and redefine.
18509
18510 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18511
18512 * signal/tst-sigaction.c: New file to test BZ #23069.
18513 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18514
18515 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18516
18517 [BZ #22766]
18518 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18519 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18520 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18521 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18522
18523 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18524
18525 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18526 _DIRENT_MATCHES_DIRENT64 is not defined.
18527 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18528 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18529 is defined.
18530 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18531 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18532
18533 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18534
18535 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18536 version to GCC 8 branch.
18537
18538 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18539
18540 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18541 (check_no_hidden): Use type of original function when declaring
18542 alias.
18543
18544 * sysdeps/unix/sysv/linux/sys/ptrace.h
18545 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18546 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18547 (struct __ptrace_seccomp_metadata): New type.
18548 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18549 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18550 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18551 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18552 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18553 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18554 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18555 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18556 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18557 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18558 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18559 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18560 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18561 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18562 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18563 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18564
18565 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18566
18567 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18568 defined.
18569 * dirent/versionsort.c (versionsort): Likewise.
18570 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18571 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18572 * dirent/versionsort64.c (versionsort64): Likewise.
18573 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18574 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18575 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18576 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18577 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18578 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18579 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18580 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18581 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18582 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18585 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18586 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18587
18588 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18589
18590 * elf/elf.h (NT_PPC_PKEY): New macro.
18591
18592 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18593
18594 [BZ #23094]
18595 * localedata/locales/hr_HR: fix thousands_sep and
18596 mon_thousands_sep
18597
18598 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18599
18600 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18601 (XTABS): Define to TAB3.
18602
18603 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18604
18605 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18606
18607 * dirent/scandir-tail-common.c: New file.
18608 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18609 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18610 * dirent/scandir.c: Use scandir-tail-common.c.
18611 * dirent/scandirat.c: Likewise.
18612 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18613 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18614 if _DIRENT_MATCHES_DIRENT64 is defined.
18615 * dirent/scandirat64.c (scandirat64): Likewise.
18616 * include/dirent.h (__scandir_tail): Only define iff
18617 _DIRENT_MATCHES_DIRENT64 is not defined.
18618 (__scandir64_tail): Define regardless.
18619 (__scandirat, scandirat64): Remove libc_hidden_proto.
18620 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18621 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18623 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18624 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18625 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18626 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18627
18628 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18629
18630 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18631 New macro.
18632 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18633 Increase to 24.
18634 (_dl_aarch64_cap_flags): Add asimdfhm.
18635
18636 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18637
18638 * sysdeps/nios2/libm-test-ulps: Update.
18639
18640 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18641
18642 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18643 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18644
18645 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18646 requirements.
18647 (_DIRENT_MATCHES_DIRENT64): Undef
18648 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18649 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18650 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18651 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18652 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18653 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18654 use getdents64 syscalls as base.
18655 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18656 symbol if required.
18657 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18658 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18659 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18660 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18661 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18662 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18663 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18664 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18665 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18666 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18667 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18668
18669 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18670
18671 * scripts/test_printers_common.py (init_test): Disable lock elision.
18672
18673 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18674
18675 * math/test-tgmath.c (count_double, count_float,
18676 count_ldouble, count_cdouble, count_cfloat,
18677 count_cldouble): Use volatile int.
18678
18679 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18680
18681 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18682 (conformtest-xfail-conds): Add i386-gnu.
18683 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18684 i386-gnu.
18685 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18686 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18687 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18688 msqid_ds.msg_lrpid): Likewise.
18689 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18690 Likewise.
18691 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18692 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18693 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18694 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18695 unsigned int.
18696 (struct statvfs64): Likewise.
18697 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18698 Likewise.
18699 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18700 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18701 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18702 instead of wait_queue.
18703 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18704 instead of vm_area_struct.
18705 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18706 struct sched_param definition to it.
18707 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18708 * bits/types/struct_sched_param.h: New file.
18709 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18710 <bits/types/struct_sched_param.h> instead of <sched.h>.
18711 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18712 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18713 generic version but include <bits/pthreadtypes.h> to make struct
18714 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18715 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18716 non-compliant.
18717 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18718 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18719 [__USE_XOPEN] (OFDEL): New macro.
18720 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18721 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18722 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18723 prototypes.
18724 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18725 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18726 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18727 non-compliant.
18728 * sysdeps/i386/sys/ucontext.h: Likewise.
18729 * sysdeps/m68k/sys/ucontext.h: Likewise.
18730 * sysdeps/mips/sys/ucontext.h: Likewise.
18731 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18732 * sysdeps/mach/hurd/i386/Makefile
18733 (test-xfail-POSIX/fcntl.h/conform): Add.
18734 (test-xfail-POSIX/signal.h/conform): Add.
18735 (test-xfail-POSIX/semaphore.h/conform): Add.
18736 (test-xfail-POSIX/regex.h/conform): Add.
18737 (test-xfail-POSIX/aio.h/conform): Add.
18738 (test-xfail-POSIX/mqueue.h/conform): Add.
18739 (test-xfail-POSIX/sys/types.h/conform): Add.
18740 (test-xfail-UNIX98/fcntl.h/conform): Add.
18741 (test-xfail-UNIX98/netdb.h/conform): Add.
18742 (test-xfail-UNIX98/signal.h/conform): Add.
18743 (test-xfail-UNIX98/semaphore.h/conform): Add.
18744 (test-xfail-UNIX98/regex.h/conform): Add.
18745 (test-xfail-UNIX98/aio.h/conform): Add.
18746 (test-xfail-UNIX98/ftw.h/conform): Add.
18747 (test-xfail-UNIX98/mqueue.h/conform): Add.
18748 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18749 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18750 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18751 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18752 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18753 (test-xfail-UNIX98/sys/types.h/conform): Add.
18754 (test-xfail-UNIX98/stdlib.h/conform): Add.
18755 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18756 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18757 (test-xfail-POSIX2008/netdb.h/conform): Add.
18758 (test-xfail-POSIX2008/signal.h/conform): Add.
18759 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18760 (test-xfail-POSIX2008/regex.h/conform): Add.
18761 (test-xfail-POSIX2008/aio.h/conform): Add.
18762 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18763 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18764 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18765 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18766 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18767 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18768 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18769 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18770 (test-xfail-XOPEN2K/signal.h/conform): Add.
18771 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18772 (test-xfail-XOPEN2K/regex.h/conform): Add.
18773 (test-xfail-XOPEN2K/aio.h/conform): Add.
18774 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18775 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18776 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18777 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18778 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18779 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18780 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18781 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18782 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18783 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18784 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18785 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18786 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18787 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18788 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18789 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18790 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18791 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18792 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18793 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18794 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18795 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18796 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18797 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18798 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18799 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18800 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18801 i386-gnu.
18802 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18803 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18804
18805 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18806
18807 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18808 --enable-obsolete for powerpc-linux-gnuspe.
18809
18810 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18811
18812 * conform/data/sys/un.h-data: Allow sun_ prefix.
18813 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18814 prototypes.
18815 * sysdeps/mach/include/mach.h: Likewise.
18816 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18817 * sysdeps/mach/include/mach_error.h: Likewise.
18818
18819 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18820
18821 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18822 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18823 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18824 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18825
18826 2018-04-16 Andreas Schwab <schwab@suse.de>
18827
18828 [BZ #19527]
18829 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18830
18831 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18832
18833 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18834 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18835
18836 2018-04-12 DJ Delorie <dj@redhat.com>
18837
18838 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18839 version to 4.16.
18840
18841 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18842
18843 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18844 (struct kernel_sigaction): Use the same definition on 31bit as is used
18845 on 64bit.
18846
18847 2018-04-09 Florian Weimer <fweimer@redhat.com>
18848
18849 [BZ #23037]
18850 * resolv/res_send.c (send_dg): Use designated initializers instead
18851 of assignment to zero-initialize other fields of struct mmsghdr.
18852
18853 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18854
18855 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18856 __READDIR_ALIAS): Undefine after usage.
18857 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18858 __READDIR_R_ALIAS): Likewise.
18859 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18860 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18861 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18862 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18863 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18864 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18865 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18866 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18867 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18868 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18869 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18870 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18871 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18872 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18873 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18874 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18875 * sysdeps/unix/sysv/linux/readdir.c: New file.
18876 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18877 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18878 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18879
18880 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18881
18882 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18883
18884 * manual/charset.texi (Converting a Character): Fix typo.
18885
18886 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18887
18888 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18889
18890 * sysdeps/arm/libm-test-ulps: Update.
18891
18892 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18893 as base implementation.
18894 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18895 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18896 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18897 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18898 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18899 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18900 remove unrequired definitions and update comments.
18901 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18902 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18903 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18904 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18905 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18906 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18907 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18908 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18909 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18910 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18911 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18912 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18913 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18914 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18915 and RESET_SA_RESTORER hooks.
18916
18917 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18918
18919 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18920
18921 2018-04-05 Florian Weimer <fweimer@redhat.com>
18922
18923 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18924 integer overflow, memory leak on error, and indeterminate errno
18925 value. Add a null wide character to terminate the result string.
18926 * manual/charset.texi (Converting a Character): Mention embedded
18927 null bytes in the mbrtowc input string. Explain what happens in
18928 the -2 result case. Do not claim that mbrtowc is simple or
18929 obvious to use. Adjust the description of the code example. Use
18930 @code, not @var, for concrete variables.
18931
18932 2018-04-05 Florian Weimer <fweimer@redhat.com>
18933
18934 * manual/examples/mbstouwcs.c: New file.
18935 * manual/charset.texi (Converting a Character): Include it.
18936
18937 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18938
18939 * include/dirent.h (dirfd): Add hidden proto.
18940 * dirent/dirfd.c (dirfd): Add hidden def.
18941 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18942 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18943
18944 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18945
18946 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18947 sin, cos and sincos to 1 ULP.
18948
18949 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18950
18951 [BZ #19818]
18952 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18953 symbols.
18954 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18955 * elf/tst-absolute-sym.c: New file.
18956 * elf/tst-absolute-sym-lib.c: New file.
18957 * elf/tst-absolute-sym-lib.lds: New file.
18958 * elf/Makefile (tests): Add `tst-absolute-sym'.
18959 (modules-names): Add `tst-absolute-sym-lib'.
18960 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18961 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18962 ($(objpfx)tst-absolute-sym): New dependency.
18963
18964 [BZ #19818]
18965 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18966 parameter.
18967 (SYMBOL_ADDRESS): New macro.
18968 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18969 SYMBOL_ADDRESS for symbol address calculation.
18970 * elf/dl-runtime.c (_dl_fixup): Likewise.
18971 (_dl_profile_fixup): Likewise.
18972 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18973 * elf/rtld.c (dl_main): Likewise.
18974 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18975 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18976 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18977 (elf_machine_rela): Likewise.
18978 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18979 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18980 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18981 (elf_machine_rela): Likewise.
18982 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18983 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18984 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18985 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18986 Likewise.
18987 (elf_machine_reloc): Likewise.
18988 (elf_machine_got_rel): Likewise.
18989 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18990 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18991 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18992 Likewise.
18993 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18994 Likewise.
18995 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18996 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18997 Likewise.
18998 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18999 Likewise.
19000 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
19001 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
19002 Likewise.
19003 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
19004 Likewise.
19005 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
19006 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
19007
19008 2018-04-04 Zack Weinberg <zackw@panix.com>
19009
19010 * sysdeps/generic/internal-signals.h: Include signal.h,
19011 sigsetops.h, and stdbool.h.
19012 (__libc_signal_block_all): Actually block all signals.
19013 (__libc_signal_block_app): Likewise.
19014 (__libc_signal_restore_set): Actually restore the signal mask.
19015
19016 2018-04-04 Florian Weimer <fweimer@redhat.com>
19017
19018 inet: Actually build and run tst-deadline.
19019 * inet/Makefile (tests-internal): Add tst-deadline and do not
19020 overwrite the variable.
19021 (tests-static-internal): Remove variable.
19022
19023 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
19024
19025 [BZ #22947]
19026 * bits/uio-ext.h (RWF_APPEND): New.
19027 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
19028 * manual/llio.texi: Document RWF_APPEND.
19029 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
19030 (RWF_SUPPORTED): Add RWF_APPEND.
19031
19032 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19033
19034 [BZ #22391]
19035 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
19036 check for internal nptl signals.
19037 * nptl/sigaction.c (__sigaction): Likewise.
19038 * signal/sigaddset.c (sigaddset): Likewise.
19039 * signal/sigdelset.c (sigdelset): Likewise.
19040 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
19041 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
19042 value.
19043 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
19044 to filter out internal nptl signals.
19045 * signal/tst-sigset.c (do_test): Check ech signal indidually and
19046 also check realtime signals using standard macros.
19047 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
19048 __is_internal_signal, __libc_signal_block_all,
19049 __libc_signal_block_app, __libc_signal_restore_set): New functions.
19050 * sysdeps/nptl/sigfillset.c: Remove file.
19051 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
19052 Change return to bool.
19053 (__clear_internal_signals): Remove SIGTIMER clean since it is
19054 equal to SIGCANEL on Linux.
19055 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
19056 signal set was constructed using standard functions.
19057
19058 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19059
19060 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
19061 ifname is too long.
19062 * hurd/hurdsig.c (interrupted_reply_port_location): Use
19063 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
19064 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
19065 hidden def.
19066 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
19067 * signal/sigaddset.c: Include <sigsetopts.h>.
19068 * signal/sigdelset.c: Likewise.
19069
19070 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19071
19072 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
19073 (__cos): Likewise.
19074 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
19075 logic as sin and cos.
19076
19077 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19078
19079 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
19080 inputs. Return correct sign.
19081 (do_sincos): Remove small input check before do_sin, let do_sin set
19082 the sign.
19083 (__sin): Likewise.
19084 (__cos): Likewise.
19085
19086 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19087
19088 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
19089 (do_cos_slow): Likewise.
19090 (do_sin_slow): Likewise.
19091 (reduce_and_compute): Likewise.
19092 (slow): Likewise.
19093 (slow1): Likewise.
19094 (slow2): Likewise.
19095 (sloww): Likewise.
19096 (sloww1): Likewise.
19097 (sloww2): Likewise.
19098 (bslow): Likewise.
19099 (bslow1): Likewise.
19100 (bslow2): Likewise.
19101 (cslow2): Likewise.
19102
19103 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19104
19105 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19106 (do_cos): Remove corp parameter and calculations.
19107 (do_sin): Likewise.
19108 (do_sincos): Remove cor variable.
19109 (__sin): Use do_sincos for huge inputs.
19110 (__cos): Likewise.
19111 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19112 (reduce_and_compute_sincos): Remove unused function.
19113
19114 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19115
19116 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19117 reduce_sincos, improve accuracy to 136 bits.
19118 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19119 (__sin): Use improved reduction and simplified do_sincos calculation.
19120 (__cos): Likewise.
19121 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19122
19123 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19124
19125 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19126 (do_sincos_2): Likewise.
19127 (__sin): Remove middle range reduction case.
19128 (__cos): Likewise.
19129 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19130 reduction case.
19131
19132 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19133
19134 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19135 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19136 inputs.
19137 (__cos): Likewise.
19138 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19139
19140 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19141
19142 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19143 version to 4.16
19144
19145 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19146
19147 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19148 Remove definitions.
19149 (opendir_oflags): Use O_DIRECTORY regardless.
19150 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19151 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19152
19153 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19154
19155 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19156 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19157 macros.
19158 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19159 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19160 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19161 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19162 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19163 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19164
19165 * htl/Makefile: Bump licence to LGPL 2.1+.
19166 * htl/alloca_cutoff.c: Likewise.
19167 * htl/cthreads-compat.c: Likewise.
19168 * htl/lockfile.c: Likewise.
19169 * htl/pt-alloc.c: Likewise.
19170 * htl/pt-cancel.c: Likewise.
19171 * htl/pt-cleanup.c: Likewise.
19172 * htl/pt-create.c: Likewise.
19173 * htl/pt-dealloc.c: Likewise.
19174 * htl/pt-detach.c: Likewise.
19175 * htl/pt-exit.c: Likewise.
19176 * htl/pt-getattr.c: Likewise.
19177 * htl/pt-initialize.c: Likewise.
19178 * htl/pt-internal.h: Likewise.
19179 * htl/pt-join.c: Likewise.
19180 * htl/pt-self.c: Likewise.
19181 * htl/pt-setcancelstate.c: Likewise.
19182 * htl/pt-setcanceltype.c: Likewise.
19183 * htl/pt-sigmask.c: Likewise.
19184 * htl/pt-spin-inlines.c: Likewise.
19185 * htl/pt-testcancel.c: Likewise.
19186 * htl/pt-yield.c: Likewise.
19187 * htl/tests/test-1.c: Likewise.
19188 * htl/tests/test-10.c: Likewise.
19189 * htl/tests/test-11.c: Likewise.
19190 * htl/tests/test-12.c: Likewise.
19191 * htl/tests/test-13.c: Likewise.
19192 * htl/tests/test-14.c: Likewise.
19193 * htl/tests/test-15.c: Likewise.
19194 * htl/tests/test-16.c: Likewise.
19195 * htl/tests/test-17.c: Likewise.
19196 * htl/tests/test-2.c: Likewise.
19197 * htl/tests/test-3.c: Likewise.
19198 * htl/tests/test-4.c: Likewise.
19199 * htl/tests/test-5.c: Likewise.
19200 * htl/tests/test-6.c: Likewise.
19201 * htl/tests/test-7.c: Likewise.
19202 * htl/tests/test-8.c: Likewise.
19203 * htl/tests/test-9.c: Likewise.
19204 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19205 * sysdeps/htl/bits/cancelation.h: Likewise.
19206 * sysdeps/htl/bits/pthread-np.h: Likewise.
19207 * sysdeps/htl/bits/pthread.h: Likewise.
19208 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19209 * sysdeps/htl/bits/semaphore.h: Likewise.
19210 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19211 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19212 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19213 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19214 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19215 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19216 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19217 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19218 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19219 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19220 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19221 * sysdeps/htl/old_pt-atfork.c: Likewise.
19222 * sysdeps/htl/pt-atfork.c: Likewise.
19223 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19224 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19225 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19226 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19227 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19228 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19229 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19230 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19231 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19232 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19233 * sysdeps/htl/pt-attr-init.c: Likewise.
19234 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19235 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19236 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19237 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19238 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19239 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19240 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19241 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19242 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19243 * sysdeps/htl/pt-attr.c: Likewise.
19244 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19245 * sysdeps/htl/pt-barrier-init.c: Likewise.
19246 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19247 * sysdeps/htl/pt-barrier.c: Likewise.
19248 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19249 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19250 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19251 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19252 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19253 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19254 * sysdeps/htl/pt-cond-init.c: Likewise.
19255 * sysdeps/htl/pt-cond-signal.c: Likewise.
19256 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19257 * sysdeps/htl/pt-cond-wait.c: Likewise.
19258 * sysdeps/htl/pt-cond.c: Likewise.
19259 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19260 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19261 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19262 * sysdeps/htl/pt-condattr-init.c: Likewise.
19263 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19264 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19265 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19266 * sysdeps/htl/pt-equal.c: Likewise.
19267 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19268 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19269 * sysdeps/htl/pt-getschedparam.c: Likewise.
19270 * sysdeps/htl/pt-getspecific.c: Likewise.
19271 * sysdeps/htl/pt-init-specific.c: Likewise.
19272 * sysdeps/htl/pt-key-create.c: Likewise.
19273 * sysdeps/htl/pt-key-delete.c: Likewise.
19274 * sysdeps/htl/pt-key.h: Likewise.
19275 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19276 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19277 * sysdeps/htl/pt-mutex-init.c: Likewise.
19278 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19279 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19280 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19281 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19282 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19283 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19284 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19285 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19286 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19287 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19288 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19289 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19290 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19291 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19292 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19293 * sysdeps/htl/pt-mutexattr.c: Likewise.
19294 * sysdeps/htl/pt-once.c: Likewise.
19295 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19296 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19297 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19298 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19299 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19300 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19301 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19302 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19303 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19304 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19305 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19306 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19307 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19308 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19309 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19310 * sysdeps/htl/pt-setschedparam.c: Likewise.
19311 * sysdeps/htl/pt-setschedprio.c: Likewise.
19312 * sysdeps/htl/pt-setspecific.c: Likewise.
19313 * sysdeps/htl/pt-spin.c: Likewise.
19314 * sysdeps/htl/pt-startup.c: Likewise.
19315 * sysdeps/htl/pthread.h: Likewise.
19316 * sysdeps/htl/sem-close.c: Likewise.
19317 * sysdeps/htl/sem-destroy.c: Likewise.
19318 * sysdeps/htl/sem-getvalue.c: Likewise.
19319 * sysdeps/htl/sem-init.c: Likewise.
19320 * sysdeps/htl/sem-open.c: Likewise.
19321 * sysdeps/htl/sem-post.c: Likewise.
19322 * sysdeps/htl/sem-timedwait.c: Likewise.
19323 * sysdeps/htl/sem-trywait.c: Likewise.
19324 * sysdeps/htl/sem-unlink.c: Likewise.
19325 * sysdeps/htl/sem-wait.c: Likewise.
19326 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19327 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19328 * sysdeps/mach/htl/pt-block.c: Likewise.
19329 * sysdeps/mach/htl/pt-spin.c: Likewise.
19330 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19331 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19332 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19333 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19334 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19335 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19336 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19337 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19338 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19339 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19340 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19341 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19342 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19343 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19344 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19345 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19346 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19347 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19348 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19349 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19350 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19351 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19352 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19353 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19354 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19355 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19356 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19357 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19358 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19359 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19360 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19361 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19362 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19363 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19364 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19365 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19366 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19367 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19368 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19369 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19370 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19371 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19372 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19373
19374 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19375 * README: Remove the mention of out-of-tree patches needed for
19376 GNU/Hurd.
19377
19378 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19379 (UTIME_NOW, UTIME_OMIT): Define macros.
19380
19381 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19382 instead of pthread_detach.
19383 (__cthread_fork): Call __pthread_create instead of pthread_create.
19384 (__cthread_keycreate): Call __pthread_key_create instead of
19385 pthread_key_create.
19386 (__cthread_getspecific): Call __pthread_getspecific instead of
19387 pthread_getspecific.
19388 (__cthread_setspecific): Call __pthread_setspecific instead of
19389 pthread_setspecific.
19390 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19391 __pthread_mutex_unlock instead of pthread_mutex_lock and
19392 pthread_mutex_unlock.
19393 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19394 ___pthread_get_cleanup_stack.
19395 (__pthread_get_cleanup_stack): New strong alias.
19396 * htl/pt-create.c: Include <pthreadP.h>.
19397 (entry_point): Call __pthread_exit instead of pthread_exit.
19398 (pthread_create): Rename to __pthread_create.
19399 (pthread_create): New strong alias.
19400 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19401 (pthread_detach): New strong alias.
19402 (__pthread_detach): Call __pthread_cond_broadcast instead of
19403 pthread_cond_broadcast.
19404 * htl/pt-exit.c: Include <pthreadP.h>.
19405 (__pthread_exit): Call __pthread_setcancelstate and
19406 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19407 __pthread_get_cleanup_stack.
19408 * htl/pt-testcancel.c: Include <pthreadP.h>.
19409 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19410 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19411 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19412 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19413 pthread_attr_getstacksize.
19414 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19415 Rename to __pthread_attr_getstackaddr.
19416 (pthread_attr_getstackaddr): New strong alias.
19417 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19418 Rename to __pthread_attr_getstacksize.
19419 (pthread_attr_getstacksize): New strong alias.
19420 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19421 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19422 (pthread_attr_setstack): New strong alias.
19423 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19424 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19425 pthread_attr_getstacksize, pthread_attr_setstacksize and
19426 pthread_attr_setstackaddr.
19427 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19428 Rename to __pthread_attr_setstackaddr.
19429 (pthread_attr_setstackaddr): New strong alias.
19430 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19431 Rename to __pthread_attr_setstacksize.
19432 (pthread_attr_setstacksize): New strong alias.
19433 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19434 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19435 pthread_exit.
19436 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19437 (__pthread_key_create): New hidden def.
19438 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19439 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19440 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19441 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19442 __pthread_setspecific, __pthread_setcancelstate,
19443 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19444 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19445 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19446 declarations.
19447 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19448 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19449 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19450 (pthread_attr_setstackaddr): New strong alias.
19451 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19452 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19453 (pthread_attr_setstacksize): New strong alias.
19454 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19455 (call_exit): Call __pthread_exit instead of pthread_exit.
19456 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19457 (_pthread_mutex_init): New hidden definition.
19458 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19459 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19460 instead of pthread_attr_init and pthread_attr_setstack.
19461
19462 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19463 __vm_deallocate instead of vm_allocate and vm_deallocate.
19464 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19465 setenv.
19466 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19467 of geteuid.
19468 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19469 strdup.
19470 * hurd/siginfo.c: Include <libioP.h>.
19471 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19472 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19473 munmap.
19474 * mach/devstream.c: Include <libioP.h>.
19475 (dealloc_ref): Call __mach_port_deallocate instead of
19476 mach_port_deallocate.
19477 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19478 Call __mach_port_deallocate instead of mach_port_deallocate.
19479 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19480 pathconf.
19481 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19482 munmap.
19483 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19484 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19485 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19486 of munmap.
19487 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19488 of close.
19489 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19490 instead of sysconf.
19491 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19492 __clock_gettime instead of clock_gettime.
19493 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19494 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19495 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19496 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19497 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19498 tcgetattr.
19499 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19500 __clock_gettime and __nanosleep instead of clock_gettime and
19501 nanosleep.
19502 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19503 __hurd_catch_signal.
19504 (hurd_catch_signal): New strong alias.
19505 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19506 __hurd_catch_signal instead of hurd_catch_signal.
19507 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19508 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19509 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19510 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19511 (_hurd_thread_sigstate): Add hidden def.
19512 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19513 mutex_unlock.
19514 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19515 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19516 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19517 __hurd_file_name_path_lookup.
19518 (hurd_file_name_path_lookup): New strong alias.
19519 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19520 hurd_file_name_path_lookup.
19521 * mach/errstring.c (mach_error_type): Add hidden def.
19522 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19523 * mach/mutex-init.c (__mutex_init): Add hidden def.
19524 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19525 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19526 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19527 * sysdeps/mach/hurd/getcwd.c
19528 (_hurd_canonicalize_directory_name_internal): Rename to
19529 __hurd_canonicalize_directory_name_internal.
19530 (_hurd_canonicalize_directory_name_internal): New strong alias.
19531 (__canonicalize_directory_name_internal, __getcwd): Call
19532 __hurd_canonicalize_directory_name_internal instead of
19533 _hurd_canonicalize_directory_name_internal.
19534 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19535 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19536 hidden defs.
19537 * sysdeps/hurd/include/hurd.h: New file.
19538 * sysdeps/hurd/include/hurd/fd.h: New file.
19539 * sysdeps/hurd/include/hurd/signal.h: New file.
19540 * sysdeps/mach/include/lock-intern.h: New file.
19541 * sysdeps/mach/include/mach.h: New file.
19542 * sysdeps/mach/include/mach/mig_support.h: New file.
19543 * sysdeps/mach/include/mach_error.h: New file.
19544 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19545 prototype.
19546 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19547 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19548 _HEADER_H_HIDDEN_DEF macro.
19549 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19550 _hurd_fd_error_signal): Add hidden prototype.
19551 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19552 hidden def.
19553 * libio/iolibio.h (_IO_puts): New hidden prototype.
19554 * libio/ioputs.c (_IO_puts): New hidden def.
19555 * sysdeps/mach/hurd/localplt.data: New file.
19556
19557 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19558 Amos Jeffries <squid3@treenet.co.nz>
19559 David Michael <fedora.dm0@gmail.com>
19560 Marco Gerards <marco@gnu.org>
19561 Marcus Brinkmann <marcus@gnu.org>
19562 Neal H. Walfield <neal@gnu.org>
19563 Pino Toscano <toscano.pino@tiscali.it>
19564 Richard Braun <rbraun@sceen.net>
19565 Roland McGrath <roland@gnu.org>
19566 Samuel Thibault <samuel.thibault@ens-lyon.org>
19567 Thomas DiModica <ricinwich@yahoo.com>
19568 Thomas Schwinge <tschwinge@gnu.org>
19569
19570 * htl: New directory.
19571 * sysdeps/htl: New directory.
19572 * sysdeps/hurd/htl: New directory.
19573 * sysdeps/i386/htl: New directory.
19574 * sysdeps/mach/htl: New directory.
19575 * sysdeps/mach/hurd/htl: New directory.
19576 * sysdeps/mach/hurd/i386/htl: New directory.
19577 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19578 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19579 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19580
19581 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19582
19583 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19584 signals in thread created for runing timers.
19585
19586 2018-04-01 Florian Weimer <fweimer@redhat.com>
19587
19588 * support/support_format_addrinfo.c (support_format_addrinfo):
19589 Include unknown error number in formatted result.
19590
19591 2018-03-29 Florian Weimer <fweimer@redhat.com>
19592
19593 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19594 capture SIGBUS.
19595
19596 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19597
19598 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19599 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19600 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19601 (__ASSUME_CLONE_BACKWARDS): Define.
19602
19603 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19604
19605 [BZ #23024]
19606 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19607 early when linux sentinel value is set.
19608
19609 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19610
19611 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19612
19613 2018-03-27 Andreas Schwab <schwab@suse.de>
19614
19615 [BZ #23005]
19616 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19617 allocation of private copy of nsaddr_list fails.
19618
19619 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19620
19621 [BZ #16552]
19622 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19623 * sysdeps/unix/sysv/linux/umount.c: ... here.
19624 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19625 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19626 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19627 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19629 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19630 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19631
19632 2018-03-26 Andreas Schwab <schwab@suse.de>
19633
19634 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19635 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19636 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19637 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19638 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19639 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19640 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19641 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19642 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19643 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19644 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19645 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19646 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19647 (R_RISCV_NUM): Define.
19648
19649 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19650
19651 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19652 TLS declaration of errno.
19653 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19654 __libc_setup_tls.
19655 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19656 (ARCH_SETUP_TLS): Likewise.
19657 * sysdeps/mach/hurd/libc-start.h: New file copied from
19658 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19659 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19660 instead of __libc_setup_tls.
19661 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19662 __libc_setup_tls before initializing libpthread and running _hurd_init
19663 which starts the signal thread.
19664 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19665 Declare function.
19666 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19667
19668 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19669
19670 [BZ #22998]
19671 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19672 after it is defined.
19673
19674 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19675 Max Horn <max@quendi.de>
19676
19677 [BZ #22644]
19678 CVE-2017-18269
19679 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19680 branch conditions.
19681 * string/test-memmove.c (do_test2): New testcase.
19682
19683 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19684
19685 * sysdeps/generic/frame.h: Remove file.
19686 * sysdeps/arm/frame.h: Likewise.
19687 * sysdeps/hppa/frame.h: Likewise.
19688 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19689 macro.
19690 (GET_FRAME): Likewise.
19691 (GET_STACK): Likewise.
19692 (CALL_SIGHANDLER): Likewise.
19693 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19694 Likewise.
19695 (GET_FRAME): Likewise.
19696 (GET_STACK): Likewise.
19697 (CALL_SIGHANDLER): Likewise.
19698 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19699 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19700 (GET_FRAME): Likewise.
19701 (GET_STACK): Likewise.
19702 (CALL_SIGHANDLER): Likewise.
19703 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19704 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19705 (GET_FRAME): Likewise.
19706 (GET_STACK): Likewise.
19707 (ADVANCE_STACK_FRAME): Likewise.
19708 (CALL_SIGHANDLER): Likewise.
19709 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19710 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19711 (GET_FRAME): Likewise.
19712 (GET_STACK): Likewise.
19713 (CALL_SIGHANDLER): Likewise.
19714 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19715 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19716 (GET_FRAME): Likewise.
19717 (GET_STACK): Likewise.
19718 (CALL_SIGHANDLER): Likewise.
19719 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19720 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19721 (GET_FRAME): Likewise.
19722 (GET_STACK): Likewise.
19723 (CALL_SIGHANDLER): Likewise.
19724 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19725 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19726 (GET_FRAME): Likewise.
19727 (GET_STACK): Likewise.
19728 (CALL_SIGHANDLER): Likewise.
19729 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19730 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19731 (GET_FRAME): Likewise.
19732 (GET_STACK): Likewise.
19733 (CALL_SIGHANDLER): Likewise.
19734 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19735 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19736 (GET_FRAME): Likewise.
19737 (GET_STACK): Likewise.
19738 (CALL_SIGHANDLER): Likewise.
19739 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19740 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19741 (GET_FRAME): Likewise.
19742 (GET_STACK): Likewise.
19743 (CALL_SIGHANDLER): Likewise.
19744 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19745 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19746 (GET_FRAME): Likewise.
19747 (GET_STACK): Likewise.
19748 (CALL_SIGHANDLER): Likewise.
19749 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19750 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19751 (GET_FRAME): Likewise.
19752 (GET_STACK): Likewise.
19753 (CALL_SIGHANDLER): Likewise.
19754 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19755 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19756 (FIRST_FRAME_POINTER): Likewise.
19757 (ADVANCE_STACK_FRAME): Likewise.
19758 (GET_STACK): Likewise.
19759 (GET_FRAME): Likewise.
19760 (CALL_SIGHANDLER): Likewise.
19761 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19762 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19763 (ADVANCE_STACK_FRAME): Likewise.
19764 (GET_STACK): Likewise.
19765 (GET_FRAME): Likewise.
19766 (CALL_SIGHANDLER): Likewise.
19767 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19768 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19769 (GET_FRAME): Likewise.
19770 (GET_STACK): Likewise.
19771 (CALL_SIGHANDLER): Likewise.
19772 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19773 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19774 (GET_FRAME): Likewise.
19775 (GET_STACK): Likewise.
19776 (CALL_SIGHANDLER): Likewise.
19777
19778 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19779
19780 * sysdeps/x86_64/backtrace.c: Move to ....
19781 * debug/backtrace.c: ... here.
19782 * sysdeps/aarch64/backtrace.c: Remove file.
19783 * sysdeps/alpha/backtrace.c: Likewise.
19784 * sysdeps/hppa/backtrace.c: Likewise.
19785 * sysdeps/ia64/backtrace.c: Likewise.
19786 * sysdeps/mips/backtrace.c: Likewise.
19787 * sysdeps/nios2/backtrace.c: Likewise.
19788 * sysdeps/riscv/backtrace.c: Likewise.
19789 * sysdeps/sh/backtrace.c: Likewise.
19790 * sysdeps/tile/backtrace.c: Likewise.
19791
19792 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19793
19794 [BZ #22987]
19795 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19796 function.
19797 (fdimf): Likewise.
19798 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19799
19800 [BZ #17343]
19801 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19802 possibly overflowing computations.
19803
19804 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19805
19806 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19807 values from Linux-specific section now that it is in the GNU section.
19808 * sysdeps/gnu/errlist.c: Regenerate.
19809
19810 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19811
19812 * math/Makefile (libm-narrow-fns): Add sub.
19813 (libm-test-funcs-narrow): Likewise.
19814 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19815 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19816 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19817 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19818 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19819 (NARROW_SUB_TRIVIAL): Likewise.
19820 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19821 macro.
19822 (__dsubl): Likewise.
19823 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19824 dsub.
19825 (CFLAGS-nldbl-dsub.c): New variable.
19826 (CFLAGS-nldbl-fsub.c): Likewise.
19827 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19828 __nldbl_dsubl.
19829 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19830 prototype.
19831 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19832 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19833 * math/auto-libm-test-in: Add tests of sub.
19834 * math/auto-libm-test-out-narrow-sub: New generated file.
19835 * math/libm-test-narrow-sub.inc: New file.
19836 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19837 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19838 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19839 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19840 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19841 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19842 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19843 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19844 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19845 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19846 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19847 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19848 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19849 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19850 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19851 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19852 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19853 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19854 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19855 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19856 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19857 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19858 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19859 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19860 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19861 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19862 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19863 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19864 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19865 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19866 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19867 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19872 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19873 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19874 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19875 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19876 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19877 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19878 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19879 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19880 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19881 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19882
19883 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19884
19885 [BZ #20079]
19886 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19887
19888 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19889
19890 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19891
19892 2018-03-18 Richard Braun <rbraun@sceen.net>
19893
19894 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19895 thread reference.
19896
19897 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19898
19899 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19900 (__libc_cleanup_fct): Define function.
19901 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19902 __libc_cleanup_end): Rewrite implementation using
19903 __attribute__ ((__cleanup__)).
19904 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19905 * hurd/Makefile (routines): Add hurdlock.
19906 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19907 interface.
19908 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19909 * hurd/hurdpid.c: Include <lowlevellock.h>
19910 (_S_msg_proc_newids): Use lll_wait to synchronize.
19911 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19912 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19913 * mach/Makefile (lock-headers): Remove machine-lock.h.
19914 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19915 <machine-lock.h>.
19916 (__spin_lock_t): New type.
19917 (__SPIN_LOCK_INITIALIZER): New macro.
19918 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19919 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19920 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19921 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19922 (__mutex_init): Initialize with lll.
19923 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19924 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19925 needing lll.
19926 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19927 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19928 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19929 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19930 (__setpgid): Use lll for synchronization.
19931 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19932 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19933 instead of <cthreads.h>.
19934 (_IO_lock_inexpensive): New macro
19935 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19936 (__libc_lock_self0): New declaration.
19937 (__libc_lock_owner_self): New macro.
19938 (__libc_key_t): Remove type.
19939 (_LIBC_LOCK_INITIALIZER): New macro.
19940 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19941 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19942 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19943 __libc_lock_define_initialized_recursive,
19944 __rtld_lock_define_initialized_recursive,
19945 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19946 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19947 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19948 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19949 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19950 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19951 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19952 New macros.
19953 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19954 * hurd/hurdlock.c: New file.
19955 * hurd/hurdlock.h: New file.
19956 * mach/lowlevellock.h: New file
19957
19958 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19959
19960 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19961 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19962 when opening a symlink with O_NOFOLLOW.
19963 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19964 path when flags contains O_NOFOLLOW.
19965 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19966 if flags contains O_DIRECTORY and the result is a directory.
19967 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19968 oneself when the pointer given in D is nul (as set by ext2fs).
19969 * sysdeps/mach/hurd/mlockall.c: New file.
19970 * sysdeps/mach/hurd/munlockall.c: New file.
19971
19972 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19973
19974 * hurd/hurdsig.c: Include <pthread.h>.
19975 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19976 get the signal thread stack layout.
19977 * hurd/Makefile (headers): Remove threadvar.h.
19978 (inline-headers): Remove threadvar.h.
19979 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19980 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19981 __hurd_threadvar_max, __hurd_errno_location.
19982 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19983 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19984 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19985 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19986 unless TLS is not initialized yet, in which case we do not need a
19987 critical section yet anyway.
19988 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19989 <machine-sp.h>.
19990 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19991 declarations.
19992 (__hurd_threadvar_index): Remove enum.
19993 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19994 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19995 inlines.
19996 (__hurd_reply_port0): New variable declaration.
19997 (__hurd_local_reply_port): New macro.
19998 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19999 (interrupted_reply_port_location): Add thread_t parameter. Use it
20000 with THREAD_TCB to access thread-local variables.
20001 (_hurdsig_abort_rpcs): Pass ss->thread to
20002 interrupted_reply_port_location.
20003 (_hurd_internal_post_signal): Likewise.
20004 (_hurdsig_init): Use presence of cthread_fork instead of
20005 __hurd_threadvar_stack_mask to start signal thread by hand.
20006 Remove signal thread threadvar initialization.
20007 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
20008 * hurd/sigunwind.c: Include <hurd/threadvar.h>
20009 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
20010 of threadvar.
20011 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
20012 __libc_lock_self0.
20013 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
20014 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
20015 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
20016 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
20017 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
20018 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
20019 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
20020 define variables.
20021 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
20022 <hurd/threadvar.h>.
20023 [IS_IN(rtld)] (rtld_errno): New variable.
20024 [IS_IN(rtld)] (__errno_location): New weak function.
20025 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
20026 * sysdeps/mach/hurd/errno.c: Remove file.
20027 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
20028 (__fork): Remove THREADVAR_SPACE macro and its use.
20029 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
20030 variable.
20031 (init): Do not initialize threadvar.
20032 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
20033 symbol.
20034 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
20035 __hurd_local_reply_port instead of threadvar.
20036 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
20037 _hurd_sigstate fields.
20038 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
20039 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
20040 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
20041 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
20042 instead of threadvar.
20043 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
20044 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
20045 (use_threadvar, global_reply_port): Remove variables.
20046 (__hurd_reply_port0): New variable.
20047 (__mig_get_reply_port): Use __hurd_local_reply_port and
20048 __hurd_reply_port0 instead of threadvar.
20049 (__mig_dealloc_reply_port): Likewise.
20050 (__mig_init): Do not initialize threadvar.
20051 * sysdeps/mach/hurd/profil.c: Fix comment.
20052 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
20053 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
20054 cthread_keycreate, cthread_getspecific, cthread_setspecific to
20055 __cthread_fork, __cthread_detach, __pthread_getattr_np,
20056 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
20057 __cthread_setspecific.
20058 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
20059 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
20060 __cthread_t instead of cthread_fork, cthread_detach,
20061 pthread_getattr_np, pthread_attr_getstack.
20062 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
20063 __cthread_keycreate.
20064 (cthread_getspecific): Rename to __cthread_getspecific.
20065 (cthread_setspecific): Rename to __cthread_setspecific.
20066 (__libc_getspecific): Use __cthread_getspecific instead of
20067 cthread_getspecific.
20068 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
20069 __cthread_keycreate instead of cthread_keycreate.
20070 (__libc_setspecific): Use __cthread_setspecific instead of
20071 cthread_setspecific.
20072 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
20073 Likewise.
20074 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
20075 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
20076 testing whether it is defined.
20077
20078 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
20079
20080 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
20081 Define macro.
20082 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
20083 * sysdeps/mach/i386/thread_state.h
20084 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
20085 i386_THREAD_STATE.
20086 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
20087 i386_THREAD_STATE.
20088 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
20089
20090 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
20091 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
20092
20093 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
20094 macros.
20095 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
20096 descriptor instead of creating a new one.
20097 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
20098
20099 * mach/setup-thread.c: Include <ldsodefs.h>.
20100 (__mach_setup_thread): Call _dl_allocate_tls, pass
20101 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20102 MACHINE_THREAD_STATE_FLAVOR, before getting
20103 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20104 MACHINE_THREAD_STATE_FLAVOR with the result.
20105 * hurd/hurdfault.c (_hurdsig_fault_init): Call
20106 MACHINE_THREAD_STATE_FIX_NEW.
20107 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20108 too. Add original thread parameter.
20109
20110 2018-03-16 Joseph Myers <joseph@codesourcery.com>
20111
20112 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20113 Remove inline function.
20114
20115 * sysdeps/i386/fpu/libm-test-ulps: Update.
20116 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20117
20118 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20119
20120 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20121 commit.
20122
20123 2018-03-15 Joseph Myers <joseph@codesourcery.com>
20124
20125 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20126 (__sincos_code): Remove define and undefine.
20127 [__FAST_MATH__] (__sincos): Remove inline function.
20128 [__FAST_MATH__] (__sincosf): Remove inline function.
20129 [__FAST_MATH__] (__sincosl): Remove inline function.
20130 (__atan2l): Remove inline functions.
20131 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20132 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20133 function.
20134 (floor): Remove inline function.
20135 (ceil): Likewise.
20136 [__FAST_MATH__] (__ldexp_code): Remove macro.
20137 [__FAST_MATH__] (ldexp): Remove inline function.
20138 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20139 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20140 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20141 [__USE_ISOC99] (__lrint_code): Remove macro.
20142 [__USE_ISOC99] (__llrint_code): Likewise.
20143 [__USE_ISOC99] (lrintf): Remove inline function.
20144 [__USE_ISOC99] (lrint): Likewise.
20145 [__USE_ISOC99] (lrintl): Likewise.
20146 [__USE_ISOC99] (llrint): Likewise.
20147 [__USE_ISOC99] (llrintf): Likewise.
20148 [__USE_ISOC99] (llrintl): Likewise.
20149
20150 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20151
20152 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20153 (__ieee754_sqrtf): Remove.
20154 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20155 (__ieee754_sqrtf): Remove.
20156 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20157 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20158 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20159 (__ieee754_sqrtf): Remove.
20160 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20161 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20162 (sqrtf): Remove.
20163 (sqrtl): Remove.
20164 (__ieee754_sqrt): Remove.
20165 (__ieee754_sqrtf): Remove.
20166 (__ieee754_sqrtl): Remove.
20167 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20168 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20169 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20170 (__ieee754_sqrtf): Remove.
20171 (__ieee754_sqrtl): Remove.
20172
20173 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20174
20175 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20176 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20177 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20178 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20179 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20180 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20181 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20182 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20183 Likewise.
20184 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20185 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20186 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20187 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20188 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20189 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20190 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20191 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20192 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20193 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20194 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20195 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20196 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20197 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20198 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20199 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20200 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20201 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20202 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20203 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20204 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20205 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20206 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20207 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20208 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20209 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20210 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20211 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20212 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20213 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20214 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20215 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20216 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20217 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20218 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20219 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20220 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20221 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20222 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20223 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20224
20225 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20226
20227 * include/math.h (sqrt): Declare with asm redirect.
20228 (sqrtf): Likewise.
20229 (sqrtl): Likewise.
20230 (sqrtf128): Likewise.
20231 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20232 nonlib and libnldbl with -fmath-errno.
20233 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20234 * math/w_sqrt_template.c: Likewise.
20235 * math/w_sqrtf_compat.c: Likewise.
20236 * math/w_sqrtl_compat.c: Likewise.
20237 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20238 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20239 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20240 complex.h.
20241
20242 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20243
20244 * benchtests/Makefile: Define _ISOMAC.
20245 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20246 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20247 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20248 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20249 * benchtests/bench-timing.h: Define attribute_hidden.
20250
20251 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20252
20253 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20254 mov + lsr.
20255
20256 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20257
20258 [BZ #22963]
20259 * localedata/locales/cs_CZ (mon): Rename to...
20260 (alt_mon): This.
20261 (mon): Import from CLDR (genitive case).
20262
20263 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20264
20265 [BZ #22937]
20266 * localedata/locales/el_CY (abmon): Rename to...
20267 (ab_alt_mon): This.
20268 (abmon): Import from CLDR (abbreviated genitive case).
20269 * localedata/locales/el_GR (abmon): Rename to...
20270 (ab_alt_mon): This.
20271 (abmon): Import from CLDR (abbreviated genitive case).
20272
20273 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20274
20275 [BZ #22932]
20276 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20277
20278 2018-03-15 Robert Buj <robert.buj@gmail.com>
20279
20280 [BZ #22848]
20281 * localedata/locales/ca_ES (abmon): Rename to...
20282 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20283 (mon): Rename to...
20284 (alt_mon): This.
20285 (abmon): Import from CLDR (genitive case, month names preceded by
20286 "de" or "d’").
20287 (mon): Likewise.
20288 (abday): Synchronize with CLDR.
20289 (d_t_fmt): Likewise.
20290 (d_fmt): Likewise.
20291 (am_pm): Likewise.
20292
20293 (LC_TIME): Improve indentation.
20294 (LC_TELEPHONE): Likewise.
20295 (LC_NAME): Likewise.
20296 (LC_ADDRESS): Likewise.
20297
20298 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20299
20300 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20301 (lrintf): Remove definitions used only with old GCC.
20302 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20303 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20304 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20305 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20306 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20307 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20308 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20309 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20310 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20311 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20312 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20313 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20314 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20315 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20316 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20317 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20318 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20319 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20320 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20321 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20322 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20323 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20324 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20325 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20326 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20327 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20328 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20329 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20330
20331 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20332
20333 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20334 instruction to unbreak builds with binutils 2.26 and older.
20335
20336 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20337
20338 * sysdeps/aarch64/strncmp.S (count): New macro.
20339 (strncmp): Store misaligned length in SRC1 in COUNT.
20340 (mutual_align): Adjust.
20341 (misaligned8): Load dword at a time when it is safe.
20342
20343 2018-03-12 Zack Weinberg <zackw@panix.com>
20344
20345 [BZ #1190]
20346 [BZ #19476]
20347 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20348 if the _IO_EOF_SEEN bit is already set; update commentary.
20349 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20350 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20351
20352 * support/support_openpty.c, support/tty.h: New files.
20353 * support/Makefile (libsupport-routines): Add support_openpty.
20354
20355 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20356 New test cases.
20357 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20358 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20359
20360 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20361
20362 * po/pt_BR.po: Update translations.
20363
20364 2018-03-12 David Michael <fedora.dm0@gmail.com>
20365
20366 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20367 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20368 get a port to the startup server.
20369
20370 2018-03-11 Zack Weinberg <zackw@panix.com>
20371
20372 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20373 before nldbl-compat.h.
20374
20375 2018-03-10 Zack Weinberg <zackw@panix.com>
20376
20377 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20378 math.h or math_private.h.
20379
20380 * sysdeps/alpha/fpu/s_isnan.c
20381 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20382 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20383 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20384 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20385 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20386 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20387 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20388 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20389 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20390 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20392 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20393 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20394 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20395 Include math_private.h.
20396
20397 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20398 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20399 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20400 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20401 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20402 * sysdeps/powerpc/power7/fpu/s_logb.c:
20403 Include math.h and math_private.h.
20404
20405 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20406 uses of $at in .set noat / .set at.
20407
20408 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20409
20410 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20411 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20412 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20413 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20414 Likewise.
20415
20416 2018-03-09 Florian Weimer <fweimer@redhat.com>
20417
20418 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20419 in comment.
20420
20421 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20422
20423 [BZ #22919]
20424 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20425 Add nop before __startcontext, add explaining comments.
20426
20427 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20428
20429 [BZ #22926]
20430 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20431 empty for __SPE__.
20432 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20433 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20434 Do not build hardware transactional code for __SPE__.
20435 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20436 (__lll_trylock_elision): Likewise.
20437 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20438 (__lll_unlock_elision): Likewise.
20439
20440 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20441 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20442 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20443 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20444 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20445 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20446 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20447 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20448 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20449 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20450 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20451 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20452 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20453 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20454 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20455 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20456 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20457 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20458 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20459 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20460 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20461 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20462 (__ASSUME_CLONE_BACKWARDS): Define.
20463 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20464 __clone2 if __NR_clone2 is defined.
20465 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20466 (__ASSUME_CLONE_BACKWARDS): Likewise.
20467 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20468 (__ASSUME_CLONE_BACKWARDS): Likewise.
20469 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20470 (__ASSUME_CLONE2): Likewise.
20471 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20472 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20473 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20474 variants and the define architecture can use.
20475 (__ASSUME_CLONE_DEFAULT): Define as default.
20476 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20477 (__ASSUME_CLONE_BACKWARDS): Likewise.
20478 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20479 (__ASSUME_CLONE_BACKWARDS): Likewise.
20480 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20481 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20482
20483 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20484
20485 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20486
20487 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20488 time.
20489
20490 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20491 (do_test_limit): Likewise.
20492
20493 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20494 for every implementation.
20495 (do_test): Likewise.
20496
20497 * benchtests/bench-strncmp.c: Convert output to json.
20498
20499 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20500
20501 * io/futimens.c: Add missing start-of-file descriptive comment.
20502 * io/utime.c: Likewise.
20503 * misc/futimesat.c: Likewise.
20504 * misc/utimes.c: Likewise.
20505 * sysdeps/mach/hurd/futimesat.c: Likewise.
20506 * sysdeps/mach/hurd/utimes.c: Likewise.
20507 * sysdeps/posix/utime.c: Likewise.
20508 * sysdeps/posix/utimes.c: Likewise.
20509 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20510 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20511 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20512 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20513
20514 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20515
20516 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20517 hurd_futimes.
20518 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20519 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20520 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20521 (__futimens): Move implementation to...
20522 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20523 utime_tvalue_from_tspec): ... new helper functions.
20524 (hurd_futimens): New function.
20525 * sysdeps/mach/hurd/futimesat.c: New file.
20526 * sysdeps/mach/hurd/utimensat.c: New file.
20527
20528 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20529
20530 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20531 UTIME_OMIT): New macros.
20532 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20533 before reverting to converting time spec to time value and calling
20534 __file_utimes.
20535 * sysdeps/mach/hurd/utime-helper.c: New file.
20536 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20537 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20538 reverting to utime_tvalue_from_tval and __file_utimes.
20539 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20540 (__lutimes): Just call hurd_futimens after lookup.
20541 * sysdeps/mach/hurd/utimes.c: Likewise.
20542
20543 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20544
20545 * bits/sigaction.h: Add include guard.
20546 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20547 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20548 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20549 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20550 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20551 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20552 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20553 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20554 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20555
20556 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20557
20558 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20559 -Wmaybe-uninitialized for -Os.
20560 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20561 this disabling.
20562
20563 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20564
20565 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20566 __INO_T_MATCHES_INO64_T is defined.
20567 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20568 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20569 of definition.
20570 * dirent/alphasort64.c: Likewise.
20571 * dirent/scandir.c: Likewise.
20572 * dirent/scandir64-tail.c: Likewise.
20573 * dirent/scandir64.c: Likewise.
20574 * dirent/scandirat.c: Likewise.
20575 * dirent/scandirat64.c: Likewise.
20576 * dirent/versionsort.c: Likewise.
20577 * dirent/versionsort64.c: Likewise.
20578 * include/dirent.h: Likewise.
20579
20580 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20581 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20582 for socketpair endpoint.
20583 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20584 WRITE_BUFFER_SIZE as buffer size for sending socket.
20585 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20586 issue on system where send is implemented with sendto syscall.
20587 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20588 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20589 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20590 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20591
20592 [BZ #21269]
20593 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20594 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20595 sa_restorer for vDSO case.
20596 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20597
20598 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20599
20600 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20601 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20602 * hurd/hurd/ioctl.h: Include <mach/port.h>
20603 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20604 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20605 <mach/mach_types.h> and <mach/message.h>.
20606 (headers): Move mach/param.h to bits/mach/param.h.
20607 * sysdeps/mach/i386/mach/param.h: Move file to ...
20608 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20609 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20610 of <mach/param.h>.
20611 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20612 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20613 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20614 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20615 trivial, for C++ conformity.
20616 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20617 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20618 Process mig output through $(migheadersed).
20619 * hurd/Makefile (migheadersed): Define variable.
20620 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20621 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20622 headers.
20623 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20624 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20625 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20626 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20627 <bits/types/sigset_t.h>.
20628 [!defined __USE_GNU]: Do not #error out.
20629 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20630 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20631 Include <stddef.h> and <bits/types/sigset_t.h>
20632 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20633 instead of sighandler_t.
20634 * stdlib/errno.h (error_t): Move definition to...
20635 * bits/types/error_t.h: ... new header.
20636 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20637 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20638 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20639 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20640 * hurd/hurd.h: Include <bits/types/error_t.h>
20641 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20642 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20643 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20644 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20645 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20646 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20647 * sysdeps/mach/hurd/futimens.c: New file.
20648
20649 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20650
20651 [BZ #22918]
20652 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20653 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20654 * nscd/gai.c (__nss_hosts_database): Readd definition.
20655 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20656 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20657 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20658
20659 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20660
20661 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20662 (ifunc_one): Likewise.
20663
20664 2018-03-01 DJ Delorie <dj@delorie.com>
20665
20666 [BZ #22342]
20667 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20668 key value.
20669
20670 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20671
20672 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20673 `match_pid' parameter.
20674 (td_ta_thr_iter): Update accordingly.
20675
20676 2018-03-01 Florian Weimer <fweimer@redhat.com>
20677
20678 * nptl/Makefile (install-lib-ldscripts): Remove.
20679 (install): Remove rule.
20680 ($(inst_libdir)/libpthread.so): Likewise.
20681
20682 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20683
20684 [BZ #22896]
20685 * localedata/locales/an_ES: update month and day names,
20686 improve d_fmt, improve postal_fmt, add country_post,
20687 add country_isbn
20688
20689 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20690
20691 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20692 Ukrainian instead of Bulgarian.
20693
20694 2018-03-01 Florian Weimer <fweimer@redhat.com>
20695
20696 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20697 reference.
20698
20699 2018-03-01 Florian Weimer <fweimer@redhat.com>
20700
20701 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20702 * nptl/Makefile (routines): Add pthread_atfork.
20703 (static-only-routines): Set to pthread_atfork.
20704 (libpthread-routines): Remove pthread_atfork.
20705 (libpthread-static-only-routines): Remove.
20706 (install): Update comment.
20707 (libpthread.so): Do not install libpthread_nonshared.a.
20708 (tests): Do not link with libpthread_nonshared.a.
20709 (generated): Remove libpthread_nonshared.a.
20710 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20711 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20712 with libpthread_nonshared.a.
20713
20714 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20715
20716 [BZ #22902]
20717 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20718 (libc_feholdexcept_setroundf128): New macro.
20719 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20720
20721 [BZ #15105]
20722 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20723 libc_hidden_def.
20724 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20725 * include/inttypes.h: New file.
20726
20727 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20728
20729 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20730 -Os in two more places.
20731
20732 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20733
20734 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20735 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20736 be sorted correctly at the moment because of a bug.
20737
20738 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20739
20740 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20741 treat ñ as a primary different character, sync the collation
20742 for Spanish with CLDR.
20743 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20744 * localedata/Makefile: Add new test files.
20745 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20746 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20747 collation order.
20748 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20749 * localedata/am_ET.UTF-8.in: New test file.
20750 * localedata/az_AZ.UTF-8.in: Likewise.
20751 * localedata/be_BY.UTF-8.in: Likewise.
20752 * localedata/ber_DZ.UTF-8.in: Likewise.
20753 * localedata/ber_MA.UTF-8.in: Likewise.
20754 * localedata/bg_BG.UTF-8.in: Likewise.
20755 * localedata/br_FR.UTF-8.in: Likewise.
20756 * localedata/cmn_TW.UTF-8.in: Likewise.
20757 * localedata/crh_UA.UTF-8.in: Likewise.
20758 * localedata/csb_PL.UTF-8.in: Likewise.
20759 * localedata/cv_RU.UTF-8.in: Likewise.
20760 * localedata/cy_GB.UTF-8.in: Likewise.
20761 * localedata/dz_BT.UTF-8.in: Likewise.
20762 * localedata/eo.UTF-8.in: Likewise.
20763 * localedata/es_ES.UTF-8.in: Likewise.
20764 * localedata/fa_IR.UTF-8.in: Likewise.
20765 * localedata/fi_FI.UTF-8.in: Likewise.
20766 * localedata/fil_PH.UTF-8.in: Likewise.
20767 * localedata/fur_IT.UTF-8.in: Likewise.
20768 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20769 * localedata/ha_NG.UTF-8.in: Likewise.
20770 * localedata/ig_NG.UTF-8.in: Likewise.
20771 * localedata/ik_CA.UTF-8.in: Likewise.
20772 * localedata/kk_KZ.UTF-8.in: Likewise.
20773 * localedata/ku_TR.UTF-8.in: Likewise.
20774 * localedata/ky_KG.UTF-8.in: Likewise.
20775 * localedata/ln_CD.UTF-8.in: Likewise.
20776 * localedata/mi_NZ.UTF-8.in: Likewise.
20777 * localedata/ml_IN.UTF-8.in: Likewise.
20778 * localedata/mn_MN.UTF-8.in: Likewise.
20779 * localedata/mr_IN.UTF-8.in: Likewise.
20780 * localedata/mt_MT.UTF-8.in: Likewise.
20781 * localedata/nb_NO.UTF-8.in: Likewise.
20782 * localedata/om_KE.UTF-8.in: Likewise.
20783 * localedata/os_RU.UTF-8.in: Likewise.
20784 * localedata/ps_AF.UTF-8.in: Likewise.
20785 * localedata/ro_RO.UTF-8.in: Likewise.
20786 * localedata/ru_RU.UTF-8.in: Likewise.
20787 * localedata/sc_IT.UTF-8.in: Likewise.
20788 * localedata/se_NO.UTF-8.in: Likewise.
20789 * localedata/sq_AL.UTF-8.in: Likewise.
20790 * localedata/sv_SE.UTF-8.in: Likewise.
20791 * localedata/szl_PL.UTF-8.in: Likewise.
20792 * localedata/tg_TJ.UTF-8.in: Likewise.
20793 * localedata/tk_TM.UTF-8.in: Likewise.
20794 * localedata/tt_RU.UTF-8.in: Likewise.
20795 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20796 * localedata/ug_CN.UTF-8.in: Likewise.
20797 * localedata/uz_UZ.UTF-8.in: Likewise.
20798 * localedata/vi_VN.UTF-8.in: Likewise.
20799 * localedata/yi_US.UTF-8.in: Likewise.
20800 * localedata/yo_NG.UTF-8.in: Likewise.
20801 * localedata/zh_CN.UTF-8.in: Likewise.
20802 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20803 file and fix bugs in the collation.
20804 * localedata/locales/az_AZ: Likewise.
20805 * localedata/locales/be_BY: Likewise.
20806 * localedata/locales/ber_DZ: Likewise.
20807 * localedata/locales/ber_MA: Likewise.
20808 * localedata/locales/bg_BG: Likewise.
20809 * localedata/locales/br_FR: Likewise.
20810 * localedata/locales/br_FR@euro: Likewise.
20811 * localedata/locales/ca_ES: Likewise.
20812 * localedata/locales/cns11643_stroke: Likewise.
20813 * localedata/locales/crh_UA: Likewise.
20814 * localedata/locales/cs_CZ: Likewise.
20815 * localedata/locales/csb_PL: Likewise.
20816 * localedata/locales/cv_RU: Likewise.
20817 * localedata/locales/cy_GB: Likewise.
20818 * localedata/locales/da_DK: Likewise.
20819 * localedata/locales/dz_BT: Likewise.
20820 * localedata/locales/en_CA: Likewise.
20821 * localedata/locales/eo: Likewise.
20822 * localedata/locales/es_CU: Likewise.
20823 * localedata/locales/es_EC: Likewise.
20824 * localedata/locales/es_ES: Likewise.
20825 * localedata/locales/es_US: Likewise.
20826 * localedata/locales/et_EE: Likewise.
20827 * localedata/locales/fa_IR: Likewise.
20828 * localedata/locales/fi_FI: Likewise.
20829 * localedata/locales/fil_PH: Likewise.
20830 * localedata/locales/fur_IT: Likewise.
20831 * localedata/locales/gez_ER@abegede: Likewise.
20832 * localedata/locales/ha_NG: Likewise.
20833 * localedata/locales/hr_HR: Likewise.
20834 * localedata/locales/hsb_DE: Likewise.
20835 * localedata/locales/hu_HU: Likewise.
20836 * localedata/locales/ig_NG: Likewise.
20837 * localedata/locales/ik_CA: Likewise.
20838 * localedata/locales/is_IS: Likewise.
20839 * localedata/locales/iso14651_t1_pinyin: Likewise.
20840 * localedata/locales/kk_KZ: Likewise.
20841 * localedata/locales/ku_TR: Likewise.
20842 * localedata/locales/ky_KG: Likewise.
20843 * localedata/locales/ln_CD: Likewise.
20844 * localedata/locales/lt_LT: Likewise.
20845 * localedata/locales/lv_LV: Likewise.
20846 * localedata/locales/mi_NZ: Likewise.
20847 * localedata/locales/ml_IN: Likewise.
20848 * localedata/locales/mn_MN: Likewise.
20849 * localedata/locales/mr_IN: Likewise.
20850 * localedata/locales/mt_MT: Likewise.
20851 * localedata/locales/nb_NO: Likewise.
20852 * localedata/locales/om_KE: Likewise.
20853 * localedata/locales/os_RU: Likewise.
20854 * localedata/locales/pl_PL: Likewise.
20855 * localedata/locales/ps_AF: Likewise.
20856 * localedata/locales/ro_RO: Likewise.
20857 * localedata/locales/ru_RU: Likewise.
20858 * localedata/locales/ru_UA: Likewise.
20859 * localedata/locales/sc_IT: Likewise.
20860 * localedata/locales/se_NO: Likewise.
20861 * localedata/locales/si_LK: Likewise.
20862 * localedata/locales/sq_AL: Likewise.
20863 * localedata/locales/sv_FI: Likewise.
20864 * localedata/locales/sv_FI@euro: Likewise.
20865 * localedata/locales/sv_SE: Likewise.
20866 * localedata/locales/szl_PL: Likewise.
20867 * localedata/locales/tg_TJ: Likewise.
20868 * localedata/locales/ti_ER: Likewise.
20869 * localedata/locales/tk_TM: Likewise.
20870 * localedata/locales/tl_PH: Likewise.
20871 * localedata/locales/tr_TR: Likewise.
20872 * localedata/locales/tt_RU: Likewise.
20873 * localedata/locales/tt_RU@iqtelif: Likewise.
20874 * localedata/locales/ug_CN: Likewise.
20875 * localedata/locales/uk_UA: Likewise.
20876 * localedata/locales/uz_UZ: Likewise.
20877 * localedata/locales/uz_UZ@cyrillic: Likewise.
20878 * localedata/locales/vi_VN: Likewise.
20879 * localedata/locales/yi_US: Likewise.
20880 * localedata/locales/yo_NG: Likewise.
20881
20882 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20883
20884 * gen-locales.mk: Make test files which contain @ modifiers in their
20885 name work.
20886 * localedata/gen-locale.sh: Likewise.
20887
20888 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20889
20890 * posix/tst-fnmatch.input: Fix results for range expressions
20891 for non C locales.
20892 * posix/tst-regexloc.c: Do not use a range expression for
20893 de_DE.ISO-8859-1 locale.
20894
20895 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20896
20897 * posix/bug-regex5.c: Fix test case because with the new
20898 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20899 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20900 file.
20901
20902 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20903
20904 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20905 downloaded from ISO, the collation order of @-. and space has changed.
20906 Therefore, this test file needed to be adapted.
20907 * localedata/fr_CA.UTF-8.in: Likewise.
20908 * localedata/fr_FR.UTF-8.in: Likewise.
20909 * localedata/uk_UA.UTF-8.in: Likewise.
20910
20911 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20912
20913 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20914 order of ȥ in the new iso14651_t1_common file.
20915 * localedata/pl_PL.UTF-8.in: Likewise.
20916
20917 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20918
20919 * localedata/locales/iso14651_t1_common: Add sections for various
20920 scripts to the iso14651_t1_common file.
20921
20922 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20923
20924 * localedata/locales/iso14651_t1_common: Use the code point of a
20925 character in the fourth collation level instead of IGNORE for all
20926 entries which have IGNORE on all 4 levels.
20927
20928 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20929
20930 * localedata/locales/iso14651_t1_common: Add some convenient collation
20931 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20932 rules similar to those in CLDR.
20933
20934 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20935
20936 * localedata/locales/iso14651_t1_common: The new version of this
20937 file downloaded from ISO contained several syntax errors which
20938 are fixed by this patch.
20939
20940 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20941
20942 * localedata/locales/iso14651_t1_common: replace all <U.....>
20943 with <U000.....> because glibc understands only 4 digit or 8 digit
20944
20945 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20946
20947 * localedata/locales/iso14651_t1_common: Necessary changes
20948 to make the file downloaded from ISO usable by glibc.
20949
20950 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20951
20952 [BZ #14095]
20953 * localedata/locales/iso14651_t1_common: Update file to
20954 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20955
20956 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20957
20958 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20959 of <nptl/pthreadP.h>
20960 (thread_attr_compare): Move function to...
20961 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20962 * sysdeps/nptl/timer_routines.h: ... new header.
20963 * sysdeps/mach/hurd/gai_misc.h: New file.
20964
20965 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20966
20967 * string/strcoll_l.c: Include <libc-diag.h>.
20968 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20969 declarations of seq1 and seq2.
20970
20971 [BZ #15105]
20972 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20973 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20974
20975 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20976
20977 [BZ #22433]
20978 [BZ #22807]
20979 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20980 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20981 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20982 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20983 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20984 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20985
20986 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20987
20988 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20989 macros used in __ptrace_request.
20990
20991 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20992
20993 [BZ #22792]
20994 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20995 to $(CC).
20996 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20997 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20998 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20999 <tcb-offsets.h>.
21000
21001 2018-02-23 Joseph Myers <joseph@codesourcery.com>
21002
21003 [BZ #15105]
21004 * ctype/ctype.c (tolower): Use libc_hidden_def.
21005 (toupper): Likewise.
21006 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
21007 [!_ISOMAC] (toupper): Likewise.
21008
21009 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21010
21011 * localedata/Makefile: Remove --quiet argument when
21012 installing locales
21013
21014 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21015
21016 [BZ #17438]
21017 * localedata/locales/pt_BR (LC_TIME): use / instead of -
21018 in d_fmt.
21019 * localedata/locales/pt_PT (LC_TIME): likewise
21020
21021 2018-02-23 Mike FABIAN <mfabian@redhat.com>
21022
21023 [BZ #22646]
21024 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
21025 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
21026 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
21027
21028 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21029
21030 * sysdeps/sparc/fpu/libm-test-ulps: Update.
21031
21032 * nptl/Makefile (routines): Remove unregister-atfork.
21033 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
21034 (fork_handler_alloc): Remove function.
21035 (fork_handlers, fork_handler_init): New variables.
21036 (__fork_lock): Rename to atfork_lock.
21037 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
21038 to use a dynamic array to add/remove atfork handlers.
21039 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21040 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
21041 Remove declaration.
21042 (fork_handler): Remove next, refcntr, and need_signal member.
21043 (__run_fork_handler_type): New enum.
21044 (__run_fork_handlers): New prototype.
21045 * nptl/register-atfork.c: Remove file.
21046 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
21047
21048 * sysdeps/nptl/nptl-signals.h: Move to ...
21049 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
21050 comments.
21051 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
21052 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
21053 unnecessary check for SIGTIMER.
21054 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
21055 remove unnecessary removal of SIGTIMER.
21056 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
21057 include-signals.h rename.
21058 * nptl/pthreadP.h: Likewise.
21059 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
21060 __is_internal_signal instead of __nptl_is_internal_signal.
21061
21062 2018-02-22 Andrew Waterman <andrew@sifive.com>
21063
21064 [BZ # 22884]
21065 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
21066 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
21067 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
21068 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
21069
21070 2018-02-22 DJ Delorie <dj@delorie.com>
21071
21072 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
21073
21074 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
21075
21076 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
21077 do_misaligned, not misaligned8.
21078
21079 2018-02-22 Steve Ellcey <sellcey@cavium.com>
21080
21081 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21082 Add memcpy_thunderx2.
21083 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
21084 Increment to 4.
21085 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
21086 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
21087 and IS_THUNDERX2PA checks.
21088 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
21089 Use macro to set name appropriately.
21090 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
21091 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
21092 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
21093 New macro.
21094 (IS_THUNDERX2): New macro.
21095
21096 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
21097
21098 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21099
21100 2018-02-21 Zack Weinberg <zackw@panix.com>
21101
21102 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21103 Define here, unconditionally.
21104 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21105 * libio/libioP.h: Remove #if 0 blocks.
21106 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21107 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21108 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21109
21110 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21111 Assume weak_alias is always defined.
21112
21113 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21114 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21115 Remove #if 0 and #ifdef TODO blocks.
21116 Assume text_set_element is always defined.
21117
21118 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21119 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21120 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21121
21122 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21123 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21124 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21125 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21126 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21127 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21128 Reformat bit flags for _flags field to make occupancy clearer.
21129 Update commentary.
21130 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21131 Keep definitions consistent with those in libio/libio.h.
21132
21133 * libio/libio.h (_IO_file_flags): Remove macro.
21134 All uses changed to _flags.
21135
21136 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21137 (__HAVE_COLUMN, _IO_BE): Don't define.
21138 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21139 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21140 * libio/libioP.h (EOF): Don't define.
21141 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21142 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21143 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21144 testing _IO_UNIFIED_JUMPTABLES.
21145
21146 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21147 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21148 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21149 (_IO_size_t): Delete; all uses changed to size_t.
21150 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21151 (_IO_off_t): Delete; all uses changed to off_t.
21152 (_IO_off64_t): Delete; all uses changed to off64_t.
21153 (_IO_pid_t): Delete; all uses changed to pid_t.
21154 (_IO_uid_t): Delete; all uses changed to uid_t.
21155 (_IO_wint_t): Delete; all uses changed to wint_t.
21156 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21157 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21158 (_IO_cookie_io_functions_t): Delete; all uses changed to
21159 cookie_io_functions_t.
21160 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21161 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21162 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21163 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21164
21165 * libio/iofopncook.c: Remove unnecessary forward declarations.
21166 * libio/iolibio.h: Correct outdated commentary.
21167 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21168 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21169 Remove unnecessary casts.
21170 * stdio-common/getline.c: Use _IO_getdelim directly.
21171 Don't redefine ssize_t.
21172 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21173 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21174 Remove outdated comments.
21175 * stdio-common/vfscanf.c: Don't redefine va_list.
21176
21177 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21178 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21179 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21180 which are always true, and __cplusplus, which is always false.
21181
21182 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21183
21184 [BZ #15105]
21185 [BZ #19463]
21186 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21187 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21188 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21189 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21190 libc_hidden_proto.
21191 [!_ISOMAC] (putc_unlocked): Likewise.
21192 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21193 define inline if [__USE_EXTERN_INLINES].
21194 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21195 putc_unlocked.
21196
21197 [BZ #15105]
21198 [BZ #19463]
21199 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21200 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21201 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21202 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21203 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21204 getc_unlocked.
21205 * time/tzfile.c (__tzfile_read): Likewise.
21206
21207 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21208
21209 [BZ #22517]
21210 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21211
21212 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21213
21214 * io/fcntl.h: Fix a typo in a comment.
21215
21216 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21217
21218 [BZ #22862]
21219 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21220 define _DEFAULT_SOURCE.
21221 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21222
21223 2018-02-21 Florian Weimer <fweimer@redhat.com>
21224
21225 [BZ #20890]
21226 * elf/cache.c (save_cache): Call fsync on temporary file before
21227 renaming it.
21228 (save_aux_cache): Call fdatasync on temporary file before renaming
21229 it.
21230
21231 2018-02-21 Florian Weimer <fweimer@redhat.com>
21232
21233 [BZ #22787]
21234 * include/caller.h: Remove file.
21235 * elf/dl-caller.c: Likewise.
21236 * elf/Makefile (dl-routines): Remove dl-caller.
21237 (shared-only-routines): Do not add dl-caller.
21238 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21239 __check_caller.
21240 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21241 member.
21242 (dl_open_worker): Do not call __check_caller.
21243 (_dl_open): Do not set caller_dl_open member.
21244 * elf/rtld.c (_rtld_global_ro): Do not initialize
21245 _dl_check_caller member.
21246 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21247 _dl_check_caller member.
21248 (_dl_check_caller): Remove declaration.
21249 * sysdeps/unix/sysv/linux/dl-execstack.c
21250 (_dl_make_stack_executable): Do not call __check_caller.
21251
21252 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21253
21254 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21255 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21256
21257 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21258
21259 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21260 description.
21261
21262 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21263
21264 [BZ #16335]
21265 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21266 of 199606L, 200112L, and 200809L.
21267 (_XOPEN_SOURCE): Document special values of 600 and 700.
21268 (_ISOC11_SOURCE): Document macro.
21269 (_ATFILE_SOURCE): Likewise.
21270 (_FORTIFY_SOURCE): Likewise.
21271
21272 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21273
21274 [BZ #15105]
21275 [BZ #19463]
21276 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21277 and define as weak alias of __ferror_unlocked. Use
21278 libc_hidden_weak.
21279 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21280 libc_hidden_proto.
21281 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21282 function if [__USE_EXTERN_INLINES].
21283 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21284 ferror_unlocked.
21285
21286 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21287
21288 [BZ #6889]
21289 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21290
21291 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21292
21293 [BZ #22818]
21294 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21295 the GLIBC_2.1 version.
21296
21297 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21298
21299 [BZ #21508]
21300 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21301 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21302 intl/tst-gettext-de.po from po/de.po by removing the
21303 POT-Creation-Date line.
21304 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21305 ../po/de.po.
21306 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21307 ../po/de.po.
21308
21309 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21310
21311 * mach/Makefile (headers): Add mach/param.h.
21312 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21313 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21314 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21315 (__ptsname_r): Move implementation to...
21316 (__ptsname_internal): ... new function. Add filling the STP
21317 structure.
21318
21319 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21320
21321 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21322 idouble to 1 ULP.
21323
21324 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21325
21326 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21327 syntax.
21328
21329 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21330
21331 * nptl/Makefile (tst-mutex8-ENV): Delete.
21332 * nptl/tst-mutex8.c (check_type):
21333 Add runtime check if mutex will be elided.
21334
21335 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21336
21337 [BZ #20980]
21338 [BZ #21234]
21339 * manual/install.texi (Configuring and compiling): Describe
21340 passing CC and CFLAGS on configure command line, not as
21341 environment variables. Use @code markup on those variables.
21342 Specify what options go in CC and what go in CFLAGS. Note the
21343 requirement to compile with optimization.
21344 * INSTALL: Regenerated.
21345
21346 [BZ #18124]
21347 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21348 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21349 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21350 __sigprocmask instead of sigprocmask.
21351 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21352 Likewise.
21353 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21354 __sigsetjmp and sigprocmask.
21355
21356 [BZ #15105]
21357 * include/argz.h (argz_next): Use libc_hidden_proto.
21358 (__argz_next): Likewise.
21359 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21360 (argz_next): Use libc_hidden_weak.
21361
21362 [BZ #15105]
21363 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21364 libc_hidden_proto.
21365 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21366 libc_hidden_def.
21367
21368 [BZ #15105]
21369 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21370 libc_hidden_proto.
21371 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21372
21373 [BZ #15105]
21374 [BZ #19463]
21375 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21376 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21377 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21378 (__feof_unlocked): New declaration, and inline function if
21379 [__USE_EXTERN_INLINES].
21380 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21381 instead of feof_unlocked.
21382 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21383 * nss/nsswitch.c (nss_parse_file): Likewise.
21384 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21385 Likewise.
21386 * time/getdate.c (__getdate_r): Likewise.
21387 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21388 Define as macro to call __feof_unlocked.
21389
21390 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21391
21392 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21393
21394 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21395
21396 * math/Makefile: Remove mpexp.c and mplog.c
21397 * sysdeps/i386/fpu/mpexp.c: Delete file.
21398 * sysdeps/i386/fpu/mplog.c: Likewise.
21399 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21400 * sysdeps/ia64/fpu/mplog.c: Likewise.
21401 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21402 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21403 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21404 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21405 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21406 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21407 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21408 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21409 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21410 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21411 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21412 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21413 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21414 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21415 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21416 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21417
21418 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21419
21420 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21421
21422 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21423
21424 * sysdeps/sh/libm-test-ulps: Update.
21425
21426 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21427
21428 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21429 idouble to 1 ULP.
21430
21431 2018-02-12 Zack Weinberg <zackw@panix.com>
21432
21433 [BZ #19239]
21434 * posix/sys/types.h: Don't include sys/sysmacros.h.
21435 * misc/sys/sysmacros.h: Remove the conditional deprecation
21436 warnings for the macros defined by this header.
21437
21438 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21439
21440 * manual/probes.texi: Remove slowexp probes.
21441 * math/Makefile: Remove slowexp.
21442 * sysdeps/generic/math_private.h (__slowexp): Remove.
21443 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21444 document error bounds.
21445 * sysdeps/i386/fpu/slowexp.c: Remove.
21446 * sysdeps/ia64/fpu/slowexp.c: Remove.
21447 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21448 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21449 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21450 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21451 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21452 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21453 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21454 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21455 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21456 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21457 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21458
21459 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21460
21461 [BZ #13932]
21462 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21463 * benchtests/pow-inputs: Update comment for slow path cases.
21464 * manual/probes.texi (slowpow_p10): Delete removed probe.
21465 (slowpow_p10): Likewise.
21466 * math/Makefile: Remove halfulp.c and slowpow.c.
21467 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21468 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21469 (__halfulp): Remove.
21470 (__slowpow): Remove.
21471 * sysdeps/i386/fpu/halfulp.c: Delete file.
21472 * sysdeps/i386/fpu/slowpow.c: Likewise.
21473 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21474 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21475 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21476 improve comments and add error analysis.
21477 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21478 (power1): Remove function:
21479 (log1): Remove error argument, add error analysis.
21480 (my_log2): Remove function.
21481 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21482 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21483 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21484 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21485 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21486 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21487 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21488 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21489 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21490 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21491 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21492 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21493 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21494 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21495
21496 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21497
21498 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21499 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21500
21501 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21502
21503 [BZ #22433]
21504 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21505 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21506 and PTRACE_SETHBPREGS.
21507
21508 2018-02-10 Zack Weinberg <zackw@panix.com>
21509
21510 [BZ #22830]
21511 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21512 correctly.
21513 * malloc/tst-malloc-stats-cancellation.c: New test case.
21514 * malloc/Makefile: Add new test case.
21515
21516 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21517
21518 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21519
21520 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21521
21522 * math/Makefile (libm-narrow-fns): Add add.
21523 (libm-test-funcs-narrow): Likewise.
21524 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21525 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21526 * math/gen-auto-libm-tests.c (test_functions): Add add.
21527 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21528 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21529 (NARROW_ADD_TRIVIAL): Likewise.
21530 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21531 macro.
21532 (__daddl): Likewise.
21533 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21534 dadd.
21535 (CFLAGS-nldbl-dadd.c): New variable.
21536 (CFLAGS-nldbl-fadd.c): Likewise.
21537 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21538 __nldbl_daddl.
21539 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21540 prototype.
21541 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21542 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21543 * math/auto-libm-test-in: Add tests of add.
21544 * math/auto-libm-test-out-narrow-add: New generated file.
21545 * math/libm-test-narrow-add.inc: New file.
21546 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21547 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21548 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21549 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21550 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21551 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21552 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21553 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21554 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21555 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21556 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21557 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21558 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21559 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21560 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21561 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21562 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21563 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21564 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21565 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21566 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21567 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21568 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21569 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21570 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21571 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21572 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21573 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21574 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21575 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21576 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21577 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21582 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21583 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21584 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21585 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21586 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21587 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21588 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21589 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21590 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21591 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21592
21593 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21594 (f128-pairs): New variable.
21595 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21596 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21597 to CFLAGS.
21598 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21599 Also make tests add $(f128-loader-link) to gnulib-tests.
21600
21601 2018-02-09 DJ Delorie <dj@redhat.com>
21602
21603 [BZ #22827]
21604 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21605 64-bit ELF type for 64-bit ELF objects.
21606
21607 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21608
21609 * math/libm-test-driver.c (snan_tests_arg): New variable.
21610 * math/libm-test-support.h (snan_tests_arg): New declaration.
21611 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21612
21613 * math/Makefile (test-type-pairs): New variable.
21614 (test-type-pairs-f64xf128-yes): Likewise.
21615 (tests): Add test-narrow-macros.
21616 (libm-test-funcs-narrow): New variable.
21617 (libm-test-c-narrow): Likewise.
21618 (generated): Add $(libm-test-c-narrow).
21619 (libm-tests-base-narrow): New variable.
21620 (libm-tests-narrow): Likewise.
21621 (libm-tests): Add $(libm-tests-narrow).
21622 (libm-tests-for-type): Handle $(libm-tests-narrow).
21623 (libm-test-c-narrow-obj): New variable.
21624 ($(libm-test-c-narrow-obj)): New rule.
21625 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21626 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21627 $(o-iterator) to set dependencies and CFLAGS.
21628 * math/gen-auto-libm-tests.c: Document use for narrowing
21629 functions.
21630 (output_for_one_input_case): Take argument NARROW.
21631 (generate_output): Likewise. Update call to
21632 output_for_one_input_case.
21633 (main): Take --narrow option. Update call to generate_output.
21634 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21635 (apply_lit): Update call to _apply_lit.
21636 (apply_arglit): New function.
21637 (parse_args): Handle "a" arguments.
21638 (parse_auto_input): Handle format names using ":".
21639 * math/README.libm-test: Document "a" parameter type.
21640 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21641 (ARG_TYPE_TRUE_MIN): Likewise.
21642 (ARG_TYPE_MAX): Likwise.
21643 (ARG_MIN_EXP): Likewise.
21644 (ARG_MAX_EXP): Likewise.
21645 (ARG_MANT_DIG): Likewise.
21646 (TEST_COND_arg_ibm128): Likewise.
21647 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21648 (TEST_COND_arg_fmt): New macro.
21649 (init_max_error): Update prototype.
21650 * math/libm-test-support.c (test_ibm128): New variable.
21651 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21652 instead of using [TEST_COND_ibm128] conditional.
21653 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21654 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21655 [TEST_NARROW] (TEST_MSG): New definition.
21656 (arg_plus_zero): New macro.
21657 (arg_minus_zero): Likewise.
21658 (arg_plus_infty): Likewise.
21659 (arg_minus_infty): Likewise.
21660 (arg_qnan_value_pl): Likewise.
21661 (arg_qnan_value): Likewise.
21662 (arg_snan_value_pl): Likewise.
21663 (arg_snan_value): Likewise.
21664 (arg_max_value): Likewise.
21665 (arg_min_value): Likewise.
21666 (arg_min_subnorm_value): Likewise.
21667 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21668 (RUN_TEST_LOOP_aa_f): New macro.
21669 (TEST_SUFF): New macro.
21670 (TEST_SUFF_STR): Likewise.
21671 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21672 (TEST_COND_any_ibm128): New macro.
21673 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21674 this_func. Update call to init_max_error.
21675 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21676 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21677 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21678 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21679 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21680 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21681 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21682 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21683 * math/test-math-vector.h (TEST_NARROW): Likewise.
21684 * math/test-arg-double.h: New file.
21685 * math/test-arg-float128.h: Likewise.
21686 * math/test-arg-float32x.h: Likewise.
21687 * math/test-arg-float64.h: Likewise.
21688 * math/test-arg-float64x.h: Likewise.
21689 * math/test-arg-ldouble.h: Likewise.
21690 * math/test-math-narrow.h: Likewise.
21691 * math/test-narrow-macros.c: Likewise.
21692 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21693 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21694 test-narrow-macros-ldbl-64.
21695 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21696
21697 * math/bits/mathcalls-narrow.h: New file.
21698 * include/bits/mathcalls-narrow.h: Likewise.
21699 * math/math-narrow.h: Likewise.
21700 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21701 (__MATHCALL_NARROW_ARGS_2): Likewise.
21702 (__MATHCALL_NARROW_ARGS_3): Likewise.
21703 (__MATHCALL_NARROW_NORMAL): Likewise.
21704 (__MATHCALL_NARROW_REDIR): Likewise.
21705 (__MATHCALL_NARROW): Likewise.
21706 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21707 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21708 defined.
21709 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21710 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21711 (libm-narrow-fns): New variable.
21712 (libm-narrow-types-basic): Likewise.
21713 (libm-narrow-types-ldouble-yes): Likewise.
21714 (libm-narrow-types-float128-yes): Likewise.
21715 (libm-narrow-types-float128-alias-yes): Likewise.
21716 (libm-narrow-types): Likewise.
21717 (libm-routines): Add narrowing functions.
21718 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21719 (libc_feholdexcept_setroundf128): New macro.
21720 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21721 * sysdeps/ieee754/float128/float128_private.h: Include
21722 <math/math-narrow.h>.
21723 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21724 Undefine and redefine.
21725 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21726 (libm_alias_float_ldouble): Undefine and redefine.
21727 (libm_alias_double_ldouble): Likewise.
21728
21729 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21730
21731 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21732
21733 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21734 FPCR/FPSR.
21735
21736 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21737
21738 * manual/creature.texi: Convert references to gcc.info to gcc.
21739 * manual/stdio.texi: Likewise.
21740 * manual/string.texi: Likewise.
21741
21742 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21743
21744 [BZ #17979]
21745 * posix/bits/types.h (__int_least8_t): New typedef.
21746 (__uint_least8_t): Likewise.
21747 (__int_least16_t): Likewise.
21748 (__uint_least16_t): Likewise.
21749 (__int_least32_t): Likewise.
21750 (__uint_least32_t): Likewise.
21751 (__int_least64_t): Likewise.
21752 (__uint_least64_t): Likewise.
21753 * sysdeps/generic/stdint.h (int_least8_t): Define using
21754 __int_least8_t.
21755 (int_least16_t): Define using __int_least16_t.
21756 (int_least32_t): Define using __int_least32_t.
21757 (int_least64_t): Define using __int_least64_t.
21758 (uint_least8_t): Define using __uint_least8_t.
21759 (uint_least16_t): Define using __uint_least16_t.
21760 (uint_least32_t): Define using __uint_least32_t.
21761 (uint_least64_t): Define using __uint_least64_t.
21762 * wcsmbs/uchar.h: Include <bits/types.h>.
21763 (char16_t): Define using __uint_least16_t conditional only on
21764 [!__USE_ISOCXX11].
21765 (char32_t): Define using __uint_least32_t conditional only on
21766 [!__USE_ISOCXX11].
21767 * wcsmbs/test-char-types.c: New file.
21768 * wcsmbs/Makefile (tests): Add test-char-types.
21769
21770 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21771 version to 4.0.1.
21772
21773 2018-02-07 Zack Weinberg <zackw@panix.com>
21774
21775 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21776 Delete all contents except for definitions of _G_HAVE_MMAP and
21777 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21778 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21779 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21780 change as above.
21781
21782 * libio/libio.h: Don't include bits/_G_config.h here.
21783 Include stddef.h with __need_wchar_t defined. Include
21784 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21785 Define _IO_iconv_t here, directly.
21786 Don't define _IO_HAVE_ST_BLKSIZE.
21787 * libio/libioP.h: Include _G_config.h here. Move include of
21788 shlib-compat.h up with rest of includes. Simplify conditionals
21789 controlling definition of _IO_JUMPS_OFFSET.
21790
21791 * csu/init.c: Remove always-true #if around entire file.
21792 Don't include stdio.h. Set _IO_stdin_used to hardwired
21793 constant 0x20001, and update commentary.
21794 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21795 Replace all uses of _G_va_list with __gnuc_va_list.
21796 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21797 instead of #if _IO_HAVE_ST_BLKSIZE.
21798 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21799 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21800 not #ifdef.
21801
21802 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21803 multiple-include guard to match.
21804 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21805 into this file.
21806 Remove preprocessor conditionals that are always true and/or
21807 redundant to other preprocessor conditionals in the same nest.
21808 Include shlib-compat.h unconditionally.
21809 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21810 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21811 defined after including stdio.h.
21812 Use __BEGIN_DECLS/__END_DECLS.
21813
21814 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21815 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21816 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21817
21818 2018-02-07 Zack Weinberg <zackw@panix.com>
21819
21820 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21821 New single-type headers split from _G_config.h.
21822 * libio/bits/types/cookie_io_functions_t.h
21823 * libio/bits/types/struct_FILE.h
21824 New single-type headers split from libio.h.
21825
21826 * libio/Makefile: Install the above new headers. Don't install
21827 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21828 bits/libio-ldbl.h.
21829 * libio/_G_config.h, libio/libio.h: Delete file.
21830
21831 * libio/bits/libio.h: Remove improper-inclusion guard.
21832 Include stdio.h and don't repeat anything that it does.
21833 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21834 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21835 __io_read_fn as cookie_read_function_t,
21836 __io_write_fn as cookie_write_function_t,
21837 __io_seek_fn as cookie_seek_function_t,
21838 __io_close_fn as cookie_close_function_t,
21839 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21840 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21841 here, in the "compatibility defines" section. Remove an #if 0
21842 block. Use the "body" macros from bits/types/struct_FILE.h to
21843 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21844 and _IO_ferror_unlocked.
21845 Move prototypes of __uflow and __overflow...
21846
21847 * libio/stdio.h: ...here. Don't include bits/libio.h.
21848 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21849 directly from stdarg.h. Include bits/types/__fpos_t.h,
21850 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21851 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21852 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21853 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21854 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21855 __ssize_t, not _IO_ssize_t. Unconditionally define
21856 BUFSIZ as 8192 and EOF as (-1).
21857
21858 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21859 macros from bits/types/struct_FILE.h instead of _IO_* macros
21860 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21861 instead of _IO_ssize_t.
21862 * libio/bits/stdio2.h: Similarly.
21863
21864 * libio/iolibio.h: Add multiple-include guard.
21865 Include bits/libio.h after stdio.h.
21866 * libio/libioP.h: Add multiple-include guard.
21867 Include stdio.h and bits/libio.h before iolibio.h.
21868
21869 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21870 * include/bits/types/cookie_io_functions_t.h
21871 * include/bits/types/struct_FILE.h: New wrappers.
21872
21873 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21874 Get definitions of _G_fpos_t and _G_fpos64_t from
21875 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21876 respectively. Remove improper-inclusion guards.
21877
21878 * conform/data/stdio.h-data: Update expectations of va_list.
21879 * scripts/check-installed-headers.sh: Remove special case for
21880 libio.h and _G_config.h.
21881
21882 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21883
21884 [BZ #15105]
21885 [BZ #19463]
21886 * include/sys/sysmacros.h [!_ISOMAC]
21887 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21888 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21889 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21890 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21891 libc_hidden_proto.
21892 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21893 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21894 Likewise.
21895 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21896 Undefine and redefine to add use __gnu_dev_ prefix.
21897 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21898 Likewise.
21899 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21900 and define as hidden inline function.
21901 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21902 Likewise.
21903 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21904 Likewise.
21905 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21906 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21907 (gnu_dev_minor): Likewise.
21908 (gnu_dev_makedev): Likewise.
21909 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21910 makedev.
21911 * posix/wordexp.c (exec_comm_child): Likewise.
21912 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21913 instead of minor and __gnu_dev_major instead of major.
21914 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21915 __gnu_dev_major instead of major.
21916 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21917 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21918 instead of gnu_dev_minor.
21919 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21920 (SLAVE_P): Likewise.
21921 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21922 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21923 instead of major.
21924
21925 [BZ #21313]
21926 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21927 in another place.
21928 * locale/weightwc.h (findidx): Likewise.
21929
21930 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21931
21932 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21933 (slowlog_inexact): Likewise
21934 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21935 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21936
21937 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21938
21939 [BZ #22797]
21940 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21941 missing second underscore to parameter name.
21942
21943 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21944
21945 [BZ #14508]
21946 [BZ #15512]
21947 [BZ #17082]
21948 [BZ #20530]
21949 * bits/byteswap.h: Update file comment. Do not include
21950 <bits/byteswap-16.h>.
21951 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21952 constant.
21953 (__bswap_16): Define as inline function.
21954 (__bswap_constant_32): Reformat definition.
21955 (__bswap_32): Always define as inline function, not macro, using
21956 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21957 otherwise __bswap_constant_32.
21958 (__bswap_constant_64): Reformat definition. Do not use
21959 __extension__ here.
21960 (__bswap_64): Always define as inline function, not macro. Use
21961 __extension__ on function definition. Use __builtin_bswap64 if
21962 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21963 * string/test-endian-file-scope.c: New file.
21964 * string/test-endian-sign-conversion.c: Likewise.
21965 * string/Makefile (headers): Remove bits/byteswap-16.h.
21966 (tests): Add test-endian-file-scope and
21967 test-endian-sign-conversion.
21968 (CFLAGS-test-endian-sign-conversion.c): New variable.
21969 * bits/byteswap-16.h: Remove file.
21970 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21971 * sysdeps/ia64/bits/byteswap.h: Likewise.
21972 * sysdeps/m68k/bits/byteswap.h: Likewise.
21973 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21974 * sysdeps/s390/bits/byteswap.h: Likewise.
21975 * sysdeps/tile/bits/byteswap.h: Likewise.
21976 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21977 * sysdeps/x86/bits/byteswap.h: Likewise.
21978
21979 [BZ #17721]
21980 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21981 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21982 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21983 199901L] (__restrict): Define to restrict.
21984
21985 [BZ #19667]
21986 * string/testcopy.c: Include <support/support.h>. Do not include
21987 <malloc.h>. Use <support/test-driver.c>.
21988 (main): Rename to do_test. Make static. Use xmalloc instead of
21989 malloc.
21990
21991 [BZ #13575]
21992 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21993 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21994 (SSIZE_MAX): Define to INT_MAX.
21995 * posix/test-ssize-max.c: New file.
21996 * posix/Makefile (tests): Add test-ssize-max.
21997
21998 [BZ #19668]
21999 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
22000 <support/support.h>. Do not include <malloc.h>.
22001 (query_auxv): Use xmalloc instead of malloc.
22002
22003 [BZ #14553]
22004 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
22005 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
22006 instead of loff_t.
22007
22008 2018-02-06 Florian Weimer <fweimer@redhat.com>
22009
22010 [BZ #18023]
22011 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22012 Use scratch_buffer instead of extend_alloca.
22013
22014 2018-02-06 Zack Weinberg <zackw@panix.com>
22015
22016 * libio/stdio.h: Don't define getc or putc as macros.
22017 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
22018 not _IO_getc and _IO_putc.
22019
22020 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
22021 * stdio-common/tstgetln.c: Don't redefine ssize_t.
22022
22023 2018-02-06 Joseph Myers <joseph@codesourcery.com>
22024
22025 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
22026 (TCP_FASTOPEN_NO_COOKIE): Likewise.
22027
22028 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
22029
22030 [BZ #14890]
22031 * elf/elf.h (NT_PRFPREG): New macro.
22032 (NT_S390_VXRS_LOW): Likewise.
22033 (NT_S390_VXRS_HIGH): Likewise.
22034 (NT_S390_GS_CB): Likewise.
22035 (NT_S390_GS_BC): Likewise.
22036 (NT_S390_RI_CB): Likewise.
22037
22038 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
22039 (MAP_SYNC): New macro.
22040 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
22041 Likewise.
22042 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
22043 (MAP_SYNC): Likewise.
22044 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
22045 (MAP_SYNC): Likewise.
22046 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
22047 (MAP_SYNC): Likewise.
22048 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
22049 (MAP_SYNC): Likewise.
22050 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
22051 (MAP_SYNC): Likewise.
22052 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
22053 (MAP_SYNC): Likewise.
22054 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
22055 Likewise.
22056 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
22057 Likewise.
22058
22059 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
22060 (MAP_SHARED_VALIDATE): New macro.
22061 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
22062 (MAP_SHARED_VALIDATE): Likewise.
22063
22064 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22065
22066 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
22067 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
22068 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
22069
22070 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22071
22072 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
22073 (DT_NUM): Updated to 35.
22074
22075 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22076
22077 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
22078 __builtin_expect with __glibc_likely and __glibc_unlikely.
22079 (elf_machine_rela): Likewise.
22080 (elf_machine_lazy_rel): Likewise.
22081
22082 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22083
22084 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
22085 __builtin_expect with __glibc_likely and __glibc_unlikely.
22086 (elf_machine_lazy_rel): Likewise.
22087
22088 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22089
22090 [BZ #22638]
22091 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
22092 SHARED.
22093 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
22094
22095 2018-02-05 Andreas Schwab <schwab@suse.de>
22096
22097 [BZ #22761]
22098 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
22099 string.
22100
22101 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
22102
22103 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22104 not check against PTHREAD_STACK_MIN.
22105
22106 2018-02-02 Sean McKean <smckean83@gmail.com>
22107
22108 [BZ #22735]
22109 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22110
22111 2018-02-02 Florian Weimer <fweimer@redhat.com>
22112
22113 [BZ #22753]
22114 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22115 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22116 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22117 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22118 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22119 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22120 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22121 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22122 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22123 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22124 * misc/tst-preadvwritev2.c (do_test): Call it.
22125 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22126
22127 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22128
22129 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22130
22131 * benchtests/bench-memcmp.c: Print json instead of plain text.
22132
22133 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22134 every test run.
22135
22136 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22137
22138 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22139 version to 4.15.
22140 (s390_sthyi): New syscall.
22141
22142 * sysdeps/generic/ldbl-classify-compat.h: New file.
22143 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22144 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22145 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22146 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22147 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22148 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22149 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22150 <ldbl-classify-compat.h>.
22151 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22152 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22153 <ldbl-classify-compat.h>.
22154 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22155 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22156 <ldbl-classify-compat.h>.
22157 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22158 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22159 <ldbl-classify-compat.h>.
22160 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22161 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22162 <ldbl-classify-compat.h>.
22163 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22164 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22165 <ldbl-classify-compat.h>.
22166 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22167 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22168 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22169 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22170 * sysdeps/microblaze/math_private.h: Likewise.
22171 * sysdeps/nios2/math_private.h: Likewise.
22172 * sysdeps/sh/math_private.h: Likewise.
22173
22174 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22175 * sysdeps/m68k/coldfire/math_private.h: ... here.
22176 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22177 * sysdeps/tile/math_private.h: Likewise.
22178 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22179 Remove macro.
22180 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22181 Likewise.
22182
22183 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22184 Remove macro.
22185 (libc_fetestexcept): Likewise.
22186 (libc_feupdateenv_test): Likewise.
22187 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22188 (libc_fetestexcept): Likewise.
22189 (libc_feupdateenv_test): Likewise.
22190 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22191 (libc_fetestexcept): Likewise.
22192 (libc_feupdateenv_test): Likewise.
22193 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22194 (libc_fetestexcept): Likewise.
22195 (libc_feupdateenv_test): Likewise.
22196
22197 * sysdeps/generic/math_private.h
22198 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22199 New inline function.
22200 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22201 Likewise.
22202
22203 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22204 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22205 * sysdeps/generic/math_private.h
22206 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22207 inline function.
22208 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22209 Likewise.
22210 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22211 Likewise.
22212 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22213 Likewise.
22214 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22215 Likewise.
22216 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22217 Likewise.
22218 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22219 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22220 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22221 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22222 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22223 (__fegetenv): Likewise.
22224 (fesetenv): Likewise.
22225 (__fesetenv): Likewise.
22226 (feupdateenv): Likewise.
22227 (__feupdateenv): Likewise.
22228 (fegetround): Likewise.
22229 (__fegetround): Likewise.
22230 (fesetround): Likewise.
22231 (__fesetround): Likewise.
22232
22233 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22234 (feraiseexcept): New macro.
22235 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22236 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22237 Remove macro.
22238 (__feraiseexcept): Likewise.
22239 (feclearexcept): Likewise.
22240 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22241 (__feraiseexcept): Likewise.
22242 (feclearexcept): Likewise.
22243 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22244 (__feraiseexcept): Likewise.
22245 (feclearexcept): Likewise.
22246 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22247 (__feraiseexcept): Likewise.
22248 (feclearexcept): Likewise.
22249 (fetestexcept): Likewise.
22250
22251 * sysdeps/m68k/coldfire/math-tests.h: New file.
22252
22253 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22254 * sysdeps/m68k/bits/fenv.h: ... here.
22255 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22256 not define.
22257 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22258 Likewise.
22259 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22260 Likewise.
22261 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22262 Likewise.
22263 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22264 Likewise.
22265 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22266 Define to 0.
22267 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22268 (__FE_UNDEFINED): New enum constant.
22269 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22270 Do not define.
22271 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22272 Likewise.
22273 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22274 Likewise.
22275 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22276 to match generic bits/fenv.h.
22277 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22278 Do not define.
22279
22280 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22281 packed on bits.
22282 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22283 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22284 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22285 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22286
22287 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22288 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22289 Joseph Myers <joseph@codesourcery.com>
22290
22291 [BZ #21314]
22292 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22293 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22294 computation using c.
22295 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22296 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22297 computation using c.
22298
22299 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22300
22301 * version.h (RELEASE): Set to "development".
22302 (VERSION): Set to "2.27.9000".
22303 * NEWS (2.28): New section.
22304
22305 * version.h (RELEASE): Set to "stable".
22306 (VERSION): Set to "2.27".
22307 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22308
22309 * NEWS: Add the list of bugs fixed in 2.27.
22310
22311 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22312
22313 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22314 against PTHREAD_STACK_MIN.
22315
22316 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22317
22318 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22319 New entries.
22320 (Rafał Lużyński, Andreas Schwab): Update.
22321
22322 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22323
22324 [BZ #10871]
22325 * NEWS: List the languages which actually use the alternative
22326 months feature in this release. Also explain that "alt_mon" and
22327 "ab_alt_mon" are optional.
22328
22329 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22330
22331 [BZ #22765]
22332 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22333
22334 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22335
22336 * manual/install.texi (Tools for Compilation): Update the newest
22337 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22338 * INSTALL: Regenerated.
22339
22340 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22341
22342 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22343 instead of __builtin_expect.
22344
22345 2018-01-30 Florian Weimer <fweimer@redhat.com>
22346
22347 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22348 data.
22349 * nss/tst-nss-getpwent.c (do_test): Likewise.
22350
22351 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22352
22353 [BZ #10871]
22354 * localedata/locales/hr_HR (mon): Rename to...
22355 (alt_mon): This.
22356 (mon): Import from CLDR (genitive case).
22357 (d_t_fmt): Update the comment.
22358
22359 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22360
22361 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22362 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22363 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22364
22365 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22366
22367 * mach/Versions: Fix version when __mach_host_self_ was added.
22368 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22369 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22370 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22371 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22372 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22373 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22374 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22375 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22376 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22377 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22378 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22379 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22380 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22381 || to respect codestyle.
22382 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22383 (do_test_bz20181): Rename accordingly.
22384 * malloc/malloc.c: Include <assert.h>.
22385 (assert): Do not define.
22386 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22387 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22388 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22389 * sysdeps/mach/hurd/hp-timing.h: New file.
22390 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22391
22392 2018-01-29 Darius Rad <darius@bluespec.com>
22393
22394 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22395
22396 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22397
22398 * sysdeps/init_array/crti.S (.section .init_array): Add
22399 PREINIT_FUNCTION when defined.
22400 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22401 * config.h.in: Regenerate.
22402 * manual/platform.texi: Add RISC-V documenation for
22403 __riscv_flush_icache.
22404 * sysdeps/riscv/__longjmp.S: New file.
22405 * sysdeps/riscv/backtrace.c: Likewise.
22406 * sysdeps/riscv/bits/endian.h: Likewise.
22407 * sysdeps/riscv/bits/setjmp.h: Likewise.
22408 * sysdeps/riscv/bits/wordsize.h: Likewise.
22409 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22410 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22411 * sysdeps/riscv/dl-trampoline.S: Likewise.
22412 * sysdeps/riscv/gccframe.h: Likewise.
22413 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22414 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22415 * sysdeps/riscv/machine-gmon.h: Likewise.
22416 * sysdeps/riscv/memusage.h: Likewise.
22417 * sysdeps/riscv/setjmp.S: Likewise.
22418 * sysdeps/riscv/sys/asm.h: Likewise.
22419 * sysdeps/riscv/tls-macros.h: Likewise.
22420 * sysdeps/riscv/dl-tls.h: New file.
22421 * sysdeps/riscv/libc-tls.c: Likewise.
22422 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22423 * sysdeps/riscv/nptl/tls.h: Likewise.
22424 * sysdeps/riscv/stackinfo.h: Likewise.
22425 * sysdeps/riscv/bits/fenv.h: New file.
22426 * sysdeps/riscv/e_sqrtl.c: Likewise.
22427 * sysdeps/riscv/fpu_control.h: Likewise.
22428 * sysdeps/riscv/math-tests.h: Likewise.
22429 * sysdeps/riscv/nofpu/Implies: Likewise.
22430 * sysdeps/riscv/sfp-machine.h: Likewise.
22431 * sysdeps/riscv/tininess.h: Likewise.
22432 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22433 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22434 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22435 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22436 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22437 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22438 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22439 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22440 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22441 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22442 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22443 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22444 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22445 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22446 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22447 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22448 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22449 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22450 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22451 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22452 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22453 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22454 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22455 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22456 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22457 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22458 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22459 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22460 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22461 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22462 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22463 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22464 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22465 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22466 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22467 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22468 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22469 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22470 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22471 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22472 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22473 * sysdeps/riscv/rvf/math_private.h: Likewise.
22474 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22475 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22476 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22477 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22478 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22479 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22480 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22481 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22482 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22483 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22484 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22485 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22486 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22487 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22488 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22489 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22490 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22491 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22492 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22493 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22494 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22495 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22496 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22497 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22498 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22499 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22500 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22501 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22502 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22503 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22504 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22505 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22506 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22507 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22508 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22509 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22510 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22511 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22512 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22513 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22514 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22515 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22516 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22517 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22518 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22519 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22520 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22521 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22522 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22523 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22524 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22525 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22526 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22527 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22528 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22529 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22530 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22531 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22532 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22533 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22534 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22535 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22536 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22537 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22538 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22539 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22540 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22541 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22542 * sysdeps/riscv/Implies: New file.
22543 * sysdeps/riscv/Makefile: Likewise.
22544 * sysdeps/riscv/configure: Likewise.
22545 * sysdeps/riscv/configure.ac: Likewise.
22546 * sysdeps/riscv/nptl/Makefile: Likewise.
22547 * sysdeps/riscv/preconfigure: Likewise.
22548 * sysdeps/riscv/rv64/Implies-after: Likewise.
22549 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22550 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22551 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22552 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22553 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22554 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22555 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22556 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22557 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22558 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22559 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22560 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22561 (Config): Likewise.
22562
22563 2018-01-29 Florian Weimer <fweimer@redhat.com>
22564
22565 [BZ #22701]
22566 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22567 libnsl_hidden_proto.
22568 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22569 libnsl_hidden_proto.
22570 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22571 * nis/Makefile (libnsl-routines): Add nss-default only for
22572 build-obsolete-nsl.
22573 * nis/nis_defaults.c (__nis_default_ttl): Add
22574 libnsl_hidden_nolink_def.
22575 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22576 declaration.
22577 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22578 * nis/ypclnt.c (yp_maplist): Likewise.
22579
22580 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22581
22582 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22583 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22584
22585 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22586
22587 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22588 clean -dxfq for git updates when replacing sources.
22589
22590 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22591 --disable-libcilkrts unconditionally, not just for the final GCC
22592 build for Hurd.
22593
22594 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22595 version to 4.15.
22596
22597 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22598
22599 [BZ #10871]
22600 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22601 case).
22602
22603 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22604
22605 [BZ #10871]
22606 * localedata/locales/be_BY (mon): Rename to...
22607 (alt_mon): This, then synchronize with CLDR (nominative case).
22608 (abmon): Rename to...
22609 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22610 (mon): Import from CLDR (genitive case).
22611 (abmon): Likewise.
22612 * localedata/locales/be_BY@latin (mon): Rename to...
22613 (alt_mon): This.
22614 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22615
22616 * localedata/locales/be_BY@latin (lang_name): Reworded to
22617 "biełaruskaja mova".
22618
22619 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22620
22621 [BZ #10871]
22622 * localedata/locales/el_CY (mon): Renamed to...
22623 (alt_mon): This.
22624 (mon): Import from CLDR (genitive case).
22625 * localedata/locales/el_GR: Likewise.
22626
22627 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22628
22629 [BZ #10871]
22630 * localedata/locales/ru_RU (mon): Rename to...
22631 (alt_mon): This.
22632 (abmon): Rename to...
22633 (ab_alt_mon): This.
22634 (mon): Import from CLDR (genitive case).
22635 (abmon): Copy from the old content except the 5th month which is
22636 now in the genitive case, even when abbreviated.
22637 * localedata/locales/ru_UA: Likewise.
22638 * time/tst-strptime.c (day_tests): Add an actual example of
22639 a difference between %b and %Ob in Russian.
22640
22641 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22642
22643 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22644 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22645 a `c' variable.
22646 * resolv/res-close.c: Include <stdlib.h>.
22647 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22648 <sys/wait.h>, <time.h>, <sys/uio.h>.
22649 (NOT_CANCEL_H): Add inclusion guard.
22650 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22651 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22652 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22653 return 0.
22654 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22655 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22656 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22657 instead of void *.
22658 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22659 timer_ptr2id to cast struct timer_node * to void *.
22660 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22661 --disable-libcilkrts to gcc configure.
22662 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22663 and make them the default for now.
22664 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22665 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22666 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22667 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22668 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22669 MACH_IPC_COMPAT.
22670 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22671 __task_terminate would ever return successfully.
22672 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22673 to global scope.
22674 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22675 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22676 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22677 critical section to make code simpler and avoid warning.
22678 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22679 critical section to make code simpler and avoid warning.
22680 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22681 const char * instead of char *.
22682 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22683 __hurd_file_name_split, hurd_file_name_split,
22684 __hurd_directory_name_split, hurd_directory_name_split,
22685 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22686 hurd_file_name_path_lookup): Make lookup function parameter take a
22687 const char *name instead of char *name.
22688 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22689 __hurd_directory_name_split): Likewise.
22690 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22691 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22692 * sysdeps/mach/hurd/check_native.c: New file.
22693 * sysdeps/mach/hurd/check_pf.c: New file.
22694 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22695 (__freeifaddrs): Define macro to freeifaddrs.
22696 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22697 * sysdeps/mach/libmachuser.abilist: New file.
22698 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22699 (do_test_bz20181): Rename accordingly.
22700 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22701 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22702 <sys/mount.h>.
22703 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22704 version only if __USE_EXTERN_INLINES is defined.
22705 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22706 __hurd_sockfail): Likewise.
22707 (_hurd_fd_get): Always declare functions, and provide inline versions
22708 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22709 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22710 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22711 _hurd_port_set): Always declare functions, and provide inline versions
22712 only if __USE_EXTERN_INLINES and _LIBC are defined and
22713 IS_IN(libc).
22714 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22715 _hurd_critical_section_unlock): Likewise.
22716 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22717 * __hurd_threadvar_location): Likewise.
22718 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22719 _hurd_userlink_clear): Likewise.
22720 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22721 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22722 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22723 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22724 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22725 __spin_lock_locked): Likewise.
22726 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22727 __spin_lock_locked): Likewise.
22728 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22729 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22730 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22731 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22732 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22733 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22734 _POSIX_NO_TRUNC): Define to 0.
22735 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22736 check size against PTHREAD_STACK_MIN.
22737 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22738 IS_IN(libpthread)]: Include <sigsetops.h>.
22739 * mach/Makefile (user-interfaces): Add mach/gnumach.
22740 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22741 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22742 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22743 instead of invalid -1.
22744 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22745 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22746 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22747 <net/ppp_defs.h>.
22748
22749 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22750
22751 * hurd/fcntl-internal.h: New file.
22752
22753 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22754
22755 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22756
22757 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22758
22759 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22760
22761 [BZ #22701]
22762 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22763 Build only shared objects.
22764
22765 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22766
22767 * README: Update for hppa.
22768
22769 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22770
22771 * sysdeps/sparc/fpu/libm-test-ulps: Update
22772 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22773
22774 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22775
22776 Revert:
22777
22778 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22779
22780 [BZ #22563]
22781 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22782 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22783 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22784 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22785 to feature_1.
22786
22787 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22788
22789 [BZ #22563]
22790 * bits/types/__cancel_jmp_buf_tag.h: New file.
22791 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22792 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22793 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22794 * nptl/Makefile (headers): Add
22795 bits/types/__cancel_jmp_buf_tag.h.
22796 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22797 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22798 * sysdeps/nptl/pthread.h: Include
22799 <bits/types/__cancel_jmp_buf_tag.h>.
22800 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22801 __cancel_jmp_buf.
22802 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22803
22804 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22805
22806 [BZ #10871]
22807 * localedata/locales/uk_UA (mon): Renamed to...
22808 (alt_mon): This.
22809 (alt_digits): "0" removed and then renamed to...
22810 (mon): This.
22811 (date_fmt): Definition changed not to use the alternative
22812 digits hack.
22813
22814 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22815
22816 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22817 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22818 * elf/elf.h (EF_RISCV_RVC): New define.
22819 (EF_RISCV_FLOAT_ABI): Likewise.
22820 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22821 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22822 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22823 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22824 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22825 define.
22826 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22827
22828 2018-01-25 Andreas Schwab <schwab@suse.de>
22829
22830 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22831 single quotes.
22832 * sysdeps/gnu/configure: Regenerate.
22833 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22834 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22836 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22837 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22838 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22839 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22840 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22841
22842 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22843
22844 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22845 URL, and run autoconf, make it the default for now.
22846
22847 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22848
22849 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22850 soft-float ColdFire configuration.
22851
22852 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22853 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22854 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22855
22856 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22857 MicroBlaze file.
22858
22859 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22860 ....
22861 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22862 ... here.
22863 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22864 New file.
22865
22866 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22867 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22868 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22869 file.
22870
22871 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22872
22873 [BZ #22742]
22874 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22875 Rename to __reserved and add comment.
22876 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22877 Rename to __reserved.
22878
22879 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22880
22881 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22882 i686-gnu configurations.
22883 (Context.run_builds): Include mig, gnumach and hurd in components
22884 considered.
22885 (Context.checkout): Add mig, gnumach and hurd to components.
22886 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22887 hurd.
22888 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22889 (Config.build): Install gnumach headers, build mig and install
22890 hurd headers for 'gnu' OS.
22891 (Config.install_gnumach_headers): New function.
22892 (Config.install_hurd_headers): Likewise.
22893 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22894 when building for 'gnu' OS.
22895
22896 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22897
22898 * manual/tunables.texi (Hardware Capability Tunables): Fix
22899 spelling.
22900
22901 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22902
22903 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22904 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22905 (ALTMON_11, ALTMON_12): Improve documentation.
22906 * manual/time.texi (strftime): Likewise.
22907
22908 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22909
22910 [BZ #10871]
22911 * localedata/locales/pl_PL: Alternative month names added,
22912 primary month names are genitive now.
22913 * time/tst-strptime.c (day_tests): Actually use a genitive case
22914 of a month name in Polish language.
22915
22916 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22917
22918 [BZ #10871]
22919 * manual/locale.texi: Document ALTMON_1..12 constants for
22920 nl_langinfo. Specify when to use ALTMON instead of MON.
22921 * manual/time.texi (strftime, strptime): Document GNU extension
22922 permitting O modifier with %B and %b. Specify when to use
22923 %OB instead of %B.
22924
22925 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22926
22927 [BZ #10871]
22928 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22929 names, define them as the same as abbreviated month names explicitly.
22930 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22931 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22932 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22933 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22934 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22935 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22936 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22937 _NL_WABALTMON_12): New enum constants.
22938 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22939 wab_alt_mon, and ab_alt_mon_defined members.
22940 (time_output): Output ab_alt_mon and wab_alt_mon members.
22941 (time_read): Read them, initialize them as copies of abmon and wabmon
22942 respectively if they are missing, initialize ab_alt_mon_defined.
22943 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22944 * locale/programs/locfile-kw.h: Regenerate.
22945 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22946 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22947 and ru_RU.UTF-8.
22948 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22949 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22950 (__strftime_internal): Handle %Ob and %Oh formats.
22951 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22952 (__strptime_internal): Handle %Ob and %Oh formats.
22953 * time/tst-strptime.c (day_tests): Add more tests to parse different
22954 forms of month names including the new %Ob format specifier.
22955
22956 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22957
22958 [BZ #10871]
22959 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22960 define them as the same as primary full month names explicitly.
22961 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22962 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22963 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22964 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22965 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22966 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22967 _NL_WALTMON_12): New enum constants.
22968 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22969 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22970 macros.
22971 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22972 walt_mon, and alt_mon_defined members.
22973 (time_output): Output alt_mon and walt_mon members.
22974 (time_read): Read them, initialize them as copies of mon and wmon
22975 respectively if they are missing, initialize alt_mon_defined.
22976 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22977 * locale/programs/locfile-kw.h: Regenerate.
22978 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22979 * localedata/tst-langinfo.c (map): Add tests for the new constants
22980 ALTMON_1 .. ALTMON_12.
22981 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22982 and pl_PL.UTF-8.
22983 * time/strftime_l.c (f_altmonth): New macro.
22984 (__strftime_internal): Handle %OB format.
22985 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22986 (__strptime_internal): Handle %OB format.
22987 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22988 of month names including the new %OB format specifier.
22989
22990 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22991
22992 [BZ #22685]
22993 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22994 from ABORT_TRANSACTION.
22995 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22996 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22997 ABORT_TRANSACTION_IMPL): Likewise.
22998 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22999 Linux code, but remove the code that aborts transactions.
23000
23001 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
23002
23003 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
23004
23005 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
23006
23007 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
23008 in date: "2004-14-09" should be "2004-09-14".
23009 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
23010 "2003-15-09" should be "2003-09-15".
23011
23012 2018-01-18 Arjun Shankar <arjun@redhat.com>
23013
23014 [BZ #22343]
23015 [BZ #22774]
23016 CVE-2018-6485
23017 CVE-2018-6551
23018 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
23019 after padding.
23020 (_int_memalign): check for integer overflow before calling
23021 _int_malloc.
23022 * malloc/tst-malloc-too-large.c: New test.
23023 * malloc/Makefile: Add tst-malloc-too-large.
23024
23025 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
23026
23027 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
23028 in date: "2017-24-07" should be "2017-07-24".
23029 * localedata/locales/mai_IN: Likewise.
23030 * localedata/locales/mai_NP: Likewise.
23031
23032 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
23033
23034 * po/ru.po: Update translations.
23035
23036 2018-01-17 Joseph Myers <joseph@codesourcery.com>
23037
23038 [BZ #22719]
23039 * sysdeps/hppa/backtrace.c: New file.
23040
23041 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
23042
23043 [BZ #22715]
23044 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
23045 align La_x86_64_retval to VEC_SIZE.
23046
23047 2018-01-16 Joseph Myers <joseph@codesourcery.com>
23048
23049 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
23050 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
23051
23052 2018-01-16 Florian Weimer <fweimer@redhat.com>
23053
23054 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
23055 Move tst-thread-exit-clobber ...
23056 [$(CXX)] (tests-unsupported): ... to here.
23057
23058 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23059
23060 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
23061 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
23062 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23063 (_dl_aarch64_cap_flags): Update.
23064 (_DL_HWCAP_COUNT): Update.
23065
23066 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23067
23068 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
23069 (_DL_HWCAP_LAST): Remove.
23070 (_DL_HWCAP_COUNT): Move to ...
23071 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23072 (_DL_HWCAP_COUNT): ... here.
23073
23074 2018-01-16 Florian Weimer <fweimer@redhat.com>
23075
23076 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
23077 mode with GNU extensions.
23078
23079 2018-01-15 Alan Hayward <alan.hayward@arm.com>
23080
23081 * elf/elf.h (NT_ARM_SVE): Define.
23082
23083 2018-01-15 Florian Weimer <fweimer@redhat.com>
23084
23085 [BZ #22636]
23086 * nptl/tst-minstack-throw.cc: New file.
23087 * nptl/Makefile (tests): Add tst-minstack-throw.
23088 (LDLIBS-tst-minstack-throw): Link with libstdc++.
23089 [!CXX] (tests-unsupported): Add tst-minstack-throw.
23090
23091 2018-01-15 Joseph Myers <joseph@codesourcery.com>
23092
23093 * scripts/build-many-glibcs.py (Context.checkout): Default
23094 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
23095 version to 1.1.0.
23096
23097 2018-01-13 Carlos O'Donell <carlos@redhat.com>
23098
23099 [BZ #22707]
23100 * elf/elf.h (DF_1_STUB): Define.
23101 (DF_1_PIE): Define.
23102
23103 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23104
23105 [BZ #22697]
23106 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23107 Do not add 0.5 to integer or out-of-range arguments.
23108
23109 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23110
23111 * po/bg.po: Update translations.
23112 * po/cs.po: Likewise.
23113 * po/de.po: Likewise.
23114 * po/ko.po: Likewise.
23115 * po/pl.po: Likewise.
23116 * po/sv.po: Likewise.
23117 * po/uk.po: Likewise.
23118 * po/vi.po: Likewise.
23119
23120 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23121
23122 * aarch64/start.S (_start): Use __wrap_main.
23123 (__wrap_main): New local symbol.
23124
23125 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23126
23127 [BZ #22679]
23128 CVE-2018-1000001
23129 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23130 generic_getcwd if the path returned by getcwd syscall is not absolute.
23131 * io/tst-getcwd-abspath.c: New test.
23132 * io/Makefile (tests): Add tst-getcwd-abspath.
23133
23134 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23135
23136 * malloc/malloc.c (malloc_consolidate): Add size check.
23137
23138 2018-01-12 Florian Weimer <fweimer@redhat.com>
23139
23140 * support/write_message.c (write_message): Preserve errno.
23141 * support/check.c (print_failure): Likewise.
23142 * support/support_test_verify_impl.c (support_test_verify_impl):
23143 Likewise.
23144 * support/support_test_compare_failure.c
23145 (support_test_compare_failure): Likewise.
23146
23147 2018-01-12 Florian Weimer <fweimer@redhat.com>
23148
23149 [BZ #22701]
23150 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23151 Prevent installation of libnsl.so.
23152 (libnsl-inhibit-o): Do not build (or install) static libraries.
23153
23154 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23155
23156 [BZ #22657]
23157 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23158 before the day number which may produce a double space.
23159 (date_fmt): Likewise.
23160
23161 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23162
23163 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23164 instead of fegetenv.
23165
23166 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23167
23168 [BZ #22702]
23169 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23170 comment to say exceptions are discarded.
23171 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23172 __fegetenv.
23173 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23174 be enabled.
23175
23176 2018-01-11 Florian Weimer <fweimer@redhat.com>
23177
23178 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23179 and error message.
23180
23181 2018-01-11 Florian Weimer <fweimer@redhat.com>
23182
23183 [BZ #22636]
23184 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23185 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23186
23187 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23188
23189 [BZ #22693]
23190 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23191 negative arguments in test for NaN or infinity argument.
23192
23193 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23194
23195 * po/libc.pot: Regenerate.
23196
23197 2018-01-10 Florian Weimer <fweimer@redhat.com>
23198
23199 [BZ #22636]
23200 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23201 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23202
23203 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23204
23205 * hurd/hurd/fd.h: Include <fcntl.h>
23206 (__hurd_at_flags): New function.
23207 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23208 with call to __hurd_at_flags.
23209 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23210 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23211 __faccessat
23212 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23213 (__access_noerrno): Use __faccessat_common instead of access_common.
23214 (__access): Likewise.
23215 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23216 with a call to __faccessat.
23217 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23218 (__faccessat_common): ... this. Move implementation of __access into it when
23219 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23220 reauthenticate_cwdir_at helper to implement AT mechanism.
23221 (__faccessat_noerrno): New function, just calls __faccessat_common.
23222 (__faccessat): New function, just calls __faccessat_common.
23223 (faccessat): Define weak alias.
23224
23225 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23226
23227 [BZ #22691]
23228 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23229 (CFLAGS-s_fmaxmagl.c): New variable.
23230 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23231
23232 [BZ #22690]
23233 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23234 long int for arguments of possibly overflowing addition or
23235 subtraction.
23236 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23237
23238 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23239
23240 [BZ #22688]
23241 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23242 (CFLAGS-e_remainderl.c): New variable.
23243
23244 [BZ #22687]
23245 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23246 variable.
23247 (CFLAGS-s_cacoshl.c): Likewise.
23248 (CFLAGS-s_casinhl.c): Likewise.
23249 (CFLAGS-s_catanl.c): Likewise.
23250 (CFLAGS-s_catanhl.c): Likewise.
23251 (CFLAGS-s_cexpl.c): Likewise.
23252 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23253 (CFLAGS-s_csinhl.c): Likewise.
23254 (CFLAGS-s_clogl.c): Likewise.
23255 (CFLAGS-s_clog10l.c): Likewise.
23256 (CFLAGS-s_csinl.c): Likewise.
23257 (CFLAGS-s_csqrtl.c): Likewise.
23258
23259 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23260 2017-01-09 Svante Signell <svante.signell@gmail.com>
23261
23262 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23263 (_hurd_exec_paths): New function.
23264 * hurd/hurd.h (_hurd_exec): Deprecate function.
23265 (_hurd_exec_paths): Declare function.
23266 * hurd/Versions: Export _hurd_exec_paths.
23267 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23268 (__execve): Use __getcwd to build absolute path, and use
23269 _hurd_exec_paths instead of _hurd_exec.
23270 * sysdeps/mach/hurd/spawni.c: Likewise.
23271 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23272 _hurd_exec.
23273
23274 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23275
23276 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23277 test instead of failing in case of ENOENT returned by posix_openpt.
23278
23279 2018-01-08 Florian Weimer <fweimer@redhat.com>
23280
23281 resolv: Support binary labels in test framework.
23282 * support/resolv_test.c (struct to_be_freed): Remove.
23283 (struct compressed_name): New.
23284 (allocate_compressed_name, ascii_tolower)
23285 (compare_compressed_name): New functions.
23286 (struct resolv_response_builder): Update type of
23287 compression_offsets for use with tsearch. Rempve to_be_freed.
23288 (response_push_pointer_to_free): Remove function.
23289 (resolv_response_add_name): Rewrite using struct compressed_name
23290 and tsearch instead of hsearch_r.
23291 (response_builder_allocate): Remove initialization of
23292 compression_offsets.
23293 (response_builder_free): Update for removal of to_be_freed. Use
23294 tdestroy instead of hdestroy_r.
23295 * resolv/Makefile (tests): Add tst-resolv-binary.
23296 (tst-resolv-binary): Link with -lresolv -lpthread.
23297
23298 2018-01-08 Florian Weimer <fweimer@redhat.com>
23299
23300 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23301 time. Pass positive flag instead of negative flag to
23302 support_test_compare_failure.
23303 (support_test_compare_failure): Change negative parameter to
23304 positive.
23305 * support/support_test_compare_failure.c (report)
23306 (support_test_compare_failure): Likewise.
23307 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23308 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23309
23310 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23311
23312 [BZ #22637]
23313 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23314 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23315 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23316 stacksize.
23317 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23318
23319 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23320
23321 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23322 Add s_sincosf-sse2 and s_sincosf-fma.
23323 (CFLAGS-s_sincosf-fma.c): New.
23324 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23325 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23326 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23327 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23328 __sincosf is defined.
23329
23330 2018-01-08 Florian Weimer <fweimer@redhat.com>
23331
23332 * nptl/tst-thread-exit-clobber.cc: New file.
23333 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23334 C++11 mode.
23335 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23336 (tests): Add tst-thread-exit-clobber.
23337 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23338
23339 2018-01-08 Florian Weimer <fweimer@redhat.com>
23340
23341 * support/check.h (support_static_assert): Define.
23342 (TEST_COMPARE): Use it.
23343
23344 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23345
23346 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23347 [!__RLIM_T_MATCHES_RLIM64_T]
23348 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23349 __getrlimit64. Add libc_hidden_weak.
23350
23351 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23352
23353 * elf/elf.h (R_RISCV_NONE): New define.
23354 (R_RISCV_32): Likewise.
23355 (R_RISCV_64): Likewise.
23356 (R_RISCV_RELATIVE): Likewise.
23357 (R_RISCV_COPY): Likewise.
23358 (R_RISCV_JUMP_SLOT): Likewise.
23359 (R_RISCV_TLS_DTPMOD32): Likewise.
23360 (R_RISCV_TLS_DTPMOD64): Likewise.
23361 (R_RISCV_TLS_DTPREL32): Likewise.
23362 (R_RISCV_TLS_DTPREL64): Likewise.
23363 (R_RISCV_TLS_TPREL32): Likewise.
23364 (R_RISCV_TLS_TPREL64): Likewise.
23365 * Makerules (make-link-multidir): Make directories before linking into
23366 them.
23367 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23368 define.
23369 (VDSO_HASH_LINUX_4_15): Likewise.
23370 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23371 in subdirectories of lib.
23372 * nptl/Makefile (/librt.so): Always depend on
23373 "$(shared-thread-library)".
23374
23375 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23376
23377 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23378 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23379 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23380 (___tls_get_addr).
23381 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23382 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23383 "-O2 -march=i686".
23384 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23385 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23386 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23387 * sysdeps/gnu/glob-lstat-compat.c: New file.
23388 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23389 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23390
23391 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23392
23393 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23394 Reserve 16 chars to reloc_addr before calling _itoa_word.
23395
23396 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23397
23398 [BZ #22678]
23399 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23400 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23401
23402 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23403 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23404
23405 * resource/tst-getrlimit.c: Add copyright header.
23406
23407 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23408 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23409
23410 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23411 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23412 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23413 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23414 instead.
23415 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23416 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23417 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23418 RLIM64_INFINITY): Fix values to match the kernel ones.
23419 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23420 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23421 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23422 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23423 getrlimit64@@GLIBC_2_27.
23424 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23425 and setrlimit64.
23426 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23427 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23428 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23429 setrlimit, getrlimit64 and setrlimit64.
23430
23431 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23432
23433 [BZ #22648]
23434 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23435 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23436
23437 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23438
23439 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23440 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23441 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23442
23443 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23444
23445 [BZ #15479]
23446 [BZ #22666]
23447 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23448 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23449
23450 [BZ #15479]
23451 [BZ #22665]
23452 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23453 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23454 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23455 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23456
23457 2018-01-04 Florian Weimer <fweimer@redhat.com>
23458
23459 [BZ #22667]
23460 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23461 Align the stack before calling exit.
23462 * stdlib/tst-makecontext-align.c: New file.
23463 * stdlib/Makefile (tests): Add tst-makecontext-align.
23464
23465 2018-01-04 Florian Weimer <fweimer@redhat.com>
23466
23467 Add support for calling dlvsym from libc.so.
23468 * include/dlfcn.h (__libc_dlvsym): Declare.
23469 * elf/Makefile (tests-static-internal): Add
23470 tst-libc_dlvsym-static.
23471 (tests-internal): Add tst-libc_dlvsym.
23472 (modules-names): Add tst-libc_dlvsym-dso.
23473 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23474 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23475 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23476 object tst-libc_dlvsym-dso.so needs to be built before running
23477 these tests.
23478 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23479 * elf/Versions: Export __libc_dlvsym.
23480 * elf/dl-libc.c (struct do_dlvsym_args): New.
23481 (do_dlvsym, __libc_dlvsym): New functions.
23482 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23483 (_dl_open_hook2): New variable.
23484 (__libc_register_dl_open_hook): Set it.
23485 * elf/tst-libc_dlvsym-dso.c: New file.
23486 * elf/tst-libc_dlvsym-static.c: Likewise.
23487 * elf/tst-libc_dlvsym.c: Likewise.
23488 * elf/tst-libc_dlvsym.h: Likewise.
23489
23490 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23491
23492 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23493 include <sys/mount.h>.
23494
23495 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23496
23497 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23498 Add __NO_MATH_ERRNO__ check.
23499
23500 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23501
23502 * sysdeps/mips/mips32/libm-test-ulps: Update.
23503 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23504
23505 2018-01-02 Florian Weimer <fweimer@redhat.com>
23506
23507 * misc/tst-pselect.c: Add copyright header.
23508
23509 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23510
23511 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23512 comment.
23513 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23514 comment.
23515 (settrlimit): Rename into setrlimit.
23516 (__sttrlimit): Rename into __setrlimit.
23517
23518 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23519 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23520 never defined in that case.
23521
23522 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23523
23524 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23525
23526 * sysdeps/arm/libm-test-ulps: Update.
23527
23528 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23529 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23530
23531 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23532
23533 * NEWS: Add cosf and sincosf to list of optimized functions.
23534
23535 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23536
23537 [BZ #22660]
23538 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23539 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23540 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23541 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23542
23543 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23544
23545 [BZ #22433]
23546 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23547
23548 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23549 making a copy of it.
23550
23551 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23552
23553 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23554 trailing whitespace removed.
23555 * scripts/config.guess: Update to version 2018-01-01.
23556 * scripts/config.sub: Update to version 2018-01-01.
23557 * scripts/move-if-change: Update from gnulib.
23558
23559 * NEWS: Update copyright dates.
23560 * catgets/gencat.c (print_version): Likewise.
23561 * csu/version.c (banner): Likewise.
23562 * debug/catchsegv.sh: Likewise.
23563 * debug/pcprofiledump.c (print_version): Likewise.
23564 * debug/xtrace.sh (do_version): Likewise.
23565 * elf/ldconfig.c (print_version): Likewise.
23566 * elf/ldd.bash.in: Likewise.
23567 * elf/pldd.c (print_version): Likewise.
23568 * elf/sotruss.sh: Likewise.
23569 * elf/sprof.c (print_version): Likewise.
23570 * iconv/iconv_prog.c (print_version): Likewise.
23571 * iconv/iconvconfig.c (print_version): Likewise.
23572 * locale/programs/locale.c (print_version): Likewise.
23573 * locale/programs/localedef.c (print_version): Likewise.
23574 * login/programs/pt_chown.c (print_version): Likewise.
23575 * malloc/memusage.sh (do_version): Likewise.
23576 * malloc/memusagestat.c (print_version): Likewise.
23577 * malloc/mtrace.pl: Likewise.
23578 * manual/libc.texinfo: Likewise.
23579 * nptl/version.c (banner): Likewise.
23580 * nscd/nscd.c (print_version): Likewise.
23581 * nss/getent.c (print_version): Likewise.
23582 * nss/makedb.c (print_version): Likewise.
23583 * posix/getconf.c (main): Likewise.
23584 * scripts/test-installation.pl: Likewise.
23585 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23586
23587 * All files with FSF copyright notices: Update copyright dates
23588 using scripts/update-copyrights.
23589 * locale/programs/charmap-kw.h: Regenerated.
23590 * locale/programs/locfile-kw.h: Likewise.
23591
23592 2017-12-31 Zack Weinberg <zackw@panix.com>
23593
23594 * libio/bits/libio-ldbl.h: Correct check for improper
23595 inclusion. Add own multiple include guard.
23596
23597 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23598 Dmitry V. Levin <ldv@altlinux.org>
23599
23600 [BZ #22625]
23601 CVE-2017-16997
23602 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23603 string token expansion. Check for NULL pointer or empty string possibly
23604 returned by expand_dynamic_string_token.
23605 (decompose_rpath): Check for empty path after dynamic string
23606 token expansion.
23607
23608 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23609
23610 [BZ #22433]
23611 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23612
23613 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23614 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23615 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23616 and PTRACE_SYSCALL.
23617 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23618 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23619 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23620 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23621 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23622 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23623
23624 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23625 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23626 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23627 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23628 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23629 bits/ptrace-shared.h.
23630 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23631 <bits/ptrace-shared.h>.
23632 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23633 __ptrace_peeksiginfo_flags, ptrace): Remove.
23634 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23635 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23636 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23637 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23638 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23639
23640 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23641
23642 [BZ #17804]
23643 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23644 end of the loop. Improve comments.
23645
23646 2017-12-29 Zack Weinberg <zackw@panix.com>
23647
23648 [BZ #22615]
23649 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23650 might be set on success.
23651
23652 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23653
23654 [BZ #22611]
23655 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23656 is unchanged on success.
23657
23658 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23659
23660 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23661 updated.
23662 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23663 expand_dynamic_string_token): Likewise.
23664 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23665 is_path argument.
23666
23667 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23668 contains ':'.
23669
23670 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23671 is set and name contains ':', and all code depending on these checks.
23672
23673 2017-12-24 Zack Weinberg <zackw@panix.com>
23674
23675 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23676 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23677 respectively.
23678 * libio/libio.h: Rename the original version of this file to
23679 libio/bits/libio.h. Error out if not included by stdio.h or the
23680 stub libio.h.
23681 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23682 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23683 if not included by bits/libio.h or the stub _G_config.h.
23684 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23685 sysdeps/unix/sysv/linux/bits. Error out if not included by
23686 bits/libio.h or the stub _G_config.h.
23687 * libio/stdio.h: Include bits/libio.h, not libio.h.
23688 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23689 well as libio.h and _G_config.h.
23690
23691 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23692 * libio/strfile.h, stdio-common/vfscanf.c
23693 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23694 Include stdio.h, not _G_config.h nor libio.h.
23695 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23696 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23697
23698 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23699
23700 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23701
23702 [BZ #22347]
23703 * stdlib/getrandom.c (getrandom): Fix comment.
23704 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23705
23706 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23707
23708 [BZ #21161]
23709 * manual/arith.texi (strtoul): Fix a typo.
23710
23711 [BZ #22596]
23712 * manual/arith.texi (finite): Fix the description of the return
23713 value.
23714
23715 2017-12-22 Eric Blake <ebb9@byu.net>
23716
23717 Avoid gcc warnings on cygwin
23718 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23719 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23720 Avoid unused variable.
23721
23722 2017-12-22 Florian Weimer <fweimer@redhat.com>
23723
23724 * io/Makefile (routines): Add copy_file_range.
23725 (tests): Add tst-copy_file_range.
23726 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23727 * io/Versions (GLIBC_2.27): Export copy_file_range.
23728 * io/copy_file_range-compat.c: New file.
23729 * io/copy_file_range.c: Likewise.
23730 * io/tst-copy_file_range-compat.c: Likewise.
23731 * io/tst-copy_file_range.c: Likewise.
23732 * manual/llio.texi (Copying File Data): New section.
23733 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23734 * support/Makefile (libsupport-routines): Add support-xfstat,
23735 xftruncate, xlseek.
23736 * support/support-xfstat.c: New file.
23737 * support/xftruncate.c: Likewise.
23738 * support/xlseek.c: Likewise.
23739 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23740 * sysdeps/unix/sysv/linux/**.abilist: Update.
23741 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23742
23743 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23744
23745 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23746 disable-multi-arch variant to aarch64-linux-gnu.
23747
23748 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23749
23750 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23751 trailing whitespace removed.
23752 * scripts/config.guess: Update to version 2017-12-17.
23753 * scripts/config.sub: Update to version 2017-11-23.
23754 * scripts/install-sh: Update to version 2017-09-23.17.
23755 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23756
23757 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23758
23759 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23760 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23761 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23762 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23763 * sysdeps/tile/crtn.S: Likewise.
23764 * sysdeps/tile/dl-start.S (_start): Likewise.
23765 * sysdeps/tile/dl-trampoline.S: Likewise.
23766 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23767 * sysdeps/tile/start.S (_start): Likewise.
23768 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23769 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23770 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23771 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23772 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23773 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23774 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23775
23776 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23777 comment.
23778 * sysdeps/tile/preconfigure: Remove tilegx folder.
23779 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23780 * sysdeps/tile/Implies: ... here.
23781 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23782 * sysdeps/tile/Makefile: ... here.
23783 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23784 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23785 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23786 * sysdeps/tile/bits/wordsize.h: ... here.
23787 * sysdeps/tile/tilegx/*: Move to ...
23788 * sysdeps/tile/*: ... here.
23789 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23790 * sysdeps/tile/tilegx32/Implies: ... here.
23791 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23792 * sysdeps/tile/tilegx64/Implies: ... here.
23793 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23794 to ...
23795 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23796 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23797 * sysdeps/unix/sysv/linux/tile/*: ... here.
23798 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23799 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23800 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23801 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23802
23803 * README: Remove tilepro-*-linux-gnu from supported architecture.
23804 * scripts/build-many-glibcs.py: Likewise.
23805 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23806 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23807 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23808 elf_machine_matches_host, elf_machine_dynamic,
23809 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23810 howto, elf_machine_rela): Likewise.
23811 * sysdeps/tile/dl-start.S (_start): Likewise.
23812 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23813 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23814 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23815 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23816 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23817 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23818 Likewise.
23819 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23820 * sysdeps/tile/preconfigure: Likewise.
23821 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23822 POINTER_CHK_GUARD): Likewise.
23823 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23824 * sysdeps/tile/start.S (_start): Likewise.
23825 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23826 Likewise.
23827 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23828 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23829 CMOVNEZ): Remove.
23830 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23831 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23832 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23833 Likewise.
23834 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23835 * sysdeps/tile/tilepro/Implies: Remove file.
23836 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23837 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23838 * sysdeps/tile/tilepro/memchr.c: Likewise.
23839 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23840 * sysdeps/tile/tilepro/memset.c: Likewise.
23841 * sysdeps/tile/tilepro/memusage.h: Likewise.
23842 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23843 * sysdeps/tile/tilepro/strchr.c: Likewise.
23844 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23845 * sysdeps/tile/tilepro/strlen.c: Likewise.
23846 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23847 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23848 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23849 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23850 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23851 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23852 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23853 Likewise.
23854 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23855 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23856 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23857 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23858 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23859 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23860 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23861 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23862 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23863 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23864 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23865 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23866 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23867 tilepro mention in comment.
23868
23869 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23870 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23871 * nptl/pthread_join_common.c: New file: common function used on
23872 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23873 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23874 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23875 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23876 (cleanup): Move definition to pthread_join_common.c.
23877 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23878 Remove superflous checks.
23879 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23880 Likewise.
23881
23882 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23883
23884 * sysdeps/aarch64/libm-test-ulps: Update.
23885
23886 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23887
23888 * sysdeps/aarch64/memset.S (MEMSET): Define.
23889
23890 2017-12-20 Florian Weimer <fweimer@redhat.com>
23891
23892 [BZ #22635]
23893 nptl: Provide full implementation of pthread_self in libc.so.
23894 * nptl/Makefile (routines): Add pthread_self.
23895 (libpthread-routines): Replace pthread_self with
23896 compat-pthread_self.
23897 * nptl/forward.c (pthread_self): Remove.
23898 * nptl/nptl-init.c (pthread_functions): Do not initialize
23899 ptr_pthread_self.
23900 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23901 * nptl/compat-pthread_self.c: New file.
23902 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23903 Remove ptr_pthread_self.
23904
23905 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23906
23907 * posix/regcomp.c: Fix spelling in comments.
23908 * posix/regex.h: Likewise.
23909 * posix/regex_internal.c: Likewise.
23910 * posix/regexec.c: Likewise.
23911
23912 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23913
23914 [BZ #22377]
23915 * math/Makefile [C++] (tests): Add test for iseqsig.
23916 * math/math.h [C++] (iseqsig): New implementation, which does
23917 not rely on __MATH_TG/__builtin_types_compatible_p.
23918 * math/test-math-iseqsig.cc: New file.
23919 * sysdeps/powerpc/powerpc64le/Makefile
23920 (CFLAGS-test-math-iseqsig.cc): New variable.
23921
23922 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23923
23924 * elf/dl-load.c (is_trusted_path): Remove.
23925 (fillin_rpath): Remove check_trusted argument and its use,
23926 all callers changed.
23927
23928 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23929
23930 [BZ #22630]
23931 * Makeconfig (link-pie-before-libc): Replace -pie with
23932 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23933 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23934 (tst-dlopen-aout-no-pie): New.
23935 (LDFLAGS-tst-prelink): Removed.
23936 (tst-prelink-no-pie): New.
23937 (LDFLAGS-tst-main1): Removed.
23938 (tst-main1-no-pie): New.
23939 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23940 (tst-gmon-no-pie): New.
23941
23942 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23943
23944 * manual/install.texi: Document that --enable-static-pie
23945 implies PIE.
23946 * INSTALL: Regenerated.
23947
23948 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23949
23950 [BZ #21309]
23951 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23952 unsigned.
23953
23954 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23955
23956 Revert:
23957
23958 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23959
23960 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23961
23962 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23963
23964 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23965 <errno.h>. Include "eexp.tbl".
23966 (half): New constant.
23967 (one): Likewise.
23968 (__ieee754_exp): Rewrite.
23969 (__slowexp): Remove prototype.
23970 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23971 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23972 * sysdeps/i386/fpu/slowexp.c: Likewise.
23973 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23974 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23975 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23976 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23977 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23978 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23979 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23980 comment.
23981 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23982 (CPPFLAGS-slowexp.c): Remove variable.
23983 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23984 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23985 (CFLAGS-slowexp-fma.c): Remove variable.
23986 (CFLAGS-slowexp-fma4.c): Likewise.
23987 (CFLAGS-slowexp-avx.c): Likewise.
23988 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23989 define as macro.
23990 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23991 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23992 * math/Makefile (type-double-routines): Remove slowexp.
23993 * manual/probes.texi (slowexp_p6): Remove.
23994 (slowexp_p32): Likewise.
23995
23996 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23997
23998 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23999 arithmetic.
24000
24001 * lib/glob.c (glob): Do not pass NULL to mempcpy.
24002
24003 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24004
24005 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24006
24007 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24008
24009 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24010 <errno.h>. Include "eexp.tbl".
24011 (half): New constant.
24012 (one): Likewise.
24013 (__ieee754_exp): Rewrite.
24014 (__slowexp): Remove prototype.
24015 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24016 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24017 * sysdeps/i386/fpu/slowexp.c: Likewise.
24018 * sysdeps/ia64/fpu/slowexp.c: Likewise.
24019 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24020 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24021 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24022 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24023 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24024 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24025 comment.
24026 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24027 (CPPFLAGS-slowexp.c): Remove variable.
24028 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24029 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24030 (CFLAGS-slowexp-fma.c): Remove variable.
24031 (CFLAGS-slowexp-fma4.c): Likewise.
24032 (CFLAGS-slowexp-avx.c): Likewise.
24033 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24034 define as macro.
24035 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24036 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24037 * math/Makefile (type-double-routines): Remove slowexp.
24038 * manual/probes.texi (slowexp_p6): Remove.
24039 (slowexp_p32): Likewise.
24040
24041 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24042 James Clarke <jrtc27@jrtc27.com>
24043
24044 [BZ #22603]
24045 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
24046 addition.
24047
24048 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24049
24050 [BZ #22605]
24051 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
24052 code.
24053
24054 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24055
24056 [BZ #22563]
24057 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24058 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
24059 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24060 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
24061 to feature_1.
24062
24063 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24064
24065 [BZ #22563]
24066 * bits/types/__cancel_jmp_buf_tag.h: New file.
24067 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
24068 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
24069 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
24070 * nptl/Makefile (headers): Add
24071 bits/types/__cancel_jmp_buf_tag.h.
24072 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
24073 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
24074 * sysdeps/nptl/pthread.h: Include
24075 <bits/types/__cancel_jmp_buf_tag.h>.
24076 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
24077 __cancel_jmp_buf.
24078 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
24079
24080 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24081
24082 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24083 --enable-static-pie variants to x86_64, x32 and i686.
24084
24085 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24086
24087 [BZ #22631]
24088 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
24089 argument for attrubutes. All callers changed.
24090 (__inline_mathop1): Likewise. All callers changed.
24091 (__inline_mathop): Likewise. All callers changed.
24092 [__USE_MISC] (scalbn): Use __inline_forward instead of
24093 __inline_forward_c.
24094 [__USE_ISOC99] (scalbln): Likewise.
24095 [__USE_ISOC99] (nearbyint): Likewise.
24096 [__USE_ISOC99] (lrint): Likewise.
24097 [__USE_MISC] (scalbnf): Likewise.
24098 [__USE_ISOC99] (scalblnf): Likewise.
24099 [__USE_ISOC99] (nearbyintf): Likewise.
24100 [__USE_ISOC99] (lrintf): Likewise.
24101 [__USE_MISC] (scalbnl): Likewise.
24102 [__USE_ISOC99] (scalblnl): Likewise.
24103 [__USE_ISOC99] (nearbyintl): Likewise.
24104 [__USE_ISOC99] (lrintl): Likewise.
24105 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24106 __inline_mathop and __m81_defun changed.
24107
24108 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24109 CPU or FPU for ARM hard-float configurations.
24110
24111 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24112
24113 * nptl/tst-attr3.c: Include <libc-diag.h>.
24114 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24115
24116 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24117
24118 * string/tester.c (test_strncat): Also disable -Warray-bounds
24119 warnings for two tests.
24120
24121 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24122
24123 [BZ #22614]
24124 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24125 $(cc-pie-default) == yes.
24126 * config.make.in (cc-pie-default): New.
24127 * configure.ac (libc_cv_pie_default): Renamed to ...
24128 (libc_cv_cc_pie_default): This.
24129 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24130 * configure: Regenerated.
24131
24132 2017-12-18 Florian Weimer <fweimer@redhat.com>
24133
24134 [BZ #20204]
24135 ld.so: Harden dl-libc/libdl hooks.
24136 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24137 (rtld_active): New function.
24138 * dlfcn/dladdr.c (__dladdr): Call it.
24139 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24140 * dlfcn/dlclose.c (__dlcose): Likewise.
24141 * dlfcn/dlerror.c (__dlerror): Likewise.
24142 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24143 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24144 * dlfcn/dlopen.c (__dlopen): Likewise.
24145 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24146 * dlfcn/dlsym.c (__dlsym): Likewise.
24147 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24148 * libio/vtables.c (_IO_vtable_check): Likewise.
24149 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24150 (__libc_dlclose): Likewise.
24151 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24152 assignment.
24153
24154 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24155
24156 [BZ #22446]
24157 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24158 buffers for readlink input and output.
24159
24160 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24161
24162 [BZ #22624]
24163 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24164 inhibit_stack_protector.
24165
24166 [BZ #22624]
24167 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24168 inhibit_stack_protector.
24169
24170 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24171
24172 [BZ #22627]
24173 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24174 code and invocation.
24175
24176 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24177
24178 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24179
24180 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24181
24182 [BZ #22505]
24183 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24184
24185 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24186
24187 * sysdeps/s390/fpu/libm-test-ulps: Update.
24188
24189 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24190
24191 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24192
24193 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24194
24195 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24196 constants to s_sincosf.h file.
24197 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24198 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24199 implementation.
24200 * sysdeps/ieee754/flt-32/s_sincosf.h:
24201 New file.
24202
24203 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24204
24205 [BZ #14681]
24206 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24207 before mtrace.
24208
24209 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24210
24211 [BZ #19574]
24212 * INSTALL: Regenerated.
24213 * Makeconfig (real-static-start-installed-name): New.
24214 (pic-default): Updated for --enable-static-pie.
24215 (pie-default): New for --enable-static-pie.
24216 (default-pie-ldflag): Likewise.
24217 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24218 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24219 Replace $(static-start-installed-name) with
24220 $(real-static-start-installed-name).
24221 (+prectorT): Updated for --enable-static-pie.
24222 (+postctorT): Likewise.
24223 (CFLAGS-.o): Add $(pie-default).
24224 (CFLAGS-.op): Likewise.
24225 * NEWS: Mention --enable-static-pie.
24226 * config.h.in (ENABLE_STATIC_PIE): New.
24227 * configure.ac (--enable-static-pie): New configure option.
24228 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24229 (have-static-pie): Likewise.
24230 Enable static PIE if linker supports --no-dynamic-linker.
24231 (ENABLE_STATIC_PIE): New AC_DEFINE.
24232 (enable-static-pie): New LIBC_CONFIG_VAR.
24233 * configure: Regenerated.
24234 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24235 gr$(start-installed-name) for --enable-static-pie.
24236 (extra-objs): Likewise.
24237 (install-lib): Likewise.
24238 (extra-objs): Add static-reloc.o and static-reloc.os
24239 ($(objpfx)$(start-installed-name)): Also depend on
24240 $(objpfx)static-reloc.o.
24241 ($(objpfx)r$(start-installed-name)): New.
24242 ($(objpfx)g$(start-installed-name)): Also depend on
24243 $(objpfx)static-reloc.os.
24244 ($(objpfx)gr$(start-installed-name)): New.
24245 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24246 in libc.a.
24247 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24248 initimage.
24249 * csu/static-reloc.c: New file.
24250 * elf/Makefile (routines): Add dl-reloc-static-pie.
24251 (elide-routines.os): Likewise.
24252 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24253 (tst-tls1-static-non-pie-no-pie): New.
24254 * elf/dl-reloc-static-pie.c: New file.
24255 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24256 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24257 STATIC_PIE_BOOTSTRAP.
24258 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24259 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24260 (tests-static): Likewise.
24261 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24262 (tst-gmon-static-no-pie): New.
24263 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24264 (CRT-tst-gmon-static-pie): Likewise.
24265 (tst-gmon-static-pie-ENV): Likewise.
24266 (tests-special): Likewise.
24267 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24268 (clean-tst-gmon-static-pie-data): Likewise.
24269 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24270 * gmon/tst-gmon-static-pie.c: New file.
24271 * manual/install.texi: Document --enable-static-pie.
24272 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24273 (_dl_get_dl_main_map): Likewise.
24274 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24275 * sysdeps/x86_64/configure.ac: Likewise.
24276 * sysdeps/i386/configure: Regenerated.
24277 * sysdeps/x86_64/configure: Likewise.
24278 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24279 (ASFLAGS-.op): Likewise.
24280
24281 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24282
24283 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24284 * posix/tst-mmap-offset.c (fname): Use /tmp.
24285 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24286
24287 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24288
24289 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24290
24291 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24292
24293 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24294 errno.
24295
24296 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24297
24298 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24299 --with-float=hard for arm-linux-gnueabihf configurations.
24300
24301 [BZ #14121]
24302 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24303 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24304 ($(mo-installed)): Use $(objpfx)%.mo.
24305 (realclean): Remove rule.
24306
24307 * po/Makefile (linguas): Remove rule and dependencies.
24308 (linguas.mo): Likewise.
24309 (.PHONY): Do not depend on linguas and linguas.mo.
24310 (podir): Remove variable.
24311 (pofiles): Likewise.
24312 [$(pofiles)] (%.po): Remove rule.
24313
24314 * sysdeps/sparc/sparc32/Makefile
24315 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24316 start-of-line whitespace in argument of echo.
24317 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24318 with whitespace. Generate __wrap_.udiv alias.
24319 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24320 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24321 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24322 * sysdeps/sparc/sparc32/urem.S: Likewise.
24323
24324 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24325
24326 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24327 for aligned inputs.
24328
24329 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24330
24331 * benchtests/bench-strcmp.c: Print output in JSON format.
24332
24333 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24334
24335 2017-12-14 Florian Weimer <fweimer@redhat.com>
24336
24337 [BZ #22607]
24338 CVE-2017-1000409
24339 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24340 the expanded path string.
24341
24342 2017-12-14 Florian Weimer <fweimer@redhat.com>
24343
24344 [BZ #22606]
24345 CVE-2017-1000408
24346 * elf/dl-load.c (system_dirs): Update comment.
24347 (nsystem_dirs_len): Use array_length.
24348 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24349
24350 2017-12-14 Florian Weimer <fweimer@redhat.com>
24351
24352 Simplify compiling most of support/ outside of glibc.
24353 * support/check_addrinfo.c: Include <string.h>.
24354 * support/check_dns_packet.c: Likewise.
24355 * support/check_hostent.c: Likewise.
24356 * support/support_can_chroot.c: Include <support/xunistd.h>.
24357 * support/support_format_addrinfo.c: Include <stdlib.h>
24358 * support/support_format_dns_packet.c: Include <stdbool.h>.
24359 * support/support_format_hostent.c: Include <stdlib.h>.
24360 * support/support_format_netent.c: Likewise.
24361 * support/support_write_string.c: Include <support/xunistd.h>.
24362 * support/xdlfcn.c: Include <stddef.h>.
24363
24364 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24365
24366 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24367
24368 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24369 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24370
24371 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24372 (sysdeps_routines): Add memset-niagara7.
24373 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24374 Likewise.
24375 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24376 file.
24377 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24378 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24379 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24380 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24381 Add niagara7 option.
24382 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24383 memset.
24384
24385 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24386 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24387 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24388 Likewise.
24389 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24390 New file.
24391 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24392 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24393 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24394 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24395 and __memmove_niagara7.
24396 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24397 Add niagara7 option.
24398 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24399 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24400 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24401 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24402 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24403
24404 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24405
24406 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24407 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24408 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24409 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24410
24411 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24412 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24413 _dl_sparc_cap_flags array.
24414 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24415
24416 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24417
24418 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24419 time whenever possible.
24420
24421 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24422
24423 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24424 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24425
24426 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24427
24428 * soft-fp/fmadf4.c: Move to ....
24429 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24430 * soft-fp/fmasf4.c: Move to ....
24431 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24432 * soft-fp/fmatf4.c: Move to ....
24433 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24434 * sysdeps/ieee754/soft-fp/Makefile: New file.
24435 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24436 * sysdeps/arm/preconfigure: Regenerated.
24437 * sysdeps/arm/nofpu/Implies: New file.
24438 * sysdeps/arm/s_fma.c: Remove file.
24439 * sysdeps/arm/s_fmaf.c: Likewise.
24440 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24441 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24442 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24443 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24444 * sysdeps/microblaze/s_fma.c: Remove file.
24445 * sysdeps/microblaze/s_fmaf.c: Likewise.
24446 * sysdeps/mips/mips32/nofpu/Implies: New file.
24447 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24448 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24449 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24450 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24451 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24452 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24453 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24454 implementation.
24455 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24456 * sysdeps/nios2/s_fma.c: Remove file.
24457 * sysdeps/nios2/s_fmaf.c: Likewise.
24458 * sysdeps/sh/nofpu/Implies: New file.
24459 * sysdeps/sh/s_fma.c: Remove file.
24460 * sysdeps/sh/s_fmaf.c: Likewise.
24461 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24462 * sysdeps/tile/s_fma.c: Remove file.
24463 * sysdeps/tile/s_fmaf.c: Likewise.
24464
24465 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24466
24467 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24468 Add s_cosf-sse2 and s_cosf-fma.
24469 (CFLAGS-s_cosf-fma.c): New.
24470 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24471 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24472 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24473
24474 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24475
24476 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24477
24478 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24479
24480 * libio/Makefile (tests): Add tst-bz22415.
24481 (tst-bz22415-ENV): New rule.
24482 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24483 (tests-special): Add tst-bz22415-mem.out.
24484 ($(objpfx)tst-bz22415-mem.out): New rule.
24485 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24486 in case of a successful seek operation.
24487 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24488 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24489 buffer is required.
24490 * libio/tst-bz22415.c: New test.
24491
24492 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24493
24494 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24495
24496 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24497 __IPC_64 to 0 to avoid IPC_64 being set.
24498
24499 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24500
24501 [BZ #22593]
24502 * math/bits/mathcalls.h (nextafter): Remove const.
24503 (nexttoward): Likewise.
24504
24505 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24506
24507 * configure.ac (--with-fp): Remove configure option.
24508 (with_fp_cond): New variable.
24509 (libc_cv_with_fp): New configure test. Use this variable instead
24510 of with_fp.
24511 * configure: Regenerated.
24512 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24513 * manual/install.texi (Configuring and compiling): Remove
24514 --without-fp.
24515 * INSTALL: Regenerated.
24516 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24517 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24518 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24519 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24520 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24521 use --without-fp to configure glibc.
24522
24523 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24524
24525 * manual/locale.texi (nl_langinfo): Fix a typo.
24526
24527 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24528
24529 [BZ #22588]
24530 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24531
24532 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24533
24534 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24535 (CFLAGS-argp-parse.c): Likewise.
24536 (CFLAGS-argp-fmtstream.c): Likewise.
24537 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24538 (CPPFLAGS-sha512-crypt.c): Likewise.
24539 (CPPFLAGS-md5-crypt.c): Likewise.
24540 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24541 (CFLAGS-stack_chk_fail_local.c): Likewise.
24542 (CFLAGS-backtrace.c): Likewise.
24543 (CFLAGS-sprintf_chk.c): Likewise.
24544 (CFLAGS-snprintf_chk.c): Likewise.
24545 (CFLAGS-vsprintf_chk.c): Likewise.
24546 (CFLAGS-vsnprintf_chk.c): Likewise.
24547 (CFLAGS-asprintf_chk.c): Likewise.
24548 (CFLAGS-vasprintf_chk.c): Likewise.
24549 (CFLAGS-obprintf_chk.c): Likewise.
24550 (CFLAGS-dprintf_chk.c): Likewise.
24551 (CFLAGS-vdprintf_chk.c): Likewise.
24552 (CFLAGS-printf_chk.c): Likewise.
24553 (CFLAGS-fprintf_chk.c): Likewise.
24554 (CFLAGS-vprintf_chk.c): Likewise.
24555 (CFLAGS-vfprintf_chk.c): Likewise.
24556 (CFLAGS-gets_chk.c): Likewise.
24557 (CFLAGS-fgets_chk.c): Likewise.
24558 (CFLAGS-fgets_u_chk.c): Likewise.
24559 (CFLAGS-fread_chk.c): Likewise.
24560 (CFLAGS-fread_u_chk.c): Likewise.
24561 (CFLAGS-swprintf_chk.c): Likewise.
24562 (CFLAGS-vswprintf_chk.c): Likewise.
24563 (CFLAGS-wprintf_chk.c): Likewise.
24564 (CFLAGS-fwprintf_chk.c): Likewise.
24565 (CFLAGS-vwprintf_chk.c): Likewise.
24566 (CFLAGS-vfwprintf_chk.c): Likewise.
24567 (CFLAGS-fgetws_chk.c): Likewise.
24568 (CFLAGS-fgetws_u_chk.c): Likewise.
24569 (CFLAGS-read_chk.c): Likewise.
24570 (CFLAGS-pread_chk.c): Likewise.
24571 (CFLAGS-pread64_chk.c): Likewise.
24572 (CFLAGS-recv_chk.c): Likewise.
24573 (CFLAGS-recvfrom_chk.c): Likewise.
24574 (CFLAGS-tst-longjmp_chk.c): Likewise.
24575 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24576 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24577 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24578 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24579 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24580 (CFLAGS-tst-chk1.c): Likewise.
24581 (CFLAGS-tst-chk2.c): Likewise.
24582 (CFLAGS-tst-chk3.c): Likewise.
24583 (CFLAGS-tst-chk4.cc): Likewise.
24584 (CFLAGS-tst-chk5.cc): Likewise.
24585 (CFLAGS-tst-chk6.cc): Likewise.
24586 (CFLAGS-tst-lfschk1.c): Likewise.
24587 (CFLAGS-tst-lfschk2.c): Likewise.
24588 (CFLAGS-tst-lfschk3.c): Likewise.
24589 (CFLAGS-tst-lfschk4.cc): Likewise.
24590 (CFLAGS-tst-lfschk5.cc): Likewise.
24591 (CFLAGS-tst-lfschk6.cc): Likewise.
24592 (CFLAGS-tst-ssp-1.c): Likewise.
24593 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24594 (CFLAGS-scandir64.c): Likewise.
24595 (CFLAGS-scandir-tail.c): Likewise.
24596 (CFLAGS-scandir64-tail.c): Likewise.
24597 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24598 (CFLAGS-dl-tunables.c): Likewise.
24599 (CFLAGS-dl-runtime.c): Likewise.
24600 (CFLAGS-dl-lookup.c): Likewise.
24601 (CFLAGS-dl-iterate-phdr.c): Likewise.
24602 (CFLAGS-vismain.c): Likewise.
24603 (CFLAGS-tst-linkall-static.c): Likewise.
24604 (CFLAGS-tst-linkall-static.c): Likewise.
24605 (CPPFLAGS-dl-load.c): Likewise.
24606 (CFLAGS-ldconfig.c): Likewise.
24607 (CFLAGS-dl-cache.c): Likewise.
24608 (CFLAGS-cache.c): Likewise.
24609 (CFLAGS-rtld.c): Likewise.
24610 (CFLAGS-multiload.c): Likewise.
24611 (CFLAGS-filtmod1.c): Likewise.
24612 (CFLAGS-tst-align.c): Likewise.
24613 (CFLAGS-tst-align2.c): Likewise.
24614 (CFLAGS-tst-alignmod.c): Likewise.
24615 (CFLAGS-tst-alignmod2.c): Likewise.
24616 (CPPFLAGS-tst-execstack.c): Likewise.
24617 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24618 (CFLAGS-tst-latepthreadmod.c): Likewise.
24619 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24620 (CFLAGS-getgrnam_r.c): Likewise.
24621 (CFLAGS-getgrent_r.c): Likewise.
24622 (CFLAGS-getgrent.c): Likewise.
24623 (CFLAGS-fgetgrent.c): Likewise.
24624 (CFLAGS-fgetgrent_r.c): Likewise.
24625 (CFLAGS-putgrent.c): Likewise.
24626 (CFLAGS-initgroups.c): Likewise.
24627 (CFLAGS-getgrgid.c): Likewise.
24628 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24629 (CFLAGS-getsgent.c): Likewise.
24630 (CFLAGS-fgetsgent.c): Likewise.
24631 (CFLAGS-fgetsgent_r.c): Likewise.
24632 (CFLAGS-putsgent.c): Likewise.
24633 (CFLAGS-getsgnam.c): Likewise.
24634 (CFLAGS-getsgnam_r.c): Likewise.
24635 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24636 (CFLAGS-iconv_charmap.c): Likewise.
24637 (CFLAGS-dummy-repertoire.c): Likewise.
24638 (CFLAGS-charmap.c): Likewise.
24639 (CFLAGS-linereader.c): Likewise.
24640 (CFLAGS-simple-hash.c): Likewise.
24641 (CFLAGS-gconv_conf.c): Likewise.
24642 (CFLAGS-iconvconfig.c): Likewise.
24643 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24644 (CFLAGS-gethstbyad.c): Likewise.
24645 (CFLAGS-gethstbynm_r.c): Likewise.
24646 (CFLAGS-gethstbynm.c): Likewise.
24647 (CFLAGS-gethstbynm2_r.c): Likewise.
24648 (CFLAGS-gethstbynm2.c): Likewise.
24649 (CFLAGS-gethstent_r.c): Likewise.
24650 (CFLAGS-gethstent.c): Likewise.
24651 (CFLAGS-rcmd.c): Likewise.
24652 (CFLAGS-getnetbynm_r.c): Likewise.
24653 (CFLAGS-getnetbynm.c): Likewise.
24654 (CFLAGS-getnetbyad_r.c): Likewise.
24655 (CFLAGS-getnetbyad.c): Likewise.
24656 (CFLAGS-getnetent_r.c): Likewise.
24657 (CFLAGS-getnetent.c): Likewise.
24658 (CFLAGS-getaliasent_r.c): Likewise.
24659 (CFLAGS-getaliasent.c): Likewise.
24660 (CFLAGS-getrpcent_r.c): Likewise.
24661 (CFLAGS-getrpcent.c): Likewise.
24662 (CFLAGS-getservent_r.c): Likewise.
24663 (CFLAGS-getservent.c): Likewise.
24664 (CFLAGS-getprtent_r.c): Likewise.
24665 (CFLAGS-getprtent.c): Likewise.
24666 (CFLAGS-either_ntoh.c): Likewise.
24667 (CFLAGS-either_hton.c): Likewise.
24668 (CFLAGS-getnetgrent.c): Likewise.
24669 (CFLAGS-getnetgrent_r.c): Likewise.
24670 (CFLAGS-tst-checks-posix.c): Likewise.
24671 (CFLAGS-tst-sockaddr.c): Likewise.
24672 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24673 (CFLAGS-tst-translit.c): Likewise.
24674 (CFLAGS-tst-gettext2.c): Likewise.
24675 (CFLAGS-tst-codeset.c): Likewise.
24676 (CFLAGS-tst-gettext3.c): Likewise.
24677 (CFLAGS-tst-gettext4.c): Likewise.
24678 (CFLAGS-tst-gettext5.c): Likewise.
24679 (CFLAGS-tst-gettext6.c): Likewise.
24680 * io/Makefile (CFLAGS-open.c): Likewise.
24681 (CFLAGS-open64.c): Likewise.
24682 (CFLAGS-creat.c): Likewise.
24683 (CFLAGS-creat64.c): Likewise.
24684 (CFLAGS-fcntl.c): Likewise.
24685 (CFLAGS-poll.c): Likewise.
24686 (CFLAGS-ppoll.c): Likewise.
24687 (CFLAGS-lockf.c): Likewise.
24688 (CFLAGS-statfs.c): Likewise.
24689 (CFLAGS-fstatfs.c): Likewise.
24690 (CFLAGS-statvfs.c): Likewise.
24691 (CFLAGS-fstatvfs.c): Likewise.
24692 (CFLAGS-fts.c): Likewise.
24693 (CFLAGS-fts64.c): Likewise.
24694 (CFLAGS-ftw.c): Likewise.
24695 (CFLAGS-ftw64.c): Likewise.
24696 (CFLAGS-lockf.c): Likewise.
24697 (CFLAGS-posix_fallocate.c): Likewise.
24698 (CFLAGS-posix_fallocate64.c): Likewise.
24699 (CFLAGS-fallocate.c): Likewise.
24700 (CFLAGS-fallocate64.c): Likewise.
24701 (CFLAGS-read.c): Likewise.
24702 (CFLAGS-write.c): Likewise.
24703 (CFLAGS-test-stat.c): Likewise.
24704 (CFLAGS-test-lfs.c): Likewise.
24705 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24706 (CFLAGS-fputc.c): Likewise.
24707 (CFLAGS-fputwc.c): Likewise.
24708 (CFLAGS-freopen64.c): Likewise.
24709 (CFLAGS-freopen.c): Likewise.
24710 (CFLAGS-fseek.c): Likewise.
24711 (CFLAGS-fseeko64.c): Likewise.
24712 (CFLAGS-fseeko.c): Likewise.
24713 (CFLAGS-ftello64.c): Likewise.
24714 (CFLAGS-ftello.c): Likewise.
24715 (CFLAGS-fwide.c): Likewise.
24716 (CFLAGS-genops.c): Likewise.
24717 (CFLAGS-getc.c): Likewise.
24718 (CFLAGS-getchar.c): Likewise.
24719 (CFLAGS-getwc.c): Likewise.
24720 (CFLAGS-getwchar.c): Likewise.
24721 (CFLAGS-iofclose.c): Likewise.
24722 (CFLAGS-iofflush.c): Likewise.
24723 (CFLAGS-iofgetpos64.c): Likewise.
24724 (CFLAGS-iofgetpos.c): Likewise.
24725 (CFLAGS-iofgets.c): Likewise.
24726 (CFLAGS-iofgetws.c): Likewise.
24727 (CFLAGS-iofputs.c): Likewise.
24728 (CFLAGS-iofputws.c): Likewise.
24729 (CFLAGS-iofread.c): Likewise.
24730 (CFLAGS-iofsetpos64.c): Likewise.
24731 (CFLAGS-iofsetpos.c): Likewise.
24732 (CFLAGS-ioftell.c): Likewise.
24733 (CFLAGS-iofwrite.c): Likewise.
24734 (CFLAGS-iogetdelim.c): Likewise.
24735 (CFLAGS-iogetline.c): Likewise.
24736 (CFLAGS-iogets.c): Likewise.
24737 (CFLAGS-iogetwline.c): Likewise.
24738 (CFLAGS-ioputs.c): Likewise.
24739 (CFLAGS-ioseekoff.c): Likewise.
24740 (CFLAGS-ioseekpos.c): Likewise.
24741 (CFLAGS-iosetbuffer.c): Likewise.
24742 (CFLAGS-iosetvbuf.c): Likewise.
24743 (CFLAGS-ioungetc.c): Likewise.
24744 (CFLAGS-ioungetwc.c): Likewise.
24745 (CFLAGS-oldfileops.c): Likewise.
24746 (CFLAGS-oldiofclose.c): Likewise.
24747 (CFLAGS-oldiofgetpos64.c): Likewise.
24748 (CFLAGS-oldiofgetpos.c): Likewise.
24749 (CFLAGS-oldiofsetpos64.c): Likewise.
24750 (CFLAGS-oldiofsetpos.c): Likewise.
24751 (CFLAGS-peekc.c): Likewise.
24752 (CFLAGS-putc.c): Likewise.
24753 (CFLAGS-putchar.c): Likewise.
24754 (CFLAGS-putwc.c): Likewise.
24755 (CFLAGS-putwchar.c): Likewise.
24756 (CFLAGS-rewind.c): Likewise.
24757 (CFLAGS-wfileops.c): Likewise.
24758 (CFLAGS-wgenops.c): Likewise.
24759 (CFLAGS-oldiofopen.c): Likewise.
24760 (CFLAGS-iofopen.c): Likewise.
24761 (CFLAGS-iofopen64.c): Likewise.
24762 (CFLAGS-oldtmpfile.c): Likewise.
24763 (CFLAGS-tst_putwc.c): Likewise.
24764 * locale/Makefile (CFLAGS-md5.c): Likewise.
24765 (CFLAGS-charmap.c): Likewise.
24766 (CFLAGS-locfile.c): Likewise.
24767 (CFLAGS-charmap-dir.c): Likewise.
24768 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24769 (CFLAGS-getpt.c): Likewise.
24770 (CFLAGS-pt_chown.c): Likewise.
24771 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24772 (CFLAGS-obstack.c): Likewise.
24773 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24774 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24775 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24776 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24777 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24778 (CFLAGS-test-tgmath.c): Likewise.
24779 (CFLAGS-test-tgmath2.c): Likewise.
24780 (CFLAGS-test-tgmath-ret.c): Likewise.
24781 (CFLAGS-test-powl.c): Likewise.
24782 (CFLAGS-test-snan.c): Likewise.
24783 (CFLAGS-test-signgam-finite.c): Likewise.
24784 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24785 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24786 (CFLAGS-test-signgam-uchar.c): Likewise.
24787 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24788 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24789 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24790 (CFLAGS-test-signgam-uint.c): Likewise.
24791 (CFLAGS-test-signgam-uint-init.c): Likewise.
24792 (CFLAGS-test-signgam-uint-static.c): Likewise.
24793 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24794 (CFLAGS-test-signgam-ullong.c): Likewise.
24795 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24796 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24797 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24798 (CFLAGS-test-math-cxx11.cc): Likewise.
24799 (CFLAGS-test-math-isinff.cc): Likewise.
24800 (CFLAGS-test-math-iszero.cc): Likewise.
24801 (CFLAGS-test-math-issignaling.cc): Likewise.
24802 (CFLAGS-test-math-iscanonical.cc): Likewise.
24803 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24804 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24805 (CFLAGS-test-flt-eval-method.c): Likewise.
24806 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24807 (CFLAGS-test-finite-macros.c): Likewise.
24808 * misc/Makefile (CFLAGS-select.c): Likewise.
24809 (CFLAGS-tsearch.c): Likewise.
24810 (CFLAGS-lsearch.c): Likewise.
24811 (CFLAGS-pselect.c): Likewise.
24812 (CFLAGS-readv.c): Likewise.
24813 (CFLAGS-writev.c): Likewise.
24814 (CFLAGS-preadv.c): Likewise.
24815 (CFLAGS-preadv64.c): Likewise.
24816 (CFLAGS-pwritev.c): Likewise.
24817 (CFLAGS-pwritev64.c): Likewise.
24818 (CFLAGS-preadv2.c): Likewise.
24819 (CFLAGS-preadv64v2.c): Likewise.
24820 (CFLAGS-pwritev2.c): Likewise.
24821 (CFLAGS-pwritev64v2.c): Likewise.
24822 (CFLAGS-usleep.c): Likewise.
24823 (CFLAGS-syslog.c): Likewise.
24824 (CFLAGS-error.c): Likewise.
24825 (CFLAGS-getpass.c): Likewise.
24826 (CFLAGS-mkstemp.c): Likewise.
24827 (CFLAGS-mkstemp64.c): Likewise.
24828 (CFLAGS-getsysstats.c): Likewise.
24829 (CFLAGS-getusershell.c): Likewise.
24830 (CFLAGS-err.c): Likewise.
24831 (CFLAGS-tst-tsearch.c): Likewise.
24832 (CFLAGS-msync.c): Likewise.
24833 (CFLAGS-fdatasync.c): Likewise.
24834 (CFLAGS-fsync.c): Likewise.
24835 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24836 (CFLAGS-unwind.c): Likewise.
24837 (CFLAGS-unwind-forcedunwind.c): Likewise.
24838 (CFLAGS-pthread_cancel.c): Likewise.
24839 (CFLAGS-pthread_setcancelstate.c): Likewise.
24840 (CFLAGS-pthread_setcanceltype.c): Likewise.
24841 (CFLAGS-cancellation.c): Likewise.
24842 (CFLAGS-libc-cancellation.c): Likewise.
24843 (CFLAGS-pthread_exit.c): Likewise.
24844 (CFLAGS-forward.c): Likewise.
24845 (CFLAGS-pthread_testcancel.c): Likewise.
24846 (CFLAGS-pthread_join.c): Likewise.
24847 (CFLAGS-pthread_timedjoin.c): Likewise.
24848 (CFLAGS-pthread_once.c): Likewise.
24849 (CFLAGS-pthread_cond_wait.c): Likewise.
24850 (CFLAGS-sem_wait.c): Likewise.
24851 (CFLAGS-sem_timedwait.c): Likewise.
24852 (CFLAGS-fcntl.c): Likewise.
24853 (CFLAGS-lockf.c): Likewise.
24854 (CFLAGS-pread.c): Likewise.
24855 (CFLAGS-pread64.c): Likewise.
24856 (CFLAGS-pwrite.c): Likewise.
24857 (CFLAGS-pwrite64.c): Likewise.
24858 (CFLAGS-wait.c): Likewise.
24859 (CFLAGS-waitpid.c): Likewise.
24860 (CFLAGS-sigwait.c): Likewise.
24861 (CFLAGS-msgrcv.c): Likewise.
24862 (CFLAGS-msgsnd.c): Likewise.
24863 (CFLAGS-tcdrain.c): Likewise.
24864 (CFLAGS-open.c): Likewise.
24865 (CFLAGS-open64.c): Likewise.
24866 (CFLAGS-pause.c): Likewise.
24867 (CFLAGS-recv.c): Likewise.
24868 (CFLAGS-send.c): Likewise.
24869 (CFLAGS-accept.c): Likewise.
24870 (CFLAGS-sendto.c): Likewise.
24871 (CFLAGS-connect.c): Likewise.
24872 (CFLAGS-recvfrom.c): Likewise.
24873 (CFLAGS-recvmsg.c): Likewise.
24874 (CFLAGS-sendmsg.c): Likewise.
24875 (CFLAGS-close.c): Likewise.
24876 (CFLAGS-read.c): Likewise.
24877 (CFLAGS-write.c): Likewise.
24878 (CFLAGS-nanosleep.c): Likewise.
24879 (CFLAGS-sigsuspend.c): Likewise.
24880 (CFLAGS-msync.c): Likewise.
24881 (CFLAGS-fdatasync.c): Likewise.
24882 (CFLAGS-fsync.c): Likewise.
24883 (CFLAGS-pt-system.c): Likewise.
24884 (CFLAGS-tst-cleanup2.c): Likewise.
24885 (CFLAGS-tst-cleanupx2.c): Likewise.
24886 (CFLAGS-flockfile.c): Likewise.
24887 (CFLAGS-ftrylockfile.c): Likewise.
24888 (CFLAGS-funlockfile.c): Likewise.
24889 (CFLAGS-tst-initializers1.c): Likewise.
24890 (CFLAGS-tst-initializers1-c89.c): Likewise.
24891 (CFLAGS-tst-initializers1-c99.c): Likewise.
24892 (CFLAGS-tst-initializers1-c11.c): Likewise.
24893 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24894 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24895 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24896 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24897 (CFLAGS-nscd_getgr_r.c): Likewise.
24898 (CFLAGS-nscd_gethst_r.c): Likewise.
24899 (CFLAGS-nscd_getai.c): Likewise.
24900 (CFLAGS-nscd_initgroups.c): Likewise.
24901 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24902 (CFLAGS-pause.c): Likewise.
24903 (CFLAGS-pread.c): Likewise.
24904 (CFLAGS-pread64.c): Likewise.
24905 (CFLAGS-pwrite.c): Likewise.
24906 (CFLAGS-pwrite64.c): Likewise.
24907 (CFLAGS-sleep.c): Likewise.
24908 (CFLAGS-wait.c): Likewise.
24909 (CFLAGS-waitid.c): Likewise.
24910 (CFLAGS-waitpid.c): Likewise.
24911 (CFLAGS-getopt.c): Likewise.
24912 (CFLAGS-wordexp.c): Likewise.
24913 (CFLAGS-sysconf.c): Likewise.
24914 (CFLAGS-pathconf.c): Likewise.
24915 (CFLAGS-fpathconf.c): Likewise.
24916 (CFLAGS-spawn.c): Likewise.
24917 (CFLAGS-spawnp.c): Likewise.
24918 (CFLAGS-spawni.c): Likewise.
24919 (CFLAGS-glob.c): Likewise.
24920 (CFLAGS-glob64.c): Likewise.
24921 (CFLAGS-getconf.c): Likewise.
24922 (CFLAGS-nanosleep.c): Likewise.
24923 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24924 (CFLAGS-getpwent.c): Likewise.
24925 (CFLAGS-getpw.c): Likewise.
24926 (CFLAGS-fgetpwent_r.c): Likewise.
24927 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24928 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24929 (CFLAGS-mq_timedreceive.c): Likewise.
24930 (CFLAGS-mq_timedsend.c): Likewise.
24931 (CFLAGS-clock_nanosleep.c): Likewise.
24932 (CFLAGS-librt-cancellation.c): Likewise.
24933 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24934 (CFLAGS-getspent.c): Likewise.
24935 (CFLAGS-fgetspent.c): Likewise.
24936 (CFLAGS-fgetspent_r.c): Likewise.
24937 (CFLAGS-putspent.c): Likewise.
24938 (CFLAGS-getspnam.c): Likewise.
24939 (CFLAGS-getspnam_r.c): Likewise.
24940 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24941 (CFLAGS-sigsuspend.c): Likewise.
24942 (CFLAGS-sigtimedwait.c): Likewise.
24943 (CFLAGS-sigwait.c): Likewise.
24944 (CFLAGS-sigwaitinfo.c): Likewise.
24945 (CFLAGS-sigreturn.c): Likewise.
24946 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24947 (CFLAGS-vfwprintf.c): Likewise.
24948 (CFLAGS-tmpfile.c): Likewise.
24949 (CFLAGS-tmpfile64.c): Likewise.
24950 (CFLAGS-tempname.c): Likewise.
24951 (CFLAGS-psignal.c): Likewise.
24952 (CFLAGS-vprintf.c): Likewise.
24953 (CFLAGS-cuserid.c): Likewise.
24954 (CFLAGS-errlist.c): Likewise.
24955 (CFLAGS-siglist.c): Likewise.
24956 (CFLAGS-scanf15.c): Likewise.
24957 (CFLAGS-scanf17.c): Likewise.
24958 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24959 (CFLAGS-msort.c): Likewise.
24960 (CFLAGS-qsort.c): Likewise.
24961 (CFLAGS-system.c): Likewise.
24962 (CFLAGS-fmtmsg.c): Likewise.
24963 (CFLAGS-strfmon.c): Likewise.
24964 (CFLAGS-strfmon_l.c): Likewise.
24965 (CFLAGS-strfromd.c): Likewise.
24966 (CFLAGS-strfromf.c): Likewise.
24967 (CFLAGS-strfroml.c): Likewise.
24968 (CFLAGS-tst-bsearch.c): Likewise.
24969 (CFLAGS-tst-qsort.c): Likewise.
24970 (CFLAGS-tst-makecontext2.c): Likewise.
24971 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24972 (CFLAGS-xnlm_prot.c): Likewise.
24973 (CFLAGS-xrstat.c): Likewise.
24974 (CFLAGS-xyppasswd.c): Likewise.
24975 (CFLAGS-xklm_prot.c): Likewise.
24976 (CFLAGS-xrex.c): Likewise.
24977 (CFLAGS-xsm_inter.c): Likewise.
24978 (CFLAGS-xmount.c): Likewise.
24979 (CFLAGS-xrusers.c): Likewise.
24980 (CFLAGS-xspray.c): Likewise.
24981 (CFLAGS-xnfs_prot.c): Likewise.
24982 (CFLAGS-xrquota.c): Likewise.
24983 (CFLAGS-xkey_prot.c): Likewise.
24984 (CFLAGS-auth_unix.c): Likewise.
24985 (CFLAGS-key_call.c): Likewise.
24986 (CFLAGS-pmap_rmt.c): Likewise.
24987 (CFLAGS-clnt_perr.c): Likewise.
24988 (CFLAGS-openchild.c): Likewise.
24989 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24990 (CFLAGS-msgsnd.c): Likewise.
24991 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24992 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24993 (CFLAGS-tzset.c): Likewise.
24994 (CFLAGS-getdate.c): Likewise.
24995 (CFLAGS-test_time.c): Likewise.
24996 (CPPFLAGS-tst-tzname.c): Likewise.
24997 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24998 (CFLAGS-zic.c): Likewise.
24999 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
25000 (CFLAGS-wcswidth.c): Likewise.
25001 (CFLAGS-wcstol.c): Likewise.
25002 (CFLAGS-wcstoul.c): Likewise.
25003 (CFLAGS-wcstoll.c): Likewise.
25004 (CFLAGS-wcstoull.c): Likewise.
25005 (CFLAGS-wcstod.c): Likewise.
25006 (CFLAGS-wcstold.c): Likewise.
25007 (CFLAGS-wcstof128.c): Likewise.
25008 (CFLAGS-wcstof.c): Likewise.
25009 (CFLAGS-wcstol_l.c): Likewise.
25010 (CFLAGS-wcstoul_l.c): Likewise.
25011 (CFLAGS-wcstoll_l.c): Likewise.
25012 (CFLAGS-wcstoull_l.c): Likewise.
25013 (CFLAGS-wcstod_l.c): Likewise.
25014 (CFLAGS-wcstold_l.c): Likewise.
25015 (CFLAGS-wcstof128_l.c): Likewise.
25016 (CFLAGS-wcstof_l.c): Likewise.
25017 (CPPFLAGS-tst-wchar-h.c): Likewise.
25018 (CPPFLAGS-wcstold_l.c): Likewise.
25019
25020 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
25021
25022 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
25023
25024 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
25025 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25026
25027 * manual/tunables.texi (Hardware Capability Tunables): Document
25028 glibc.tune.cached_memopt.
25029 * sysdeps/powerpc/cpu-features.c: New file.
25030 * sysdeps/powerpc/cpu-features.h: New file.
25031 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
25032 _dl_powerpc_cpu_features.
25033 * sysdeps/powerpc/dl-tunables.list: New file.
25034 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
25035 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
25036 (INIT_ARCH): Initialize use_aligned_memopt.
25037 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
25038 IS_IN(rtld))]: Restrict dl_platform_init availability and
25039 initialize CPU features used by tunables.
25040 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
25041 Add memcpy-power8-cached.
25042 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
25043 __memcpy_power8_cached.
25044 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
25045 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
25046 New file.
25047
25048 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
25049
25050 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
25051 (CFLAGS-noinl-tester.c): Likewise.
25052 (CFLAGS-tst-strlen.c): Likewise.
25053 (CFLAGS-stratcliff.c): Likewise.
25054 (CFLAGS-test-ffs.c): Likewise.
25055 (CFLAGS-tst-inlcall.c): Likewise.
25056 (CFLAGS-tst-xbzero-opt.c): Likewise.
25057 (CFLAGS-memcpy.c): Likewise.
25058 (CFLAGS-wordcopy.c): Likewise.
25059
25060 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
25061
25062 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
25063 Store r15 on stack and add cfi rule.
25064 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
25065 Likewise.
25066
25067 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
25068
25069 [BZ #22577]
25070 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
25071 call.
25072
25073 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25074
25075 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25076 Add s_sinf-sse2 and s_sinf-fma.
25077 (CFLAGS-s_sinf-fma.c): New.
25078 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
25079 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
25080 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
25081
25082 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25083
25084 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
25085
25086 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25087
25088 [BZ #22568]
25089 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
25090 part of result to imaginary part of argument if it is zero and the
25091 real part of the argument is not finite.
25092 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
25093 of result to real part of argument if it is zero and the imaginary
25094 part of the argument is not finite.
25095
25096 2017-12-07 Mike FABIAN <mfabian@redhat.com>
25097
25098 [BZ #22524]
25099 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
25100 and to the list of locales to be built for testing.
25101 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25102 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
25103 and build the collation rules upon that.
25104
25105 2017-12-07 Joseph Myers <joseph@codesourcery.com>
25106
25107 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25108 * manual/math.texi (Mathematics): Document support for _Float32.
25109 * math/Makefile (test-types): Add float32.
25110 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25111 * stdlib/Versions (GLIBC_2.27): Likewise.
25112 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25113 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25114 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25115 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25116 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25117 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25118 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25119 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25120 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25121 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25122 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25123 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25124 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25125 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25126 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25127 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25128 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25129 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25130 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25131 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25132 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25133 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25134 Likewise.
25135 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25136 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25137 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25138 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25139 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25141 Likewise.
25142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25143 Likewise.
25144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25145 Likewise.
25146 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25147 Likewise.
25148
25149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25150 Likewise.
25151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25152 Likewise.
25153 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25154 Likewise.
25155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25156 Likewise.
25157 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25158 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25159 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25160 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25161 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25162 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25163 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25164 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25165 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25166 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25167 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25168 Likewise.
25169 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25170 Likewise.
25171 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25172 Likewise.
25173 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25174 Likewise.
25175 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25176 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25177 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25178 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25179 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25180 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25181 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25182 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25183
25184 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25185
25186 * stdlib/strtof.c: Include <bits/floatn.h>
25187 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25188 and later undefine as macro. Define as weak alias if
25189 [!USE_WIDE_CHAR].
25190 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25191 and later undefine as macro. Define as weak alias if
25192 [USE_WIDE_CHAR].
25193 * stdlib/strtof_l.c: Include <bits/floatn.h>
25194 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25195 and later undefine as macro. Define as weak alias if
25196 [!USE_WIDE_CHAR].
25197 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25198 and later undefine as macro. Define as weak alias if
25199 [USE_WIDE_CHAR].
25200
25201 * stdlib/strfromf.c: Include <bits/floatn.h>.
25202 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25203 and later undefine as macro and define as weak alias.
25204
25205 * math/test-float32.h: New file.
25206
25207 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25208 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25209 (libm_alias_float_other_r): Create f32 alias.
25210 (libm_alias_float_r): Use semicolon before call to
25211 libm_alias_float_other_r.
25212
25213 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25214 second argument to libm_alias_float_other.
25215 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25216 second argument to libm_alias_float_other.
25217 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25218 argument to libm_alias_float_other.
25219
25220 [BZ #22561]
25221 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25222 real part of result for argument 0 + i * NaN.
25223 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25224 results for tests of 0 + i * NaN.
25225
25226 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25227
25228 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25229
25230 2017-12-06 David S. Miller <davem@davemloft.net>
25231
25232 * sysdeps/sparc/fpu/libm-test-ulps: Update
25233 exp_{downward,towardzero,upward} ulps.
25234
25235 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25236
25237 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25238 variables static.
25239
25240 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25241 (Y0_2D): Likewise.
25242 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25243 (Y0_2D): Likewise.
25244 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25245 (Y0_2D): Likewise.
25246 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25247 (Y0_2D): Likewise.
25248
25249 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25250
25251 [BZ #22515]
25252 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25253 and to the list of locales to be built for testing.
25254 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25255 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25256 and build the collation rules upon that.
25257
25258 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25259
25260 * NEWS: Add sinf to list of optimized functions.
25261
25262 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25263
25264 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25265 (__HAVE_FLOAT32X): Likewise.
25266 * manual/math.texi (Mathematics): Document support for _Float64
25267 and _Float32x.
25268 * math/Makefile (test-types): Add float64 and float32x.
25269 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25270 functions.
25271 * stdlib/Versions (GLIBC_2.27): Likewise.
25272 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25273 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25274 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25275 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25276 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25277 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25278 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25279 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25280 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25281 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25282 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25283 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25284 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25285 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25286 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25287 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25288 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25289 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25290 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25291 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25292 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25293 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25294 Likewise.
25295 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25296 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25297 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25298 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25299 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25301 Likewise.
25302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25303 Likewise.
25304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25305 Likewise.
25306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25307 Likewise.
25308 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25309 Likewise.
25310 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25311 Likewise.
25312 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25313 Likewise.
25314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25315 Likewise.
25316 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25317 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25318 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25319 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25320 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25321 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25322 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25323 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25324 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25325 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25326 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25327 Likewise.
25328 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25329 Likewise.
25330 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25331 Likewise.
25332 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25333 Likewise.
25334 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25335 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25336 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25337 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25338 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25339 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25340 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25341 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25342
25343 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25344
25345 * bits/floatn-common.h: Include <bits/long-double.h>.
25346 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25347 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25348 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25349 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25350 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25351 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25352 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25353 (__builtin_huge_valf64): Use __builtin_huge_vall.
25354 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25355 (__builtin_inff64): Use __builtin_infl.
25356 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25357 (__builtin_nanf64): Use __builtin_nanl.
25358 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25359 (__builtin_nansf64): Use __builtin_nansl.
25360
25361 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25362 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25363 Carlos O'Donell <carlos@redhat.com>
25364
25365 * elf/dl-tunables.list: Add elision parameters.
25366 * manual/tunables.texi: Add entries about elision tunable.
25367 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25368 Add callback functions to dynamically enable/disable elision.
25369 Add multiple callbacks functions to set elision parameters.
25370 Deleted __libc_enable_secure check.
25371 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25372 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25373 * configure: Regenerated.
25374 * configure.ac: Option enable_lock_elision was deleted.
25375 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25376 * config.make.in: Remove references to enable_lock_elision.
25377 * manual/install.texi: Elision configure option was removed.
25378 * INSTALL: Regenerated to remove enable_lock_elision.
25379 * nptl/Makefile:
25380 Disable elision so it can verify error case for destroying a mutex.
25381 * sysdeps/powerpc/nptl/elide.h:
25382 Cleanup ENABLE_LOCK_ELISION check.
25383 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25384 * sysdeps/s390/configure: Regenerated.
25385 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25386 * nptl/tst-mutex8.c:
25387 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25388 * sysdeps/powerpc/powerpc32/sysdep.h:
25389 Deleted all ENABLE_LOCK_ELISION checks.
25390 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25391 * sysdeps/powerpc/sysdep.h: Likewise.
25392 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25393 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25394 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25395 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25396 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25397 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25398 enable-lock-elision.
25399
25400 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25401
25402 * stdlib/strtod.c: Include <bits/floatn.h>.
25403 (BUILD_DOUBLE): New macro.
25404 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25405 (strtof64): Define and later undefine as macro. Define as weak
25406 alias if [!USE_WIDE_CHAR].
25407 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25408 (wcstof64): Define and later undefine as macro. Define as weak
25409 alias if [USE_WIDE_CHAR].
25410 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25411 (strtof32x): Define and later undefine as macro. Define as weak
25412 alias if [!USE_WIDE_CHAR].
25413 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25414 (wcstof32x): Define and later undefine as macro. Define as weak
25415 alias if [USE_WIDE_CHAR].
25416 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25417 (BUILD_DOUBLE): New macro.
25418 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25419 (strtof64_l): Define and later undefine as macro. Define as weak
25420 alias if [!USE_WIDE_CHAR].
25421 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25422 (wcstof64_l): Define and later undefine as macro. Define as weak
25423 alias if [USE_WIDE_CHAR].
25424 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25425 (strtof32x_l): Define and later undefine as macro. Define as weak
25426 alias if [!USE_WIDE_CHAR].
25427 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25428 (wcstof32x_l): Define and later undefine as macro. Define as weak
25429 alias if [USE_WIDE_CHAR].
25430
25431 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25432
25433 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25434 (reduced): Use ones as double instead of integer.
25435
25436 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25437
25438 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25439
25440 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25441
25442 * stdlib/strfromd.c: Include <bits/floatn.h>.
25443 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25444 and later undefine as macro and define as weak alias.
25445 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25446 Likewise.
25447
25448 * math/test-float32x.h: New file.
25449 * math/test-float64.h: Likewise.
25450
25451 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25452 (libm_alias_double_other_r_f64): New macro.
25453 (libm_alias_double_other_r_f32x): Likewise.
25454 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25455 libm_alias_double_other_r_f32x.
25456 (libm_alias_double_r): Use semicolon before call to
25457 libm_alias_double_other_r.
25458 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25459 <bits/floatn.h>.
25460 (libm_alias_double_other_r_f64): New macro.
25461 (libm_alias_double_other_r_f32x): Likewise.
25462 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25463 libm_alias_double_other_r_f32x.
25464
25465 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25466
25467 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25468 int.
25469 (SINF_FUNC): Likewise. Replace floor with simple casts.
25470
25471 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25472
25473 [BZ #22517]
25474 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25475 and to the list of locales to be built for testing.
25476 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25477 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25478 and build the collation rules upon that.
25479
25480 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25481
25482 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25483 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25484 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25485 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25486 instead of __insn__xxx.
25487 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25488 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25489 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25490 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25491 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25492 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25493
25494 2017-12-05 Florian Weimer <fweimer@redhat.com>
25495
25496 Linux: Implement interfaces for memory protection keys
25497 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25498 xsignal, xsysconf.
25499 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25500 * support/xunistd.h (xsysconf): Declare.
25501 * support/xraise.c: New file.
25502 * support/xsigaction.c: Likewise.
25503 * support/xsignal.c: Likewise.
25504 * support/xsysconf.c: Likewise.
25505 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25506 pkey_set, pkey_get, pkey_mprotect.
25507 [misc] (tests): Add tst-pkey.
25508 (tst-pkey): Link with -lpthread.
25509 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25510 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25511 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25512 (PKEY_DISABLE_WRITE): Define.
25513 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25514 Declare.
25515 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25516 (SEGV_PKUERR): Add.
25517 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25518 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25519 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25520 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25521 Add.
25522 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25523 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25524 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25525 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25526 * sysdeps/unix/sysv/linux/**.abilist: Update.
25527
25528 2017-12-05 Florian Weimer <fweimer@redhat.com>
25529
25530 * support/tst-test_compare.c (subprocess): Use long long instead
25531 of long argument for consistent type width across 32-bit and
25532 64-bit architectures.
25533 (do_test): Adjust expected output.
25534
25535 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25536
25537 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25538 (cosf): Define using libm_alias_float.
25539 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25540 (fabsf): Define using libm_alias_float.
25541 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25542 (fmaf): Define using libm_alias_float.
25543 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25544 (rintf): Define using libm_alias_float.
25545 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25546 (sinf): Define using libm_alias_float.
25547 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25548 <libm-alias-float.h>.
25549 (modff): Define using libm_alias_float.
25550 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25551 <libm-alias-float.h>.
25552 (logbf): Define using libm_alias_float.
25553 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25554 <libm-alias-float.h>.
25555 (ceilf): Define using libm_alias_float.
25556 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25557 <libm-alias-float.h>.
25558 (copysignf): Define using libm_alias_float.
25559 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25560 <libm-alias-float.h>.
25561 (floorf): Define using libm_alias_float.
25562 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25563 <libm-alias-float.h>.
25564 (llrintf): Define using libm_alias_float.
25565 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25566 <libm-alias-float.h>.
25567 (llroundf): Define using libm_alias_float.
25568 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25569 <libm-alias-float.h>.
25570 (lrintf): Define using libm_alias_float.
25571 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25572 <libm-alias-float.h>.
25573 (lroundf): Define using libm_alias_float.
25574 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25575 <libm-alias-float.h>.
25576 (nearbyintf): Define using libm_alias_float.
25577 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25578 <libm-alias-float.h>.
25579 (rintf): Define using libm_alias_float.
25580 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25581 <libm-alias-float.h>.
25582 (roundf): Define using libm_alias_float.
25583 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25584 <libm-alias-float.h>.
25585 (truncf): Define using libm_alias_float.
25586 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25587 Include <libm-alias-float.h>.
25588 (ceilf): Define using libm_alias_float.
25589 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25590 Include <libm-alias-float.h>.
25591 (copysignf): Define using libm_alias_float.
25592 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25593 Include <libm-alias-float.h>.
25594 (floorf): Define using libm_alias_float.
25595 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25596 Include <libm-alias-float.h>.
25597 (llrintf): Define using libm_alias_float.
25598 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25599 Include <libm-alias-float.h>.
25600 (llroundf): Define using libm_alias_float.
25601 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25602 Include <libm-alias-float.h>.
25603 (logbf): Define using libm_alias_float.
25604 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25605 Include <libm-alias-float.h>.
25606 (lrintf): Define using libm_alias_float.
25607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25608 Include <libm-alias-float.h>.
25609 (lroundf): Define using libm_alias_float.
25610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25611 Include <libm-alias-float.h>.
25612 (modff): Define using libm_alias_float.
25613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25614 Include <libm-alias-float.h>.
25615 (roundf): Define using libm_alias_float.
25616 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25617 Include <libm-alias-float.h>.
25618 (truncf): Define using libm_alias_float.
25619 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25620 <libm-alias-float.h>.
25621 (llrintf): Define using libm_alias_float.
25622 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25623 <libm-alias-float.h>.
25624 (llroundf): Define using libm_alias_float.
25625 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25626 <libm-alias-float.h>.
25627 (ceilf): Define using libm_alias_float.
25628 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25629 <libm-alias-float.h>.
25630 (floorf): Define using libm_alias_float.
25631 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25632 <libm-alias-float.h>.
25633 (llroundf): Define using libm_alias_float.
25634 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25635 <libm-alias-float.h>.
25636 (lroundf): Define using libm_alias_float.
25637 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25638 <libm-alias-float.h>.
25639 (roundf): Define using libm_alias_float.
25640 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25641 <libm-alias-float.h>.
25642 (truncf): Define using libm_alias_float.
25643 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25644 <libm-alias-float.h>.
25645 (copysignf): Define using libm_alias_float.
25646 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25647 <libm-alias-float.h>.
25648 (llrintf): Define using libm_alias_float.
25649 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25650 <libm-alias-float.h>.
25651 (llroundf): Define using libm_alias_float.
25652 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25653 <libm-alias-float.h>.
25654 (lrintf): Define using libm_alias_float.
25655 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25656 <libm-alias-float.h>.
25657 (lroundf): Define using libm_alias_float.
25658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25659 <libm-alias-float.h>.
25660 (ceilf): Define using libm_alias_float.
25661 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25662 <libm-alias-float.h>.
25663 (copysignf): Define using libm_alias_float.
25664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25665 <libm-alias-float.h>.
25666 (cosf): Define using libm_alias_float.
25667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25668 <libm-alias-float.h>.
25669 (floorf): Define using libm_alias_float.
25670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25671 <libm-alias-float.h>.
25672 (llrintf): Define using libm_alias_float.
25673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25674 <libm-alias-float.h>.
25675 (llroundf): Define using libm_alias_float.
25676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25677 <libm-alias-float.h>.
25678 (logbf): Define using libm_alias_float.
25679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25680 <libm-alias-float.h>.
25681 (modff): Define using libm_alias_float.
25682 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25683 <libm-alias-float.h>.
25684 (roundf): Define using libm_alias_float.
25685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25686 <libm-alias-float.h>.
25687 (sinf): Define using libm_alias_float.
25688 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25689 <libm-alias-float.h>.
25690 (truncf): Define using libm_alias_float.
25691 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25692 <libm-alias-float.h>.
25693 (ceilf): Define using libm_alias_float.
25694 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25695 <libm-alias-float.h>.
25696 (copysignf): Define using libm_alias_float.
25697 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25698 <libm-alias-float.h>.
25699 (floorf): Define using libm_alias_float.
25700 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25701 <libm-alias-float.h>.
25702 (llrintf): Define using libm_alias_float.
25703 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25704 <libm-alias-float.h>.
25705 (llroundf): Define using libm_alias_float.
25706 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25707 <libm-alias-float.h>.
25708 (nearbyintf): Define using libm_alias_float.
25709 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25710 <libm-alias-float.h>.
25711 (rintf): Define using libm_alias_float.
25712 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25713 <libm-alias-float.h>.
25714 (roundf): Define using libm_alias_float.
25715 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25716 <libm-alias-float.h>.
25717 (truncf): Define using libm_alias_float.
25718 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25719 <libm-alias-float.h>.
25720 (ceilf): Define using libm_alias_float.
25721 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25722 <libm-alias-float.h>.
25723 (floorf): Define using libm_alias_float.
25724 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25725 <libm-alias-float.h>.
25726 (llroundf): Define using libm_alias_float.
25727 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25728 <libm-alias-float.h>.
25729 (roundf): Define using libm_alias_float.
25730 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25731 <libm-alias-float.h>.
25732 (truncf): Define using libm_alias_float.
25733 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25734 <libm-alias-float.h>.
25735 (copysignf): Define using libm_alias_float.
25736 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25737 <libm-alias-float.h>.
25738 (llrintf): Define using libm_alias_float.
25739 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25740 <libm-alias-float.h>.
25741 (llroundf): Define using libm_alias_float.
25742 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25743 <libm-alias-float.h>.
25744 (cosf): Define using libm_alias_float.
25745 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25746 <libm-alias-float.h>.
25747 (llrintf): Define using libm_alias_float.
25748 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25749 <libm-alias-float.h>.
25750 (llroundf): Define using libm_alias_float.
25751 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25752 <libm-alias-float.h>.
25753 (sinf): Define using libm_alias_float.
25754
25755 2017-12-04 Florian Weimer <fweimer@redhat.com>
25756
25757 * support/check.h (TEST_COMPARE): Define.
25758 (support_test_compare_failure): Declare.
25759 * support/Makefile (libsupport-routines): Add
25760 support_test_compare_failure.
25761 (tests): Add tst-test_compare.
25762 * support /support_test_compare_failure.c: New file.
25763 * support/tst-test_compare.c: Likewise.
25764
25765 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25766
25767 [BZ #22527]
25768 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25769 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25770 available, this rewrite of the collation rules does reproduce
25771 the test file in the same order.
25772
25773 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25774
25775 [BZ #10580]
25776 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25777 digraphs in the month and day names. Using single code points for
25778 digraphs is deprecated. While there are dedicated Unicode
25779 codepoints, for the digraphs, these are included for backwards
25780 compatibility and modern texts use a sequence of Basic Latin
25781 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25782 This makes the month and day names agree exactly with CLDR now,
25783 CLDR does not use the single code points for the digraphs either.
25784
25785 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25786
25787 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25788
25789 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25790
25791 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25792 of floor.
25793
25794 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25795
25796 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25797 Define only for libc.so.
25798
25799 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25800
25801 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25802 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25803 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25804 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25805 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25806
25807 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25808
25809 [BZ #5997]
25810 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25811
25812 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25813
25814 [BZ libc/19170]
25815 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25816 PREINIT_FUNCTION_WEAK is nonzero.
25817 (gmon_initializer): New function. Put procedure label for it in
25818 .init_array section.
25819 (_init): Don't call PREINIT_FUNCTION.
25820 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25821 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25822 value when map argument is null.
25823
25824 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25825 depi instruction from PIC pc-relative sequence.
25826 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25827 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25828 (elf_machine_load_address): Likewise.
25829 (elf_machine_runtime_setup): Likewise.
25830
25831 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25832
25833 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25834 <libm-alias-double.h>.
25835 (logb): Define using libm_alias_double.
25836 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25837 <libm-alias-double.h>.
25838 (copysign): Define using libm_alias_double.
25839 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25840 <libm-alias-double.h>.
25841 (llrint): Define using libm_alias_double.
25842 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25843 <libm-alias-double.h>.
25844 (llround): Define using libm_alias_double.
25845 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25846 <libm-alias-double.h>.
25847 (lrint): Define using libm_alias_double.
25848 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25849 <libm-alias-double.h>.
25850 (lround): Define using libm_alias_double.
25851 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25852 Include <libm-alias-double.h>.
25853 (copysign): Define using libm_alias_double.
25854 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25855 Include <libm-alias-double.h>.
25856 (llrint): Define using libm_alias_double.
25857 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25858 Include <libm-alias-double.h>.
25859 (llround): Define using libm_alias_double.
25860 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25861 <libm-alias-double.h>.
25862 (logb): Define using libm_alias_double.
25863 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25864 Include <libm-alias-double.h>.
25865 (lrint): Define using libm_alias_double.
25866 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25867 Include <libm-alias-double.h>.
25868 (lround): Define using libm_alias_double.
25869 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25870 <libm-alias-double.h>.
25871 (llrint): Define using libm_alias_double.
25872 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25873 <libm-alias-double.h>.
25874 (llround): Define using libm_alias_double.
25875 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25876 <libm-alias-double.h>.
25877 (llround): Define using libm_alias_double.
25878 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25879 <libm-alias-double.h>.
25880 (lround): Define using libm_alias_double.
25881 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25882 <libm-alias-double.h>.
25883 (copysign): Define using libm_alias_double.
25884 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25885 <libm-alias-double.h>.
25886 (llrint): Define using libm_alias_double.
25887 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25888 <libm-alias-double.h>.
25889 (llround): Define using libm_alias_double.
25890 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25891 <libm-alias-double.h>.
25892 (lrint): Define using libm_alias_double.
25893 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25894 <libm-alias-double.h>.
25895 (lround): Define using libm_alias_double.
25896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25897 <libm-alias-double.h>.
25898 (copysign): Define using libm_alias_double.
25899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25900 <libm-alias-double.h>.
25901 (llrint): Define using libm_alias_double.
25902 (lrint): Likewise.
25903 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25904 <libm-alias-double.h>.
25905 (llround): Define using libm_alias_double.
25906 (lround): Likewise.
25907 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25908 <libm-alias-double.h>.
25909 (logb): Define using libm_alias_double.
25910 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25911 <libm-alias-double.h>.
25912 (copysign): Define using libm_alias_double.
25913 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25914 <libm-alias-double.h>.
25915 (llrint): Define using libm_alias_double.
25916 (lrint): Likewise.
25917 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25918 <libm-alias-double.h>.
25919 (llround): Define using libm_alias_double.
25920 (lround): Likewise.
25921 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25922 <libm-alias-double.h>.
25923 (llround): Define using libm_alias_double.
25924 (lround): Likewise.
25925 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25926 <libm-alias-double.h>.
25927 (copysign): Define using libm_alias_double.
25928 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25929 <libm-alias-double.h>.
25930 (llrint): Define using libm_alias_double.
25931 (lrint): Likewise.
25932 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25933 <libm-alias-double.h>.
25934 (llround): Define using libm_alias_double.
25935 (lround): Likewise.
25936 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25937 <libm-alias-double.h>.
25938 (llrint): Define using libm_alias_double.
25939 (lrint): Likewise.
25940 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25941 <libm-alias-double.h>.
25942 (llround): Define using libm_alias_double.
25943 (lround): Likewise.
25944
25945 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25946
25947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25948 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25949 compat symbol based on llround.
25950
25951 * sysdeps/powerpc/power7/fpu/s_logb.c
25952 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25953 symbol based on __logb, not on logb.
25954 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25955 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25956 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25957 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25958
25959 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25960 (rint): Define using libm_alias_double.
25961 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25962 <libm-alias-double.h>.
25963 (modf): Define using libm_alias_double.
25964 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25965 <libm-alias-double.h>.
25966 (ceil): Define using libm_alias_double.
25967 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25968 <libm-alias-double.h>.
25969 (floor): Define using libm_alias_double.
25970 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25971 <libm-alias-double.h>.
25972 (nearbyint): Define using libm_alias_double.
25973 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25974 <libm-alias-double.h>.
25975 (rint): Define using libm_alias_double.
25976 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25977 <libm-alias-double.h>.
25978 (round): Define using libm_alias_double.
25979 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25980 <libm-alias-double.h>.
25981 (trunc): Define using libm_alias_double.
25982 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25983 <libm-alias-double.h>.
25984 (ceil): Define using libm_alias_double.
25985 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25986 Include <libm-alias-double.h>.
25987 (floor): Define using libm_alias_double.
25988 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25989 <libm-alias-double.h>.
25990 (modf): Define using libm_alias_double.
25991 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25992 Include <libm-alias-double.h>.
25993 (round): Define using libm_alias_double.
25994 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25995 Include <libm-alias-double.h>.
25996 (trunc): Define using libm_alias_double.
25997 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25998 <libm-alias-double.h>.
25999 (ceil): Define using libm_alias_double.
26000 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
26001 <libm-alias-double.h>.
26002 (floor): Define using libm_alias_double.
26003 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
26004 <libm-alias-double.h>.
26005 (round): Define using libm_alias_double.
26006 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
26007 <libm-alias-double.h>.
26008 (trunc): Define using libm_alias_double.
26009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
26010 <libm-alias-double.h>.
26011 (ceil): Define using libm_alias_double.
26012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
26013 <libm-alias-double.h>.
26014 (floor): Define using libm_alias_double.
26015 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
26016 <libm-alias-double.h>.
26017 (modf): Define using libm_alias_double.
26018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
26019 <libm-alias-double.h>.
26020 (round): Define using libm_alias_double.
26021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
26022 <libm-alias-double.h>.
26023 (trunc): Define using libm_alias_double.
26024 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
26025 <libm-alias-double.h>.
26026 (ceil): Define using libm_alias_double.
26027 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
26028 <libm-alias-double.h>.
26029 (floor): Define using libm_alias_double.
26030 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
26031 <libm-alias-double.h>.
26032 (nearbyint): Define using libm_alias_double.
26033 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
26034 <libm-alias-double.h>.
26035 (rint): Define using libm_alias_double.
26036 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
26037 <libm-alias-double.h>.
26038 (round): Define using libm_alias_double.
26039 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
26040 <libm-alias-double.h>.
26041 (trunc): Define using libm_alias_double.
26042 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
26043 <libm-alias-double.h>.
26044 (ceil): Define using libm_alias_double.
26045 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
26046 <libm-alias-double.h>.
26047 (floor): Define using libm_alias_double.
26048 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
26049 <libm-alias-double.h>.
26050 (round): Define using libm_alias_double.
26051 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
26052 <libm-alias-double.h>.
26053 (trunc): Define using libm_alias_double.
26054
26055 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
26056 (fabs): Define using libm_alias_double.
26057 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
26058 (fma): Define using libm_alias_double.
26059 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
26060 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
26061 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
26062 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
26063
26064 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26065
26066 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
26067
26068 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
26069 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
26070 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26071
26072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
26073 due redirect macro.
26074
26075 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
26076
26077 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
26078
26079 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26080
26081 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
26082 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
26083 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
26084 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
26085
26086 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26087 (libm-sysdep_routines): Add s_nearbyintf-generic and
26088 s_nearbyint-generic.
26089 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
26090 New file.
26091 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
26092 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
26093 Likewise.
26094 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
26095 Likewise.
26096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
26097 file.
26098 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26099 Likewise.
26100
26101 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26102 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26103 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26104 file.
26105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26107 Likewise.
26108 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26109 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26110 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26111
26112 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26113 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26114 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26115 file.
26116 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26117 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26118 Likewise.
26119 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26120 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26121 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26122
26123 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26124 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26125 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26126 file.
26127 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26129 Likewise.
26130 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26131 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26133
26134 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26135 (sysdep_calls): New rule.
26136 (sysdep_routines): Use sysdep_calls as base.
26137 (libm-sysdep_routines): Add generic rule for symbols shared with
26138 libc. Add s_copysign-generic and s_copysign-generic objects.
26139 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26140 New file.
26141 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26142 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26143 Likewise.
26144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26145 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26147
26148 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26149
26150 [BZ #22519]
26151 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26152 the list of locales to be built for testing.
26153 * localedata/is_IS.UTF-8.in: New file.
26154 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26155 on iso14651_t1.
26156
26157 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26158
26159 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26160 <libm-alias-float.h>.
26161 (fabsf): Define using libm_alias_float.
26162
26163 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26164
26165 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26166
26167 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26168
26169 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26170 <libm-alias-float.h>.
26171 (fabsf): Define using libm_alias_float.
26172 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26173 <libm-alias-float.h>.
26174 (lrintf): Define using libm_alias_float.
26175 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26176 <libm-alias-float.h>.
26177 (rintf): Define using libm_alias_float.
26178
26179 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26180 <libm-alias-double.h>.
26181 (fabs): Define using libm_alias_double.
26182 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26183 <libm-alias-double.h>.
26184 (lrint): Define using libm_alias_double.
26185 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26186 <libm-alias-double.h>.
26187 (rint): Define using libm_alias_double.
26188
26189 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26190 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26191 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26192 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26193 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26194 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26195 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26196 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26197 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26198 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26199 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26200 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26201 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26202 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26203 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26204 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26205 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26206 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26207 s_atan_template.c.
26208 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26209 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26210 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26211 s_ceil_template.c.
26212 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26213 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26214 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26215 s_cos_template.c.
26216 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26217 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26218 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26219 s_expm1_template.c.
26220 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26221 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26222 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26223 s_fabs_template.c.
26224 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26225 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26226 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26227 s_floor_template.c.
26228 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26229 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26230 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26231 s_frexp_template.c.
26232 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26233 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26234 s_lrint_template.c.
26235 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26236 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26237 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26238 s_modf_template.c.
26239 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26240 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26241 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26242 s_nearbyint_template.c.
26243 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26244 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26245 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26246 s_remquo_template.c.
26247 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26248 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26249 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26250 s_rint_template.c.
26251 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26252 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26253 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26254 s_sin_template.c.
26255 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26256 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26257 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26258 s_sincos_template.c.
26259 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26260 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26261 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26262 s_tan_template.c.
26263 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26264 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26265 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26266 s_tanh_template.c.
26267 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26268 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26269 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26270 s_trunc_template.c.
26271 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26272 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26273 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26274 s_atan.c instead of including s_atan.c.
26275 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26276 s_atanf.c instead of including s_atanf.c.
26277 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26278 s_atanl.c instead of including s_atanl.c.
26279 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26280 instead of s_atan.c.
26281 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26282 instead of s_atanf.c.
26283 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26284 instead of s_atanl.c.
26285
26286 * scripts/update-copyrights: Do not handle intl/plural.c
26287 specially.
26288
26289 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26290
26291 [BZ #22432]
26292 * configure.ac (BISON): Require to be present.
26293 * configure: Regenerated.
26294 * intl/Makefile (generated): Add plural.c.
26295 [$(BISON) != no]: Make code unconditional.
26296 (plural.c): Change rule to $(objpfx)plural.c.
26297 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26298 * intl/plural.c: Remove.
26299 * manual/install.texi (Tools for Compilation): Document bison as
26300 required.
26301 * INSTALL: Regenerated.
26302
26303 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26304
26305 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26306 <libm-alias-double.h>.
26307 (llrint): Define using libm_alias_double.
26308 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26309 <libm-alias-float.h>.
26310 (llrintf): Define using libm_alias_float.
26311 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26312 <libm-alias-ldouble.h>.
26313 (llrintl): Define using libm_alias_ldouble.
26314
26315 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26316 declare_mgen_alias instead of weak_alias.
26317 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26318 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26319 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26320
26321 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26322
26323 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26324 Add add_n-generic.
26325 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26326 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26327 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26328
26329 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26330 Add submul_1-generic.
26331 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26332 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26333 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26334
26335 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26336 Add addmul_1-generic.
26337 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26338 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26339 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26340
26341 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26342 Add sub_n-generic.
26343 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26344 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26345 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26346
26347 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26348 Add mul_1-generic.
26349 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26350 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26351 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26352
26353 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26354
26355 According to CLDR, collation rules for Serbian and Bosnian
26356 should be the same as for Croatian.
26357
26358 [BZ #22534]
26359 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26360 and to the list of locales to be built for testing.
26361 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26362 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26363 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26364 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26365
26366 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26367
26368 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26369 to make test case pass.
26370 * localedata/hr_HR.UTF-8.in: Add more test strings.
26371
26372 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26373
26374 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26375
26376 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26377
26378 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26379 the list of locales to built for testing.
26380 * localedata/hr_HR.UTF-8.in: New file.
26381
26382 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26383
26384 [BZ #10580]
26385 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26386 iso14651_t1.
26387 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26388 CLDR (except use ligatures for the digraphs, CLDR does not use
26389 the ligatures), add first_workday, some fixes in the date and time
26390 formats.
26391 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26392 for Đ and đ.
26393 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26394 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26395 Add int_p_cs_precedes and int_n_cs_precedes.
26396 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26397 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26398 LC_MONETARY now).
26399 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26400 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26401 name_miss.
26402 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26403 and lang_lib. Change postal_fmt.
26404
26405 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26406
26407 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26408 <setjmp.h>.
26409 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26410 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26411 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26412 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26413 * sysdeps/generic/setjmpP.h: New file.
26414 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26415 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26416 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26417 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26418 Add jmp_buf-ssp.sym.
26419 (tests): Add tst-saved_mask-1.
26420
26421 2017-11-30 Arjun Shankar <arjun@redhat.com>
26422
26423 [BZ #22375]
26424 CVE-2017-17426
26425 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26426 instead of request2size.
26427
26428 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26429
26430 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26431 (__lllrint): Remove alias.
26432 (lllrint): Likewise.
26433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26434 (__lllrintf): Likewise.
26435 (lllrintf): Likewise.
26436
26437 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26438 <libm-alias-float.h>.
26439 (copysignf): Define using libm_alias_float.
26440 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26441 <libm-alias-float.h>.
26442 (fabsf): Define using libm_alias_float.
26443 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26444 Include <libm-alias-float.h>.
26445 (copysignf): Define using libm_alias_float.
26446 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26447 <libm-alias-float.h>.
26448 (fabsf): Define using libm_alias_float.
26449 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26450 <libm-alias-float.h>.
26451 (fdimf): Define using libm_alias_float.
26452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26453 <libm-alias-float.h>.
26454 (fmaf): Define using libm_alias_float.
26455 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26456 <libm-alias-float.h>.
26457 (llrintf): Define using libm_alias_float.
26458 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26459 Include <libm-alias-float.h>.
26460 (nearbyintf): Define using libm_alias_float.
26461 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26462 <libm-alias-float.h>.
26463 (rintf): Define using libm_alias_float.
26464 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26465 <libm-alias-float.h>.
26466 (llrintf): Define using libm_alias_float.
26467 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26468 <libm-alias-float.h>.
26469 (lrintf): Define using libm_alias_float.
26470 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26471 <libm-alias-float.h>.
26472 (nearbyintf): Define using libm_alias_float.
26473 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26474 <libm-alias-float.h>.
26475 (rintf): Define using libm_alias_float.
26476 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26477 <libm-alias-float.h>.
26478 (ceilf): Define using libm_alias_float.
26479 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26480 <libm-alias-float.h>.
26481 (floorf): Define using libm_alias_float.
26482 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26483 <libm-alias-float.h>.
26484 (fmaf): Define using libm_alias_float.
26485 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26486 <libm-alias-float.h>.
26487 (lrintf): Define using libm_alias_float.
26488 (llrintf): Likewise.
26489 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26490 <libm-alias-float.h>.
26491 (nearbyintf): Define using libm_alias_float.
26492 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26493 <libm-alias-float.h>.
26494 (rintf): Define using libm_alias_float.
26495 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26496 <libm-alias-float.h>.
26497 (truncf): Define using libm_alias_float.
26498 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26499 <libm-alias-float.h>.
26500 (copysignf): Define using libm_alias_float.
26501 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26502 <libm-alias-float.h>.
26503 (fabsf): Define using libm_alias_float.
26504 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26505 <libm-alias-float.h>.
26506 (lrintf): Define using libm_alias_float.
26507 (llrintf): Likewise.
26508 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26509 <libm-alias-float.h>.
26510 (nearbyintf): Define using libm_alias_float.
26511 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26512 <libm-alias-float.h>.
26513 (rintf): Define using libm_alias_float.
26514
26515 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26516
26517 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26518 <libm-alias-double.h>.
26519 (copysign): Define using libm_alias_double.
26520 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26521 <libm-alias-double.h>.
26522 (fabs): Define using libm_alias_double.
26523 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26524 Include <libm-alias-double.h>.
26525 (copysign): Define using libm_alias_double.
26526 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26527 <libm-alias-double.h>.
26528 (fabs): Define using libm_alias_double.
26529 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26530 <libm-alias-double.h>.
26531 (fdim): Define using libm_alias_double.
26532 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26533 <libm-alias-double.h>.
26534 (fma): Define using libm_alias_double.
26535 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26536 <libm-alias-double.h>.
26537 (llrint): Define using libm_alias_double.
26538 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26539 Include <libm-alias-double.h>.
26540 (nearbyint): Define using libm_alias_double.
26541 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26542 <libm-alias-double.h>.
26543 (rint): Define using libm_alias_double.
26544 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26545 <libm-alias-double.h>.
26546 (fabs): Define using libm_alias_double.
26547 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26548 <libm-alias-double.h>.
26549 (llrint): Define using libm_alias_double.
26550 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26551 <libm-alias-double.h>.
26552 (nearbyint): Define using libm_alias_double.
26553 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26554 <libm-alias-double.h>.
26555 (rint): Define using libm_alias_double.
26556 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26557 <libm-alias-double.h>.
26558 (ceil): Define using libm_alias_double.
26559 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26560 <libm-alias-double.h>.
26561 (floor): Define using libm_alias_double.
26562 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26563 <libm-alias-double.h>.
26564 (fma): Define using libm_alias_double.
26565 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26566 <libm-alias-double.h>.
26567 (lrint): Define using libm_alias_double.
26568 (llrint): Likewise.
26569 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26570 <libm-alias-double.h>.
26571 (nearbyint): Define using libm_alias_double.
26572 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26573 <libm-alias-double.h>.
26574 (rint): Define using libm_alias_double.
26575 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26576 <libm-alias-double.h>.
26577 (trunc): Define using libm_alias_double.
26578 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26579 <libm-alias-double.h>.
26580 (copysign): Define using libm_alias_double.
26581 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26582 <libm-alias-double.h>.
26583 (fabs): Define using libm_alias_double.
26584 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26585 <libm-alias-double.h>.
26586 (lrint): Define using libm_alias_double.
26587 (llrint): Likewise.
26588 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26589 <libm-alias-double.h>.
26590 (nearbyint): Define using libm_alias_double.
26591 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26592 <libm-alias-double.h>.
26593 (rint): Define using libm_alias_double.
26594
26595 [BZ #22229]
26596 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26597 <math_ldbl_opt.h>.
26598 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26599
26600 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26601 SPARC --disable-multi-arch glibc variants.
26602
26603 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26604 <libm-alias-float.h>.
26605 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26606 if [SHARED].
26607 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26608 <libm-alias-float.h>.
26609 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26610 if [SHARED].
26611 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26612 <libm-alias-float.h>.
26613 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26614 if [SHARED].
26615 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26616 <libm-alias-float.h>.
26617 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26618 if [SHARED].
26619 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26620 <libm-alias-float.h>.
26621 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26622 if [SHARED].
26623 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26624 <libm-alias-float.h>.
26625 (ceilf): Define using libm_alias_float.
26626 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26627 <libm-alias-float.h>.
26628 (floorf): Define using libm_alias_float.
26629 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26630 <libm-alias-float.h>.
26631 (fmaf): Define using libm_alias_float.
26632 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26633 <libm-alias-float.h>.
26634 (nearbyintf): Define using libm_alias_float.
26635 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26636 <libm-alias-float.h>.
26637 (rintf): Define using libm_alias_float.
26638 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26639 <libm-alias-float.h>.
26640 (truncf): Define using libm_alias_float.
26641 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26642 (copysignf): Define using libm_alias_float.
26643 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26644 (cosf): Define using libm_alias_float.
26645 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26646 (fabsf): Define using libm_alias_float.
26647 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26648 (fmaxf): Define using libm_alias_float.
26649 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26650 (fminf): Define using libm_alias_float.
26651 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26652 (llrintf): Define using libm_alias_float.
26653 [!__ILP32__] (lrintf): Likewise.
26654 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26655 (sincosf): Define using libm_alias_float.
26656 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26657 (sinf): Define using libm_alias_float.
26658 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26659 (lrintf): Define using libm_alias_float.
26660
26661 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26662 <libm-alias-double.h>.
26663 (atan): Define using libm_alias_double.
26664 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26665 <libm-alias-double.h>.
26666 (ceil): Define using libm_alias_double.
26667 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26668 <libm-alias-double.h>.
26669 (floor): Define using libm_alias_double.
26670 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26671 <libm-alias-double.h>.
26672 (fma): Define using libm_alias_double.
26673 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26674 <libm-alias-double.h>.
26675 (nearbyint): Define using libm_alias_double.
26676 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26677 <libm-alias-double.h>.
26678 (rint): Define using libm_alias_double.
26679 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26680 <libm-alias-double.h>.
26681 (sin): Define using libm_alias_double.
26682 (cos): Likewise.
26683 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26684 <libm-alias-double.h>.
26685 (tan): Define using libm_alias_double.
26686 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26687 <libm-alias-double.h>.
26688 (trunc): Define using libm_alias_double.
26689 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26690 (copysign): Define using libm_alias_double.
26691 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26692 (fabs): Define using libm_alias_double.
26693 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26694 (fmax): Define using libm_alias_double.
26695 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26696 (fmin): Define using libm_alias_double.
26697 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26698 (llrint): Define using libm_alias_double.
26699 [!__ILP32__] (lrint): Likewise.
26700 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26701 (lrint): Define using libm_alias_double.
26702
26703 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26704
26705 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26706 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26707 objects.
26708 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26709 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26710 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26711 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26712 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26713 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26714
26715 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26716 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26717 objects.
26718 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26719 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26720 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26721 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26722 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26723 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26724
26725 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26726 (libm-sysdep_routines): Add s_nearbyint-generic and
26727 s_nearbyintf-generic objects.
26728 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26729 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26730 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26731 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26732 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26733 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26734
26735 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26736 Add s_finitef-generic and s_finite-generic objects.
26737 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26738 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26739 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26740 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26741 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26742 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26743
26744 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26745 Add s_isinff-generic and s_isinf-generic objects.
26746 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26747 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26748 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26749 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26750 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26751 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26752
26753 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26754 Add s_isnanf-generic and s_isnan-generic objects.
26755 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26756 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26757 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26758 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26759 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26760 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26761
26762 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26763 macro.
26764 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26765 rule.
26766 (sysdep_routines): Use sysdep_calls as base.
26767 (libm-sysdep_routines): Add generic rule for symbols shared with
26768 libc. Add s_signbit-generic and s_signbitf-generic objects.
26769 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26770 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26771 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26772 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26773 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26774 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26775
26776 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26777
26778 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26779 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26780 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26781 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26782 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26783 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26784 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26785 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26786 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26787 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26788 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26789 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26790 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26791 libm_alias_float_r.
26792 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26793 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26794 (logf): Likewise.
26795 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26796 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26797 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26798 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26799 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26800 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26801 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26802 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26803 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26804 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26805 libm_alias_float.
26806 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26807 (cosf): Likewise.
26808 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26809 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26810 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26811 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26812 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26813 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26814 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26815 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26816 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26817 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26818 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26819 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26820 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26821 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26822 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26823 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26824 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26825 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26826 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26827 libm_alias_float.
26828 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26829 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26830 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26831 * sysdeps/ia64/fpu/w_lgammaf_main.c
26832 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26833 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26834
26835 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26836 Alexandre Oliva <aoliva@redhat.com>
26837
26838 [BZ #17750]
26839 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26840 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26841 accents sorting.
26842 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26843 sorting.
26844 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26845 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26846 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26847 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26848 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26849 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26850 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26851 instead of “ifdef DIACRIT_BACKWARD”.
26852
26853 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26854
26855 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26856 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26857 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26858 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26859 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26860 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26861 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26862 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26863 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26864 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26865 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26866 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26867 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26868 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26869 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26870 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26871 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26872 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26874 ($(have-as-vis3) == yes): Remove conditional.
26875 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26876 Likewise.
26877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26878 file.
26879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26880 file.
26881 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26882 file.
26883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26884 file.
26885 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26886 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26887 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26888 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26889 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26890 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26891 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26892 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26893
26894 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26895
26896 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26897 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26898 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26899 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26900 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26901 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26902 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26903 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26904 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26905 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26906 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26907 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26908 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26909 libm_alias_double_r.
26910 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26911 (log): Likewise.
26912 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26913 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26914 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26915 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26916 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26917 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26918 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26919 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26920 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26921 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26922 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26923 libm_alias_double.
26924 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26925 (cos): Likewise.
26926 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26927 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26928 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26929 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26930 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26931 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26932 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26933 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26934 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26935 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26936 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26937 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26938 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26939 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26940 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26941 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26942 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26943 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26944 libm_alias_double.
26945 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26946 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26947 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26948 * sysdeps/ia64/fpu/w_lgamma_main.c
26949 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26950 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26951
26952 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26953
26954 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26955 address of $global$ into %dp register earlier. Use pc-relative
26956 instruction sequence for PIC case.
26957
26958 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26959
26960 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26961 (asinhf): Define using libm_alias_float.
26962 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26963 (atanf): Define using libm_alias_float.
26964 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26965 (cbrtf): Define using libm_alias_float.
26966 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26967 (ceilf): Define using libm_alias_float.
26968 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26969 (copysignf): Define using libm_alias_float.
26970 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26971 (expm1f): Define using libm_alias_float.
26972 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26973 (fabsf): Define using libm_alias_float.
26974 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26975 (floorf): Define using libm_alias_float.
26976 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26977 (fmaxf): Define using libm_alias_float.
26978 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26979 (fminf): Define using libm_alias_float.
26980 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26981 (frexpf): Define using libm_alias_float.
26982 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26983 (llrintf): Define using libm_alias_float.
26984 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26985 (logbf): Define using libm_alias_float.
26986 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26987 (lrintf): Define using libm_alias_float.
26988 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26989 (nearbyintf): Define using libm_alias_float.
26990 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26991 (remquof): Define using libm_alias_float.
26992 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26993 (rintf): Define using libm_alias_float.
26994 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26995 (truncf): Define using libm_alias_float.
26996 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26997 <libm-alias-float.h>.
26998 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26999 if [SHARED].
27000 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
27001 <libm-alias-float.h>.
27002 (expf): Define using libm_alias_float, or libm_alias_float_other
27003 if [SHARED].
27004 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
27005 <libm-alias-float.h>.
27006 (log2f): Define using libm_alias_float, or libm_alias_float_other
27007 if [SHARED].
27008 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
27009 <libm-alias-float.h>.
27010 (logf): Define using libm_alias_float, or libm_alias_float_other
27011 if [SHARED].
27012 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
27013 <libm-alias-float.h>.
27014 (powf): Define using libm_alias_float, or libm_alias_float_other
27015 if [SHARED].
27016 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
27017 <libm-alias-float.h>.
27018 (cosf): Define using libm_alias_float.
27019 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
27020 <libm-alias-float.h>.
27021 (sincosf): Define using libm_alias_float.
27022 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
27023 <libm-alias-float.h>.
27024 (sinf): Define using libm_alias_float.
27025 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27026 (fmaxf): Define using libm_alias_float.
27027 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
27028 (fminf): Define using libm_alias_float.
27029 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27030 <libm-alias-float.h>.
27031 (fmaf): Define using libm_alias_float.
27032
27033 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
27034 (asinh): Define using libm_alias_double.
27035 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
27036 (atan): Define using libm_alias_double.
27037 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
27038 (cbrt): Define using libm_alias_double.
27039 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
27040 (ceil): Define using libm_alias_double.
27041 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
27042 (copysign): Define using libm_alias_double.
27043 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
27044 (expm1): Define using libm_alias_double.
27045 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
27046 (fabs): Define using libm_alias_double.
27047 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
27048 (fdim): Define using libm_alias_double.
27049 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
27050 (floor): Define using libm_alias_double.
27051 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
27052 (fmax): Define using libm_alias_double.
27053 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
27054 (fmin): Define using libm_alias_double.
27055 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
27056 (frexp): Define using libm_alias_double.
27057 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
27058 (llrint): Define using libm_alias_double.
27059 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
27060 (logb): Define using libm_alias_double.
27061 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
27062 (lrint): Define using libm_alias_double.
27063 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
27064 (nearbyint): Define using libm_alias_double.
27065 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
27066 (remquo): Define using libm_alias_double.
27067 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
27068 (rint): Define using libm_alias_double.
27069 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
27070 (trunc): Define using libm_alias_double.
27071 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
27072 (fmax): Define using libm_alias_double.
27073 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
27074 (fmin): Define using libm_alias_double.
27075 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
27076 (fma): Define using libm_alias_double.
27077
27078 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
27079
27080 [BZ #22370]
27081 * elf/dl-hwcaps.c (ROUND): Removed.
27082 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
27083 and ELF_NOTE_NEXT_OFFSET.
27084 * elf/dl-load.c (ROUND): Removed.
27085 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27086 * elf/readelflib.c (ROUND): Removed.
27087 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27088 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
27089 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
27090 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
27091
27092 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27093
27094 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27095 [!__fmaf] (fmaf): Define using libm_alias_float.
27096
27097 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
27098 [!__fma] (fma): Define using libm_alias_double.
27099 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
27100
27101 2017-11-28 Mike FABIAN <mfabian@redhat.com>
27102
27103 [BZ #22336]
27104 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
27105 and implement the collation rules for cs from CLDR on top of that.
27106 * Makefile: Add cs_CZ.UTF-8 to test-input.
27107 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27108
27109 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27110
27111 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27112
27113 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27114 Icarus Sparry <icarus.w.sparry@intel.com>
27115
27116 * benchtests/Makefile:Add BENCHSET to allow subsets of
27117 benchmarks to be run.
27118 * benchtests/README: Add documentation for: Running subsets of
27119 benchmarks.
27120
27121 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27122
27123 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27124 range of tests names.
27125
27126 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27127 result from property and remove "max", min" and "mean" from
27128 required properties based on benchtests/bench-skeleton.c.
27129
27130 2017-11-28 Florian Weimer <fweimer@redhat.com>
27131
27132 [BZ #20826]
27133 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27134 due to Internet requirement.
27135 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27136 tst-getaddrinfo5.
27137 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27138
27139 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27140
27141 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27142 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27143 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27144 (sysdep_routines): Add memset-ultra1.
27145 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27146 file.
27147 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27148 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27149 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27150 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27151 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27152 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27153 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27154 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27155
27156 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27157 file.
27158 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27159 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27160 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27161 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27162 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27163 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27164 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27165 macro.
27166 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27167 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27168 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27169 (sysdep_routines): Add memcpy-ultra1.
27170 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27171 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27172
27173 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27174
27175 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27176 (cfloat_versions): Take function argument without trailing 'f'.
27177 Call libm_alias_float_other.
27178 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27179 * sysdeps/alpha/fpu/cargf.c: Likewise.
27180 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27181 * sysdeps/alpha/fpu/conjf.c: Likewise.
27182 * sysdeps/alpha/fpu/crealf.c: Likewise.
27183 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27184 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27185 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27186 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27187 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27188 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27189 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27190 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27191 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27192 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27193 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27194 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27195 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27196 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27197 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27198 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27199 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27200 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27201 (clog10f): Use libm_alias_float_other.
27202 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27203 (ceilf): Define using libm_alias_float.
27204 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27205 (copysignf): Define using libm_alias_float.
27206 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27207 (fabsf): Define using libm_alias_float.
27208 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27209 (floorf): Define using libm_alias_float.
27210 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27211 (fmaxf): Define using libm_alias_float.
27212 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27213 (fminf): Define using libm_alias_float.
27214 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27215 (lrintf): Define using libm_alias_float.
27216 (llrintf): Likewise.
27217 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27218 (lroundf): Define using libm_alias_float.
27219 (llroundf): Likewise.
27220 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27221 (rintf): Define using libm_alias_float.
27222 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27223 (truncf): Define using libm_alias_float.
27224
27225 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27226 (ceilf): Define using libm_alias_float.
27227 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27228 (floorf): Define using libm_alias_float.
27229 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27230 (fmaf): Define using libm_alias_float.
27231 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27232 (fmaxf): Define using libm_alias_float.
27233 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27234 (fminf): Define using libm_alias_float.
27235 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27236 (llrintf): Define using libm_alias_float.
27237 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27238 (llroundf): Define using libm_alias_float.
27239 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27240 (lrintf): Define using libm_alias_float.
27241 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27242 (lroundf): Define using libm_alias_float.
27243 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27244 <libm-alias-float.h>.
27245 (nearbyintf): Define using libm_alias_float.
27246 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27247 (rintf): Define using libm_alias_float.
27248 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27249 (roundf): Define using libm_alias_float.
27250 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27251 (truncf): Define using libm_alias_float.
27252
27253 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27254 (ceil): Define using libm_alias_double.
27255 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27256 (copysign): Define using libm_alias_double.
27257 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27258 (fabs): Define using libm_alias_double.
27259 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27260 (floor): Define using libm_alias_double.
27261 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27262 (fmax): Define using libm_alias_double.
27263 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27264 (fmin): Define using libm_alias_double.
27265 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27266 (lrint): Define using libm_alias_double.
27267 (llrint): Likewise.
27268 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27269 (lround): Define using libm_alias_double.
27270 (llround): Likewise.
27271 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27272 (rint): Define using libm_alias_double.
27273 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27274 (trunc): Define using libm_alias_double.
27275
27276 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27277 (libm_alias_double_r): Add semicolon after weak_alias call.
27278
27279 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27280
27281 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27282 (ceil): Define using libm_alias_double.
27283 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27284 (floor): Define using libm_alias_double.
27285 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27286 (fma): Define using libm_alias_double.
27287 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27288 (fmax): Define using libm_alias_double.
27289 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27290 (fmin): Define using libm_alias_double.
27291 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27292 (llrint): Define using libm_alias_double.
27293 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27294 (llround): Define using libm_alias_double.
27295 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27296 (lrint): Define using libm_alias_double.
27297 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27298 (lround): Define using libm_alias_double.
27299 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27300 (nearbyint): Define using libm_alias_double.
27301 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27302 (rint): Define using libm_alias_double.
27303 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27304 (round): Define using libm_alias_double.
27305 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27306 (trunc): Define using libm_alias_double.
27307
27308 2017-11-27 Florian Weimer <fweimer@redhat.com>
27309
27310 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27311 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27312 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27313 (tests): Add tst-mlock2.
27314 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27315 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27316 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27317 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27318 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27319 for mlock. Document mlock2.
27320
27321 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27322
27323 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27324 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27325 Likewise.
27326 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27327 Likewise.
27328 * sysdeps/x86/Makeconfig: New file.
27329 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27330 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27331 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27332 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27333 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27334 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27335 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27336 Likewise.
27337 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27338 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27339 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27340 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27341 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27342 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27343 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27344 * manual/math.texi (Mathematics): Document support for _Float64x.
27345 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27346 * stdlib/Versions (GLIBC_2.27): Likewise.
27347 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27348 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27349 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27350 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27351 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27352 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27353 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27354 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27355 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27356 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27357 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27358 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27360 Likewise.
27361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27362 Likewise.
27363 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27364 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27365 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27366 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27367 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27368 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27369 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27370 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27371 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27372 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27373 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27374 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27375 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27376 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27377
27378 2017-11-27 Andreas Schwab <schwab@suse.de>
27379
27380 * elf/Makefile (dl-routines): Add dl-sort-maps.
27381 * elf/dl-sort-maps.c: New file.
27382 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27383 (_dl_sort_maps): Declare.
27384 * elf/dl-fini.c (_dl_sort_fini): Remove.
27385 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27386 * elf/dl-close.c (_dl_close_worker): Likewise.
27387 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27388 open-coding it.
27389 * elf/dl-open.c (dl_open_worker): Likewise.
27390
27391 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27392
27393 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27394 using libm_alias_float128.
27395 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27396 Likewise.
27397 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27398 Likewise.
27399 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27400 (setpayloadsigf128): Likewise.
27401 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27402 Likewise.
27403 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27404 Likewise.
27405
27406 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27407 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27408 -mfloat128 to CFLAGS.
27409 ($(foreach
27410 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27411 Likewise.
27412 (CFLAGS-libm-test-support-float64x.c): New variable.
27413 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27414 $(f128-loader-link) to gnulib-tests.
27415
27416 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27417 (libm_alias_float128_other_r): If
27418 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27419 alias.
27420 (libm_alias_float128_r): Add semicolon after weak_alias call.
27421 * sysdeps/generic/libm-alias-ldouble.h
27422 (libm_alias_ldouble_other_r_f128): New macro.
27423 (libm_alias_ldouble_other_r_f64x): Likewise.
27424 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27425 and libm_alias_ldouble_other_r_f64x.
27426 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27427 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27428 (libm_alias_ldouble_other_r_f128): New macro.
27429 (libm_alias_ldouble_other_r_f64x): Likewise.
27430 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27431 and libm_alias_ldouble_other_r_f64x.
27432
27433 * stdlib/strfroml.c: Always include <stdlib.h>.
27434 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27435 undefine as macro and define as weak alias.
27436 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27437 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27438 <stdlib.h>.
27439 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27440 Define and later undefine as macro and define as weak alias.
27441
27442 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27443 Define and later undefine as macro. Define as weak alias if
27444 [!USE_WIDE_CHAR].
27445 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27446 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27447 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27448 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27449 Define and later undefine as macro. Define as weak alias if
27450 [!USE_WIDE_CHAR].
27451 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27452 Define and later undefine as macro. Define as weak alias if
27453 [USE_WIDE_CHAR].
27454 * sysdeps/ieee754/float128/strtof128_l.c
27455 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27456 Define and later undefine as macro. Define as weak alias if
27457 [!USE_WIDE_CHAR].
27458 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27459 Define and later undefine as macro. Define as weak alias if
27460 [USE_WIDE_CHAR].
27461 * sysdeps/ieee754/ldbl-128/strtold_l.c
27462 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27463 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27464 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27465 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27466 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27467 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27468 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27469 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27470 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27471 * sysdeps/ieee754/ldbl-96/strtold_l.c
27472 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27473 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27474 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27475 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27476
27477 * math/test-float64x.h: New file.
27478 * math/Makefile (type-float64x-yes): New variable.
27479 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27480
27481 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27482 function-like macro.
27483 (min_of_type_): Likewise.
27484 (min_of_type_l): Likewise.
27485 (min_of_type_f128): Likewise.
27486 (min_of_type): Pass () as last argument of __MATH_TG.
27487
27488 * stdlib/tst-strtod-round-skeleton.c
27489 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27490 headers.
27491
27492 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27493 for combinations of long double with _Float64 and _Float64x.
27494
27495 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27496 (__DECL_SIMD_cosf32): Likewise.
27497 (__DECL_SIMD_cosf64): Likewise.
27498 (__DECL_SIMD_cosf32x): Likewise.
27499 (__DECL_SIMD_cosf64x): Likewise.
27500 (__DECL_SIMD_cosf128x): Likewise.
27501 (__DECL_SIMD_sinf16): Likewise.
27502 (__DECL_SIMD_sinf32): Likewise.
27503 (__DECL_SIMD_sinf64): Likewise.
27504 (__DECL_SIMD_sinf32x): Likewise.
27505 (__DECL_SIMD_sinf64x): Likewise.
27506 (__DECL_SIMD_sinf128x): Likewise.
27507 (__DECL_SIMD_sincosf16): Likewise.
27508 (__DECL_SIMD_sincosf32): Likewise.
27509 (__DECL_SIMD_sincosf64): Likewise.
27510 (__DECL_SIMD_sincosf32x): Likewise.
27511 (__DECL_SIMD_sincosf64x): Likewise.
27512 (__DECL_SIMD_sincosf128x): Likewise.
27513 (__DECL_SIMD_logf16): Likewise.
27514 (__DECL_SIMD_logf32): Likewise.
27515 (__DECL_SIMD_logf64): Likewise.
27516 (__DECL_SIMD_logf32x): Likewise.
27517 (__DECL_SIMD_logf64x): Likewise.
27518 (__DECL_SIMD_logf128x): Likewise.
27519 (__DECL_SIMD_expf16): Likewise.
27520 (__DECL_SIMD_expf32): Likewise.
27521 (__DECL_SIMD_expf64): Likewise.
27522 (__DECL_SIMD_expf32x): Likewise.
27523 (__DECL_SIMD_expf64x): Likewise.
27524 (__DECL_SIMD_expf128x): Likewise.
27525 (__DECL_SIMD_powf16): Likewise.
27526 (__DECL_SIMD_powf32): Likewise.
27527 (__DECL_SIMD_powf64): Likewise.
27528 (__DECL_SIMD_powf32x): Likewise.
27529 (__DECL_SIMD_powf64x): Likewise.
27530 (__DECL_SIMD_powf128x): Likewise.
27531
27532 * stdlib/Versions (libc): Move entries for wcstof128 and
27533 wcstof128_l to ....
27534 * wcsmbs/Versions (libc): ... here.
27535 Include <float128-abi.h>.
27536
27537 2017-11-24 Florian Weimer <fweimer@redhat.com>
27538
27539 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27540 bits/mman-shared.h.
27541 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27542 <bits/mman-shared.h>.
27543 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27544 to ...
27545 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27546 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27547 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27548 <bits/mman-shared.h>.
27549
27550 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27551
27552 [BZ #22457]
27553 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27554 posix_memalign/free.
27555 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27556
27557 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27558
27559 [BZ #22469]
27560 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27561 and implement the collation rules for pl from CLDR on top of that.
27562 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27563 of locales to be built for testing.
27564 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27565
27566 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27567
27568 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27569 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27570 libm_alias_ldouble_other.
27571 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27572 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27573 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27574 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27575 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27576 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27577 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27578 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27579 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27580 libm_alias_ldouble_r.
27581 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27582 libm_alias_ldouble_other.
27583 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27584 (log10l): Likewise.
27585 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27586 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27587 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27588 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27589 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27590 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27591 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27592 (atan2l): Likewise.
27593 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27594 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27595 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27596 libm_alias_ldouble.
27597 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27598 (cosl): Likewise.
27599 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27600 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27601 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27602 (expl): Likewise.
27603 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27604 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27605 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27606 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27607 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27608 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27609 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27610 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27611 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27612 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27613 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27614 libm_alias_ldouble.
27615 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27616 libm_alias_ldouble_other.
27617 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27618 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27619 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27620 libm_alias_ldouble.
27621 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27622 libm_alias_ldouble_other.
27623 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27624 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27625 * sysdeps/ia64/fpu/w_lgammal_main.c
27626 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27627 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27628
27629 2017-11-23 Florian Weimer <fweimer@redhat.com>
27630
27631 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27632 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27633 alike. Remove freeres marker.
27634 * malloc/arena.c (arena_thread_freeres): Call
27635 tcache_thread_shutdown.
27636
27637 2017-11-23 Florian Weimer <fweimer@redhat.com>
27638
27639 [BZ #22459]
27640 Export nscd hash function as __nss_hash.
27641 * include/nss.h (__nss_hash): Declare.
27642 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27643 symbol.
27644 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27645 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27646 of __nscd_hash.
27647 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27648 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27649 * nss/Makefiles (routines): Add nss_hash.
27650 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27651 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27652 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27653 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27654
27655 2017-11-23 Florian Weimer <fweimer@redhat.com>
27656
27657 [BZ #22478]
27658 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27659 Return error code, not -1.
27660 * signal/tst-sigwait-eintr.c: New file.
27661 * signal/Makefile (tests): Add tst-sigwait-eintr.
27662
27663 2017-11-23 Florian Weimer <fweimer@redhat.com>
27664
27665 Linux: Add memfd_create system call wrapper
27666 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27667 tst-memfd_create.
27668 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27669 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27670 [__USE_GNU] (memfd_create): Declare.
27671 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27672 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27673 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27674 * sysdeps/unix/sysv/linux/**.abilist: Update.
27675 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27676
27677 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27678
27679 * localedata/gen-locale.sh: Fix typo in variable name.
27680
27681 * resolv/res_debug.c (p_secstodate): Condition definition on
27682 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27683 directly as __p_secstodate, and as a compat symbol. Do not use
27684 libresolv_hidden_def.
27685 * resolv/resolv.h (p_secstodate): Remove macro and function
27686 declaration.
27687 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27688 using p_secstodate.
27689 * include/resolv.h (__p_secstodate): Do not use
27690 libresolv_hidden_proto.
27691 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27692 (tests-internal): ... here.
27693 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27694 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27695 and declare and use __p_secstodate and use compat_symbol_reference
27696 in that case.
27697 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27698 implementation returning 77.
27699
27700 [BZ #22463]
27701 * resolv/res_debug.c: Include <libc-diag.h>.
27702 (p_secstodate): Assert time_t at least as wide as u_long. On
27703 overflow, use integer seconds since the epoch as output, or use
27704 "<overflow>" as output and set errno to EOVERFLOW if integer
27705 seconds since the epoch would be 14 or more characters.
27706 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27707 for sprintf call.
27708 * resolv/tst-p_secstodate.c: New file.
27709 * resolv/Makefile (tests): Add tst-p_secstodate.
27710 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27711
27712 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27713 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27714 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27715
27716 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27717
27718 * posix/regcomp.c (init_word_char): Add comments.
27719
27720 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27721
27722 [BZ #22447]
27723 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27724 strlen to compute length of ut_user and set trailing NUL byte of
27725 result explicitly.
27726
27727 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27728
27729 [BZ #15537]
27730 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27731 using “copy "iso14651_t1"” and then implementing the
27732 collation rules for lv from CLDR on top of that.
27733 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27734 of locales to be built for testing.
27735 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27736 sorting.
27737
27738 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27739
27740 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27741 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27742 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27743 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27744 [__USE_MISC] (MADV_HWPOISON): New macro.
27745 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27746
27747 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27748
27749 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27750 -Wmissing-braces on GCC 4.9.
27751
27752 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27753
27754 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27755 * sysdeps/s390/s390-32/start.S (_start): Likewise
27756 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27757 (thread_start): Likewise.
27758 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27759 (thread_start): Likewise.
27760 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27761 (__makecontext_ret): Likewise.
27762 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27763 (__makecontext_ret): Likewise.
27764
27765 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27766
27767 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27768 __wcschrnul): Remove attribute_hidden.
27769
27770 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27771
27772 regex: don't assume uint64_t or uint32_t
27773 This avoids -Werror=overflow errors for 32-bit systems in
27774 the 64-bit case. Problem reported by Joseph Myers in:
27775 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27776 Also, when this code is used in Gnulib it ports to platforms
27777 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27778 them, and on some 32-bit compilers there is no uint64_t.
27779 Problem reported by Gianluigi Tiesi in:
27780 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27781 * posix/regcomp.c (init_word_char): Don't assume that the types
27782 uint64_t and uint32_t exist. Adapted from Gnulib patch
27783 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27784 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27785
27786 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27787
27788 * sysdeps/aarch64/memset-reg.h: New file.
27789 * sysdeps/aarch64/memset.S: Use it.
27790 (__memset): Rename to MEMSET macro.
27791 [ZVA_MACRO]: Use zva_macro.
27792 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27793 Add memset_generic and memset_falkor.
27794 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27795 (__libc_ifunc_impl_list): Add memset ifuncs.
27796 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27797 local variable zva_size.
27798 * sysdeps/aarch64/multiarch/memset.c: New file.
27799 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27800 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27801 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27802 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27803 (DCZID_DZP_MASK): New macro.
27804 (DCZID_BS_MASK): Likewise.
27805 (init_cpu_features): Read and set zva_size.
27806 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27807 (struct cpu_features): New member zva_size.
27808
27809 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27810 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27811 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27812
27813 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27814 backwards. Fix timing computation.
27815 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27816 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27817 on memset by N at a time. Fix timing computation.
27818
27819 2017-11-20 Florian Weimer <fweimer@redhat.com>
27820
27821 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27822 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27823
27824 2017-11-19 Florian Weimer <fweimer@redhat.com>
27825
27826 manual: Document mprotect
27827 * manual/memory.texi (Memory Protection): New section.
27828 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27829 documentation of PROT_* flags and reference the Memory Protection
27830 section instead.
27831
27832 2017-11-19 Florian Weimer <fweimer@redhat.com>
27833
27834 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27835 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27836 (Scatter-Gather): ... to here. Remove misleading comment.
27837
27838 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27839
27840 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27841 style.
27842
27843 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27844 when /proc/<pid>/setgroups does not exist.
27845
27846 2017-11-18 Florian Weimer <fweimer@redhat.com>
27847
27848 * sysdeps/unix/sysv/linux/tst-ttyname.c
27849 (become_root_in_mount_ns): Remove.
27850 (do_in_chroot_1): Call support_enter_mount_namespace.
27851 (do_in_chroot_2): Likewise.
27852 (do_test): Call support_become_root early.
27853
27854 2017-11-18 Florian Weimer <fweimer@redhat.com>
27855
27856 * support/namespace.h (support_enter_mount_namespace): Declare.
27857 * support/support_enter_mount_namespace.c: New file.
27858 * support/Makefile (libsupport-routines): Add
27859 support_enter_mount_namespace.
27860
27861 2017-11-18 Florian Weimer <fweimer@redhat.com>
27862
27863 * support/temp_file.c (support_create_temp_directory): Use
27864 test_dir and do not rely on the presence of the XXXXXX suffix.
27865 * support/temp_file.h (support_create_temp_directory): Update
27866 comment.
27867 * support/tst-xreadlink.c (do_test): Adjust.
27868 * support/support_chroot.c (support_chroot_create): Likewise.
27869
27870 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27871
27872 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27873 macro.
27874 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27875 htm-no-suspend.
27876
27877 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27878
27879 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27880 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27881 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27882 (ceill): Define using libm_alias_ldouble.
27883 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27884 <libm-alias-ldouble.h>.
27885 (copysignl): Define using libm_alias_ldouble.
27886 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27887 (fabsl): Define using libm_alias_ldouble.
27888 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27889 (floorl): Define using libm_alias_ldouble.
27890 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27891 (fmaxl): Define using libm_alias_ldouble.
27892 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27893 (fminl): Define using libm_alias_ldouble.
27894 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27895 (llrintl): Define using libm_alias_ldouble.
27896 (lrintl): Likewise.
27897 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27898 <libm-alias-ldouble.h>.
27899 (nearbyintl): Define using libm_alias_ldouble.
27900 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27901 (truncl): Define using libm_alias_ldouble.
27902 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27903 <libm-alias-ldouble.h>.
27904 (lrintl): Define using libm_alias_ldouble.
27905
27906 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27907 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27908 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27909 (asinhl): Define using libm_alias_ldouble.
27910 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27911 (atanl): Define using libm_alias_ldouble.
27912 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27913 (cbrtl): Define using libm_alias_ldouble.
27914 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27915 (ceill): Define using libm_alias_ldouble.
27916 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27917 (copysignl): Define using libm_alias_ldouble.
27918 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27919 (fabsl): Define using libm_alias_ldouble.
27920 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27921 (floorl): Define using libm_alias_ldouble.
27922 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27923 (fmaxl): Define using libm_alias_ldouble.
27924 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27925 (fminl): Define using libm_alias_ldouble.
27926 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27927 (frexpl): Define using libm_alias_ldouble.
27928 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27929 (llrintl): Define using libm_alias_ldouble.
27930 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27931 (logbl): Define using libm_alias_ldouble.
27932 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27933 (lrintl): Define using libm_alias_ldouble.
27934 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27935 (nearbyintl): Define using libm_alias_ldouble.
27936 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27937 (nextafterl): Define using libm_alias_ldouble.
27938 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27939 (remquol): Define using libm_alias_ldouble.
27940 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27941 (rintl): Define using libm_alias_ldouble.
27942 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27943 (truncl): Define using libm_alias_ldouble.
27944 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27945 (fmaxl): Define using libm_alias_ldouble.
27946 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27947 (fminl): Define using libm_alias_ldouble.
27948
27949 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27950 to C syntax instead of availability and properties of types.
27951 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27952 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27953 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27954 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27955 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27956 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27957
27958 2017-11-17 Florian Weimer <fweimer@redhat.com>
27959
27960 support_become_root: Enable file creation in namespaces.
27961 * support/support_become_root.c (setup_mapping): New function.
27962 (support_become_root): Call it.
27963
27964 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27965
27966 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27967 macro.
27968
27969 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27970
27971 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27972 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27973
27974 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27975
27976 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27977
27978 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27979 version to 4.14.
27980
27981 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27982
27983 * INSTALL: Fix botched up regeneration.
27984
27985 * NEWS: Update sourceare link to https.
27986 * configure.ac: Likewise.
27987 * crypt/md5test-giant.c: Likewise.
27988 * dlfcn/bug-atexit1.c: Likewise.
27989 * dlfcn/bug-atexit2.c: Likewise.
27990 * localedata/README: Likewise.
27991 * malloc/tst-mallocfork.c: Likewise.
27992 * manual/install.texi: Likewise.
27993 * nptl/tst-pthread-getattr.c: Likewise.
27994 * stdio-common/tst-fgets.c: Likewise.
27995 * stdio-common/tst-fwrite.c: Likewise.
27996 * sunrpc/Makefile: Likewise.
27997 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27998 * wcsmbs/tst-mbrtowc2.c: Likewise.
27999 * configure: Regenerate.
28000 * INSTALL: Regenerate.
28001
28002 2017-11-15 Martin Sebor <msebor@redhat.com>
28003
28004 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
28005 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
28006 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
28007
28008 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28009
28010 [BZ #22145]
28011 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
28012 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
28013
28014 [BZ #22145]
28015 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
28016 Defer is_pty check until end of the function.
28017 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28018
28019 [BZ #22145]
28020 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
28021 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
28022 (ttyname): Likewise.
28023 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28024 (__ttyname_r): Likewise.
28025
28026 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
28027 int to bool.
28028
28029 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
28030
28031 * manual/terminal.texi (Is It a Terminal):
28032 Mention ENODEV for ttyname and ttyname_r.
28033
28034 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28035
28036 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
28037 constant and macro.
28038
28039 * sysdeps/unix/sysv/linux/bits/mman-linux.h
28040 [__USE_MISC] (MADV_WIPEONFORK): New macro.
28041 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28042 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28043 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
28044 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28045
28046 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28047
28048 * signal/sigrelse.c (sigrelse): Optimize implementation.
28049
28050 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
28051 (__sigpause): Rely on __sigsuspend to implement single thread
28052 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
28053
28054 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28055
28056 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28057 kernel version to 4.14.
28058
28059 2017-11-15 Steve Ellcey <sellcey@cavium.com>
28060
28061 [BZ #22442]
28062 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
28063 Check if ifname is too long.
28064
28065 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28066
28067 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
28068
28069 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28070
28071 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
28072 was accidentally lost.
28073
28074 2017-11-15 Mike FABIAN <mfabian@redhat.com>
28075
28076 * localedata/locales/az_IR: Add standard copyright header.
28077
28078 2017-11-15 Florian Weimer <fweimer@redhat.com>
28079
28080 [BZ #22439]
28081 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
28082 not just the top one. Output a new "subheaps" statistic.
28083
28084 2017-11-15 Florian Weimer <fweimer@redhat.com>
28085
28086 [BZ #22408]
28087 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
28088 under the per-arena lock.
28089 * malloc/Makefile (tests): Add tst-malloc_info.
28090 (tst-malloc_info): Link with libpthread.
28091 * malloc/tst-malloc_info.c: New file.
28092
28093 2017-11-15 Joseph Myers <joseph@codesourcery.com>
28094
28095 [BZ #21660]
28096 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
28097 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
28098 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
28099 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
28100 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28101 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28102 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28103 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28104 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28105 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28106 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28107 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28108 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28109 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28110 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28111 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28112 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28113 (__floating_type): Likewise.
28114 (__real_integer_type): Likewise.
28115 (__complex_integer_type): Likewise.
28116 (__expr_is_real): Likewise.
28117 (__tgmath_real_type_sub): Likewise.
28118 (__tgmath_real_type): Likewise.
28119 (__tgmath_complex_type_sub): Likewise.
28120 (__tgmath_complex_type): Likewise.
28121 (__TGMATH_F128): Likewise.
28122 (__TGMATH_CF128): Likewise.
28123 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28124 new macros.
28125 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28126 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28127 Likewise.
28128 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28129 Likewise.
28130 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28131 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28132 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28133 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28134 Likewise.
28135 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28136 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28137 Likewise.
28138 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28139 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28140 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28141 Likewise.
28142 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28143 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28144 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28145 (cimag): Likewise.
28146 (creal): Likewise.
28147
28148 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28149
28150 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28151 for stpncpy calls for GCC 8.
28152 (test_strncat): Disable -Wstringop-truncation warning for strncat
28153 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28154 strncat call for GCC 7.
28155 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28156 calls for GCC 8.
28157 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28158 trailing NUL.
28159
28160 * string/bug-strncat1.c: Include <libc-diag.h>.
28161 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28162
28163 2017-11-13 Claude Paroz <claude@2xlibre.net>
28164
28165 [BZ #22387]
28166 * localedata/locales/aa_DJ: Improved readibility by replacing
28167 <Uxxxx> sequences in the ASCII printable range by their ASCII
28168 character equivalents.
28169 * localedata/locales/aa_ER: Likewise.
28170 * localedata/locales/aa_ER@saaho: Likewise.
28171 * localedata/locales/aa_ET: Likewise.
28172 * localedata/locales/af_ZA: Likewise.
28173 * localedata/locales/agr_PE: Likewise.
28174 * localedata/locales/ak_GH: Likewise.
28175 * localedata/locales/am_ET: Likewise.
28176 * localedata/locales/anp_IN: Likewise.
28177 * localedata/locales/ar_AE: Likewise.
28178 * localedata/locales/ar_BH: Likewise.
28179 * localedata/locales/ar_DZ: Likewise.
28180 * localedata/locales/ar_EG: Likewise.
28181 * localedata/locales/ar_IN: Likewise.
28182 * localedata/locales/ar_IQ: Likewise.
28183 * localedata/locales/ar_JO: Likewise.
28184 * localedata/locales/ar_KW: Likewise.
28185 * localedata/locales/ar_LB: Likewise.
28186 * localedata/locales/ar_LY: Likewise.
28187 * localedata/locales/ar_MA: Likewise.
28188 * localedata/locales/ar_OM: Likewise.
28189 * localedata/locales/ar_QA: Likewise.
28190 * localedata/locales/ar_SA: Likewise.
28191 * localedata/locales/ar_SD: Likewise.
28192 * localedata/locales/ar_SS: Likewise.
28193 * localedata/locales/ar_SY: Likewise.
28194 * localedata/locales/ar_TN: Likewise.
28195 * localedata/locales/ar_YE: Likewise.
28196 * localedata/locales/as_IN: Likewise.
28197 * localedata/locales/ast_ES: Likewise.
28198 * localedata/locales/ayc_PE: Likewise.
28199 * localedata/locales/az_AZ: Likewise.
28200 * localedata/locales/az_IR: Likewise.
28201 * localedata/locales/be_BY: Likewise.
28202 * localedata/locales/be_BY@latin: Likewise.
28203 * localedata/locales/bem_ZM: Likewise.
28204 * localedata/locales/ber_DZ: Likewise.
28205 * localedata/locales/ber_MA: Likewise.
28206 * localedata/locales/bg_BG: Likewise.
28207 * localedata/locales/bhb_IN: Likewise.
28208 * localedata/locales/bho_IN: Likewise.
28209 * localedata/locales/bi_VU: Likewise.
28210 * localedata/locales/bn_BD: Likewise.
28211 * localedata/locales/bn_IN: Likewise.
28212 * localedata/locales/bo_CN: Likewise.
28213 * localedata/locales/bo_IN: Likewise.
28214 * localedata/locales/br_FR: Likewise.
28215 * localedata/locales/brx_IN: Likewise.
28216 * localedata/locales/bs_BA: Likewise.
28217 * localedata/locales/byn_ER: Likewise.
28218 * localedata/locales/ca_AD: Likewise.
28219 * localedata/locales/ca_ES: Likewise.
28220 * localedata/locales/ca_FR: Likewise.
28221 * localedata/locales/ca_IT: Likewise.
28222 * localedata/locales/ce_RU: Likewise.
28223 * localedata/locales/chr_US: Likewise.
28224 * localedata/locales/cmn_TW: Likewise.
28225 * localedata/locales/crh_UA: Likewise.
28226 * localedata/locales/cs_CZ: Likewise.
28227 * localedata/locales/csb_PL: Likewise.
28228 * localedata/locales/cv_RU: Likewise.
28229 * localedata/locales/cy_GB: Likewise.
28230 * localedata/locales/da_DK: Likewise.
28231 * localedata/locales/de_AT: Likewise.
28232 * localedata/locales/de_BE: Likewise.
28233 * localedata/locales/de_CH: Likewise.
28234 * localedata/locales/de_DE: Likewise.
28235 * localedata/locales/de_IT: Likewise.
28236 * localedata/locales/de_LI: Likewise.
28237 * localedata/locales/de_LU: Likewise.
28238 * localedata/locales/doi_IN: Likewise.
28239 * localedata/locales/dv_MV: Likewise.
28240 * localedata/locales/dz_BT: Likewise.
28241 * localedata/locales/el_CY: Likewise.
28242 * localedata/locales/el_GR: Likewise.
28243 * localedata/locales/en_AG: Likewise.
28244 * localedata/locales/en_AU: Likewise.
28245 * localedata/locales/en_BW: Likewise.
28246 * localedata/locales/en_CA: Likewise.
28247 * localedata/locales/en_DK: Likewise.
28248 * localedata/locales/en_GB: Likewise.
28249 * localedata/locales/en_HK: Likewise.
28250 * localedata/locales/en_IE: Likewise.
28251 * localedata/locales/en_IL: Likewise.
28252 * localedata/locales/en_IN: Likewise.
28253 * localedata/locales/en_NG: Likewise.
28254 * localedata/locales/en_NZ: Likewise.
28255 * localedata/locales/en_PH: Likewise.
28256 * localedata/locales/en_SG: Likewise.
28257 * localedata/locales/en_US: Likewise.
28258 * localedata/locales/en_ZA: Likewise.
28259 * localedata/locales/en_ZM: Likewise.
28260 * localedata/locales/en_ZW: Likewise.
28261 * localedata/locales/eo: Likewise.
28262 * localedata/locales/es_AR: Likewise.
28263 * localedata/locales/es_BO: Likewise.
28264 * localedata/locales/es_CL: Likewise.
28265 * localedata/locales/es_CO: Likewise.
28266 * localedata/locales/es_CR: Likewise.
28267 * localedata/locales/es_CU: Likewise.
28268 * localedata/locales/es_DO: Likewise.
28269 * localedata/locales/es_EC: Likewise.
28270 * localedata/locales/es_ES: Likewise.
28271 * localedata/locales/es_GT: Likewise.
28272 * localedata/locales/es_HN: Likewise.
28273 * localedata/locales/es_MX: Likewise.
28274 * localedata/locales/es_NI: Likewise.
28275 * localedata/locales/es_PA: Likewise.
28276 * localedata/locales/es_PE: Likewise.
28277 * localedata/locales/es_PR: Likewise.
28278 * localedata/locales/es_PY: Likewise.
28279 * localedata/locales/es_SV: Likewise.
28280 * localedata/locales/es_US: Likewise.
28281 * localedata/locales/es_UY: Likewise.
28282 * localedata/locales/es_VE: Likewise.
28283 * localedata/locales/et_EE: Likewise.
28284 * localedata/locales/eu_ES: Likewise.
28285 * localedata/locales/eu_ES@euro: Likewise.
28286 * localedata/locales/fa_IR: Likewise.
28287 * localedata/locales/ff_SN: Likewise.
28288 * localedata/locales/fi_FI: Likewise.
28289 * localedata/locales/fil_PH: Likewise.
28290 * localedata/locales/fo_FO: Likewise.
28291 * localedata/locales/fr_BE: Likewise.
28292 * localedata/locales/fr_CA: Likewise.
28293 * localedata/locales/fr_CH: Likewise.
28294 * localedata/locales/fr_FR: Likewise.
28295 * localedata/locales/fr_LU: Likewise.
28296 * localedata/locales/fur_IT: Likewise.
28297 * localedata/locales/fy_DE: Likewise.
28298 * localedata/locales/fy_NL: Likewise.
28299 * localedata/locales/ga_IE: Likewise.
28300 * localedata/locales/gd_GB: Likewise.
28301 * localedata/locales/gez_ER: Likewise.
28302 * localedata/locales/gez_ET: Likewise.
28303 * localedata/locales/gl_ES: Likewise.
28304 * localedata/locales/gu_IN: Likewise.
28305 * localedata/locales/gv_GB: Likewise.
28306 * localedata/locales/ha_NG: Likewise.
28307 * localedata/locales/hak_TW: Likewise.
28308 * localedata/locales/he_IL: Likewise.
28309 * localedata/locales/hi_IN: Likewise.
28310 * localedata/locales/hif_FJ: Likewise.
28311 * localedata/locales/hne_IN: Likewise.
28312 * localedata/locales/hr_HR: Likewise.
28313 * localedata/locales/hsb_DE: Likewise.
28314 * localedata/locales/ht_HT: Likewise.
28315 * localedata/locales/hu_HU: Likewise.
28316 * localedata/locales/hy_AM: Likewise.
28317 * localedata/locales/i18n: Likewise.
28318 * localedata/locales/ia_FR: Likewise.
28319 * localedata/locales/id_ID: Likewise.
28320 * localedata/locales/ig_NG: Likewise.
28321 * localedata/locales/ik_CA: Likewise.
28322 * localedata/locales/is_IS: Likewise.
28323 * localedata/locales/it_CH: Likewise.
28324 * localedata/locales/it_IT: Likewise.
28325 * localedata/locales/iu_CA: Likewise.
28326 * localedata/locales/ja_JP: Likewise.
28327 * localedata/locales/ka_GE: Likewise.
28328 * localedata/locales/kk_KZ: Likewise.
28329 * localedata/locales/kl_GL: Likewise.
28330 * localedata/locales/kn_IN: Likewise.
28331 * localedata/locales/ko_KR: Likewise.
28332 * localedata/locales/kok_IN: Likewise.
28333 * localedata/locales/ks_IN: Likewise.
28334 * localedata/locales/ks_IN@devanagari: Likewise.
28335 * localedata/locales/ku_TR: Likewise.
28336 * localedata/locales/kw_GB: Likewise.
28337 * localedata/locales/ky_KG: Likewise.
28338 * localedata/locales/lb_LU: Likewise.
28339 * localedata/locales/lg_UG: Likewise.
28340 * localedata/locales/li_BE: Likewise.
28341 * localedata/locales/li_NL: Likewise.
28342 * localedata/locales/lij_IT: Likewise.
28343 * localedata/locales/ln_CD: Likewise.
28344 * localedata/locales/lo_LA: Likewise.
28345 * localedata/locales/lt_LT: Likewise.
28346 * localedata/locales/lv_LV: Likewise.
28347 * localedata/locales/lzh_TW: Likewise.
28348 * localedata/locales/mag_IN: Likewise.
28349 * localedata/locales/mai_IN: Likewise.
28350 * localedata/locales/mg_MG: Likewise.
28351 * localedata/locales/mhr_RU: Likewise.
28352 * localedata/locales/mi_NZ: Likewise.
28353 * localedata/locales/mk_MK: Likewise.
28354 * localedata/locales/ml_IN: Likewise.
28355 * localedata/locales/mn_MN: Likewise.
28356 * localedata/locales/mni_IN: Likewise.
28357 * localedata/locales/mr_IN: Likewise.
28358 * localedata/locales/ms_MY: Likewise.
28359 * localedata/locales/mt_MT: Likewise.
28360 * localedata/locales/my_MM: Likewise.
28361 * localedata/locales/nan_TW: Likewise.
28362 * localedata/locales/nan_TW@latin: Likewise.
28363 * localedata/locales/nb_NO: Likewise.
28364 * localedata/locales/nds_DE: Likewise.
28365 * localedata/locales/nds_NL: Likewise.
28366 * localedata/locales/ne_NP: Likewise.
28367 * localedata/locales/nhn_MX: Likewise.
28368 * localedata/locales/niu_NU: Likewise.
28369 * localedata/locales/niu_NZ: Likewise.
28370 * localedata/locales/nl_AW: Likewise.
28371 * localedata/locales/nl_BE: Likewise.
28372 * localedata/locales/nl_NL: Likewise.
28373 * localedata/locales/nn_NO: Likewise.
28374 * localedata/locales/nr_ZA: Likewise.
28375 * localedata/locales/nso_ZA: Likewise.
28376 * localedata/locales/oc_FR: Likewise.
28377 * localedata/locales/om_ET: Likewise.
28378 * localedata/locales/om_KE: Likewise.
28379 * localedata/locales/or_IN: Likewise.
28380 * localedata/locales/os_RU: Likewise.
28381 * localedata/locales/pa_IN: Likewise.
28382 * localedata/locales/pa_PK: Likewise.
28383 * localedata/locales/pap_AW: Likewise.
28384 * localedata/locales/pap_CW: Likewise.
28385 * localedata/locales/pl_PL: Likewise.
28386 * localedata/locales/ps_AF: Likewise.
28387 * localedata/locales/pt_BR: Likewise.
28388 * localedata/locales/pt_PT: Likewise.
28389 * localedata/locales/quz_PE: Likewise.
28390 * localedata/locales/raj_IN: Likewise.
28391 * localedata/locales/ro_RO: Likewise.
28392 * localedata/locales/ru_RU: Likewise.
28393 * localedata/locales/ru_UA: Likewise.
28394 * localedata/locales/rw_RW: Likewise.
28395 * localedata/locales/sa_IN: Likewise.
28396 * localedata/locales/sat_IN: Likewise.
28397 * localedata/locales/sc_IT: Likewise.
28398 * localedata/locales/sd_IN: Likewise.
28399 * localedata/locales/sd_IN@devanagari: Likewise.
28400 * localedata/locales/se_NO: Likewise.
28401 * localedata/locales/sgs_LT: Likewise.
28402 * localedata/locales/shs_CA: Likewise.
28403 * localedata/locales/si_LK: Likewise.
28404 * localedata/locales/sid_ET: Likewise.
28405 * localedata/locales/sk_SK: Likewise.
28406 * localedata/locales/sl_SI: Likewise.
28407 * localedata/locales/sm_WS: Likewise.
28408 * localedata/locales/so_DJ: Likewise.
28409 * localedata/locales/so_ET: Likewise.
28410 * localedata/locales/so_KE: Likewise.
28411 * localedata/locales/so_SO: Likewise.
28412 * localedata/locales/sq_AL: Likewise.
28413 * localedata/locales/sq_MK: Likewise.
28414 * localedata/locales/sr_ME: Likewise.
28415 * localedata/locales/sr_RS: Likewise.
28416 * localedata/locales/sr_RS@latin: Likewise.
28417 * localedata/locales/ss_ZA: Likewise.
28418 * localedata/locales/st_ZA: Likewise.
28419 * localedata/locales/sv_FI: Likewise.
28420 * localedata/locales/sv_SE: Likewise.
28421 * localedata/locales/sw_KE: Likewise.
28422 * localedata/locales/sw_TZ: Likewise.
28423 * localedata/locales/szl_PL: Likewise.
28424 * localedata/locales/ta_IN: Likewise.
28425 * localedata/locales/ta_LK: Likewise.
28426 * localedata/locales/tcy_IN: Likewise.
28427 * localedata/locales/te_IN: Likewise.
28428 * localedata/locales/tg_TJ: Likewise.
28429 * localedata/locales/th_TH: Likewise.
28430 * localedata/locales/the_NP: Likewise.
28431 * localedata/locales/ti_ER: Likewise.
28432 * localedata/locales/ti_ET: Likewise.
28433 * localedata/locales/tig_ER: Likewise.
28434 * localedata/locales/tk_TM: Likewise.
28435 * localedata/locales/tl_PH: Likewise.
28436 * localedata/locales/tn_ZA: Likewise.
28437 * localedata/locales/to_TO: Likewise.
28438 * localedata/locales/tpi_PG: Likewise.
28439 * localedata/locales/tr_CY: Likewise.
28440 * localedata/locales/tr_TR: Likewise.
28441 * localedata/locales/ts_ZA: Likewise.
28442 * localedata/locales/tt_RU: Likewise.
28443 * localedata/locales/tt_RU@iqtelif: Likewise.
28444 * localedata/locales/ug_CN: Likewise.
28445 * localedata/locales/uk_UA: Likewise.
28446 * localedata/locales/unm_US: Likewise.
28447 * localedata/locales/ur_IN: Likewise.
28448 * localedata/locales/ur_PK: Likewise.
28449 * localedata/locales/uz_UZ: Likewise.
28450 * localedata/locales/uz_UZ@cyrillic: Likewise.
28451 * localedata/locales/ve_ZA: Likewise.
28452 * localedata/locales/vi_VN: Likewise.
28453 * localedata/locales/wa_BE: Likewise.
28454 * localedata/locales/wae_CH: Likewise.
28455 * localedata/locales/wal_ET: Likewise.
28456 * localedata/locales/wo_SN: Likewise.
28457 * localedata/locales/xh_ZA: Likewise.
28458 * localedata/locales/yi_US: Likewise.
28459 * localedata/locales/yo_NG: Likewise.
28460 * localedata/locales/yue_HK: Likewise.
28461 * localedata/locales/yuw_PG: Likewise.
28462 * localedata/locales/zh_CN: Likewise.
28463 * localedata/locales/zh_HK: Likewise.
28464 * localedata/locales/zh_SG: Likewise.
28465 * localedata/locales/zh_TW: Likewise.
28466 * localedata/locales/zu_ZA: Likewise.
28467
28468 2017-11-13 Florian Weimer <fweimer@redhat.com>
28469
28470 * support/next_to_fault.h, support/next_to_fault.c: New files.
28471 * support/Makefile (libsupport-routines): Add next_to_fault.
28472 * resolv/tst-inet_pton.c (struct next_to_fault)
28473 (next_to_fault_allocate, next_to_fault_free): Remove.
28474 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28475
28476 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28477
28478 * elf/dl-support.c: Include <dl-procruntime.c>.
28479 * include/link.h: Include <link_map.h>.
28480 * sysdeps/generic/dl-procruntime.c: New file.
28481 * sysdeps/generic/link_map.h: Likewise.
28482 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28483 the writable ld.so namespace.
28484
28485 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28486
28487 timezone: pacify GCC -Wstringop-truncation
28488 Problem reported by Martin Sebor in:
28489 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28490 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28491
28492 2017-11-12 Florian Weimer <fweimer@redhat.com>
28493
28494 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28495 tst-xreadlink.
28496 (tests): Add tst-xreadlink.
28497 * support/support.h (xstrndup): Declare.
28498 * support/xunistd.h (xunlink, xreadlink): Declare.
28499 * support/temp_file.h (support_create_temp_directory): Declare.
28500 * support/temp_file.c (support_create_temp_directory): New function.
28501 * support/support_chroot.c (support_chroot_create): Use it.
28502 * support/xreadlink.c: New file.
28503 * support/xstrndup.c: Likewise.
28504 * support/xunlink.c: Likewise.
28505 * support/tst-xreadlink.c: Likewise.
28506
28507 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28508
28509 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28510
28511 2017-11-11 Florian Weimer <fweimer@redhat.com>
28512
28513 [BZ #22409]
28514 [BZ #22412]
28515 * resolv/res_comp.c (printable_string, binary_hnok)
28516 (binary_leading_dash): New functions.
28517 (res_hnok): Reimplement using these functions and ns_name_pton.
28518 (res_ownok): Likewise.
28519 (res_mailok): Reimplement using printable_string, ns_name_pton and
28520 binary_hnok.
28521 (res_dnok): Reimplement using printable_string and ns_name_pton.
28522 * resolv/tst-res_hnok.c (tests): Add additional tests.
28523 (LETTERDIGITS, PRINTABLE): Define.
28524 (do_test): Adjust one_char results.
28525
28526 2017-11-11 Florian Weimer <fweimer@redhat.com>
28527
28528 [BZ #22413]
28529 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28530 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28531
28532 2017-11-11 Florian Weimer <fweimer@redhat.com>
28533
28534 * resolv/tst-ns_name_pton.c: New file.
28535 * resolv/Makefile (tests): Add tst-ns_name_pton.
28536 (tst-ns_name_pton): Link against libresolv.
28537
28538 2017-11-11 Florian Weimer <fweimer@redhat.com>
28539
28540 * resolv/tst-res_hnok.c: New file.
28541 * resolv/Makefile (tests): Add tst-res_hnok.
28542 (tst-res_hnok): Link against libresolv.
28543
28544 2017-11-11 Florian Weimer <fweimer@redhat.com>
28545
28546 * resolv/tst-resolv-network.c: Use test framework instead explicit
28547 main function.
28548
28549 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28550
28551 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28552 <jmp_buf-macros.h>.
28553 [!_ISOMAC] (STR_HELPER): New.
28554 [!_ISOMAC] (STR): Likewise.
28555 [!_ISOMAC] (TEST_SIZE): Likewise.
28556 [!_ISOMAC] (TEST_ALIGN): Likewise.
28557 [!_ISOMAC] (TEST_OFFSET): Likewise.
28558 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28559 field offsets of jmp_buf as well as sigjmp_buf.
28560 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28561 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28562 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28563 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28564 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28565 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28566 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28567 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28568 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28569 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28570 Likewise.
28571 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28572 Likewise.
28573 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28575 Likewise.
28576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28577 Likewise.
28578 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28579 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28580 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28581 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28582 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28583 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28584 Likewise.
28585 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28586 Likewise.
28587 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28588 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28589 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28590
28591 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28592
28593 * include/float.h
28594 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28595 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28596 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28597 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28598 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28599 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28600 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28601 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28602 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28603 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28604 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28605 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28606 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28607 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28608 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28609 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28610 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28611 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28612 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28613 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28614 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28615 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28616 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28617 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28618 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28619 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28620 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28621 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28622 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28623 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28624 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28625 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28626 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28627 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28628 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28629 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28630 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28631 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28632 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28633 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28634 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28635 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28636 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28637 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28638 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28639 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28640 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28641 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28642 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28643 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28644 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28645 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28646 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28647 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28648 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28649 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28650 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28651 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28652 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28653 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28654 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28655 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28656 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28657 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28658 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28659 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28660 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28661 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28662 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28663 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28664 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28665 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28666 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28667 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28668 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28669 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28670 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28671 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28672 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28673 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28674 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28675 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28676 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28677 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28678 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28679 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28680 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28681 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28682
28683 * stdlib/tst-strtod.h (F16): New macro.
28684 (F32): Likewise.
28685 (F64): Likewise.
28686 (F32X): Likewise.
28687 (F64X): Likewise.
28688 (F128X): Likewise.
28689 (IF_FLOAT16): Likewise.
28690 (IF_FLOAT32): Likewise.
28691 (IF_FLOAT64): Likewise.
28692 (IF_FLOAT32X): Likewise.
28693 (IF_FLOAT64X): Likewise.
28694 (IF_FLOAT128X): Likewise.
28695 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28696 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28697 (STRTOD_TEST_FOREACH): Likewise.
28698 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28699 (CHOOSE_f64): Likewise.
28700 (CHOOSE_f32x): Likewise.
28701 (CHOOSE_f64x): Likewise.
28702
28703 2017-11-07 Andreas Schwab <schwab@suse.de>
28704
28705 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28706
28707 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28708
28709 [BZ #22403]
28710 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28711 to be escaped.
28712 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28713 to be escaped.
28714
28715 2017-11-07 Claude Paroz <claude@2xlibre.net>
28716
28717 [BZ #22403]
28718 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28719 to be escaped.
28720 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28721 to be escaped.
28722 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28723 to be escaped.
28724
28725 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28726
28727 [BZ #22298]
28728 * nptl/allocatestack.c (allocate_stack): Check if
28729 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28730 __PTHREAD_MUTEX_HAVE_PREV is defined.
28731 * nptl/descr.h (pthread): Likewise.
28732 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28733 Likewise.
28734 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28735 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28736 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28737 * sysdeps/nptl/bits/thread-shared-types.h
28738 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28739 defines.
28740 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28741 of __WORDSIZE for internal layout.
28742 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28743 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28744 instead of __WORDSIZE whether to use an union for __spins and __list
28745 fields.
28746 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28747 case.
28748 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28749 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28750 defines.
28751 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28752 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28753 Likewise.
28754 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28755 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28756 Likewise.
28757 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28758 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28759 Likewise.
28760 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28761 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28762 Likewise.
28763 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28764 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28765 Likewise.
28766 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28767 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28768 Likewise.
28769 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28770 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28771 Likewise.
28772 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28773 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28774 Likewise.
28775 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28776 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28777 Likewise.
28778 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28779 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28780 Likewise.
28781 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28782 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28783 Likewise.
28784 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28785 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28786 Likewise.
28787 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28788 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28789 Likewise.
28790 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28791 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28792 Likewise.
28793
28794 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28795 New macros.
28796 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28797 checks for expected input type size.
28798 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28799 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28800 Likewise.
28801 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28802 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28803 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28804 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28805 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28806 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28807 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28808 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28809 superflous runtime assert check.
28810 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28811 Likewise.
28812 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28813 Likewise.
28814 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28815 Likewise.
28816 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28817 Likewise.
28818 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28819 Likewise.
28820 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28821 Likewise.
28822 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28823 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28824 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28825 Likewise.
28826 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28827 Likewise.
28828 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28829 Likewise.
28830 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28831 Likewise.
28832 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28833 Likewise.
28834 * nptl/pthread_attr_setinheritsched.c
28835 (__pthread_attr_setinheritsched): Likewise.
28836 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28837 Likewise.
28838 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28839 Likewise.
28840 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28841 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28842 __old_pthread_attr_setstack): Likewise.
28843 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28844 Likewise.
28845 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28846 Likewise.
28847 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28848 Likewise.
28849 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28850 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28851 Likewise.
28852 * nptl/tst-typesizes.c: Remove file.
28853
28854 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28855 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28856 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28857 checks for internal pthread_mutex_t offsets.
28858 * sysdeps/aarch64/nptl/pthread-offsets.h
28859 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28860 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28861 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28862 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28863 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28864 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28865 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28866 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28867 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28868 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28869 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28870 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28871 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28872 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28873 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28874 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28875 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28876 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28877
28878 2017-11-07 Florian Weimer <fweimer@redhat.com>
28879
28880 * bits/mman-linux.h: Move ...
28881 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28882 comment.
28883 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28884 outdated comment.
28885
28886 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28887
28888 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28889 Redefine STRNLEN as __strnlen_power8.
28890
28891 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28892
28893 * signal/sighold.c (sighold): Optimize implementation.
28894
28895 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28896 __NR_rt_sigqueueinfo.
28897
28898 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28899 __sigtimedwait.
28900 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28901 assume __NR_rt_sigtimedwait.
28902 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28903 and add LIBC_CANCEL_HANDLED for cancellation marking.
28904 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28905
28906 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28907 (sysdeps_routines): Add memchr_noneon.
28908 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28909 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28910 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28911 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28912 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28913 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28914 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28915
28916 * sysdeps/arm/arm-ifunc.h: New file.
28917 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28918 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28919 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28920 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28921 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28922 (__memcpy_neon): Avoid create hidden alias.
28923 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28924 (__memcpy_vfp): Likewise.
28925 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28926 (sysdep_routines): Add memcpy_arm.
28927 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28928
28929 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28930
28931 [BZ #22362]
28932 * Makerules (make-link-multidir): New.
28933 * config.make.in (multidir): New.
28934 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28935 * configure: Regenerated.
28936 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28937 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28938 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28939 New target.
28940
28941 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28942
28943 [BZ #22402]
28944 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28945 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28946
28947 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28948
28949 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28950 to be escaped.
28951
28952 2017-11-04 Florian Weimer <fweimer@redhat.com>
28953
28954 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28955
28956 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28957
28958 * math/math.h [__HAVE_DISTINCT_FLOAT16
28959 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28960 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28961 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28962 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28963 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28964 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28965 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28966 (__MATH_TG_F32): New macro.
28967 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28968 (__MATH_TG_F64X): Likewise.
28969 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28970 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28971
28972 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28973
28974 * po/de.po: Update translations.
28975 * po/ru.po: Likewise.
28976
28977 2017-11-03 Florian Weimer <fweimer@redhat.com>
28978
28979 * manual/filesys.texi (Hard Links): Document linkat.
28980
28981 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28982
28983 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28984 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28985 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28986 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28987 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28988 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28989 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28990 the same as _Float128.
28991 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28992 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28993 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28994
28995 * stdlib/stdlib.h
28996 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28997 Declare.
28998 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28999 Likewise.
29000 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
29001 Likewise.
29002 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29003 (strtof32x): Likewise.
29004 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29005 (strtof64x): Likewise.
29006 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29007 (strtof128x): Likewise.
29008 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29009 (strfromf16): Likewise.
29010 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29011 (strfromf32): Likewise.
29012 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29013 (strfromf64): Likewise.
29014 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29015 (strfromf32x): Likewise.
29016 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29017 (strfromf64x): Likewise.
29018 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29019 (strfromf128x): Likewise.
29020 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
29021 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
29022 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
29023 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
29024 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
29025 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
29026
29027 2017-11-03 Richard Henderson <rth@twiddle.net>
29028
29029 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
29030
29031 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29032
29033 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
29034
29035 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29036
29037 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
29038 DT_TLSDESC_GOT initialization.
29039 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
29040 (_dl_tlsdesc_resolve_hold): Likewise.
29041 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
29042 (_dl_tlsdesc_resolve_hold): Likewise.
29043 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
29044 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29045
29046 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29047
29048 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
29049
29050 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29051
29052 [BZ #18572]
29053 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
29054 non-lazily for R_ARM_TLS_DESC.
29055
29056 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29057
29058 [BZ #17078]
29059 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
29060 R_ARM_TLS_DESC case.
29061 (elf_machine_lazy_rel): Remove the prelink check.
29062
29063 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29064
29065 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
29066 DT_TLSDESC_GOT initialization.
29067 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
29068 (_dl_tlsdesc_resolve_rela): Likewise.
29069 (_dl_tlsdesc_resolve_hold): Likewise.
29070 (_dl_tlsdesc_undefweak): Remove ldar.
29071 (_dl_tlsdesc_dynamic): Likewise.
29072 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
29073 (_dl_tlsdesc_resolve_rela): Likewise.
29074 (_dl_tlsdesc_resolve_hold): Likewise.
29075 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
29076 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29077 (_dl_tlsdesc_resolve_rela): Likewise.
29078 (_dl_tlsdesc_resolve_hold): Likewise.
29079
29080 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29081
29082 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
29083 binding and initialization non-lazily for R_AARCH64_TLSDESC.
29084
29085 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29086
29087 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
29088 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29089
29090 2017-11-02 Joseph Myers <joseph@codesourcery.com>
29091
29092 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
29093 Declare.
29094 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
29095 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
29096 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
29097 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
29098 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
29099 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
29100 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29101 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29102 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29103 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29104 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29105
29106 2017-11-02 Mike FABIAN <mfabian@redhat.com>
29107
29108 [BZ #22382]
29109 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29110 * localedata/locales/tpi_PG: Add standard header.
29111
29112 2017-11-02 Florian Weimer <fweimer@redhat.com>
29113
29114 test-errno-linux: quotactl can fail with EPERM in containers.
29115 * sysdeps/unix/sysv/linux/test-errno-linux.c
29116 (LIST, LIST_FORWARD): New macros.
29117 (check_error_in_list): New function.
29118 (test_wrp_rv): Accept list of permitted error codes.
29119 (test_wrp_rv2): Remove.
29120 (test_wrp): Call test_wrp_rv with list of error codes.
29121 (test_wrp2): Accept list of error codes.
29122 (do_test): Adjust. Allow EPERM for quotactl.
29123
29124 2017-11-02 Florian Weimer <fweimer@redhat.com>
29125
29126 * stdio-common/bug16.c (do_test): Use array_length.
29127 * stdio-common/errlist.c (_sys_nerr): Likewise.
29128 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29129 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29130 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29131 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29132 (do_test): Use array_length.
29133 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29134 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29135 * stdio-common/tst-printf-round.c (do_test): Likewise.
29136 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29137 (CHECK): Use array_length.
29138 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29139 * stdio-common/tstscanf.c (main): Likewise.
29140 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29141
29142 2017-11-02 Florian Weimer <fweimer@redhat.com>
29143
29144 Add array_length and array_end macros.
29145 * include/array_length.h: New file.
29146
29147 2017-11-02 Florian Weimer <fweimer@redhat.com>
29148
29149 [BZ #22332]
29150 * posix/tst-glob-tilde.c (do_noescape): New variable.
29151 (one_test): Process it.
29152 (do_test): Set do_noescape. Add unescaping test case.
29153
29154 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29155
29156 * math/complex.h
29157 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29158 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29159 with appropriate macros defined and undefined.
29160 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29161 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29162 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29163 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29164 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29165 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29166 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29167 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29168 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29169 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29170
29171 * math/complex.h
29172 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29173 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29174 that for long double. Do not condition define and undefine of
29175 _Mdouble_complex_ on [__CFLOAT128].
29176
29177 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29178
29179 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29180 of <sysdeps/generic/sysdep.h>.
29181 (ALIGNARG): Removed.
29182 (ASM_SIZE_DIRECTIVE): Likewise.
29183 (ENTRY): Likewise.
29184 (END): Likewise.
29185 (ENTRY_CHK): Likewise.
29186 (END_CHK): Likewise.
29187 (syscall_error): Likewise.
29188 (mcount): Likewise.
29189 (PSEUDO_END): Likewise.
29190 (L): Likewise.
29191 (atom_text_section): Likewise.
29192 * sysdeps/x86/sysdep.h: New file.
29193 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29194 of <sysdeps/generic/sysdep.h>.
29195 (ALIGNARG): Removed.
29196 (ASM_SIZE_DIRECTIVE): Likewise.
29197 (ENTRY): Likewise.
29198 (END): Likewise.
29199 (ENTRY_CHK): Likewise.
29200 (END_CHK): Likewise.
29201 (syscall_error): Likewise.
29202 (mcount): Likewise.
29203 (PSEUDO_END): Likewise.
29204 (L): Likewise.
29205 (atom_text_section): Likewise.
29206
29207 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
29208
29209 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29210 category of LC_CTYPE set to "i18n:2012".
29211 * localedata/locales/i18n_ctype: Regenerate.
29212
29213 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29214
29215 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29216 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29217 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29218 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29219
29220 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29221 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29222 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29223 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29224
29225 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29226
29227 * math/complex.h
29228 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29229 New macro.
29230 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29231 Likewise.
29232 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29233 Likewise.
29234 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29235 (CMPLXF32X): Likewise.
29236 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29237 (CMPLXF64X): Likewise.
29238 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29239 (CMPLXF128X): Likewise.
29240
29241 * math/math.h
29242 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29243 (__MATH_EVAL_FMT2): Define to add 0.0f.
29244
29245 2017-10-31 Alan Modra <amodra@gmail.com>
29246
29247 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29248 include sysdep.h.
29249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29263 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29264 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29265 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29266 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29267 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29268 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29269 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29270 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29271 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29272 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29273 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29274 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29275 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29276 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29277 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29278 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29279 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29280 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29281 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29282 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29283 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29284 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29285 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29286 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29287 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29288 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29289 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29290 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29291 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29292 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29293 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29294 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29295 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29296 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29297 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29298 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29299 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29300 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29301 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29302 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29303 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29304 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29305 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29306 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29307 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29308 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29309 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29310 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29311 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29312 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29313 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29314 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29315 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29316 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29317 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29318
29319 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29320 include sysdep.h and math_ldbl_opt.h.
29321
29322 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29323 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29324 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29325 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29326 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29327 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29328 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29338 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29340 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29343 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29347 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29348
29349 2017-10-31 Alan Modra <amodra@gmail.com>
29350
29351 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29352 string/strncase_l.c, not string/strncase.c.
29353 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29354 (libc_hidden_def): Redefine.
29355
29356 2017-10-31 Alan Modra <amodra@gmail.com>
29357
29358 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29359 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29360 (__strcasecmp): Don't define.
29361
29362 2017-10-31 Alan Modra <amodra@gmail.com>
29363
29364 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29365 IS_IN (libc).
29366 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29367 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29368 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29369
29370 2017-10-31 Alan Modra <amodra@gmail.com>
29371
29372 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29373 USE_AS_STPNCPY.
29374
29375 2017-10-31 Alan Modra <amodra@gmail.com>
29376
29377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29378 Redefine only when SHARED.
29379
29380 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29381
29382 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29383 Include <bits/math-finite.h> with appropriate macros defined and
29384 undefined.
29385 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29386 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29387 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29388 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29389 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29390
29391 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29392 [!_Mlong_double_] (_Mlong_double_): Likewise.
29393 [!_Mfloat16_] (_Mfloat16_): Likewise.
29394 [!_Mfloat32_] (_Mfloat32_): Likewise.
29395 [!_Mfloat64_] (_Mfloat64_): Likewise.
29396 [!_Mfloat128_] (_Mfloat128_): Likewise.
29397 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29398 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29399 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29400 (_Mdouble_): Define without indirection through those macros.
29401 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29402 [!_Mfloat128_] (_Mfloat128_): Likewise.
29403 [_Mlong_double_] (_Mlong_double_): Likewise.
29404 (_Mdouble_): Define without indirection through those macros.
29405 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29406 not add -D_Mlong_double_=double.
29407 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29408 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29409
29410 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29411
29412 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29413
29414 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29415
29416 * sysdeps/x86/libc-start.c: Reformat.
29417
29418 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29419
29420 [BZ #22353]
29421 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29422 (1): Renamed to ...
29423 (L(Src0)): This.
29424 (L(Src1)): New.
29425 (L(Src2)): Likewise.
29426 (L(1)): Renamed to ...
29427 (L(Src3)): This.
29428
29429 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29430
29431 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29432 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29433 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29434 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29435 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29436 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29437 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29438 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29439 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29440 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29441 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29442 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29443 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29444 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29445 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29446 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29447 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29448 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29449 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29450 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29451 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29452 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29453 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29454 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29455 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29456 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29457 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29458 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29459 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29460 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29461 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29462 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29463 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29464 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29465 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29466 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29467 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29468 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29469 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29470 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29471 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29472 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29473 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29474 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29475 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29476 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29477 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29478 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29479 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29480 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29481 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29482 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29483 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29484 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29485 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29486 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29487 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29488 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29489 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29490 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29491 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29492 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29493 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29494 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29495 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29496 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29497
29498 2017-10-30 Florian Weimer <fweimer@redhat.com>
29499
29500 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29501 always defined.
29502 * io/tst-mkdirat.c (do_test): Likewise.
29503 * io/tst-mkfifoat.c (do_test): Likewise.
29504 * io/tst-mknodat.c (do_test): Likewise.
29505 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29506 * locale/programs/locale.c (select_dirs): Likewise.
29507 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29508 * posix/bug-glob2.c (my_readdir): Likewise.
29509 * posix/tst-dir.c (main): Likewise.
29510 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29511 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29512
29513 2017-10-30 Florian Weimer <fweimer@redhat.com>
29514
29515 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29516 just __USE_GNU.
29517
29518 2017-10-30 Florian Weimer <fweimer@redhat.com>
29519
29520 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29521 Convert to support/test-driver.c.
29522 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29523 New macro parameters.
29524 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29525 * posix/tst-gnuglob.c: New file.
29526 * posix/tst-gnuglob64.c: Likewise.
29527 * posix/Makefile (tests): Add tst-gnuglob64.
29528
29529 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29530
29531 [BZ #19485]
29532 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29533 and use a better translation for March in “mon”.
29534 * localedata/locales/csb_PL: Use more ASCII to improve the
29535 readability of the source.
29536
29537 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29538
29539 [BZ #13953]
29540 * localedata/locales/km_KH: Use ASCII as much
29541 as possible for better readability of the source and
29542 remove useless comments.
29543 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29544 was commented out and apparently wrong anyway because it was
29545 using Lao characters. If Buddhist era should be used
29546 for km_KH, a native speaker should write the correct formaat
29547 for Khmer.
29548 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29549 (According to CLDR, the first weekday for Cambodia is Sunday).
29550 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29551 (These were using Lao characters which must be wrong. If we get
29552 the correct data from a native speaker, we could add it back, until
29553 then it is better not to have name_mr and name_mrs at all than
29554 having it wrong).
29555
29556 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29557
29558 * locale/loadlocale.c: Correct size of
29559 _nl_value_type_LC_<category> arrays.
29560
29561 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29562
29563 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29564 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29565 with appropriate macros defined and undefined.
29566 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29567 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29568 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29569 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29570 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29571
29572 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29573
29574 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29575 "-O2 -march=i586".
29576
29577 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29578
29579 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29580 with lowercase letters to make it agree with CLDR.
29581
29582 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29583
29584 [BZ #15260]
29585 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29586 first letters of yesstr and nostr in yesexpr and noexpr,
29587 not for the full words.
29588 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29589 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29590 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29591 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29592 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29593 first letters of yesstr and nostr in yesexpr and noexpr,
29594 until now only English was matched in yesexpr and noexpr.
29595 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29596 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29597 fil but not for tl. As tl and fil are very similar, using fil
29598 is probably better than using English.
29599
29600 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29601
29602 [BZ #21706]
29603 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29604 in yesstr and nostr.
29605
29606 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29607
29608 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29609 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29610 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29611 Likewise.
29612 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29613 Likewise.
29614 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29615 Likewise.
29616 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29617 Likewise.
29618 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29619 (SNANF128X): Likewise.
29620
29621 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29622 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29623 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29624 (HUGE_VAL_F32): Likewise.
29625 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29626 (HUGE_VAL_F64): Likewise.
29627 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29628 (HUGE_VAL_F32X): Likewise.
29629 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29630 (HUGE_VAL_F64X): Likewise.
29631 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29632 (HUGE_VAL_F128X): Likewise.
29633
29634 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29635
29636 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29637 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29638 for the br_FR locale.
29639
29640 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29641
29642 [BZ #21706]
29643 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29644
29645 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29646
29647 * locale/programs/record-status.h: Define globals, and function
29648 prototypes. Move function bodies...
29649 * locale/programs/record-status.c: ... to here. New file.
29650 * iconv/Makefile (iconv_prog-modules): Add record-status.
29651 * locale/Makefile (lib-modules): Likewise.
29652 * iconv/iconv_prog.c: Remove verbose.
29653 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29654 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29655 record a warning about ASCII compatibility.
29656 * locale/programs/ld-monetary.c (monetary_finish): If
29657 warn_int_curr_symbol is true then record a warning about the symbol
29658 not being in our ISO 4217 list.
29659 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29660 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29661 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29662 (OPT_NO_WARN): Define.
29663 (OPT_WARN): Define.
29664 (options): Add entry for --no-warnings, and --warnings.
29665 (set_warnings): New function to enable/disable warnings.
29666 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29667 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29668 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29669 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29670 Pass flags to generate_locale.
29671 (generate_locale): Accept new flag argument and pass it to localedef
29672 invocation.
29673 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29674 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29675
29676 * localedata/Makefile (test-input-data): Use full file name.
29677 * localedata/da_DK.in: Rename to...
29678 * localedata/da_DK.ISO-8859-1.in: ...this.
29679 * localedata/de_DE.in: Rename to...
29680 * localedata/de_DE.ISO-8859-1.in: ...this.
29681 * localedata/en_US.in: Rename to...
29682 * localedata/en_US.ISO-8859-1.in: ...this.
29683 * localedata/fr_FR.in: Rename to...
29684 * localedata/fr_FR.UTF-8.in: ... this.
29685 * localedata/hr_HR.in: Rename to...
29686 * localedata/hr_HR.ISO-8859-2.in: ...this.
29687 * localedata/hu_HU.in: Rename to...
29688 * localedata/hu_HU.UTF-8.in: ...this.
29689 * localedata/si_LK.in: Rename to...
29690 * localedata/si_LK.UTF-8.in: ...this.
29691 * localedata/sv_SE.in: Rename to...
29692 * localedata/sv_SE.ISO-8859-1.in: ...this.
29693 * localedata/tr_TR.in: Rename to...
29694 * localedata/tr_TR.UTF-8.in: ...this.
29695 * localedata/uk_UA.in: Rename to...
29696 * localedata/uk_UA.UTF-8.in: ...this.
29697 * localedata/sort-test.sh: Test file is locale name with the
29698 suffix.
29699
29700 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29701 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29702 file.
29703 * localedata/locales/i18n_ctype: Regenerate.
29704 * localedata/locales/tr_TR: Likewise.
29705 * localedata/locales/translit_circle: Likewise.
29706 * localedata/locales/translit_cjk_compat: Likewise.
29707 * localedata/locales/translit_combining: Likewise.
29708 * localedata/locales/translit_compat: Likewise.
29709 * localedata/locales/translit_font: Likewise.
29710 * localedata/locales/translit_fraction: Likewise.
29711
29712 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29713
29714 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29715 lxvd2x/stxvd2x with lvx/stvx.
29716 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29717
29718 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29719
29720 * include/alloc_buffer.h: Replace "if if " with "if " in
29721 comments.
29722 * sysdeps/mips/memcpy.S: Likkewise.
29723 * sysdeps/mips/memset.S: Likewise.
29724 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29725 Likewise.
29726 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29727 Likewise.
29728 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29729 Likewise.
29730
29731 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29732
29733 [BZ #15261]
29734 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29735 yesexpr and noexpr.
29736 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29737 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29738 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29739 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29740 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29741 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29742 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29743
29744 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29745
29746 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29747 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29748 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29749 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29750 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29751 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29752 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29753 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29754 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29755 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29756 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29757 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29758
29759 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29760
29761 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29762 as possible for better readability of the source.
29763 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29764 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29765 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29766 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29767 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29768 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29769 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29770 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29771 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29772 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29773 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29774 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29775 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29776 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29777 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29778 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29779 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29780 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29781 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29782 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29783 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29784 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29785 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29786 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29787 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29788 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29789 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29790 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29791 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29792 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29793 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29794 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29795 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29796 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29797 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29798 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29799 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29800 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29801 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29802 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29803 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29804 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29805 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29806 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29807 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29808 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29809 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29810 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29811 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29812 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29813 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29814 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29815 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29816 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29817 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29818 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29819 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29820 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29821 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29822 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29823 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29824 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29825 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29826 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29827 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29828 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29829 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29830 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29831 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29832 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29833 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29834 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29835 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29836 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29837 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29838 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29839 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29840 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29841 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29842 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29843 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29844 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29845 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29846 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29847 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29848 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29849 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29850 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29851 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29852 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29853 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29854 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29855 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29856 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29857 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29858 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29859 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29860 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29861 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29862 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29863 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29864 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29865 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29866 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29867 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29868 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29869 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29870 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29871 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29872 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29873 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29874 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29875 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29876 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29877 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29878 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29879 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29880 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29881 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29882 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29883 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29884 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29885 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29886 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29887 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29888 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29889 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29890 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29891 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29892 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29893 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29894 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29895 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29896 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29897 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29898 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29899 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29900 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29901 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29902 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29903 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29904 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29905 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29906 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29907 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29908 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29909 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29910 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29911 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29912 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29913 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29914 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29915 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29916 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29917 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29918 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29919 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29920 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29921 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29922 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29923 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29924 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29925 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29926 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29927 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29928 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29929 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29930 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29931 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29932 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29933 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29934 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29935 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29936 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29937
29938 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29939
29940 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29941 (Use first letters of yesstr and nostr correctly instead of using
29942 full words).
29943
29944 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29945
29946 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29947 (Use first letters of yesstr and nostr correctly).
29948
29949 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29950
29951 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29952 also check for the first characters of yesstr and nostr.
29953 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29954 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29955
29956 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29957
29958 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29959 also check for Chinese characters.
29960
29961 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29962
29963 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29964 match also for the contents of yesstr and nostr. As the first letter
29965 of yesstr and nostr is equal, checking only for the first letter
29966 is not enough.
29967
29968 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29969
29970 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29971 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29972
29973 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29974
29975 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29976 of main contributor.
29977
29978 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29979
29980 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29981 instead of using English.
29982
29983 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29984
29985 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29986 by including the first letters of nostr and yesexpr in the regexp.
29987 Also make it more readable by using ASCII where possible.
29988
29989 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29990
29991 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29992 the first letter of nostr in the regexp. It agrees with CLDR now.
29993 Also make it more readable by using ASCII where possible.
29994
29995 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29996
29997 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29998 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29999 these strings contain a U+17D6 (which somewhat looks like a colon)
30000 instead of a real colon to separate the full words for “yes”
30001 and “no” from the single letter responses.
30002
30003 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30004
30005 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
30006 it agree with CLDR (include the first letter of yesstr).
30007 Also make it more readable by using ASCII where possible.
30008
30009 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30010
30011 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
30012 and improve yesexpr and noexpr. The yesstr and nostr apparently
30013 came from CLDR. And CLDR has a bug there: these strings contain
30014 a U+0903 (which looks like a colon) instead of a real colon
30015 to separate the full words for “yes” and “no” from the single
30016 letter responses.
30017
30018 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30019
30020 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
30021 letters of the full yesstr and nostr in yesexpr and noexpr.
30022
30023 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30024
30025 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
30026 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
30027 * localedata/locales/an_ES: Make source more readable by using ASCII
30028 where possible.
30029
30030 2017-10-24 Mike FABIAN <mfabian@redhat.com>
30031
30032 [BZ #20952]
30033 * localedata/locales/yuw_PG: New file.
30034 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
30035 * locale/iso-639.def: Add Yau (Uruwa).
30036
30037 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30038
30039 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
30040
30041 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30042
30043 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
30044 (__libc_realloc): Likewise.
30045 (_mid_memalign): Likewise.
30046 (__libc_calloc): Likewise.
30047
30048 2017-10-23 Mike FABIAN <mfabian@redhat.com>
30049
30050 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
30051 by adding the generic +1 and -0 as in all other locales.
30052 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
30053 day names and make it more readable by using ASCII where possible.
30054
30055 2017-10-24 Joseph Myers <joseph@codesourcery.com>
30056
30057 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
30058 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
30059
30060 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30061
30062 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
30063 WNOHANG in waitpid call.
30064
30065 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
30066
30067 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
30068 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
30069
30070 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
30071 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
30072 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
30073 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
30074 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
30075 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
30076 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
30077 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
30078 variables.
30079
30080 2017-10-23 Michael Collison <michael.collison@arm.com>
30081
30082 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
30083 with __builtin_sqrt.
30084 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
30085 with __builtin_sqrtf.
30086 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
30087 with __builtin_ceil.
30088 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
30089 with __builtin_ceilf.
30090 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
30091 with __builtin_floor.
30092 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
30093 with __builtin_floorf.
30094 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
30095 with __builtin_fma.
30096 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
30097 with __builtin_fmaf.
30098 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
30099 with __builtin_fmax.
30100 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30101 with __builtin_fmaxf.
30102 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30103 with __builtin_fmin.
30104 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30105 with __builtin_fminf.
30106 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30107 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30108 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30109 with builtin_rint and conversion to int.
30110 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30111 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30112 with builtin_llround.
30113 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30114 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30115 with builtin_rint and conversion to long int.
30116 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30117 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30118 with builtin_lround.
30119 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30120 with builtin_lroundf.
30121 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30122 statements with __builtin_nearbyint.
30123 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30124 statements with __builtin_nearbyintf.
30125 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30126 with __builtin_rint.
30127 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30128 with __builtin_rintf.
30129 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30130 with __builtin_round.
30131 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30132 with __builtin_roundf.
30133 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30134 with __builtin_trunc.
30135 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30136 with __builtin_truncf.
30137 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30138 and s_l[l]round[f].c too.
30139
30140 2017-10-23 Alan Modra <amodra@gmail.com>
30141
30142 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30143 Adjust stack after restoring regs. Add missing LR cfi_restore.
30144
30145 2017-10-23 Alan Modra <amodra@gmail.com>
30146
30147 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30148 Move LR save and frame setup/teardown and LR restore to
30149 immediately around memset call. Provide cfi.
30150
30151 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30152
30153 * sysdeps/i386/fpu/e_powf.S: Removed.
30154 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30155 * sysdeps/i386/fpu/w_powf.c: Likewise.
30156 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30157 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30158 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30159 Add e_powf-sse2.
30160 (CFLAGS-e_powf-sse2.c): New.
30161 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30162 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30163
30164 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30165
30166 * sysdeps/i386/fpu/e_log2f.S: Removed.
30167 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30168 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30169 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30170 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30171 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30172 Add e_log2f-sse2.
30173 (CFLAGS-e_log2f-sse2.c): New.
30174 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30175 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30176
30177 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30178
30179 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30180 Add e_powf-fma.
30181 (CFLAGS-e_powf-fma.c): New.
30182 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30183 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30184
30185 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30186
30187 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30188 Add e_log2f-fma.
30189 (CFLAGS-e_log2f-fma.c): New.
30190 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30191 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30192
30193 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30194
30195 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30196 Add e_logf-fma.
30197 (CFLAGS-e_logf-fma.c): New.
30198 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30199 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30200
30201 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30202
30203 * sysdeps/i386/fpu/e_logf.S: Removed.
30204 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30205 * sysdeps/i386/fpu/w_logf.c: Likewise.
30206 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30207 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30208 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30209 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30210 Add e_logf-sse2.
30211 (CFLAGS-e_logf-sse2.c): New.
30212 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30213 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30214
30215 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30216
30217 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30218 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30219 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30220 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30221 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30222 Add e_exp2f-sse2.
30223 (CFLAGS-e_exp2f-sse2.c): New.
30224 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30225 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30226
30227 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30228
30229 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30230 Add e_exp2f-fma.
30231 (CFLAGS-e_exp2f-fma.c): New.
30232 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30233 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30234
30235 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30236
30237 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30238 * sysdeps/i386/fpu/e_expf.S: Likewise.
30239 * sysdeps/i386/fpu/math_errf.c: Likewise.
30240 * sysdeps/i386/fpu/w_expf.c: Likewise.
30241 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30242 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30243 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30244 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30245 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30246 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30247 Remove e_expf-ia32.
30248 (CFLAGS-e_expf-sse2.c): New.
30249 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30250 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30251
30252 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30253
30254 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30255 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30256 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30257 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30258 e_expf.c.
30259 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30260 New.
30261 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30262 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30263 Renamed to ...
30264 (__redirect_expf): This.
30265 (SYMBOL_NAME): Changed to expf.
30266 (__ieee754_expf): Renamed to ...
30267 (__expf): This.
30268 (__GI___expf): This.
30269 (__ieee754_expf): Add strong_alias.
30270 (__expf_finite): Likewise.
30271 (__expf): New.
30272 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30273
30274 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30275
30276 [BZ #22332]
30277 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30278 unescaping.
30279
30280 2017-10-21 Florian Weimer <fweimer@redhat.com>
30281
30282 * posix/Makefile (tests): Add tst-glob-tilde.
30283 (tests-special): Add tst-glob-tilde-mem.out
30284 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30285 (tst-glob-tilde-mem.out): Add mtrace check.
30286 * posix/tst-glob-tilde.c: New file.
30287
30288 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30289
30290 * bits/floatn-common.h: New file.
30291 * math/Makefile (headers): Add bits/floatn-common.h.
30292 * bits/floatn.h: Include <bits/floatn-common.h>.
30293 * sysdeps/ia64/bits/floatn.h: Likewise.
30294 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30295 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30296 * sysdeps/powerpc/bits/floatn.h: Likewise.
30297 * sysdeps/x86/bits/floatn.h: Likewise.
30298
30299 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30300
30301 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30302 indicates whether compiler emits an warning for alias for
30303 functions with incompatible types.
30304
30305 [BZ #22273]
30306 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30307 the auxiliary process is terminated by a signal before calling _exit
30308 or execve.
30309
30310 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30311
30312 [BZ #21265]
30313 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30314 New.
30315 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30316 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30317 and bit_arch_XSAVEC_Usable if needed.
30318 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30319 and bit_arch_Use_dl_runtime_resolve_opt.
30320 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30321 Removed.
30322 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30323 (bit_arch_Prefer_No_AVX512): Updated.
30324 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30325 (bit_arch_XSAVEC_Usable): New.
30326 (STATE_SAVE_OFFSET): Likewise.
30327 (STATE_SAVE_MASK): Likewise.
30328 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30329 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30330 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30331 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30332 (index_arch_XSAVEC_Usable): New.
30333 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30334 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30335 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30336 is enabled.
30337 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30338 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30339 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30340 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30341 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30342 _dl_runtime_resolve_xsavec.
30343 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30344 Removed.
30345 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30346 instead of VEC_SIZE.
30347 (REGISTER_SAVE_BND0): Removed.
30348 (REGISTER_SAVE_BND1): Likewise.
30349 (REGISTER_SAVE_BND3): Likewise.
30350 (REGISTER_SAVE_RAX): Always defined to 0.
30351 (VMOV): Removed.
30352 (_dl_runtime_resolve_avx): Likewise.
30353 (_dl_runtime_resolve_avx_slow): Likewise.
30354 (_dl_runtime_resolve_avx_opt): Likewise.
30355 (_dl_runtime_resolve_avx512): Likewise.
30356 (_dl_runtime_resolve_avx512_opt): Likewise.
30357 (_dl_runtime_resolve_sse): Likewise.
30358 (_dl_runtime_resolve_sse_vex): Likewise.
30359 (USE_FXSAVE): New.
30360 (_dl_runtime_resolve_fxsave): Likewise.
30361 (USE_XSAVE): Likewise.
30362 (_dl_runtime_resolve_xsave): Likewise.
30363 (USE_XSAVEC): Likewise.
30364 (_dl_runtime_resolve_xsavec): Likewise.
30365 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30366 Removed.
30367 (_dl_runtime_resolve_avx512_opt): Likewise.
30368 (_dl_runtime_resolve_avx): Likewise.
30369 (_dl_runtime_resolve_avx_opt): Likewise.
30370 (_dl_runtime_resolve_sse): Likewise.
30371 (_dl_runtime_resolve_sse_vex): Likewise.
30372 (_dl_runtime_resolve_fxsave): New.
30373 (_dl_runtime_resolve_xsave): Likewise.
30374 (_dl_runtime_resolve_xsavec): Likewise.
30375
30376 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30377
30378 [BZ #22320]
30379 CVE-2017-15670
30380 * posix/glob.c (__glob): Fix one-byte overflow.
30381
30382 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30383
30384 * malloc/malloc.c (sysdep-cancel.h): Add include.
30385
30386 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30387
30388 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30389
30390 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30391
30392 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30393 (tests): Remove $(objpfx)ga_test depdendency.
30394 * resolv/ga_test.c: Remove file.
30395
30396 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30397
30398 [BZ #18812]
30399 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30400 * localedata/locales/kab_DZ: New file.
30401
30402 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30403
30404 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30405 _dl_relocate_static_pie instead of _dl_start to compute load
30406 address in static PIE.
30407
30408 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30409
30410 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30411
30412 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30413
30414 [BZ #13605]
30415 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30416 * localedata/locales/shn_MM: New file.
30417
30418 2017-10-20 Florian Weimer <fweimer@redhat.com>
30419
30420 [BZ #22321]
30421 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30422 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30423 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30424 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30425 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30426 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30427
30428 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30429
30430 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30431
30432 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30433
30434 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30435
30436 [BZ #22322]
30437 * sysdeps/mips/bits/long-double.h: Move to ....
30438 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30439
30440 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30441
30442 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30443
30444 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30445 H.J. Lu <hongjiu.lu@intel.com>
30446
30447 [BZ #22299]
30448 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30449 GLRO(dl_platform) to NULL.
30450 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30451 (modules-names): Add tst-platformmod-1 and
30452 x86_64/tst-platformmod-2.
30453 (CFLAGS-tst-platform-1.c): New.
30454 (CFLAGS-tst-platformmod-1.c): Likewise.
30455 (CFLAGS-tst-platformmod-2.c): Likewise.
30456 (LDFLAGS-tst-platformmod-2.so): Likewise.
30457 ($(objpfx)tst-platform-1): Likewise.
30458 ($(objpfx)tst-platform-1.out): Likewise.
30459 (tst-platform-1-ENV): Likewise.
30460 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30461 * sysdeps/x86_64/tst-platform-1.c: New file.
30462 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30463 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30464
30465 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30466
30467 [BZ #13994]
30468 * locale/iso-639.def: Add Karbi.
30469 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30470 * localedata/locales/mjw_IN: New file.
30471
30472 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30473
30474 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30475 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30476 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30477 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30478 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30479 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30480 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30481 <bits/floatn.h>.
30482 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30483 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30484 * manual/math.texi (Mathematics): Document additional architecture
30485 support for _Float128.
30486 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30487 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30488 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30489 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30490 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30491 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30492 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30493 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30494 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30495 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30496 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30497 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30498 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30499 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30500 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30501
30502 2017-10-18 Renlin Li <renlin.li@arm.com>
30503
30504 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30505 _DYNAMIC symbol to calculate load address.
30506
30507 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30508
30509 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30510 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30511 summary bits.
30512 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30513 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30514
30515 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30516
30517 [BZ #16777]
30518 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30519 and improve readability by using more ASCII.
30520 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30521 and improve readability by using more ASCII.
30522
30523 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30524
30525 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30526 not all targets support atomics on bool.
30527
30528 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30529
30530 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30531 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30532 __f128.
30533 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30534 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30535 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30536 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30537 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30538 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30539
30540 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30541
30542 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30543 defines.
30544
30545 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30546
30547 [BZ #22159]
30548 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30549 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30550 (do_check_remalloced_chunk): Fix build bug.
30551 (do_check_malloc_state): Add assert that checks arena->top.
30552 (malloc_consolidate): Remove initialization.
30553 (int_mallinfo): Remove call to malloc_consolidate.
30554 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30555
30556 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30557
30558 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30559 (have_fastchunks): Remove.
30560 (clear_fastchunks): Remove.
30561 (set_fastchunks): Remove.
30562 (malloc_state): Add have_fastchunks.
30563 (malloc_init_state): Use have_fastchunks.
30564 (do_check_malloc_state): Remove incorrect invariant checks.
30565 (_int_malloc): Use have_fastchunks.
30566 (_int_free): Likewise.
30567 (malloc_consolidate): Likewise.
30568
30569 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30570
30571 * malloc/malloc.c (tcache_put): Inline.
30572 (tcache_get): Inline.
30573
30574 2017-10-17 Jordi Mallach <jordi@gnu.org>
30575
30576 Aurelien Jarno <aurelien@aurel32.net>
30577 [BZ #2522]
30578 * localedata/locales/ca_ES@valencia: New file.
30579 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30580
30581 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30582
30583 [BZ #22296]
30584 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30585 < 6.x
30586
30587 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30588
30589 * scripts/build-many-glibcs.py (Context.add_all_configs):
30590 Add arm-linux-gnueabihf multiarch extra_glibcs.
30591
30592 * sysdeps/generic/ifunc-init.h: New file.
30593 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30594
30595 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30596
30597 [BZ #22019]
30598 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30599 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30600 * stdlib/tst-strfmon_l.c: adapt test case.
30601
30602 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30603
30604 * sysdeps/generic/float128-abi.h: New file.
30605 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30606 non-__prefixed symbols to ....
30607 * math/Versions: ... here. Include <float128-abi.h>.
30608 * stdlib/Versions ... and here. Include <float128-abi.h>
30609
30610 2017-10-16 Florian Weimer <fweimer@redhat.com>
30611
30612 * version.h (VERSION): Switch to ".9000" as the development
30613 version suffix.
30614
30615 2017-10-16 Florian Weimer <fweimer@redhat.com>
30616
30617 [BZ #22050]
30618 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30619 compat_symbol_reference to access non-default version.
30620
30621 2017-10-16 Florian Weimer <fweimer@redhat.com>
30622
30623 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30624
30625 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30626
30627 * include/shlib-compat.h (compat_symbol_reference): Update
30628 comment.
30629
30630 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30631
30632 * math/Makefile (test-types): Add
30633 $(type-float128-$(float128-alias-fcts)).
30634 * math/test-float128.h (TYPE_STR): Define conditional on
30635 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30636 (ULP_IDX): Likewise.
30637 (ULP_I_IDX): Likewise.
30638
30639 * stdlib/strtold.c: Include <bits/floatn.h>
30640 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30641 and later undefine as macro. Define as weak alias if
30642 [!USE_WIDE_CHAR].
30643 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30644 and later undefine as macro. Define as weak alias if
30645 [USE_WIDE_CHAR].
30646 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30647 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30648 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30649 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30650 Define and later undefine as macro. Define as weak alias if
30651 [USE_WIDE_CHAR].
30652 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30653 <bits/floatn.h>.
30654 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30655 Define and later undefine as macro. Define as weak alias if
30656 [!USE_WIDE_CHAR].
30657 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30658 Define and later undefine as macro. Define as weak alias if
30659 [USE_WIDE_CHAR].
30660
30661 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30662
30663 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30664 record_verbose messages.
30665
30666 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30667
30668 [BZ #22052]
30669 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30670 to silence -O3 -Wall warning with GCC 7.
30671
30672 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30673
30674 * Makeconfig (+link-static-before-libc): Use the first of
30675 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30676 * gmon/Makefile (tests): Add tst-gmon-static.
30677 (tests-static): Likewise.
30678 (CFLAGS-tst-gmon-static.c): New.
30679 (CRT-tst-gmon-static): Likewise.
30680 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30681 (tst-gmon-static-ENV): Likewise.
30682 (tests-special): Likewise.
30683 ($(objpfx)tst-gmon-static.out): Likewise.
30684 (clean-tst-gmon-static-data): Likewise.
30685 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30686 * gmon/tst-gmon-static-gprof.sh: New file.
30687 * gmon/tst-gmon-static.c: Likewise.
30688
30689 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30690
30691 [BZ #22295]
30692 * locale/programs/linereader.c (get_string): Don't warn on
30693 non-symbolic character.
30694
30695 [BZ #22294]
30696 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30697 int_curr_symbol.
30698
30699 [BZ #22292]
30700 * locale/programs/record-status.h: New file
30701 * locale/programs/locale.c: Add comment.
30702 * locale/programs/charmap-dir.c: Don't include error.h.
30703 (charmap_opendir): Use record_error.
30704 * locale/programs/charmap.c: Don't include error.h.
30705 (charmap_read): Use record_error, and record_warning.
30706 (parse_charmap): Likewise.
30707 * locale/programs/ld-address.c: Don't include error.h.
30708 (address_finish): Use record_error, and record_warning.
30709 * locale/programs/ld-collate.c: Don't include error.h.
30710 (collate_finish): Use record_error, and record_error_at_line.
30711 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30712 (ctype_class_new): Likewise.
30713 (ctype_map_new): Likewise.
30714 (set_one_default): Likewise.
30715 (set_class_defaults): Likewise.
30716 (translit_flatten): Likewise.
30717 (allocate_arrays): Use record_error, and record_verbose.
30718 * locale/programs/ld-identification.c: Don't include error.h.
30719 (indentation_finish): Use record_error and record_warning.
30720 * locale/programs/ld-measurement.c: Don't include error.h.
30721 (measurement_finish): Use record_error.
30722 * locale/programs/ld-messages.c
30723 (message_finish): Likewise.
30724 * locale/programs/ld-monetary.c
30725 (monetary_finish): Likewise.
30726 * locale/programs/ld-name.c (name_finish): Use record_error
30727 and record_warning.
30728 * locale/programs/ld-numeric.c
30729 (numeric_finish): Use record_error.
30730 * locale/programs/ld-paper.c: Don't include error.h.
30731 (paper_finish): Use record_error.
30732 * locale/programs/ld-telephone.c: Don't include error.h.
30733 (telephone_finish): Use record_error.
30734 * locale/programs/ld-time.c (time_finish): Likewise.
30735 * locale/programs/linereader.h (lr_error): Make inline func.
30736 * locale/programs/localedef.c: Define recorded_warning_count,
30737 and recorded_error_count.
30738 (main): Use record_error. Use recorded_error_count and
30739 recorded_warning_count to issue correct error returns.
30740 (add_to_readlist): Use record_error.
30741 (find_locale): Likewise.
30742 (load_locale): Likewise.
30743 * locale/programs/localedef.h: Remove be_quiet
30744 and WITH_CUR_LOCALE.
30745 * locale/programs/locarchive.c (compare_from_file): Use
30746 record_error.
30747 * locale/programs/locfile.c (write_locale_data): Use
30748 record_error.
30749 * locale/programs/repertoire.c: Dont include error.h.
30750 (repertoire_complain): Use record_error.
30751 * localedata/tst-fmon.sh: Expect failures from localedef.
30752 * localedata/tst-locale.sh: Likewise.
30753 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30754
30755 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30756 (REPORTS): Likewise.
30757 (check): Likewise.
30758 (i18n): Rename to...
30759 (i18n_ctype): ...this.
30760 (i18n-report): Rename to...
30761 (i18n_ctype-report): ...this.
30762 * localedata/locales/i18n_ctype: Regenerate.
30763 * localedata/locales/i18n: copy i18n_ctype.
30764
30765 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30766
30767 * stdlib/strfroml.c: Include <bits/floatn.h>.
30768 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30769 Define before include of <stdlib.h> and undefine afterwards, then
30770 define as weak alias.
30771
30772 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30773 Undefine and restore default definition. Use
30774 libm_alias_ldouble_other.
30775
30776 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30777
30778 [BZ #22153]
30779 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30780 in coredumps.
30781
30782 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30783
30784 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30785 Assign sym_map to be map for local symbols, as TLS relocations
30786 use sym_map to determine whether the symbol is defined and to
30787 extract the TLS information.
30788 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30789 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30790
30791 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30792
30793 [BZ #22189]
30794 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30795 (math_force_eval): Add powerpc version.
30796
30797 [BZ #22142]
30798 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30799 -DBL_MAX.
30800 (do_test): Likewise.
30801 * stdio-common/tst-printf.sh: Likewise.
30802 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30803 ifdef clause in order to set the carry bit right. Replace r0 by
30804 0 without changing the behavior.
30805
30806 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30807
30808 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30809 <libm-alias-ldouble.h>.
30810 (fabsl): Define using libm_alias_ldouble.
30811 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30812 <libm-alias-ldouble.h>.
30813 (fabsl): Define using libm_alias_ldouble.
30814
30815 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30816 Remove conditional code.
30817
30818 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30819 Rename to __clog10_internal_l.
30820 (__clog10_internal_l): Define aliases using
30821 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30822 with __clog10.
30823
30824 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30825
30826 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30827 * benchtests/sincosf-inputs: New file.
30828 * benchtests/cosf-inputs: New file.
30829 * benchtests/sinf-inputs: New file.
30830
30831 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30832
30833 * posix/tst-spawn.c (do_test): Wait for both children.
30834
30835 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30836
30837 [BZ #22284]
30838 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30839 tests-pie): Add tst-gmon-pie.
30840 (CFLAGS-tst-gmon-pie.c): New.
30841 (CRT-tst-gmon-pie): Likewise.
30842 (tst-gmon-pie-ENV): Likewise.
30843 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30844 ($(objpfx)tst-gmon-pie.out): Likewise.
30845 (clean-tst-gmon-pie-data): Likewise.
30846 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30847 * gmon/gmon.c [PIC]: Include <link.h>.
30848 [PIC] (callback): New function.
30849 (write_hist): Add an argument for load address. Subtract load
30850 address from PCs.
30851 (write_call_graph): Likewise.
30852 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30853 it to write_hist and write_call_graph.
30854 * gmon/tst-gmon-pie.c: New file.
30855
30856 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30857
30858 * math/Makefile (test-types-basic): New variable.
30859 (test-types): Likewise.
30860 (libm-test-support): Use $(test-types) instead of $(types).
30861 (libm-tests-base-normal): Likewise.
30862 (libm-tests-base-finite): Likewise.
30863 (libm-tests-base-inline): Likewise.
30864 (generated): Likewise.
30865 ($(objpfx)libm-test-support-$(t).c): Likewise.
30866 (libm-tests-for-type iterator): Likewise.
30867 (libm-test-support iterator): Likewise.
30868 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30869 (ulp_idx): Use ULP_IDX.
30870 * math/test-ldouble.h: Include <float.h>.
30871 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30872 (ULP_IDX): New macro.
30873 (ULP_I_IDX): Likewise.
30874 * math/test-double.h (ULP_IDX): Likewise.
30875 (ULP_I_IDX): Likewise.
30876 * math/test-float.h (ULP_IDX): Likewise.
30877 (ULP_I_IDX): Likewise.
30878 * math/test-float128.h (ULP_IDX): Likewise.
30879 (ULP_I_IDX): Likewise.
30880
30881 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30882
30883 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30884 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30885 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30886 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30887 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30888 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30889 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30890 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30891 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30892 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30893 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30894 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30895 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30896 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30897 (SINGLE_THREAD_BY_GLOBAL): Define.
30898 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30899 Likewise.
30900 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30901 Likewise.
30902 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30903 Likewise.
30904 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30905 Likewise.
30906 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30907 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30908 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30909 Likewise.
30910
30911 2017-10-11 Andreas Schwab <schwab@suse.de>
30912
30913 * nis/Makefile (aux): Remove.
30914 * nscd/Makefile (aux): Add nscd_hash.
30915 (nscd-modules): Likewise.
30916 ($(objpfx)nscd): Don't depend on libnsl.
30917 * nscd/nscd_hash.c: New file.
30918 * nscd/nscd_hash.h: Likewise.
30919 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30920 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30921 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30922 instead of <nis/rpcsvc/nis.h>.
30923 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30924
30925 2017-10-11 Florian Weimer <fweimer@redhat.com>
30926
30927 [BZ #22078]
30928 Avoid large NSS buffers with many addresses, aliases.
30929 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30930 using dynarrays and struct alloc_buffer.
30931 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30932 (tst-nss-files-hosts-multi): Link with -ldl.
30933 * nss/tst-nss-files-hosts-multi.c: New file.
30934
30935 2017-10-11 Florian Weimer <fweimer@redhat.com>
30936
30937 [BZ #18023]
30938 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30939 scratch_buffer. Eliminate gotos.
30940
30941 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30942
30943 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30944 libm_alias_ldouble_other.
30945 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30946 undefine and redefine.
30947 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30948 (exp10l): Do not define here.
30949 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30950 (weak_alias): Undefine and redefine.
30951 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30952 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30953 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30954 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30955
30956 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30957 [!__fma] (fma): Define using libm_alias_double.
30958 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30959 [!__fmaf] (fmaf): Define using libm_alias_float.
30960 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30961 (fmal): Define using libm_alias_ldouble.
30962
30963 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30964
30965 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30966 New macro.
30967 (libm_alias_double_other): Likewise.
30968 (libm_alias_double_r): Use libm_alias_double_other_r.
30969 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30970 New macro.
30971 (libm_alias_float_other): Likewise.
30972 (libm_alias_float_r): Use libm_alias_float_other_r.
30973 * sysdeps/generic/libm-alias-float128.h
30974 (libm_alias_float128_other_r): New macro.
30975 (libm_alias_float128_other): Likewise.
30976 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30977 * sysdeps/generic/libm-alias-ldouble.h
30978 (libm_alias_ldouble_other_r): New macro.
30979 (libm_alias_ldouble_other): Likewise.
30980 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30981 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30982 (libm_alias_double_other_r): New macro.
30983 (libm_alias_double_other): Likewise.
30984 (libm_alias_double_r): Use libm_alias_double_other_r.
30985 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30986 (libm_alias_ldouble_other_r): New macro.
30987 (libm_alias_ldouble_other): Likewise.
30988 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30989 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30990 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30991 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30992 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30993 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30994 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30995 * math/w_exp2f.c: Use libm_alias_float_other.
30996 * math/w_expf.c: Likewise.
30997 * math/w_log2f.c: Likewise.
30998 * math/w_logf.c: Likewise.
30999 * math/w_powf.c: Likewise.
31000 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
31001 [!__exp2f]: Use libm_alias_float_other.
31002 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
31003 [!__expf]: Use libm_alias_float_other.
31004 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
31005 [!__log2f]: Use libm_alias_float_other.
31006 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
31007 [!__logf]: Use libm_alias_float_other.
31008 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
31009 [!__powf]: Use libm_alias_float_other.
31010
31011 2017-10-10 Florian Weimer <fweimer@redhat.com>
31012
31013 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
31014 function.
31015 (_nss_files_gethostbyname3_r): Call it.
31016
31017 2017-10-09 Joseph Myers <joseph@codesourcery.com>
31018
31019 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
31020 error. Remove default definition of declare_mgen_alias.
31021 [!declare_mgen_alias_r]: Likewise.
31022 * sysdeps/generic/math-type-macros-double.h
31023 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
31024 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
31025 (declare_mgen_alias_r): Likewise.
31026 * sysdeps/generic/math-type-macros-float128.h
31027 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31028 * sysdeps/generic/math-type-macros-ldouble.h
31029 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31030 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
31031 macro.
31032 (declare_mgen_alias_r_s): Likewise.
31033 (declare_mgen_alias_r): Likewise.
31034 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
31035 (lgamma_r): Define using libm_alias_double_r.
31036 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
31037 (lgammaf_r): Define using libm_alias_float_r.
31038 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
31039 (lgammal_r): Define using libm_alias_ldouble_r.
31040 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
31041 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31042
31043 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31044
31045 * lib/glob.c (__glob_pattern_type): Remove now-spurious
31046 extern declaration.
31047
31048 2017-10-09 Joseph Myers <joseph@codesourcery.com>
31049
31050 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
31051
31052 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
31053
31054 [BZ #21326]
31055 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
31056 [__cplusplus >= 201103] (__USE_ISOC99): Define.
31057 * math/Makefile (test-math-cxx11): New test.
31058 * math/test-math-cxx11.cc: New file.
31059
31060 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
31061
31062 * login/openpty.c (openpty): Close slave pty file descriptor on error.
31063
31064 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
31065 call to allocate the slave pty file descriptor.
31066
31067 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31068
31069 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
31070 [!__fma] (fma): Define using libm_alias_double.
31071 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
31072 [!__fma] (fma): Define using libm_alias_double.
31073
31074 * sysdeps/ieee754/float128/float128_private.h: Include
31075 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
31076 (libm_alias_ldouble_r): Undefine and redefine.
31077 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
31078 <libm-alias-ldouble.h>.
31079 (asinhl): Define using libm_alias_ldouble.
31080 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
31081 <libm-alias-ldouble.h>.
31082 (atanl): Define using libm_alias_ldouble.
31083 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
31084 <libm-alias-ldouble.h>.
31085 (cbrtl): Define using libm_alias_ldouble.
31086 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
31087 <libm-alias-ldouble.h>.
31088 (ceill): Define using libm_alias_ldouble.
31089 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
31090 <libm-alias-ldouble.h>.
31091 (copysignl): Define using libm_alias_ldouble.
31092 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
31093 <libm-alias-ldouble.h>.
31094 (cosl): Define using libm_alias_ldouble.
31095 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
31096 <libm-alias-ldouble.h>.
31097 (erfl): Define using libm_alias_ldouble.
31098 (erfcl): Likewise.
31099 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
31100 <libm-alias-ldouble.h>.
31101 (expm1l): Define using libm_alias_ldouble.
31102 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31103 <libm-alias-ldouble.h>.
31104 (fabsl): Define using libm_alias_ldouble.
31105 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31106 <libm-alias-ldouble.h>.
31107 (floorl): Define using libm_alias_ldouble.
31108 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31109 <libm-alias-ldouble.h>.
31110 (fmal): Define using libm_alias_ldouble.
31111 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31112 <libm-alias-ldouble.h>.
31113 (frexpl): Define using libm_alias_ldouble.
31114 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31115 libm_alias_ldouble.
31116 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31117 <libm-alias-ldouble.h>.
31118 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31119 libm_alias_ldouble.
31120 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31121 <libm-alias-ldouble.h>.
31122 (getpayloadl): Define using libm_alias_ldouble.
31123 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31124 <libm-alias-ldouble.h>.
31125 (llrintl): Define using libm_alias_ldouble.
31126 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31127 <libm-alias-ldouble.h>.
31128 (llroundl): Define using libm_alias_ldouble.
31129 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31130 <libm-alias-ldouble.h>.
31131 (logbl): Define using libm_alias_ldouble.
31132 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31133 <libm-alias-ldouble.h>.
31134 (lrintl): Define using libm_alias_ldouble.
31135 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31136 <libm-alias-ldouble.h>.
31137 (lroundl): Define using libm_alias_ldouble.
31138 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31139 <libm-alias-ldouble.h>.
31140 (modfl): Define using libm_alias_ldouble.
31141 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31142 <libm-alias-ldouble.h>.
31143 (nearbyintl): Define using libm_alias_ldouble.
31144 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31145 <libm-alias-ldouble.h>.
31146 (nextafterl): Define using libm_alias_ldouble.
31147 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31148 <libm-alias-ldouble.h>.
31149 (nextupl): Define using libm_alias_ldouble.
31150 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31151 <libm-alias-ldouble.h>.
31152 (remquol): Define using libm_alias_ldouble.
31153 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31154 <libm-alias-ldouble.h>.
31155 (rintl): Define using libm_alias_ldouble.
31156 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31157 <libm-alias-ldouble.h>.
31158 (roundevenl): Define using libm_alias_ldouble.
31159 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31160 <libm-alias-ldouble.h>.
31161 (roundl): Define using libm_alias_ldouble.
31162 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31163 using libm_alias_ldouble.
31164 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31165 <libm-alias-ldouble.h>.
31166 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31167 Define using libm_alias_ldouble.
31168 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31169 <libm-alias-ldouble.h>.
31170 (sincosl): Define using libm_alias_ldouble.
31171 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31172 <libm-alias-ldouble.h>.
31173 (sinl): Define using libm_alias_ldouble.
31174 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31175 <libm-alias-ldouble.h>.
31176 (tanhl): Define using libm_alias_ldouble.
31177 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31178 <libm-alias-ldouble.h>.
31179 (tanl): Define using libm_alias_ldouble.
31180 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31181 <libm-alias-ldouble.h>.
31182 (totalorderl): Define using libm_alias_ldouble.
31183 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31184 <libm-alias-ldouble.h>.
31185 (totalordermagl): Define using libm_alias_ldouble.
31186 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31187 <libm-alias-ldouble.h>.
31188 (truncl): Define using libm_alias_ldouble.
31189 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31190 libm_alias_ldouble.
31191 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31192 libm_alias_ldouble.
31193 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31194 <libm-alias-ldouble.h>.
31195 (weak_alias): Do not undefine and redefine.
31196 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31197 (copysignl): Define with long_double_symbol only if [IS_IN
31198 (libc)].
31199 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31200 <libm-alias-ldouble.h>.
31201 (weak_alias): Do not undefine and redefine.
31202 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31203 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31204 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31205 <libm-alias-ldouble.h>.
31206 (weak_alias): Do not undefine and redefine.
31207 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31208 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31209 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31210 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31211 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31212 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31213 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31214 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31215 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31216 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31217 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31218 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31219 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31220 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31221 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31222 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31223 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31224 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31225 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31226 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31227 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31228 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31229 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31230 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31231 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31232 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31233
31234 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31235
31236 [BZ #22111]
31237 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31238 (tcache_thread_freeres): Set tcache_shutting_down before
31239 freeing the tcache.
31240 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31241 * malloc/tst-malloc-tcache-leak.c: New file.
31242
31243 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31244
31245 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31246 back to powerpc32 file.
31247 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31248 (memrchr): Add __memrchr_power8 to ifunc list.
31249 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31250 extra bytes for unaligned inputs.
31251
31252 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31253
31254 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31255 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31256 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31257 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31258 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31259
31260 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31261
31262 * sysdeps/arm/libm-test-ulps: Update.
31263
31264 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31265 <libm-alias-ldouble.h>.
31266 (asinhl): Define using libm_alias_ldouble.
31267 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31268 <libm-alias-ldouble.h>.
31269 (cbrtl): Define using libm_alias_ldouble.
31270 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31271 <libm-alias-ldouble.h>.
31272 (copysignl): Define using libm_alias_ldouble.
31273 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31274 <libm-alias-ldouble.h>.
31275 (cosl): Define using libm_alias_ldouble.
31276 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31277 <libm-alias-ldouble.h>.
31278 (erfl): Define using libm_alias_ldouble.
31279 (erfcl): Likewise.
31280 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31281 <libm-alias-ldouble.h>.
31282 (fmal): Define using libm_alias_ldouble.
31283 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31284 <libm-alias-ldouble.h>.
31285 (frexpl): Define using libm_alias_ldouble.
31286 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31287 libm_alias_ldouble.
31288 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31289 <libm-alias-ldouble.h>.
31290 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31291 libm_alias_ldouble.
31292 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31293 <libm-alias-ldouble.h>.
31294 (getpayloadl): Define using libm_alias_ldouble.
31295 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31296 <libm-alias-ldouble.h>.
31297 (llrintl): Define using libm_alias_ldouble.
31298 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31299 <libm-alias-ldouble.h>.
31300 (llroundl): Define using libm_alias_ldouble.
31301 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31302 <libm-alias-ldouble.h>.
31303 (lrintl): Define using libm_alias_ldouble.
31304 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31305 <libm-alias-ldouble.h>.
31306 (lroundl): Define using libm_alias_ldouble.
31307 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31308 <libm-alias-ldouble.h>.
31309 (modfl): Define using libm_alias_ldouble.
31310 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31311 <libm-alias-ldouble.h>.
31312 (nextupl): Define using libm_alias_ldouble.
31313 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31314 <libm-alias-ldouble.h>.
31315 (remquol): Define using libm_alias_ldouble.
31316 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31317 <libm-alias-ldouble.h>.
31318 (roundevenl): Define using libm_alias_ldouble.
31319 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31320 <libm-alias-ldouble.h>.
31321 (roundl): Define using libm_alias_ldouble.
31322 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31323 using libm_alias_ldouble.
31324 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31325 <libm-alias-ldouble.h>.
31326 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31327 <libm-alias-ldouble.h>.
31328 (setpayloadsigl): Define using libm_alias_ldouble.
31329 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31330 <libm-alias-ldouble.h>.
31331 (sincosl): Define using libm_alias_ldouble.
31332 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31333 <libm-alias-ldouble.h>.
31334 (sinl): Define using libm_alias_ldouble.
31335 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31336 <libm-alias-ldouble.h>.
31337 (tanhl): Define using libm_alias_ldouble.
31338 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31339 <libm-alias-ldouble.h>.
31340 (tanl): Define using libm_alias_ldouble.
31341 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31342 <libm-alias-ldouble.h>.
31343 (totalorderl): Define using libm_alias_ldouble.
31344 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31345 <libm-alias-ldouble.h>.
31346 (totalordermagl): Define using libm_alias_ldouble.
31347 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31348 libm_alias_ldouble.
31349 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31350 libm_alias_ldouble.
31351
31352 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31353
31354 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31355 memmove_falkor.
31356 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31357 (__libc_ifunc_impl_list): Likewise.
31358 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31359 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31360
31361 * benchtests/bench-memmove-walk.c: New file.
31362 * benchtests/Makefile (string-benchset): Add it.
31363
31364 * benchtests/bench-memset-walk.c: New file.
31365 * benchtests/Makefile (string-benchset): Add it.
31366
31367 * benchtests/bench-memcpy-walk.c: New file.
31368 * benchtests/Makefile (string-benchset): Add it.
31369
31370 2017-10-05 Florian Weimer <fweimer@redhat.com>
31371
31372 nscd: Eliminate compilation time dependency in the build output.
31373 * nscd/nscd_stat.c (STATDATA_VERSION)
31374 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31375 (STATDATA_VERSION_FULL): New macro definitions.
31376 (compilation): Remove.
31377 (struct statdata): Adjust version member.
31378 (send_stats): Set version from STATDATA_VERSION_FULL.
31379 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31380
31381 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31382
31383 * configure.ac (--enable-add-ons): Remove option.
31384 (machine): Do not mention add-ons in comment.
31385 (LIBC_PRECONFIGURE): Likewise.
31386 (add_ons): Remove variable and sanity checks and logic to locate
31387 add-ons.
31388 (add_ons_automatic): Remove variable.
31389 (configured_add_ons): Likewise.
31390 (add_ons_sfx): Likewise.
31391 (add_ons_pfx): Likewise.
31392 (add_on_subdirs): Likewise.
31393 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31394 consideration of add-ons in Implies handling.
31395 (sysdeps_add_ons): Likewise.
31396 * configure: Regenerated.
31397 * libidn/configure.ac: Remove.
31398 * libidn/configure: Likewise.
31399 * sysdeps/unix/inet/configure.ac: New file.
31400 * sysdeps/unix/inet/configure: New generated file.
31401 * sysdeps/unix/inet/Subdirs: Add libidn.
31402 * Makeconfig (sysdeps-srcdirs): Remove variable.
31403 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31404 ($(common-objpfx)config.status): Do not depend on add-on files.
31405 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31406 comment.
31407 (all-subdirs): Do not include $(add-on-subdirs).
31408 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31409 * config.make.in (add-ons): Remove variable.
31410 (add-on-subdirs): Likewise.
31411 (sysdeps-add-ons): Likewise.
31412 * manual/Makefile (add-chapters): Remove.
31413 ($(objpfx)texis): Do not depend on $(add-chapters).
31414 (nonexamples): Do not handle $(add-chapters).
31415 (examples): Do not handle $(add-ons).
31416 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31417 libc-texinfo.sh.
31418 * manual/install.texi (Installation): Do not mention add-ons.
31419 (--enable-add-ons): Do not document configure option.
31420 * INSTALL: Regenerated.
31421 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31422 * manual/maint.texi (Hierarchy Conventions): Do not mention
31423 add-ons.
31424 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31425 --enable-add-ons.
31426 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31427 add-ons.
31428 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31429 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31430
31431 2017-10-05 Andreas Schwab <schwab@suse.de>
31432
31433 [BZ #15142]
31434 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31435 (_IO_flush_all_lockp): Always lock list_all_lock.
31436 (_IO_flush_all_linebuffered): Likewise.
31437 (_IO_unbuffer_all): Likewise.
31438
31439 2017-10-05 Florian Weimer <fweimer@redhat.com>
31440
31441 [BZ #15436]
31442 Do not flush stdio streams on abort.
31443 * stdlib/abort.c (fflush): Remove macro definition.
31444 (abort): Remove stages related to stdio flushing.
31445
31446 2017-10-05 Florian Weimer <fweimer@redhat.com>
31447
31448 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31449
31450 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31451
31452 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31453
31454 2017-10-05 Florian Weimer <fweimer@redhat.com>
31455
31456 * support/support_format_hostent.c (support_format_hostent): Add
31457 more error information for NETDB_INTERNAL.
31458
31459 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31460
31461 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31462 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31463 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31464 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31465 AC_DEFINE if multi-arch is enabled.
31466 * sysdeps/i386/configure: Regenerated.
31467
31468 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31469
31470 * Makeconfig (+link-static-before-libc): Use
31471 $(DEFAULT-LDFLAGS-$(@F)).
31472 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31473 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31474 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31475
31476 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31477
31478 * elf/Makefile (tests): Add tst-main1.
31479 (modules-names): Add tst-main1mod.
31480 ($(objpfx)tst-main1): New.
31481 (CRT-tst-main1): Likewise.
31482 (LDFLAGS-tst-main1): Likewise.
31483 (LDLIBS-tst-main1): Likewise.
31484 (tst-main1mod.so-no-z-defs): Likewise.
31485 * elf/tst-main1.c: New file.
31486 * elf/tst-main1mod.c: Likewise.
31487
31488 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31489
31490 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31491
31492 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31493
31494 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31495 (fma): Define using libm_alias_double.
31496 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31497 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31498 <math_ldbl_opt.h>.
31499 (fmal): Do not define as compat symbol here.
31500 * sysdeps/alpha/fpu/s_fma.c: New file.
31501
31502 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31503
31504 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31505
31506 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31507
31508 [BZ #22229]
31509 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31510 <math_ldbl_opt.h>
31511 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31512 and libc.
31513 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31514 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31515 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31516 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31517 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31518 Include <math_ldbl_opt.h>
31519 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31520 and libc.
31521 (compat_symbol): Undefine and redefine.
31522 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31523 <math_ldbl_opt.h>
31524 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31525 (compat_symbol): Undefine and redefine.
31526 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31527 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31528 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31529 GLIBC_2_1 for libm.
31530 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31531 GLIBC_2.0 copysignl symbol.
31532 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31533 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31534
31535 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31536
31537 2017-10-04 Florian Weimer <fweimer@redhat.com>
31538
31539 * scripts/check-local-headers.sh: Ignore nspr4 header file
31540 directory in addition to nspr.
31541
31542 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31543
31544 [BZ #17956]
31545 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31546 * configure: Regenerate.
31547 * crypt/Makefile (nss-cpp-flags): New variable.
31548 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31549 (CPPFLAGS-md5-crypt.c): Use it.
31550 * scripts/check-local-headers.sh: Ignore nspr header file
31551 directory.
31552
31553 2017-10-04 Andreas Schwab <schwab@suse.de>
31554
31555 * nis/Makefile (services): Remove compat.
31556 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31557 ($(objpfx)libnss_compat.so): Remove rule.
31558 * nis/Versions (libnss_compat): Remove.
31559 * nss/Makefile (services): Add compat.
31560 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31561 * nss/Versions (libnss_compat): Define.
31562 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31563 Don't include <rpc/types.h>. Replace bool_t by bool.
31564 * nss/nss_compat/compat-initgroups.c: Likewise.
31565 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31566 instead of <rpcsrv/ypclnt.h>.
31567 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31568 yp_get_default_domain.
31569 * nss/nss_compat/compat-pwd.c: Likewise.
31570 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31571 yp_get_default_domain.
31572 * nss/nss_compat/nisdomain.c: New file.
31573 * nss/nss_compat/nisdomain.h: Likewise.
31574
31575 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31576
31577 [BZ #22244]
31578 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31579 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31580
31581 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31582
31583 [BZ #22243]
31584 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31585 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31586
31587 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31588
31589 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31590 "movl main@GOTOFF(%ebx), %eax".
31591
31592 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31593
31594 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31595 allow undefined _DYNAMIC in PIE libc.a.
31596 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31597 Likewse.
31598
31599 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31600
31601 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31602 check _DYNAMIC.
31603
31604 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31605
31606 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31607 check _DYNAMIC.
31608
31609 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31610
31611 * math/test-math-iscanonical.cc (error): Replace bool with int.
31612
31613 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31614
31615 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31616 (modf): Define using libm_alias_double, only if [!__modf].
31617 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31618 <libm-alias-double.h>.
31619 (modf): Define using libm_alias_double, only if [!__modf].
31620 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31621 compat symbol here.
31622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31623 (weak_alias): Do not undefine and redefine.
31624 (strong_alias): Likewise.
31625 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31626 (weak_alias): Likewise.
31627 (strong_alias): Likewise.
31628
31629 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31630 (logb): Define using libm_alias_double, only if [!__logb].
31631 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31632 <libm-alias-double.h>.
31633 (logb): Define using libm_alias_double, only if [!__logb].
31634 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31636 (weak_alias): Do not undefine and redefine.
31637 (strong_alias): Likewise.
31638 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31639 (weak_alias): Likewise.
31640 (strong_alias): Likewise.
31641
31642 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31643
31644 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31645 Check SHARED instead PIC.
31646
31647 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31648
31649 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31650 [!__fmaf] (fmaf): Define using libm_alias_float.
31651
31652 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31653 (frexp): Define using libm_alias_double.
31654 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31655 <libm-alias-double.h>.
31656 (frexp): Define using libm_alias_double.
31657 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31658 compat symbol here.
31659
31660 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31661
31662 [BZ #22235]
31663 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31664 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31665 (CFLAGS-test-math-iscanonical.cc): New variable.
31666 * math/test-math-iscanonical.cc: New file.
31667 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31668 Provide a C++ implementation based on function overloading,
31669 rather than using __MATH_TG, which uses C-only builtins.
31670 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31671 Likewise.
31672 * sysdeps/powerpc/powerpc64le/Makefile
31673 (CFLAGS-test-math-iscanonical.cc): New variable.
31674
31675 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31676
31677 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31678 (ceil): Define using libm_alias_double.
31679 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31680 (floor): Define using libm_alias_double.
31681 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31682 <libm-alias-double.h>.
31683 (llround): Define using libm_alias_double.
31684 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31685 <libm-alias-double.h>.
31686 (lround): Define using libm_alias_double.
31687 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31688 <libm-alias-double.h>.
31689 (nearbyint): Define using libm_alias_double.
31690 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31691 <libm-alias-double.h>.
31692 (remquo): Define using libm_alias_double.
31693 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31694 (rint): Define using libm_alias_double.
31695 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31696 (round): Define using libm_alias_double.
31697 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31698 (trunc): Define using libm_alias_double.
31699 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31700 <libm-alias-double.h>.
31701 (ceil): Define using libm_alias_double.
31702 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31703 <libm-alias-double.h>.
31704 (floor): Define using libm_alias_double.
31705 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31706 <libm-alias-double.h>.
31707 (llround): Define using libm_alias_double.
31708 [_LP64] (lround): Likewise.
31709 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31710 <libm-alias-double.h>.
31711 [!_LP64] (lround): Define using libm_alias_double.
31712 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31713 <libm-alias-double.h>.
31714 (nearbyint): Define using libm_alias_double.
31715 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31716 <libm-alias-double.h>.
31717 (remquo): Define using libm_alias_double.
31718 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31719 <libm-alias-double.h>.
31720 (rint): Define using libm_alias_double.
31721 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31722 <libm-alias-double.h>.
31723 (round): Define using libm_alias_double.
31724 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31725 <libm-alias-double.h>.
31726 (trunc): Define using libm_alias_double.
31727 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31728 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31729 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31730 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31731 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31732 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31733 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31734 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31735 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31736
31737 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31738
31739 * math/w_remainder.c: New file.
31740 * math/w_remainderf.c: New file.
31741 * math/w_remainderl.c: New file.
31742
31743 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31744
31745 * elf/rtld.c (BOOTSTRAP_MAP): New.
31746 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31747 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31748 Likewise.
31749 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31750 Likewise.
31751 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31752 Likewise.
31753
31754 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31755
31756 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31757 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31758 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31759 rtld_hidden_data_ver): Define to empty.
31760 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31761 __assert_perror_fail): Likewise.
31762 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31763 (__rewinddir): Likewise.
31764 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31765 (__profile_frequency): Likewise.
31766 * include/setjmp.h (__sigsetjmp): Likewise.
31767 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31768 __libc_sigaction): Likewise.
31769 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31770 not set hidden attribute.
31771 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31772 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31773 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31774 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31775 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31776 __fxstatat64): Likewise.
31777 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31778 (__uname): Likewise.
31779 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31780 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31781 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31782 (NO_RTLD_HIDDEN): Set.
31783 * sysdeps/mach/hurd/configure: Refresh.
31784 * config.h.in: Refresh.
31785
31786 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31787
31788 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31789 (atan): Define using libm_alias_double.
31790 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31791 (tan): Define using libm_alias_double.
31792 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31793 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31794
31795 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31796 define as weak alias of __atan. Do not define any aliases if
31797 [__atan].
31798 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31799 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31800 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31801 as weak alias of __tan. Do not define any aliases if [__tan].
31802 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31803 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31804 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31805 __atan.
31806 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31807 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31808 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31809 and define as weak alias of __atan.
31810 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31811 __atan.
31812 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31813 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31814 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31815 define as weak alias of __tan.
31816
31817 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31818
31819 * math/w_lgamma.c: New file.
31820 * math/w_lgammaf.c: New file.
31821 * math/w_lgammal.c: New file.
31822
31823 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31824
31825 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31826 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31827 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31828 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31829 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31830 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31831 * sysdeps/i386/fpu/w_log2f.c: New file.
31832 * sysdeps/i386/fpu/w_logf.c: New file.
31833 * sysdeps/i386/fpu/w_powf.c: New file.
31834 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31835 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31836 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31837
31838 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31839 H.J. Lu <hongjiu.lu@intel.com>
31840
31841 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31842 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31843 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31844 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31845 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31846 the new expf code.
31847 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31848 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31849 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31850 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31851 * sysdeps/i386/fpu/w_exp2f.c: New file.
31852 * sysdeps/i386/fpu/w_expf.c: New file.
31853 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31854 * sysdeps/x86_64/fpu/w_expf.c: New file.
31855
31856 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31857
31858 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31859 (log2f): Likewise.
31860 (powf): Likewise.
31861 * math/w_log2f.c: New file.
31862 * math/w_logf.c: New file.
31863 * math/w_powf.c: New file.
31864 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31865 * math/w_logf_compat.c (__logf_compat): Likewise.
31866 * math/w_powf_compat.c (__powf_compat): Likewise.
31867 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31868 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31869 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31870 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31871 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31872 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31873 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31874 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31875 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31876 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31877 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31878 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31879 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31880 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31881 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31883 Likewise.
31884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31885 Likewise.
31886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31887 Likewise.
31888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31889 Likewise.
31890 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31891 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31892 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31893 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31894 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31895 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31896 Likewise.
31897 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31898 Likewise.
31899 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31900 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31901 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31902
31903 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31904
31905 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31906 (sysdep_routines): Add memrchr_power8.
31907 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31908 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31909 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31910 New file.
31911 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31912 (memrchr): Add __memrchr_power8 to ifunc list.
31913 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31914
31915 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31916
31917 [BZ #18822]
31918 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31919 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31920 libc_hidden_def.
31921 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31922 (__posix_fallocate64_l64): Likewise.
31923
31924 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31925
31926 [BZ #18822]
31927 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31928 (__sched_setaffinity_new): Add libc_hidden_proto and
31929 libc_hidden_def.
31930
31931 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31932
31933 [BZ #18822]
31934 * include/glob.h (__glob64): Add libc_hidden_proto.
31935 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31936 libc_hidden_def.
31937
31938 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31939
31940 [BZ #18822]
31941 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31942 attribute_hidden.
31943
31944 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31945
31946 [BZ #18822]
31947 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31948
31949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 [BZ #18822]
31952 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31953 libc_hidden_def.
31954
31955 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31956
31957 [BZ #18822]
31958 * csu/version.c (__libc_print_version): Add attribute_hidden.
31959
31960 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31961
31962 [BZ #18822]
31963 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31964
31965 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31966
31967 [BZ #18822]
31968 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31969
31970 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31971
31972 [BZ #18822]
31973 * nscd/nscd_helper.c (__nis_hash): New prototype.
31974
31975 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31976
31977 [BZ #18822]
31978 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31979 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31980 libc_hidden_def.
31981 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31982 * termios/tcgetattr.c (__tcgetattr): Likewise.
31983
31984 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31985
31986 [BZ #18822]
31987 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31988 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31989 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31990 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31991 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31992
31993 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31994
31995 [BZ #18822]
31996 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31997
31998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31999
32000 [BZ #18822]
32001 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
32002 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
32003
32004 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32005
32006 [BZ #18822]
32007 * intl/hash-string.h (__hash_string): Add attribute_hidden.
32008
32009 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32010
32011 [BZ #18822]
32012 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
32013 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
32014
32015 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32016
32017 [BZ #18822]
32018 * include/ifreq.h: New file.
32019 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
32020 (__ifreq): Likewise.
32021 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
32022 (__ifreq): Likewise.
32023
32024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32025
32026 [BZ #18822]
32027 * include/idna.h: New file.
32028 * inet/getnameinfo.c: Include <idna.h> instead of
32029 <libidn/idna.h>.
32030 (__idna_to_unicode_lzlz): Removed.
32031 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
32032 <libidn/idna.h>.
32033 (__idna_to_ascii_lz): Removed.
32034 (__idna_to_unicode_lzlz): Likewise.
32035
32036 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32037
32038 [BZ #18822]
32039 * include/plural-exp.h: New file.
32040 * intl/plural-exp.c: Include <plural-exp.h> instead of
32041 "plural-exp.h".
32042
32043 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32044
32045 [BZ #18822]
32046 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
32047 "getsourcefilter.h".
32048 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
32049 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
32050 "getsourcefilter.h".
32051 (__get_sol): Removed.
32052
32053 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32054
32055 [BZ #18822]
32056 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
32057 to ...
32058 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
32059
32060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32061
32062 [BZ #18822]
32063 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
32064 attribute_hidden.
32065
32066 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32067
32068 [BZ #18822]
32069 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
32070
32071 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32072
32073 [BZ #18822]
32074 * include/search.h (__tdestroy): Add libc_hidden_proto.
32075 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
32076
32077 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32078
32079 [BZ #18822]
32080 * include/assert.h (__assert_fail_base): Add attribute_hidden.
32081
32082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32083
32084 [BZ #18822]
32085 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
32086 attribute_hidden.
32087
32088 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32089
32090 [BZ #18822]
32091 * include/signal.h (__kill): Add libc_hidden_proto.
32092 (__sigblock): Likewise.
32093 (__sigprocmask): Likewise.
32094 (__sigaltstack): Likewise.
32095 * signal/kill.c (__kill): Add libc_hidden_def.
32096 * signal/sigblock.c (__sigblock): Likewise.
32097 * signal/sigprocmask.c (__sigprocmask): Likewise.
32098 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
32099 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
32100 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32101 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32102 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32103 Likewise.
32104 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32105 Likewise.
32106 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32107 (__sigprocmask): Likewise.
32108 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32109 Likewise.
32110 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32111 (__sigprocmask): Likewise.
32112 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32113 Likewise.
32114
32115 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32116
32117 [BZ #18822]
32118 * include/string.h (__strsep): Add libc_hidden_proto.
32119 * string/strsep.c (__strsep): Add libc_hidden_def.
32120
32121 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32122
32123 [BZ #18822]
32124 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32125 attribute_hidden.
32126 (__spawni): Likewise.
32127
32128 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32129
32130 [BZ #18822]
32131 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32132 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32133 libc_hidden_def.
32134
32135 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32136
32137 [BZ #18822]
32138 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32139
32140 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32141
32142 [BZ #18822]
32143 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32144 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32145 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32146 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32147 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32148 Likewise.
32149 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32150 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32151
32152 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32153
32154 [BZ #18822]
32155 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32156 (__dcigettext): Likewise.
32157
32158 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32159
32160 [BZ #18822]
32161 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32162 libc_hidden_proto.
32163 (__get_nprocs): Likewise.
32164 (__get_phys_pages): Likewise.
32165 (__get_avphys_pages): Likewise.
32166 (__get_child_max): Add attribute_hidden.
32167 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32168 (__get_nprocs): Likewise.
32169 (__get_phys_pages): Likewise.
32170 (__get_avphys_pages): Likewise.
32171 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32172 libc_hidden_def.
32173 (__get_nprocs): Likewise.
32174 (__get_phys_pages): Likewise.
32175 (__get_avphys_pages): Likewise.
32176 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32177 libc_hidden_def.
32178 (__get_nprocs_conf): Likewise.
32179 (__get_phys_pages): Likewise.
32180 (__get_avphys_pages): Likewise.
32181
32182 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32183
32184 [BZ #18822]
32185 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32186 attribute_hidden.
32187 (__netlink_close): Likewise.
32188 (__netlink_free_handle): Likewise.
32189 (__netlink_request): Likewise.
32190
32191 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32192
32193 [BZ #18822]
32194 * include/rpc/rpc.h (__rpc_thread_variables): Add
32195 attribute_hidden.
32196 (__rpc_thread_svc_cleanup): Likewise.
32197 (__rpc_thread_clnt_cleanup): Likewise.
32198 (__rpc_thread_key_cleanup): Likewise.
32199
32200 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32201
32202 [BZ #18822]
32203 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32204 (__writev): Likewise.
32205 * misc/readv.c (__readv): Add libc_hidden_def.
32206 * misc/writev.c (__writev): Likewise.
32207 * sysdeps/posix/readv.c (__readv): Likewise.
32208 * sysdeps/posix/writev.c (__writev): Likewise.
32209 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32210 (__readv): Likewise.
32211 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32212 (__writev): Likewise.
32213
32214 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32215
32216 [BZ #18822]
32217 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32218 (__regcomp): Add libc_hidden_proto.
32219 (__regexec): Likewise.
32220 (__regfree): Likewise.
32221 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32222 (__regfree): Likewise.
32223 * posix/regexec.c (__regexec): Likewise.
32224
32225 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32226
32227 [BZ #18822]
32228 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32229 (__getutent): Likewise.
32230 (__getutid): Likewise.
32231 (__getutline): Likewise.
32232 (__pututline): Likewise.
32233 (__getutent_r): Likewise.
32234 (__getutid_r): Likewise.
32235 (__getutline_r): Likewise.
32236 (__utmpname): Add attribute_hidden.
32237 (__setutent): Likewise.
32238 (__endutent): Likewise.
32239 * login/getutent.c (__getutent): Add libc_hidden_def.
32240 * login/getutent_r.c (__getutent_r): Likewise.
32241 (__pututline): Likewise.
32242 * login/getutid.c (__getutid): Likewise.
32243 * login/getutid_r.c (__getutid_r): Likewise.
32244 * login/getutline.c (__getutline): Likewise.
32245 * login/getutline_r.c (__getutline_r): Likewise.
32246 * login/updwtmp.c (__updwtmp): Likewise.
32247
32248 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32249
32250 [BZ #18822]
32251 * include/dirent.h (__opendir): Always add attribute_hidden.
32252 (__fdopendir): Likewise.
32253 (__closedir): Likewise.
32254 (__readdir): Likewise.
32255 (__readdir64): Add libc_hidden_proto.
32256 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32257 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32258 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32259 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32260 New alias.
32261
32262 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32263
32264 [BZ #18822]
32265 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32266 * include/netdb.h (__gethostbyaddr_r): Likewise.
32267 (__gethostbyname_r): Likewise.
32268 (__gethostbyname2_r): Likewise.
32269 (__getnetbyaddr_r): Likewise.
32270 (__getnetbyname_r): Likewise.
32271 (__getservbyname_r): Likewise.
32272 (__getservbyport_r): Likewise.
32273 (__getprotobyname_r): Likewise.
32274 (__getprotobynumber_r): Likewise.
32275 (__getnetgrent_r): Likewise.
32276 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32277 (__getrpcbynumber_r): Likewise.
32278 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32279
32280 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32281
32282 [BZ #18822]
32283 * include/stdio.h (__fcloseall): Add attribute_hidden.
32284 (__getline): Likewise.
32285 (__path_search): Likewise.
32286 (__gen_tempname): Likewise.
32287 (__libc_message): Likewise.
32288 (__flockfile): Likewise.
32289 (__funlockfile): Likewise.
32290 (__fxprintf): Likewise.
32291 (__fxprintf_nocancel): Likewise.
32292
32293 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32294
32295 [BZ #18822]
32296 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32297 (__sgetsgent_r): Likewise.
32298
32299 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32300
32301 [BZ #18822]
32302 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32303 (__statfs64): Likewise.
32304 (__fstatfs64): Likewise.
32305 * include/sys/statvfs.h (__statvfs64): Likewise.
32306 (__fstatvfs64): Likewise.
32307 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32308 (__statfs_filesize_max): Likewise.
32309 (__statfs_symlinks): Likewise.
32310 (__statfs_chown_restricted): Likewise.
32311
32312 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32313
32314 [BZ #18822]
32315 * include/time.h (__tzstring): Add attribute_hidden.
32316 (__tzfile_read): Likewise.
32317 (__tzfile_compute): Likewise.
32318 (__tzfile_default): Likewise.
32319 (__tzset_parse_tz): Likewise.
32320 (__offtime): Likewise.
32321 (__asctime_r): Likewise.
32322 (__tzset): Likewise.
32323 (__tz_convert): Likewise.
32324 (__getdate_r): Likewise.
32325 (__getclktck): Likewise.
32326
32327 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32328
32329 [BZ #18822]
32330 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32331 (__nscd_unmap): Likewise.
32332 (__nscd_cache_search): Likewise.
32333 (__nscd_get_nl_timestamp): Likewise.
32334 (__nscd_getpwnam_r): Likewise.
32335 (__nscd_getpwuid_r): Likewise.
32336 (__nscd_getgrnam_r): Likewise.
32337 (__nscd_getgrgid_r): Likewise.
32338 (__nscd_gethostbyname_r): Likewise.
32339 (__nscd_gethostbyname2_r): Likewise.
32340 (__nscd_gethostbyaddr_r): Likewise.
32341 (__nscd_getai): Likewise.
32342 (__nscd_getgrouplist): Likewise.
32343 (__nscd_getservbyname_r): Likewise.
32344 (__nscd_getservbyport_r): Likewise.
32345 (__nscd_innetgr): Likewise.
32346 (__nscd_setnetgrent): Likewise.
32347
32348 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32349
32350 [BZ #18822]
32351 * include/gmp.h: Declare internal functions only if _ISOMAC is
32352 undefined.
32353 (__mpn_extract_double): Add attribute_hidden.
32354 (__mpn_extract_long_double): Likewise.
32355 (__mpn_extract_float128): Likewise.
32356 (__mpn_construct_float): Likewise.
32357 (__mpn_construct_double): Likewise.
32358 (__mpn_construct_long_double): Likewise.
32359 (__mpn_construct_float128): Likewise.
32360 (mpn_add_1): Likewise.
32361 (mpn_addmul_1): Likewise.
32362 (mpn_add_n): Likewise.
32363 (mpn_cmp): Likewise.
32364 (mpn_divrem): Likewise.
32365 (mpn_lshift): Likewise.
32366 (mpn_mul): Likewise.
32367 (mpn_mul_1): Likewise.
32368 (mpn_rshift): Likewise.
32369 (mpn_sub_1): Likewise.
32370 (mpn_submul_1): Likewise.
32371 (mpn_sub_n): Likewise.
32372
32373 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32374
32375 [BZ #18822]
32376 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32377 (__wcscat): Likewise.
32378 (__btowc): Likewise.
32379 (__wcrtomb): Likewise.
32380 (__mbsrtowcs): Likewise.
32381 (__wcsrtombs): Likewise.
32382 (__mbsnrtowcs): Likewise.
32383 (__wcsnrtombs): Likewise.
32384 (__wcsncpy): Likewise.
32385 (__wcpncpy): Likewise.
32386 (__wmemcpy): Likewise.
32387 (__wmempcpy): Likewise.
32388 (__wmemmove): Likewise.
32389 (__wcschrnul): Likewise.
32390 (__vfwscanf): Likewise.
32391 (__vswprintf): Likewise.
32392 (__fwprintf): Likewise.
32393 (__vfwprintf): Likewise.
32394
32395 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32396
32397 [BZ #18822]
32398 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32399 (__getgrgid_r): Likewise.
32400 (__getgrnam_r): Likewise.
32401 * include/pwd.h (__getpwuid_r): Likewise.
32402 (__getpwnam_r): Likewise.
32403 (__fgetpwent_r): Likewise.
32404 * include/shadow.h (__getspnam_r): Likewise.
32405 (__sgetspent_r): Likewise.
32406 (__fgetspent_r): Likewise.
32407
32408 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32409
32410 [BZ #18822]
32411 * include/unistd.h (__access): Add attribute_hidden.
32412 (__lseek64): Likewise.
32413 (__libc_pread64): Likewise.
32414 (__pipe2): Likewise.
32415 (__sleep): Likewise.
32416 (__chdir): Likewise.
32417 (__fchdir): Likewise.
32418 (__getcwd): Likewise.
32419 (__rmdir): Likewise.
32420 (__execvpe): Likewise.
32421 (__execve): Likewise.
32422 (__setsid): Likewise.
32423 (__getuid): Likewise.
32424 (__geteuid): Likewise.
32425 (__getgid): Likewise.
32426 (__getegid): Likewise.
32427 (__getgroups): Likewise.
32428 (__group_member): Likewise.
32429 (__ttyname_r): Likewise.
32430 (__isatty): Likewise.
32431 (__readlink): Likewise.
32432 (__unlink): Likewise.
32433 (__gethostname): Likewise.
32434 (__profil): Likewise.
32435 (__getdtablesize): Likewise.
32436 (__brk): Likewise.
32437 (__ftruncate): Likewise.
32438 (__ftruncate64): Likewise.
32439
32440 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32441
32442 [BZ #18822]
32443 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32444 * argp/argp-fs-xinl.c: Likewise.
32445 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32446 * argp/argp-parse.c: Include <argp.h>.
32447 * argp/argp-xinl.c: Likewise.
32448 * include/argp-fmtstream.h: New file.
32449 * include/argp.h (__argp_error): Add attribute_hidden.
32450 (__argp_failure): Likewise.
32451 (__argp_input): Likewise.
32452 (__argp_state_help): Likewise.
32453
32454 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32455
32456 [BZ #18822]
32457 * include/wchar.h (____wcstof_l_internal): New prototype.
32458 (____wcstod_l_internal): Likewise.
32459 (____wcstold_l_internal): Likewise.
32460 (____wcstol_l_internal): Likewise.
32461 (____wcstoul_l_internal): Likewise.
32462 (____wcstoll_l_internal): Likewise.
32463 (____wcstoull_l_internal): Likewise.
32464 (____wcstof128_l_internal): Likewise.
32465 * sysdeps/ieee754/float128/wcstof128.c
32466 (____wcstof128_l_internal): Removed.
32467 * sysdeps/ieee754/float128/wcstof128_l.c
32468 (____wcstof128_l_internal): Likewise.
32469 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32470 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32471 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32472 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32473 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32474 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32475 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32476 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32477 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32478 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32479
32480 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32481
32482 [BZ #18822]
32483 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32484 instead of <sys/statvfs.h>.
32485 (__internal_statvfs): Removed.
32486 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32487 instead of <sys/statvfs.h>.
32488 (__internal_statvfs64): Removed.
32489 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32490 "internal_statvfs.h" instead of <sys/statvfs.h>.
32491 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32492 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32493 instead of <sys/statvfs.h>.
32494 (__internal_statvfs): Removed.
32495 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32496 instead of <sys/statvfs.h>.
32497 (__internal_statvfs64): Removed.
32498
32499 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32500
32501 [BZ #18822]
32502 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32503 (__gconv_close): Likewise.
32504 (__gconv): Likewise.
32505 (__gconv_find_transform): Likewise.
32506 (__gconv_lookup_cache): Likewise.
32507 (__gconv_compare_alias_cache): Likewise.
32508 (__gconv_load_cache): Likewise.
32509 (__gconv_get_path): Likewise.
32510 (__gconv_close_transform): Likewise.
32511 (__gconv_release_cache): Likewise.
32512 (__gconv_find_shlib): Likewise.
32513 (__gconv_release_shlib): Likewise.
32514 (__gconv_get_builtin_trans): Likewise.
32515 (__gconv_compare_alias): Likewise.
32516 * include/dlfcn.h (_dlerror_run): Likewise.
32517 * include/stdio.h (__fortify_fail_abort): Likewise.
32518 * include/time.h (__tz_compute): Likewise.
32519 (__strptime_internal): Likewise.
32520 * intl/gettextP.h (_nl_find_domain): Likewise.
32521 (_nl_load_domain): Likewise.
32522 (_nl_find_msg): Likewise.
32523 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32524 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32525 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32526 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32527 (__gai_find_request): Likewise.
32528 (__gai_remove_request): Likewise.
32529 (__gai_notify): Likewise.
32530 (__gai_notify_only): Likewise.
32531 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32532 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32533 (_dl_non_dynamic_init): Likewise.
32534 (_dl_aux_init): Likewise.
32535 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32536 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32537 Likewise.
32538 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32539 (__wcsmbs_clone_conv): Likewise.
32540 (__wcsmbs_named_conv): Likewise.
32541
32542 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32543
32544 [BZ #18822]
32545 * include/stdlib.h (__random): Add attribute_hidden.
32546 (__random_r): Likewise.
32547 (__srandom_r): Likewise.
32548 (__initstate_r): Likewise.
32549 (__setstate_r): Likewise.
32550 (__erand48_r): Likewise.
32551 (__nrand48_r): Likewise.
32552 (__jrand48_r): Likewise.
32553 (__srand48_r): Likewise.
32554 (__seed48_r): Likewise.
32555 (__lcong48_r): Likewise.
32556 (__drand48_iterate): Likewise.
32557 (__setenv): Likewise.
32558 (__unsetenv): Likewise.
32559 (__clearenv): Likewise.
32560 (__ptsname_r): Likewise.
32561 (__posix_openpt): Likewise.
32562 (__add_to_environ): Likewise.
32563 (__realpath): Add libc_hidden_proto.
32564 (__ecvt_r): Likewise.
32565 (__fcvt_r): Likewise.
32566 (__qecvt_r): Likewise.
32567 (__qfcvt_r): Likewise.
32568 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32569 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32570
32571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32572
32573 [BZ #18822]
32574 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32575 * include/time.h (__mktime_internal): Likewise.
32576 * libio/iolibio.h (__fopen_internal): Likewise.
32577
32578 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32579
32580 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32581 pointer in frame.
32582 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32583 Correct offset used to restore PIC register.
32584
32585 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32586
32587 [BZ libc/22165]
32588 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32589 code to load address of __getcontext_ret when generating PIC code.
32590
32591 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32592
32593 * elf/Makefile (tests-static-internal): Add
32594 tst-tls1-static-non-pie.
32595 (LDFLAGS-tst-tls1-static-non-pie): New.
32596 * elf/tst-tls1-static-non-pie.c: New file.
32597
32598 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32599
32600 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32601 (asinh): Define using libm_alias_double.
32602 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32603 (cbrt): Define using libm_alias_double.
32604 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32605 <libm-alias-double.h>.
32606 (copysign): Define using libm_alias_double.
32607 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32608 (erf): Define using libm_alias_double.
32609 (erfc): Likewise.
32610 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32611 (expm1): Define using libm_alias_double.
32612 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32613 (fabs): Define using libm_alias_double.
32614 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32615 libm_alias_double.
32616 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32617 <libm-alias-double.h>.
32618 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32619 libm_alias_double.
32620 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32621 <libm-alias-double.h>.
32622 (getpayload): Define using libm_alias_double.
32623 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32624 <libm-alias-double.h>.
32625 (llrint): Define using libm_alias_double.
32626 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32627 (lrint): Define using libm_alias_double.
32628 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32629 <libm-alias-double.h>.
32630 (nextup): Define using libm_alias_double.
32631 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32632 <libm-alias-double.h>.
32633 (roundeven): Define using libm_alias_double.
32634 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32635 libm_alias_double.
32636 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32637 <libm-alias-double.h>.
32638 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32639 using libm_alias_double.
32640 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32641 (cos): Define using libm_alias_double.
32642 (sin): Likewise.
32643 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32644 <libm-alias-double.h>.
32645 (sincos): Define using libm_alias_double.
32646 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32647 (tanh): Define using libm_alias_double.
32648 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32649 <libm-alias-double.h>.
32650 (totalorder): Define using libm_alias_double.
32651 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32652 <libm-alias-double.h>.
32653 (totalordermag): Define using libm_alias_double.
32654 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32655 libm_alias_double.
32656 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32657 libm_alias_double.
32658 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32659 <libm-alias-double.h>.
32660 (getpayload): Define using libm_alias_double.
32661 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32662 <libm-alias-double.h>.
32663 (roundeven): Define using libm_alias_double.
32664 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32665 <libm-alias-double.h>.
32666 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32667 <libm-alias-double.h>.
32668 (totalorder): Define using libm_alias_double.
32669 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32670 <libm-alias-double.h>.
32671 (totalordermag): Define using libm_alias_double.
32672 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32673 libc compat symbol here.
32674 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32675 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32676 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32677 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32678 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32679 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32680 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32681 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32682 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32683 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32684
32685 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32686
32687 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32688 _dl_relocate_static_pie instead of _dl_start to compute load
32689 address in static PIE. Return 0 if _DYNAMIC is undefined for
32690 static executable.
32691
32692 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32693
32694 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32695 _DYNAMIC is undefined for static executable.
32696
32697 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32698
32699 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32700
32701 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32702
32703 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32704
32705 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32706
32707 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32708 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32709 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32710 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32711 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32712 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32713 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32714 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32715 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32716 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32717 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32718 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32719 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32720 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32721 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32722 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32723 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32724
32725 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32726
32727 * math/bits/cmathcalls.h (cimag): Remove inline.
32728 (creal): Remove inline.
32729 (conj): Remove inline.
32730
32731 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32732
32733 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32734 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32735 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32736 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32737 (issignalingf_inline): Likewise.
32738 (POWF_LOG2_TABLE_BITS): Likewise.
32739 (POWF_LOG2_POLY_ORDER): Likewise.
32740 (POWF_SCALE_BITS): Likewise.
32741 (POWF_SCALE): Likewise.
32742 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32743 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32744 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32745
32746 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32747
32748 * math/Makefile (type-float-routines): Add e_log2f_data.
32749 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32750 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32751 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32752 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32753 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32754 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32755 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32756
32757 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32758
32759 * math/Makefile (type-float-routines): Add e_logf_data.
32760 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32761 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32762 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32763 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32764 * sysdeps/i386/fpu/e_logf_data.c: New file.
32765 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32766 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32767
32768 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32769
32770 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32771 undefined _DYNAMIC in PIE libc.a.
32772 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32773 Likewse.
32774
32775 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32776
32777 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32778 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32779 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32780 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32781 (__signbit): Remove.
32782 (__signbitl): Remove.
32783 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32784 (__signbit): Remove.
32785 (__signbitl): Remove.
32786 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32787 (__signbit): Remove.
32788 (__signbitl): Remove.
32789 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32790 (__signbit): Remove.
32791 (__signbitl): Remove.
32792 * sysdeps/tile/bits/mathinline.h: Delete file.
32793 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32794 (__signbit): Remove.
32795 (__signbitl): Remove.
32796
32797 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32798
32799 * math/math.h: Improve handling of C99 isgreater macros.
32800 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32801 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32802 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32803 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32804 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32805
32806 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32807
32808 * sysdeps/aarch64/libm-test-ulps: Update.
32809
32810 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32811
32812 [BZ #22225]
32813 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32814 math_opt_barrier on argument when doing arithmetic on it.
32815 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32816 Likewise. Use math_force_eval not math_opt_barrier after
32817 arithmetic.
32818 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32819 math_opt_barrier on argument when doing arithmetic on it.
32820 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32821 Likewise.
32822
32823 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32824
32825 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32826 libc_hidden_def.
32827 (__freeifaddrs): Likewise.
32828
32829 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32830
32831 * include/dirent.h (__dirfd): New declaration.
32832 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32833 alias.
32834 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32835 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32836 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32837 * include/unistd.h (__revoke): New declaration.
32838 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32839 alias.
32840 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32841 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32842 revoke.
32843 * include/dirent.h (__seekdir): New declaration.
32844 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32845 redefine as weak alias.
32846 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32847 of seekdir.
32848 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32849 and use libc_hidden_def on them.
32850 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32851 them.
32852 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32853 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32854 instead of getifaddrs and freeifaddrs.
32855
32856 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32857
32858 [BZ #18822]
32859 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32860 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32861 (__dso_handle): Remove declaration.
32862 * dlfcn/tstatexit.c (__dso_handle): Removed.
32863 (main): Don't check __dso_handle.
32864 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32865 (main): Don't check __dso_handle.
32866 * include/dso_handle.h: New file.
32867 * malloc/mtrace.c: Include <dso_handle.h>.
32868 (mtrace): Pass __dso_handle directly.
32869 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32870 (__dso_handle): Remove declaration.
32871 (__pthread_atfork): Pass __dso_handle directly.
32872 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32873 (__dso_handle): Removed.
32874 * posix/wordexp-test.c: Include <dso_handle.h>.
32875 (__dso_handle): Remove declaration.
32876 (__app_register_atfork): Pass __dso_handle directly.
32877 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32878 (__dso_handle): Remove declaration.
32879 (at_quick_exit): Pass __dso_handle directly.
32880 * stdlib/atexit.c: Include <dso_handle.h>.
32881 (__dso_handle): Remove declaration.
32882 (atexit): Pass __dso_handle directly.
32883 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32884 (__dso_handle): Removed.
32885
32886 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32887
32888 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32889 using VDSO.
32890
32891 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32892
32893 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32894 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32895 values to correct default value for given type.
32896
32897 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32898
32899 [BZ #22101]
32900 * elf/Makefile (tests): Add tst-debug1.
32901 ($(objpfx)tst-debug1): New.
32902 ($(objpfx)tst-debug1.out): Likewise.
32903 ($(objpfx)tst-debug1mod1.so): Likewise.
32904 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32905 with p_filesz == 0.
32906 * elf/tst-debug1.c: New file.
32907
32908 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32909
32910 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32911 Define using __ifunc.
32912
32913 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32914
32915 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32916 exp2f() values.
32917
32918 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32919
32920 [BZ #22156]
32921 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32922
32923 2017-09-26 Florian Weimer <fweimer@redhat.com>
32924
32925 * resolv/Makefile (tests-internal): Fix typo in comment.
32926
32927 2017-09-26 Florian Weimer <fweimer@redhat.com>
32928
32929 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32930
32931 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32932
32933 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32934 Use an union instead of a max_align_t array for __space,
32935 so that __space is the same size on all platforms.
32936 * malloc/scratch_buffer_grow_preserve.c
32937 (__libc_scratch_buffer_grow_preserve): Likewise.
32938
32939 [BZ #22183]
32940 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32941 version to 2.
32942 * posix/Makefile (routines): Add glob-lstat-compat and
32943 glob64-lstat-compat.
32944 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32945 * posix/glob-lstat-compat.c: New file.
32946 * posix/glob64-lstat-compat.c: Likewise.
32947 * posix/tst-glob_lstat_compat.c: Likewise.
32948 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32949 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32950 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32951 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32952 Likewise.
32953 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32954 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32955 * posix/glob.c (glob_lstat): New function.
32956 (glob): Rename to __glob and add versioned symbol to 2.27.
32957 (glob_in_dir): Use glob_lstat.
32958 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32959 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32960 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32961 2.27.
32962 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32963 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32964 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32965 gl_lstat on glob call.
32966 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32967 and glob64 symbols.
32968 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32969 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32970 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32971 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32972 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32973 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32974 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32975 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32976 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32977 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32978 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32979 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32981 Likewise.
32982 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32984 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32985 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32986 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32987 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32988 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32989 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32990 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32991 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32992 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32993 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32994
32995 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32996
32997 * configure.ac (AS): Require binutils 2.25 or later.
32998 * configure: Regenerated.
32999
33000 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
33001
33002 [BZ #22207]
33003 * stdlib/test-atexit-race-common.c (do_test): Minimize required
33004 VM size.
33005
33006 2017-09-25 DJ Delorie <dj@redhat.com>
33007
33008 [BZ #22161]
33009 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
33010 resetting timeout.
33011
33012 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
33013
33014 * sysdeps/ieee754/dbl-64/sincos32.h
33015 [SINCCOS32_H]: Remove define.
33016 [SINCOS32_H]: Define.
33017
33018 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33019
33020 * math/Versions (expf): New libm symbol at GLIBC_2.27.
33021 (exp2f): Likewise.
33022 * math/w_exp2f.c: New file.
33023 * math/w_expf.c: New file.
33024 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
33025 * math/w_expf_compat.c (__expf_compat): Likewise.
33026 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
33027 * sysdeps/ia64/fpu/e_expf.S: Likewise.
33028 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
33029 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
33030 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
33031 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
33032 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
33033 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
33034 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
33035 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
33036 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
33037 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
33038 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
33039 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
33040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
33041 Likewise.
33042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
33043 Likewise.
33044 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
33045 Likewise.
33046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
33047 Likewise.
33048 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
33049 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
33050 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
33051 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
33052 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
33053 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
33054 Likewise.
33055 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
33056 Likewise.
33057 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
33058 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
33059 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
33060
33061 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33062
33063 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
33064 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
33065 (roundtoint, converttoint): Likewise.
33066 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
33067 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
33068 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
33069 * sysdeps/ieee754/flt-32/math_config.h: New file.
33070 * sysdeps/ieee754/flt-32/math_errf.c: New file.
33071 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
33072 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
33073 * sysdeps/i386/fpu/math_errf.c: New file.
33074 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
33075 * sysdeps/ia64/fpu/math_errf.c: New file.
33076 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
33077 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
33078
33079 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
33080
33081 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
33082 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
33083 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
33084 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
33085 to make sure that these symbols are defined.
33086 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
33087 of <limits.h>
33088 (__need_NULL): Do not define.
33089 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
33090 alignment.
33091 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
33092 CMGROUP_MAX, cmsgcred): Do not define.
33093 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
33094 NULL.
33095 * bits/socket.h: Likewise.
33096 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
33097 __gettimeofday instead of gettimeofday.
33098 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
33099 instead of settimeofday.
33100
33101 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33102
33103 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33104 (asinhf): Define using libm_alias_float.
33105 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33106 (atanf): Define using libm_alias_float.
33107 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33108 (cbrtf): Define using libm_alias_float.
33109 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33110 (ceilf): Define using libm_alias_float.
33111 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33112 <libm-alias-float.h>.
33113 (copysignf): Define using libm_alias_float.
33114 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33115 (cosf): Define using libm_alias_float.
33116 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33117 (erff): Define using libm_alias_float.
33118 (erfcf): Likewise.
33119 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33120 (expm1f): Define using libm_alias_float.
33121 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33122 (fabsf): Define using libm_alias_float.
33123 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33124 (floorf): Define using libm_alias_float.
33125 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33126 (frexpf): Define using libm_alias_float.
33127 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33128 libm_alias_float.
33129 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33130 <libm-alias-float.h>.
33131 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33132 libm_alias_float.
33133 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33134 <libm-alias-float.h>.
33135 (getpayloadf): Define using libm_alias_float.
33136 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33137 <libm-alias-float.h>.
33138 (llrintf): Define using libm_alias_float.
33139 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33140 <libm-alias-float.h>.
33141 (llroundf): Define using libm_alias_float.
33142 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33143 (logbf): Define using libm_alias_float.
33144 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33145 (lrintf): Define using libm_alias_float.
33146 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33147 (lroundf): Define using libm_alias_float.
33148 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33149 (modff): Define using libm_alias_float.
33150 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33151 <libm-alias-float.h>.
33152 (nearbyintf): Define using libm_alias_float.
33153 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33154 <libm-alias-float.h>.
33155 (nextafterf): Define using libm_alias_float.
33156 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33157 <libm-alias-float.h>.
33158 (nextupf): Define using libm_alias_float.
33159 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33160 <libm-alias-float.h>.
33161 (remquof): Define using libm_alias_float.
33162 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33163 (rintf): Define using libm_alias_float.
33164 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33165 <libm-alias-float.h>.
33166 (roundevenf): Define using libm_alias_float.
33167 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33168 (roundf): Define using libm_alias_float.
33169 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33170 using libm_alias_float.
33171 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33172 <libm-alias-float.h>.
33173 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33174 Define using libm_alias_float.
33175 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33176 <libm-alias-float.h>.
33177 (sincosf): Define using libm_alias_float.
33178 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33179 (sinf): Define using libm_alias_float.
33180 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33181 (tanf): Define using libm_alias_float.
33182 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33183 (tanhf): Define using libm_alias_float.
33184 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33185 <libm-alias-float.h>.
33186 (totalorderf): Define using libm_alias_float.
33187 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33188 <libm-alias-float.h>.
33189 (totalordermagf): Define using libm_alias_float.
33190 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33191 (truncf): Define using libm_alias_float.
33192 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33193 libm_alias_float.
33194 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33195 libm_alias_float.
33196
33197 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33198
33199 [BZ #22146]
33200 math/math.h: Let fpclassify use the builtin in C++ mode, even
33201 when optimazing for size.
33202
33203 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33204
33205 * csu/Makefile (generated): Do not add version-info.h.
33206 (before-compile): Likewise.
33207 (all-Banner-files): Remove variable.
33208 ($(objpfx)version-info.h): Remove rule.
33209 * csu/version.c (banner): Do not include "version-info.h".
33210 * libidn/Banner: Remove.
33211 * manual/contrib.texi (Simon Josefsson): New entry.
33212
33213 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33214
33215 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33216 Remove conditionals on LDBL_MANT_DIG.
33217 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33218 (__ieee754_lgammal_r): Likewise.
33219
33220 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33221
33222 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33223 _Float128 and L().
33224 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33225 _Float128 and L(). Replace _Float128 with long double and L(x)
33226 with xL, throughout the file.
33227 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33228 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33229 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33230 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33231
33232 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33233
33234 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33235 sysdeps/ieee754/ldbl-128ibm.
33236 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33237 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33238 of including it. Keep _Float128 and L() intact. These will be
33239 reviewed by a separate patch.
33240 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33241 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33242 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33243 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33244
33245 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33246
33247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33248 (__finitef128): Define to __redirect___finitef128.
33249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33250 (__isinff128): Define to __redirect___isinff128.
33251 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33252 (__isnanf128): Define to __redirect___isnanf128.
33253
33254 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33255
33256 * sysdeps/powerpc/powerpc64le/Makefile
33257 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33258 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33259
33260 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33261 Carlos O'Donell <carlos@redhat.com>
33262
33263 [BZ #22180]
33264 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33265 * stdlib/test-dlclose-exit-race.c: New file.
33266 * stdlib/test-dlclose-exit-race-helper.c: New file.
33267 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33268
33269 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33270
33271 * crypt/Banner: Remove file.
33272 * nptl/Banner: Likewise.
33273 * resolv/Banner: Likewise.
33274 * soft-fp/Banner: Likewise.
33275 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33276 ($(objpfx)version.d): Remove dependency on banner.h.
33277 ($(objpfx)version.os): Likewise.
33278 * nptl/version.c (banner): Do not include banner.h.
33279 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33280 Jelinek and BIND code.
33281
33282 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33283 Carlos O'Donell <carlos@redhat.com>
33284
33285 * support/xdlfcn.h: New file.
33286 * support/xdlfcn.c: New file.
33287 * support/Makefile (libsupport-routines): Add xdlfcn.
33288 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33289
33290 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33291
33292 [BZ #20142]
33293 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33294 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33295 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33296 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33297 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33298 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33299 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33300 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33301
33302 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33303 Ricky Zhou <rickyz@google.com>
33304 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33305
33306 [BZ #14333]
33307 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33308 Remove atomics.
33309 (__new_exitfn): Fail registration when we finished at_exit processing.
33310 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33311 * stdlib/on_exit.c (__on_exit): Likewise.
33312 * stdlib/exit.c (__exit_funcs_done): New variable.
33313 (__run_exit_handlers): Use __exit_funcs_lock.
33314 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33315 declarations.
33316 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33317 (test-cxa_atexit-race, test-on_exit-race): New tests.
33318 * stdlib/test-atexit-race-common.c: New file.
33319 * stdlib/test-atexit-race.c: New file.
33320 * stdlib/test-at_quick_exit-race.c: New file.
33321 * stdlib/test-cxa_atexit-race.c: New file.
33322 * stdlib/test-on_exit-race.c: New file.
33323
33324 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33325
33326 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33327 * benchtests/exp2f-inputs: Copy of expf-inputs.
33328 * benchtests/log2f-inputs: Copy of logf-inputs.
33329
33330 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33331
33332 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33333 Explicitly take address of first element of array arguments in
33334 call to INLINE_SYSCALL.
33335
33336 2017-09-19 Andreas Schwab <schwab@suse.de>
33337
33338 [BZ #22134]
33339 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33340 execveat first.
33341 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33342 unimplemented.
33343 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33344 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33345 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33346 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33347 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33348 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33349 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33350 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33351 * posix/Makefile (tests): Add tst-fexecve.
33352 * posix/tst-fexecve.c: New file.
33353
33354 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33355
33356 * benchtests/Makefile: Add logf benchmark.
33357 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33358
33359 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33360
33361 * benchtests/Makefile: Add expf benchmark.
33362 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33363
33364 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33365
33366 * csu/Makefile: Add -funwind-tables to libc-start.c.
33367 * debug/Makefile: Add -funwind-tables to backtrace.c.
33368 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33369 * sysdeps/arm/Makefile: Likewise.
33370 * sysdeps/i386/Makefile: Likewise.
33371 * sysdeps/m68k/Makefile: Likewise.
33372 * sysdeps/mips/Makefile: Likewise.
33373 * sysdeps/nios2/Makefile: Likewise.
33374 * sysdeps/sh/Makefile: Likewise.
33375 * sysdeps/sparc/Makefile: Likewise.
33376
33377 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33378
33379 * benchtests/Makefile (bench-math): Add trunc and truncf.
33380 (CFLAGS-bench-trunc.c): New variable.
33381 (CFLAGS-bench-truncf.c): Likewise.
33382 * benchtests/trunc-inputs: New file.
33383 * benchtests/truncf-inputs: Likewise.
33384
33385 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33386
33387 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33388
33389 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33390
33391 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33392 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33393 redefine.
33394 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33395 (exp10l): Define as weak alias.
33396 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33397 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33398 and redefine.
33399 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33400 (remainderl): Define as weak alias.
33401
33402 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33403 (fmal): Define using libm_alias_ldouble.
33404 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33405 (acoshl): Define using libm_alias_ldouble.
33406 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33407 (acosl): Define using libm_alias_ldouble.
33408 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33409 (asinl): Define using libm_alias_ldouble.
33410 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33411 (atan2l): Define using libm_alias_ldouble.
33412 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33413 (atanhl): Define using libm_alias_ldouble.
33414 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33415 (coshl): Define using libm_alias_ldouble.
33416 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33417 (exp10l): Define using libm_alias_ldouble.
33418 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33419 (exp2l): Define using libm_alias_ldouble.
33420 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33421 (expl): Define using libm_alias_ldouble.
33422 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33423 (fmodl): Define using libm_alias_ldouble.
33424 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33425 (hypotl): Define using libm_alias_ldouble.
33426 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33427 (j0l): Define using libm_alias_ldouble.
33428 (y0l): Likewise.
33429 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33430 (j1l): Define using libm_alias_ldouble.
33431 (y1l): Likewise.
33432 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33433 (jnl): Define using libm_alias_ldouble.
33434 (ynl): Likewise.
33435 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33436 (log10l): Define using libm_alias_ldouble.
33437 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33438 (log2l): Define using libm_alias_ldouble.
33439 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33440 (logl): Define using libm_alias_ldouble.
33441 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33442 (powl): Define using libm_alias_ldouble.
33443 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33444 (remainderl): Define using libm_alias_ldouble.
33445 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33446 (sinhl): Define using libm_alias_ldouble.
33447 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33448 (sqrtl): Define using libm_alias_ldouble.
33449 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33450 (tgammal): Define using libm_alias_ldouble.
33451 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33452 (exp10l): Do not use long_double_symbol here.
33453 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33454 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33455 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33456 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33457 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33458 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33459 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33460 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33461 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33462 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33463 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33464 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33465 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33466 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33467 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33468 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33469 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33470 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33471 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33472 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33473 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33474 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33475
33476 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33477
33478 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33479 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33480
33481 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33482
33483 * io/read.c (read): Add libc_hidden_weak.
33484 * sysdeps/mach/hurd/read.c (read): Likewise.
33485 * io/write.c (write): Likewise.
33486 * sysdeps/mach/hurd/write.c (write): Likewise.
33487 * io/pread64.c (__pread64): Likewise.
33488 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33489 * posix/pread64.c (__pread64): Add libc_hidden_def.
33490
33491 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33492
33493 * benchtests/scripts/compare_strings.py: New option -g.
33494 (draw_graph): Print a message that a graph is being generated.
33495 (process_results): Generate graph only if -g is passed.
33496 (main): Process option -g.
33497
33498 * benchtests/scripts/compare_strings.py (process_results):
33499 Better spacing for output.
33500
33501 * benchtests/scripts/compare_strings.py: Use argparse.
33502 * benchtests/README: Document existence of compare_strings.py.
33503
33504 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33505
33506 * math/s_fma.c: Include <libm-alias-double.h>.
33507 (fma): Define using libm_alias_double.
33508 * math/s_nextafter.c: Include <libm-alias-double.h>.
33509 (nextafter): Define using libm_alias_double.
33510 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33511 (acos): Define using libm_alias_double.
33512 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33513 (aocsh): Define using libm_alias_double.
33514 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33515 (asin): Define using libm_alias_double.
33516 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33517 (atan2): Define using libm_alias_double.
33518 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33519 (atanh): Define using libm_alias_double.
33520 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33521 (cosh): Define using libm_alias_double.
33522 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33523 (exp10): Define using libm_alias_double.
33524 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33525 (exp2): Define using libm_alias_double.
33526 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33527 (exp): Define using libm_alias_double.
33528 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33529 (fmod): Define using libm_alias_double.
33530 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33531 (hypot): Define using libm_alias_double.
33532 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33533 (j0): Define using libm_alias_double.
33534 (y0): Likewise.
33535 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33536 (j1): Define using libm_alias_double.
33537 (y1): Likewise.
33538 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33539 (jn): Define using libm_alias_double.
33540 (yn): Likewise.
33541 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33542 (log10): Define using libm_alias_double.
33543 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33544 (log2): Define using libm_alias_double.
33545 * math/w_log_compat.c: Include <libm-alias-double.h>.
33546 (log): Define using libm_alias_double.
33547 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33548 (pow): Define using libm_alias_double.
33549 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33550 (remainder): Define using libm_alias_double.
33551 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33552 (sinh): Define using libm_alias_double.
33553 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33554 (sqrt): Define using libm_alias_double.
33555 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33556 (tgamma): Define using libm_alias_double.
33557 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33558 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33559 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33560 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33561 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33562 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33563 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33564 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33565 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33566 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33567 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33568 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33569 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33570 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33571 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33572 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33573 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33574 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33575 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33576 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33577 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33578 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33579 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33580 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33581 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33582
33583 * math/e_acoshl.c: Remove.
33584 * math/e_acosl.c: Likewise.
33585 * math/e_asinl.c: Likewise.
33586 * math/e_atan2l.c: Likewise.
33587 * math/e_atanhl.c: Likewise.
33588 * math/e_coshl.c: Likewise.
33589 * math/e_expl.c: Likewise.
33590 * math/e_fmodl.c: Likewise.
33591 * math/e_gammal_r.c: Likewise.
33592 * math/e_hypotl.c: Likewise.
33593 * math/e_j0l.c: Likewise.
33594 * math/e_j1l.c: Likewise.
33595 * math/e_jnl.c: Likewise.
33596 * math/e_lgammal_r.c: Likewise.
33597 * math/e_log10l.c: Likewise.
33598 * math/e_log2l.c: Likewise.
33599 * math/e_logl.c: Likewise.
33600 * math/e_powl.c: Likewise.
33601 * math/e_rem_pio2l.c: Likewise.
33602 * math/e_sinhl.c: Likewise.
33603 * math/e_sqrtf128.c: Likewise.
33604 * math/e_sqrtl.c: Likewise.
33605 * math/k_cosl.c: Likewise.
33606 * math/k_sinl.c: Likewise.
33607 * math/k_tanl.c: Likewise.
33608 * math/s_asinhl.c: Likewise.
33609 * math/s_atanl.c: Likewise.
33610 * math/s_cbrtl.c: Likewise.
33611 * math/s_erfl.c: Likewise.
33612 * math/s_expm1l.c: Likewise.
33613 * math/s_log1pl.c: Likewise.
33614 * math/s_tanhl.c: Likewise.
33615
33616 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33617
33618 [BZ #21745]
33619 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33620 [$(subdir) = math] (sysdep_calls): New variable. Has the
33621 previous contents of sysdep_routines, but re-sorted..
33622 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33623 sysdep_calls.
33624 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33625 defined in sysdep_calls and replace by the respective m_* names.
33626 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33627 (compat_symbol): Undefine to avoid duplicated compat symbols in
33628 libc.
33629
33630 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33631
33632 * math/s_fmaf.c: Include <libm-alias-float.h>.
33633 (fmaf): Define using libm_alias_float.
33634 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33635 (acosf): Define using libm_alias_float.
33636 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33637 (acoshf): Define using libm_alias_float.
33638 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33639 (asinf): Define using libm_alias_float.
33640 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33641 (atan2f): Define using libm_alias_float.
33642 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33643 (atanhf): Define using libm_alias_float.
33644 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33645 (coshf): Define using libm_alias_float.
33646 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33647 (exp10f): Define using libm_alias_float.
33648 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33649 (fmodf): Define using libm_alias_float.
33650 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33651 (hypotf): Define using libm_alias_float.
33652 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33653 (j0f): Define using libm_alias_float.
33654 (y0f): Likewise.
33655 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33656 (j1f): Define using libm_alias_float.
33657 (y1f): Likewise.
33658 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33659 (jnf): Define using libm_alias_float.
33660 (ynf): Likewise.
33661 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33662 (log10f): Define using libm_alias_float.
33663 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33664 (log2f): Define using libm_alias_float.
33665 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33666 (logf): Define using libm_alias_float.
33667 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33668 (powf): Define using libm_alias_float.
33669 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33670 (remainderf): Define using libm_alias_float.
33671 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33672 (sinhf): Define using libm_alias_float.
33673 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33674 (sqrtf): Define using libm_alias_float.
33675 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33676 (tgammaf): Define using libm_alias_float.
33677
33678 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33679
33680 * include/math.h (roundeven): Change hidden_proto call to
33681 __roundeven.
33682 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33683 alias.
33684 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33685 (y0): Rename to __y0 and define as weak alias.
33686 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33687 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33688 alias.
33689 (y0f): Rename to __y0f and define as weak alias.
33690 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33691 alias.
33692 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33693 (y1): Rename to __y1 and define as weak alias.
33694 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33695 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33696 alias.
33697 (y1f): Rename to __y1f and define as weak alias.
33698 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33699 alias.
33700 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33701 (yn): Rename to __yn and define as weak alias.
33702 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33703 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33704 alias.
33705 (ynf): Rename to __ynf and define as weak alias.
33706 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33707 (fromfp): Define as weak alias.
33708 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33709 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33710 (fromfpx): Define as weak alias.
33711 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33712 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33713 __getpayload and define as weak alias.
33714 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33715 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33716 __roundeven and define as weak alias.
33717 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33718 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33719 __setpayload.
33720 (setpayload): Define as weak alias.
33721 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33722 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33723 __setpayloadsig.
33724 (setpayloadsig): Define as weak alias.
33725 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33726 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33727 __totalorder and define as weak alias.
33728 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33729 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33730 to __totalordermag and define as weak alias.
33731 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33732 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33733 (ufromfp): Define as weak alias.
33734 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33735 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33736 __ufromfpx.
33737 (ufromfpx): Define as weak alias.
33738 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33739 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33740 Rename to __getpayload and define as weak alias.
33741 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33742 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33743 Rename to __roundeven and define as weak alias.
33744 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33745 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33746 Rename to __totalorder and define as weak alias.
33747 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33748 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33749 (totalordermag): Rename to __totalordermag and define as weak
33750 alias.
33751 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33752 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33753 macro.
33754 (__roundevenl): Likewise.
33755 (__totalorderl): Likewise.
33756 (__totalordermagl): Likewise
33757 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33758 __fromfpf128.
33759 (fromfpf128): Define as weak alias.
33760 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33761 __fromfpxf128.
33762 (fromfpxf128): Define as weak alias.
33763 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33764 __setpayloadf128.
33765 (setpayloadf128): Define as weak alias.
33766 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33767 __setpayloadsigf128.
33768 (setpayloadsigf128): Define as weak alias.
33769 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33770 __ufromfpf128.
33771 (ufromfpf128): Define as weak alias.
33772 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33773 __ufromfpxf128.
33774 (ufromfpxf128): Define as weak alias.
33775 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33776 (fromfpf): Define as weak alias.
33777 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33778 __fromfpxf.
33779 (fromfpxf): Define as weak alias.
33780 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33781 __getpayloadf and define as weak alias.
33782 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33783 __roundevenf and define as weak alias.
33784 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33785 __setpayloadf.
33786 (setpayloadf): Define as weak alias.
33787 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33788 __setpayloadsigf.
33789 (setpayloadsigf): Define as weak alias.
33790 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33791 __totalorderf and define as weak alias.
33792 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33793 Rename to __totalordermagf and define as weak alias.
33794 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33795 __ufromfpf.
33796 (ufromfpf): Define as weak alias.
33797 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33798 __ufromfpxf.
33799 (ufromfpxf): Define as weak alias.
33800 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33801 __fromfpl.
33802 (fromfpl): Define as weak alias.
33803 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33804 __fromfpxl.
33805 (fromfpxl): Define as weak alias.
33806 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33807 to __getpayloadl and define as weak alias.
33808 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33809 __roundevenl and define as weak alias.
33810 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33811 __setpayloadl.
33812 (setpayloadl): Define as weak alias.
33813 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33814 __setpayloadsigl.
33815 (setpayloadsigl): Define as weak alias.
33816 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33817 to __totalorderl and define as weak alias.
33818 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33819 Rename to __totalordermagl and define as weak alias.
33820 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33821 __ufromfpl.
33822 (ufromfpl): Define as weak alias.
33823 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33824 __ufromfpxl.
33825 (ufromfpxl): Define as weak alias.
33826 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33827 __fromfpl.
33828 (fromfpl): Define as weak alias.
33829 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33830 __fromfpxl.
33831 (fromfpxl): Define as weak alias.
33832 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33833 Rename to __getpayloadl and define as weak alias.
33834 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33835 to __roundevenl and define as weak alias. Call __roundeven
33836 instead of roundeven.
33837 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33838 __setpayloadl.
33839 (setpayloadl): Define as weak alias.
33840 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33841 __setpayloadsigl.
33842 (setpayloadsigl): Define as weak alias.
33843 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33844 Rename to __totalorderl and define as weak alias.
33845 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33846 Rename to __totalordermagl and define as weak alias.
33847 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33848 __ufromfpl.
33849 (ufromfpl): Define as weak alias.
33850 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33851 __ufromfpxl.
33852 (ufromfpxl): Define as weak alias.
33853 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33854 __fromfpl.
33855 (fromfpl): Define as weak alias.
33856 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33857 __fromfpxl.
33858 (fromfpxl): Define as weak alias.
33859 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33860 __getpayloadl and define as weak alias.
33861 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33862 __roundevenl and define as weak alias.
33863 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33864 __setpayloadl.
33865 (setpayloadl): Define as weak alias.
33866 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33867 __setpayloadsigl.
33868 (setpayloadsigl): Define as weak alias.
33869 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33870 __totalorderl and define as weak alias.
33871 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33872 Rename to __totalordermagl and define as weak alias.
33873 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33874 __ufromfpl.
33875 (ufromfpl): Define as weak alias.
33876 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33877 __ufromfpxl.
33878 (ufromfpxl): Define as weak alias.
33879
33880 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33881
33882 * benchtests/bench-string.h (realloc_bufs): New function.
33883 (test_init): Call it.
33884 * benchtests/bench-memset-large.c (do_test): Likewise.
33885 * benchtests/bench-memset.c (do_test): Likewise.
33886
33887 * benchtests/bench-memset-large.c: Print output in JSON
33888 format.
33889 * benchtests/bench-memset.c: Likewise.
33890
33891 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33892
33893 [BZ #21084]
33894 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33895 * iconvdata/Makefile: Add IBM858.
33896 * iconvdata/gconv-modules: Likewise.
33897 * iconvdata/tst-tables.sh: Likewise.
33898 * iconvdata/ibm858.c: New file.
33899 * localedata/charmaps/IBM858: Likewise.
33900
33901 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33902
33903 [BZ #22023]
33904 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33905 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33906
33907 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33908
33909 [BZ #22112]
33910 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33911 and add tel_int_fmt.
33912
33913 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33914
33915 * sysdeps/generic/libm-alias-float128.h: New file.
33916 * sysdeps/generic/math-type-macros-float128.h: Include
33917 <libm-alias-float128.h>.
33918 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33919
33920 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33921
33922 * sysdeps/generic/libm-alias-ldouble.h: New file.
33923 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33924 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33925 * sysdeps/generic/math-type-macros-ldouble.h: Include
33926 <libm-alias-ldouble.h>.
33927 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33928 libm_alias_ldouble.
33929
33930 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33931
33932 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33933 * math/w_exp_compat.c: ... here.
33934 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33935 * math/w_expf_compat.c: ... here.
33936 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33937 * math/w_expl_compat.c: ... here.
33938 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33939 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33940 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33941 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33942
33943 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33944
33945 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33946 redefine.
33947 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33948 macro.
33949 (ldexpl): Only define as compat symbol for libc, not libm.
33950 (scalbnl): Define as compat symbol for libc here.
33951 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33952 define for [IS_IN (libc)].
33953 (__ldexpl_2): Remove alias.
33954 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33955 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33956 name in long_double_symbol call.
33957 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33958 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33959 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33960 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33961 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33962 Remove macro.
33963 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33964 Define as compat symbol.
33965
33966 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33967
33968 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33969 * sysdeps/unix/sysv/linux/alpha/Makefile
33970 [$(subdir) = csu] (sysdep_routines): Remove rule.
33971
33972 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33973
33974 * sysdeps/generic/libm-alias-double.h: New file.
33975 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33976 * sysdeps/generic/math-type-macros-double.h: Include
33977 <libm-alias-double.h>.
33978 [declare_mgen_alias] (declare_mgen_alias): Define to use
33979 libm_alias_double.
33980 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33981 (M_LIBM_NEED_COMPAT): Remove macro.
33982 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33983 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33984 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33985 code.
33986 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33987 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33988 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33989 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33990 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33991 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33992 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33993 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33994 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33995 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33996 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33997 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33998 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33999 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34000 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34001 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34002 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34003 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34004 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34005 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34006 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34007 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34008 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34009 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34010 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34011 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34012 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34013 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
34014 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
34015 macro.
34016 (declare_mgen_alias): New macro.
34017 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
34018 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
34019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
34020 (M_LIBM_NEED_COMPAT): Remove macro.
34021 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
34022 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
34023 <first-versions.h>.
34024 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
34025 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
34026
34027 2017-09-12 Joseph Myers <joseph@codesourcery.com>
34028
34029 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
34030 (declare_mgen_alias_2): Remove.
34031 * sysdeps/generic/math-type-macros-double.h
34032 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
34033 Likewise.
34034 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
34035 alias.
34036 (ldexp): Define with declare_mgen_alias.
34037 (scalbn): Likewise.
34038
34039 2017-09-12 Steve Ellcey <sellcey@cavium.com>
34040
34041 * grp/initgroups.c: Include config.h.
34042 (DEFAULT_CONFIG): New macro.
34043 (internal_getgrouplist): Use DEFAULT_CONFIG.
34044 * nscd/initgrcache.c (addinitgroupsX): Likewise.
34045 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
34046 (DEFAULT_DEFCONFIG): New macro.
34047 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
34048 * nss/grp-lookup.c: Include config.h
34049 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
34050 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
34051 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
34052 * manual/nss.texi: Update default values section.
34053
34054 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
34055
34056 [BZ #21967]
34057 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
34058 New.
34059 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
34060 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34061 Handle MathVec_Prefer_No_AVX512.
34062 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
34063 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
34064 is set.
34065
34066 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
34067
34068 * posix/sched_primax.c (__sched_get_priority_max): Add
34069 libc_hidden_def.
34070 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
34071 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34072 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34073 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
34074 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
34075 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
34076 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
34077 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
34078 Add aliases.
34079
34080 2017-09-11 Joseph Myers <joseph@codesourcery.com>
34081
34082 * sysdeps/generic/libm-alias-float.h: New file.
34083 * sysdeps/generic/math-type-macros-float.h: Include
34084 <libm-alias-float.h>.
34085 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34086
34087 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
34088
34089 [BZ #22093]
34090 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
34091 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
34092 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
34093 (HWCAP_IMPORTANT): Likewise.
34094 (HWCAP_X86_64): New enum.
34095 (HWCAP_X86_AVX512_1): Updated.
34096 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
34097 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
34098 (modules-names): Add x86_64/tst-x86_64mod-1.
34099 (LDFLAGS-tst-x86_64mod-1.so): New.
34100 ($(objpfx)tst-x86_64-1): Likewise.
34101 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34102 (tst-x86_64-1-clean): Likewise.
34103 * sysdeps/x86_64/tst-x86_64-1.c: New file.
34104 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34105
34106 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34107
34108 * po/sv.po: Update translations.
34109 * po/fr.po: Likewise.
34110
34111 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34112
34113 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34114 seconds.
34115 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34116 seconds.
34117 * elf/rtld-Rules: Fix $(error) use.
34118
34119 2017-09-09 Mike FABIAN <mfabian@redhat.com>
34120
34121 [BZ #14925]
34122 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34123 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34124 * localedata/locales/bn_BD: “Bengali” was still used in some
34125 comments. Change it to “Bangla”.
34126
34127 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34128
34129 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34130
34131 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34132
34133 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34134 thunderx2t99p1 to list of cpu names.
34135 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34136 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34137
34138 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34139
34140 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34141 Use strcmp instead of tunable_is_name.
34142
34143 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34144
34145 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34146 (F_GET_RW_HINT): New macro.
34147 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34148 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34149 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34150 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34151 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34152 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34153 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34154 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34155 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34156
34157 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34158 (F_ADD_SEALS): New macro.
34159 [__USE_GNU] (F_GET_SEALS): Likewise.
34160 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34161 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34162 [__USE_GNU] (F_SEAL_GROW): Likewise.
34163 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34164
34165 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34166
34167 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34168 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34169 * posix/glob_internal.h (__glob_pattern_type):
34170 * posix/glob.c (glob):
34171 * posix/glob_pattern_p.c (__glob_pattern_p):
34172 Use them.
34173
34174 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34175 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34176 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34177 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34178 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34180 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34181 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34182 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34183 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34184 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34185 * sysdeps/wordsize-64/glob.c: Likewise.
34186 * sysdeps/wordsize-64/glob64.c: Likewise.
34187 * sysdeps/wordsize-64/globfree.c: Likewise.
34188 * sysdeps/wordsize-64/globfree64.c: Likewise.
34189 * sysdeps/unix/sysv/linux/glob.c: New file.
34190 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34191 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34192 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34193 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34194 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34195 adds !GLOB_NO_OLD_VERSION as an extra condition.
34196 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34197 using relative path instead of absolute one.
34198 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34199 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34200 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34201 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34202 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34203 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34204
34205 [BZ #1062]
34206 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34207 (glob): Use the same scratch buffer for both getlogin_r and
34208 getpwnam_r. Don’t require preallocation of the login name. This
34209 simplifies storage allocation, and corrects the handling of
34210 long login names.
34211
34212 [BZ #1062]
34213 * posix/glob.c (glob): Port recent patches to platforms
34214 lacking getpwnam_r.
34215 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34216 returns an error number rather than setting errno.
34217
34218 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34219 instead of GCC extension.
34220 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34221 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34222 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34223
34224 [BZ #866]
34225 [BZ #1062]
34226 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34227 * posix/bug-glob1.c: Remove file.
34228 * posix/tst-glob_symlinks.c: New file.
34229 * posix/glob.c (__lstat64): New macro.
34230 (is_dir): New function.
34231 (glob, glob_in_dir): Match symlinks even if they are dangling.
34232 (link_stat, link_exists_p): Remove. All uses removed.
34233
34234 [BZ #1062]
34235 [BZ #19971]
34236 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34237 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34238 All uses removed.
34239
34240 [BZ #1062]
34241 CVE-2017-15671
34242 * posix/Makefile (routines): Add globfree, globfree64, and
34243 glob_pattern_p.
34244 * posix/flexmember.h: New file.
34245 * posix/glob_internal.h: Likewise.
34246 * posix/glob_pattern_p.c: Likewise.
34247 * posix/globfree.c: Likewise.
34248 * posix/globfree64.c: Likewise.
34249 * sysdeps/gnu/globfree64.c: Likewise.
34250 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34251 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34252 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34253 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34254 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34255 * sysdeps/wordsize-64/globfree.c: Likewise.
34256 * sysdeps/wordsize-64/globfree64.c: Likewise.
34257 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34258 [NDEBUG): Remove comments.
34259 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34260 (dirent_type): New type. Use uint_fast8_t not
34261 uint8_t, as C99 does not require uint8_t.
34262 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34263 (struct readdir_result): Use dirent_type. Do not define skip_entry
34264 unless it is needed; this saves a byte on platforms lacking d_ino.
34265 (readdir_result_type, readdir_result_skip_entry):
34266 New functions, replacing ...
34267 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34268 these functions, which were removed. This makes the callers
34269 easier to read. All callers changed.
34270 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34271 (size_add_wrapv, glob_use_alloca): New static functions.
34272 (glob, glob_in_dir): Check for size_t overflow in several places,
34273 and fix some size_t checks that were not quite right.
34274 Remove old code using SHELL since Bash no longer
34275 uses this.
34276 (glob, prefix_array): Separate MS code better.
34277 (glob_in_dir): Remove old Amiga and VMS code.
34278 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34279 separate files.
34280 (glob_in_dir): Do not rely on undefined behavior in accessing
34281 struct members beyond their bounds. Use a flexible array member
34282 instead
34283 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34284 0/1. Caller changed.
34285 (glob): Fix memory leaks.
34286 * posix/glob64 (globfree64): Move to separate file.
34287 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34288 (globfree64): Remove hidden alias.
34289 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34290 oldglob.
34291 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34292 separate file.
34293 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34294 define.
34295 Move compat code to separate file.
34296 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34297 separate file.
34298
34299 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34300
34301 * resolv/tst-resolv-qtypes.c (domain): Changed to
34302 "const char domain[] =".
34303
34304 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34305
34306 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34307 version to 3.1.6.
34308
34309 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34310 (TCP_MD5SIG_EXT): Likewise.
34311 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34312 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34313 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34314
34315 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34316
34317 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34318
34319 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34320
34321 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34322
34323 [BZ #22100]
34324 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34325
34326 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34327
34328 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34329 before assuming that the file is empty. Avoid testing buffer content
34330 when nread == 0.
34331
34332 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34333
34334 [BZ #18858]
34335 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34336 Remove define.
34337 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34338 Likewise.
34339 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34340 Likewise.
34341 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34342 Likewise.
34343 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34344 Likewise.
34345 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34346 Likewise.
34347 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34348 Likewise.
34349
34350 2017-09-06 Florian Weimer <fweimer@redhat.com>
34351
34352 * malloc/dynarray_emplace_enlarge.c
34353 (__libc_dynarray_emplace_enlarge): Add missing else.
34354
34355 2017-09-06 Florian Weimer <fweimer@redhat.com>
34356
34357 [BZ #22096]
34358 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34359 case of failure to obtain the global conf object.
34360
34361 2017-09-06 Florian Weimer <fweimer@redhat.com>
34362
34363 [BZ #22095]
34364 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34365 dynarray allocation failure.
34366
34367 2017-09-06 Florian Weimer <fweimer@redhat.com>
34368
34369 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34370 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34371 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34372 New functions.
34373 (response): Call them. Add 'p', '6' flag processing.
34374 (test_reverse): New function.
34375 (test_get2_any): Call it.
34376 (test_no_inet6): Add 'p' test.
34377 (test_inet6): Likewise.
34378
34379 2017-09-06 Florian Weimer <fweimer@redhat.com>
34380
34381 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34382 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34383 the QNAME.
34384 (test_gai): Adjust query names. Add additional tests.
34385 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34386 test_get2. Adjust query names. Add additional tests.
34387 (test_no_inet6): New function, extracted from threadfunc.
34388 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34389 Add additional tests.
34390
34391 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34392
34393 [BZ #22070]
34394 * localedata/unicode-gen/utf8_gen.py: Set the width for
34395 characters with Prepended_Concatenation_Mark property to 1
34396 * localedata/charmaps/UTF-8: Updated using the improved script.
34397
34398 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34399
34400 [BZ #21750]
34401 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34402 use the range notation for all ranges of neighbouring characters
34403 with the same width.
34404
34405 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34406
34407 * sysdeps/generic/math-type-macros-double.h: Include
34408 <math-svid-compat.h>.
34409 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34410 * sysdeps/generic/math-type-macros-float.h: Include
34411 <math-svid-compat.h>.
34412 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34413 * sysdeps/generic/math-type-macros-ldouble.h: Include
34414 <math-svid-compat.h>.
34415 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34416 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34417 condition.
34418 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34419 * math/w_acosf_compat.c: Likewise.
34420 * math/w_acosh_compat.c: Likewise.
34421 * math/w_acoshf_compat.c: Likewise.
34422 * math/w_acoshl_compat.c: Likewise.
34423 * math/w_acosl_compat.c: Likewise.
34424 * math/w_asin_compat.c: Likewise.
34425 * math/w_asinf_compat.c: Likewise.
34426 * math/w_asinl_compat.c: Likewise.
34427 * math/w_atan2_compat.c: Likewise.
34428 * math/w_atan2f_compat.c: Likewise.
34429 * math/w_atan2l_compat.c: Likewise.
34430 * math/w_atanh_compat.c: Likewise.
34431 * math/w_atanhf_compat.c: Likewise.
34432 * math/w_atanhl_compat.c: Likewise.
34433 * math/w_cosh_compat.c: Likewise.
34434 * math/w_coshf_compat.c: Likewise.
34435 * math/w_coshl_compat.c: Likewise.
34436 * math/w_exp10_compat.c: Likewise.
34437 * math/w_exp10f_compat.c: Likewise.
34438 * math/w_exp10l_compat.c: Likewise.
34439 * math/w_exp2_compat.c: Likewise.
34440 * math/w_exp2f_compat.c: Likewise.
34441 * math/w_exp2l_compat.c: Likewise.
34442 * math/w_fmod_compat.c: Likewise.
34443 * math/w_fmodf_compat.c: Likewise.
34444 * math/w_fmodl_compat.c: Likewise.
34445 * math/w_hypot_compat.c: Likewise.
34446 * math/w_hypotf_compat.c: Likewise.
34447 * math/w_hypotl_compat.c: Likewise.
34448 * math/w_j0_compat.c: Likewise.
34449 * math/w_j0f_compat.c: Likewise.
34450 * math/w_j0l_compat.c: Likewise.
34451 * math/w_j1_compat.c: Likewise.
34452 * math/w_j1f_compat.c: Likewise.
34453 * math/w_j1l_compat.c: Likewise.
34454 * math/w_jn_compat.c: Likewise.
34455 * math/w_jnf_compat.c: Likewise.
34456 * math/w_jnl_compat.c: Likewise.
34457 * math/w_lgamma_r_compat.c: Likewise.
34458 * math/w_lgammaf_r_compat.c: Likewise.
34459 * math/w_lgammal_r_compat.c: Likewise.
34460 * math/w_log10_compat.c: Likewise.
34461 * math/w_log10f_compat.c: Likewise.
34462 * math/w_log10l_compat.c: Likewise.
34463 * math/w_log2_compat.c: Likewise.
34464 * math/w_log2f_compat.c: Likewise.
34465 * math/w_log2l_compat.c: Likewise.
34466 * math/w_log_compat.c: Likewise.
34467 * math/w_logf_compat.c: Likewise.
34468 * math/w_logl_compat.c: Likewise.
34469 * math/w_pow_compat.c: Likewise.
34470 * math/w_powf_compat.c: Likewise.
34471 * math/w_powl_compat.c: Likewise.
34472 * math/w_remainder_compat.c: Likewise.
34473 * math/w_remainderf_compat.c: Likewise.
34474 * math/w_remainderl_compat.c: Likewise.
34475 * math/w_sinh_compat.c: Likewise.
34476 * math/w_sinhf_compat.c: Likewise.
34477 * math/w_sinhl_compat.c: Likewise.
34478 * math/w_sqrt_compat.c: Likewise.
34479 * math/w_sqrtf_compat.c: Likewise.
34480 * math/w_sqrtl_compat.c: Likewise.
34481 * math/w_tgamma_compat.c: Likewise.
34482 * math/w_tgammaf_compat.c: Likewise.
34483 * math/w_tgammal_compat.c: Likewise.
34484 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34485 [LIBM_SVID_COMPAT].
34486 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34487 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34488 [LIBM_SVID_COMPAT].
34489 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34490 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34491 [LIBM_SVID_COMPAT].
34492 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34493 * sysdeps/i386/fpu/w_sqrt.c: New file.
34494 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34495 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34496 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34497 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34498 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34499 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34500 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34501 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34502 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34503 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34504 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34505 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34506 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34507 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34508 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34509 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34510 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34511 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34512 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34513 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34514 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34515 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34516 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34517 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34518 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34519 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34520 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34521 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34522 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34523 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34524 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34525 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34526 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34527 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34528 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34529 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34530 * sysdeps/ia64/fpu/w_log.c: Likewise.
34531 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34532 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34533 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34534 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34535 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34536 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34537 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34538 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34539 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34540 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34541 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34542 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34543 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34544 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34545 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34546 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34547 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34548 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34549 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34550 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34551 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34552 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34553 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34554 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34555 [LIBM_SVID_COMPAT].
34556 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34557 * sysdeps/ieee754/k_standard.c: Likewise.
34558 * sysdeps/ieee754/k_standardf.c: Likewise.
34559 * sysdeps/ieee754/k_standardl.c: Likewise.
34560 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34561 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34562 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34563 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34564 long_double_symbol call on [LIBM_SVID_COMPAT].
34565 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34566 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34567 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34568 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34569 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34570 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34571 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34572 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34573 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34574 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34575 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34576 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34577 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34578 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34579 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34580 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34581 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34582 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34583 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34584 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34585 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34586 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34587
34588 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34589
34590 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34591 * malloc/tst-mallocstate.c: Convert from test-skeleton
34592 to test-driver. Ifdef code using TEST_COMPAT macro.
34593 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34594 * math/test-matherr.c: Likewise.
34595
34596 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34597
34598 [BZ #22086]
34599 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34600 comparing word with byte-swapped constant.
34601
34602 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34603
34604 [BZ #20498]
34605 * locale/iso-639.def: add Miskito.
34606 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34607 * localedata/locales/miq_NI: New file.
34608
34609 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34610
34611 [BZ #18822]
34612 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34613 (__mkdir): Likewise.
34614 * io/chmod.c (__chmod): Add libc_hidden_def.
34615 * io/mkdir.c (__mkdir): Likewise.
34616 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34617 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34618 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34619 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34620
34621 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34622
34623 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34624 version to 4.13.
34625
34626 [BZ #22082]
34627 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34628 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34629
34630 2017-09-04 Florian Weimer <fweimer@redhat.com>
34631
34632 * math/math.h: Issue warning if log is defined.
34633
34634 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34635
34636 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34637 kernel version to 4.13.
34638
34639 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34640
34641 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34642 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34643 parameter.
34644 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34645 just <bits/types.h>.
34646 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34647 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34648 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34649 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34650 * misc/preadv2.c: Include <errno.h>.
34651 * misc/preadv64v2.c: Include <errno.h>.
34652 * misc/pwritev2.c: Include <errno.h>.
34653 * misc/pwritev64v2.c: Include <errno.h>.
34654 * sysdeps/posix/preadv2.c: Include <errno.h>.
34655 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34656 Fix <unistd.h> inclusion.
34657 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34658 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34659 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34660 __strtoul_internal): New functions.
34661 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34662 * sysdeps/posix/system.c: Include <sigsetops.h>.
34663 * sysdeps/mach/hurd/i386/Makefile
34664 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34665 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34666 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34667 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34668 __feraiseexcept_renamed to feraiseexcept instead of
34669 __GI_feraiseexcept.
34670 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34671 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34672 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34673 RWF_NOWAIT): Define to 0 if undefined already.
34674 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34675 boils down to 0.
34676 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34677 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34678
34679 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34680
34681 * manual/math.texi (pow10): Do not document.
34682 (pow10f): Likewise.
34683 (pow10l): Likewise.
34684 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34685 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34686 * math/libm-test-exp10.inc (pow10_test): Remove.
34687 (do_test): Do not call pow10.
34688 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34689 [NO_LONG_DOUBLE] (pow10l): Likewise.
34690 * math/w_exp10f_compat.c (pow10f): Likewise.
34691 * math/w_exp10l_compat.c (pow10l): Likewise.
34692 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34693 (pow10): Make into compat symbol.
34694 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34695 (pow10f): Make into compat symbol.
34696 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34697 (pow10l): Make into compat symbol.
34698 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34699 pow10.
34700 (CFLAGS-nldbl-pow10.c): Remove variable..
34701 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34702 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34703 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34704 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34705 Undefine and redefine.
34706 (pow10l): Make into compat symbol.
34707 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34708 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34709 * sysdeps/arm/libm-test-ulps: Likewise.
34710 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34711 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34712 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34713 * sysdeps/microblaze/libm-test-ulps: Likewise.
34714 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34715 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34716 * sysdeps/nios2/libm-test-ulps: Likewise.
34717 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34718 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34719 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34720 * sysdeps/sh/libm-test-ulps: Likewise.
34721 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34722 * sysdeps/tile/libm-test-ulps: Likewise.
34723 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34724
34725 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34726
34727 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34728
34729 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34730
34731 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34732 "../ChangeLog.old/ChangeLog.8".
34733 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34734 "../ChangeLog.old/ChangeLog.14".
34735
34736 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34737
34738 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34739 Threads Library.
34740
34741 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34742
34743 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34744
34745 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34746
34747 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34748 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34749
34750 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34751
34752 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34753 32 atexit handlers.
34754
34755 2017-09-01 Zack Weinberg <zackw@panix.com>
34756
34757 * math/math.h (HUGE_VAL): Improve commentary.
34758
34759 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34760 Andreas Schwab <schwab@suse.de>
34761
34762 [BZ #21530]
34763 * include/stdio.h (__gen_tempfd): New function.
34764 * stdio-common/Makefile (routines): Add gentempfd.
34765 * stdio-common/gentempfd.c: New file.
34766 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34767 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34768 unnamed file first.
34769
34770 2017-09-01 Florian Weimer <fweimer@redhat.com>
34771
34772 [BZ #21915]
34773 [BZ #21922]
34774 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34775 result to determine success or failure, not the errno value.
34776 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34777 (tst-nss-files-hosts-erange): Link with -ldl.
34778 * nss/tst-nss-files-hosts-erange.c: New file.
34779 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34780 (do_test): Add NO_DATA tests.
34781 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34782 (do_test): Call it.
34783
34784 2017-09-01 Florian Weimer <fweimer@redhat.com>
34785
34786 [BZ #21922]
34787 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34788 coming from gethostbyname2_r.
34789
34790 2017-09-01 Florian Weimer <fweimer@redhat.com>
34791
34792 * support/namespace.h (struct support_chroot_configuration): Add
34793 hosts, host_conf.
34794 (struct support_chroot): Add path_hosts, path_host_conf.
34795 * support/support_chroot.c (write_file): New function.
34796 (support_chroot_create): Call it to process /etc/resolv.conf,
34797 /etc/hosts, /etc/host.conf.
34798 (support_chroot_free): Update.
34799
34800 2017-09-01 Florian Weimer <fweimer@redhat.com>
34801
34802 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34803 status indicates it is set.
34804
34805 2017-09-01 Florian Weimer <fweimer@redhat.com>
34806
34807 [BZ #20532]
34808 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34809 function lookup failures more reliable.
34810
34811 2017-09-01 Florian Weimer <fweimer@redhat.com>
34812
34813 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34814 (getcanonname): Likewise.
34815 (gaih_inet): Likewise.
34816
34817 2017-09-01 Florian Weimer <fweimer@redhat.com>
34818
34819 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34820 (getcanonname): Likewise.
34821 (gaih_inet): Likewise.
34822
34823 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34824 Richard Henderson <rth@twiddle.net>
34825
34826 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34827 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34828 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34829 (IREG_SIZE, OREG_SIZE): New macros.
34830 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34831 (IREG_SIZE, OREG_SIZE): New macros.
34832 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34833 (IREG_SIZE): New macro.
34834 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34835 (IREG_SIZE): New macro.
34836 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34837 New includes.
34838 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34839 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34840 (__CONCATX): Handle exceptions correctly on large values that may
34841 set FE_INVALID.
34842 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34843 Initialize if not already set.
34844 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34845
34846 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34847
34848 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34849 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34850 Likewise.
34851 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34852 Likewise.
34853 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34854 Likewise.
34855 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34856 Likewise.
34857 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34858 Likewise.
34859 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34860 Likewise.
34861 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34862 Likewise.
34863 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34864 (NO_CANCELLATION): Likewise.
34865 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34866 Likewise.
34867 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34868 Likewise.
34869 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34870 Likewise.
34871 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34872 (NO_CANCELLATION): Likewise.
34873 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34874 (NO_CANCELLATION): Likewise.
34875 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34876 Likewise
34877 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34878 Likewise.
34879 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34880 Likewise.
34881 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34882 Likewise.
34883 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34884 hidden prototype.
34885 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34886 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34887
34888 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34889
34890 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34891 in resolver call.
34892
34893 2017-08-31 Florian Weimer <fweimer@redhat.com>
34894
34895 * include/libc-symbols.h (internal_function): Remove.
34896
34897 2017-08-31 Florian Weimer <fweimer@redhat.com>
34898
34899 * stdlib/fmtmsg.c (internal_addseverity): Remove
34900 internal_function.
34901
34902 2017-08-31 Florian Weimer <fweimer@redhat.com>
34903
34904 * stdio-common/printf_fp.c (group_number): Remove
34905 internal_function.
34906 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34907
34908 2017-08-31 Florian Weimer <fweimer@redhat.com>
34909
34910 * posix/fnmatch.c (internal_function): Remove definition.
34911 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34912 * posix/regcomp.c (peek_token, init_word_char)
34913 (duplicate_node_closure, fetch_token, peek_token)
34914 (peek_token_bracket, build_range_exp, build_collating_symbol):
34915 Likewise.
34916 * posix/regex_internal.c (re_string_construct_common)
34917 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34918 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34919 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34920 (re_string_translate_buffer, re_string_reconstruct)
34921 (re_string_peek_byte_case, re_string_fetch_byte_case)
34922 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34923 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34924 (re_node_set_add_intersect, re_node_set_init_union)
34925 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34926 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34927 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34928 (re_acquire_state_context): Likewise.
34929 * posix/regex_internal.h (internal_function): Remove definition.
34930 (re_string_realloc_buffers, build_wcs_buffer)
34931 (build_wcs_upper_buffer, build_upper_buffer)
34932 (re_string_translate_buffer, re_string_context_at)
34933 (re_string_char_size_at, re_string_wchar_at)
34934 (re_string_elem_size_at): Likewise.
34935 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34936 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34937 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34938 (re_search_internal, re_search_2_stub, re_search_stub)
34939 (re_copy_regs, prune_impossible_nodes, check_matching)
34940 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34941 (free_fail_stack_return, sift_states_iter_mb)
34942 (sift_states_backward, build_sifted_states)
34943 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34944 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34945 (check_subexp_limits, sift_states_bkref, merge_state_array)
34946 (find_recover_state, transit_state, merge_state_with_log)
34947 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34948 (transit_state_mb, transit_state_bkref, get_subexp)
34949 (get_subexp_sub, find_subexp_node, check_arrival)
34950 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34951 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34952 (check_node_accept_bytes, find_collation_sequence_value)
34953 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34954 (acquire_init_state_context, check_halt_node_context)
34955 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34956 (sub_epsilon_src_nodes): Likewise.
34957 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34958 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34959 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34960 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34961 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34962 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34963 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34964 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34965 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34966 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34967 (PREADV): Likewise.
34968 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34969 (PREADV): Likewise.
34970 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34971 (PWRITEV): Likewise.
34972 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34973 (PWRITEV): Likewise.
34974 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34975 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34976
34977 2017-08-31 Florian Weimer <fweimer@redhat.com>
34978
34979 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34980 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34981 Remove internal_function.
34982 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34983 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34984 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34985 (__deallocate_stack, __libc_pthread_init)
34986 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34987 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34988 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34989 Likewise.
34990 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34991 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34992 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34993 Likewise.
34994 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34995 (__pthread_mutex_unlock_usercnt): Likewise.
34996
34997 2017-08-31 Florian Weimer <fweimer@redhat.com>
34998
34999 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
35000 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
35001 (fts_safe_changedir): Remove internal_function.
35002 * io/ftw.c (internal_function): Remove definition.
35003 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
35004
35005 2017-08-31 Florian Weimer <fweimer@redhat.com>
35006
35007 * inet/deadline.c (__deadline_current_time)
35008 (__deadline_from_timeval, __deadline_to_ms): Remove
35009 internal_function.
35010 * inet/getnameinfo.c (nrl_domainname): Likewise.
35011 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
35012 * inet/inet6_option.c (add_pad): Likewise.
35013 * inet/net-internal.h (__deadline_current_time)
35014 (__deadline_from_timeval, __deadline_to_ms): Likewise.
35015 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
35016 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
35017 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
35018
35019 2017-08-31 Joseph Myers <joseph@codesourcery.com>
35020
35021 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
35022 include <bits/nan.h>.
35023 * math/Makefile (headers): Remove bits/nan.h.
35024 * bits/nan.h: Remove.
35025 * sysdeps/ieee754/bits/nan.h: Likewise.
35026 * sysdeps/mips/bits/nan.h: Likewise.
35027
35028 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
35029 not include <bits/inf.h>.
35030 * math/Makefile (headers): Remove bits/inf.h.
35031 * bits/inf.h: Remove.
35032 * sysdeps/ieee754/bits/inf.h: Likewise.
35033
35034 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
35035 bits/huge_vall.h or bits/huge_val_flt128.h.
35036 (HUGE_VAL): Define directly here.
35037 [__USE_ISOC99] (HUGE_VALF): Likewise.
35038 [__USE_ISOC99] (HUGE_VALL): Likewise.
35039 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35040 (HUGE_VAL_F128): Likewise.
35041 * math/Makefile (headers): Remove bits/huge_val.h,
35042 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
35043 * bits/huge_val.h: Remove.
35044 * bits/huge_val_flt128.h: Likewise.
35045 * bits/huge_valf.h: Likewise.
35046 * bits/huge_vall.h: Likewise.
35047 * sysdeps/ia64/bits/huge_vall.h: Likewise.
35048 * sysdeps/ieee754/bits/huge_val.h: Likewise.
35049 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
35050 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
35051 * sysdeps/sh/bits/huge_val.h: Likewise.
35052 * sysdeps/sparc/bits/huge_vall.h: Likewise.
35053 * sysdeps/x86/bits/huge_vall.h: Likewise.
35054
35055 2017-08-31 Florian Weimer <fweimer@redhat.com>
35056
35057 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
35058 internal_function.
35059 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
35060 Likewise.
35061 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
35062 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
35063 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
35064 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
35065 * elf/dl-fini.c (_dl_sort_fini): Likewise.
35066 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
35067 * elf/dl-libc.c (dlerror_run): Likewise.
35068 * elf/dl-load.c (add_name_to_object, decompose_rpath)
35069 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
35070 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
35071 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
35072 Likewise.
35073 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
35074 (_dl_higher_prime_number, _dl_strtoul): Likewise.
35075 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
35076 * elf/dl-profile.c (_dl_start_profile): Likewise.
35077 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
35078 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
35079 Likewise.
35080 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
35081 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
35082 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
35083 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
35084 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
35085 (_dl_allocate_tls_storage): Likewise.
35086 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
35087 (_dl_check_all_versions): Likewise.
35088 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
35089 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
35090 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
35091 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35092 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
35093 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
35094 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
35095 internal_function from __dl_start.
35096 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
35097 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
35098 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
35099 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
35100 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35101 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35102 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35103 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35104 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35105 (_dl_next_ld_env_entry, _dl_important_hwcaps)
35106 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35107 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35108 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35109 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35110 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35111 Likewise.
35112 (struct rtld_global_ro): Remove internal_function from the
35113 _dl_lookup_symbol_x member.
35114 (_dl_symbol_value): Remove. No longer defined anywhere.
35115 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35116 internal_function.
35117 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35118 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35119 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35120 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35121 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35122 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35123 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35124 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35125 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35126 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35127 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35128 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35129
35130 2017-08-31 Florian Weimer <fweimer@redhat.com>
35131
35132 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35133 Remove internal_function.
35134 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35135 Likewise.
35136 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35137 Likewise.
35138
35139 2017-08-31 Florian Weimer <fweimer@redhat.com>
35140
35141 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35142 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35143 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35144
35145 2017-08-31 Florian Weimer <fweimer@redhat.com>
35146
35147 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35148 (__gai_enqueue_request): Remove internal_function.
35149 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35150 (__gai_remove_request, __gai_notify, __gai_notify_only)
35151 (__gai_sigqueue): Likewise.
35152 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35153 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35154 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35155 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35156 Likewise.
35157
35158 2017-08-31 Florian Weimer <fweimer@redhat.com>
35159
35160 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35161 * include/dirent.h (__opendirat, __getdents, __getdents64)
35162 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35163 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35164 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35165 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35166 Likewise.
35167 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35168
35169 2017-08-31 Florian Weimer <fweimer@redhat.com>
35170
35171 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35172 internal_function.
35173 (GETCWD_RETURN_TYPE): Likewise.
35174
35175 2017-08-31 Florian Weimer <fweimer@redhat.com>
35176
35177 * include/time.h (__tz_compute, __strptime_internal): Remove
35178 internal_function.
35179 * time/strptime_l.c (__strptime_internal): Likewise.
35180 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35181
35182 2017-08-31 Florian Weimer <fweimer@redhat.com>
35183
35184 * iconv/gconv.c (__gconv): Remove internal_function.
35185 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35186 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35187 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35188 (__gconv_release_cache): Likewise.
35189 * iconv/gconv_close.c (__gconv_close): Likewise.
35190 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35191 (read_conf_file, __gconv_get_path): Likewise.
35192 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35193 (__gconv_release_step, gen_steps, increment_counter)
35194 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35195 (__gconv_close_transform, free_modules_db): Likewise.
35196 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35197 Likewise.
35198 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35199 (__gconv_find_transform, __gconv_lookup_cache)
35200 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35201 (__gconv_close_transform, __gconv_release_cache)
35202 (__gconv_loaded_object, __gconv_release_shlib)
35203 (__gconv_compare_alias): Likewise.
35204 * iconv/gconv_open.c (__gconv_open): Likewise.
35205 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35206 * iconv/iconvconfig.c (add_module): Likewise.
35207 * intl/dcigettext.c (plural_lookup, guess_category_value)
35208 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35209 * intl/eval-plural.h (plural_eval): Likewise.
35210 * intl/finddomain.c (_nl_find_domain): Likewise.
35211 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35212 (_nl_load_domain, _nl_find_msg): Likewise.
35213 (internal_function): Remove definition.
35214 * intl/loadinfo.h (internal_function): Likewise.
35215 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35216 internal_function.
35217 * intl/localealias.c (internal_function): Remove definition.
35218 (read_alias_file): Remove internal_function.
35219 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35220 * intl/plural-exp.h (internal_function): Remove definition.
35221 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35222 internal_function.
35223 * intl/plural.c: Regenerate.
35224 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35225 * locale/coll-lookup.c (__collidx_table_lookup)
35226 (__collseq_table_lookup): Likewise.
35227 * locale/coll-lookup.h (__collidx_table_lookup)
35228 (__collseq_table_lookup): Likewise.
35229 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35230 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35231 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35232 (_nl_unload_locale): Likewise.
35233 * locale/localeinfo.h (struct __locale_data): Remove
35234 internal_function from cleanup member.
35235 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35236 (_nl_remove_locale, _nl_load_locale_from_archive)
35237 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35238 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35239 (_nl_cleanup_time): Remove internal_function.
35240 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35241 (_nl_parse_alt_digit): Likewise.
35242 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35243 (_nl_select_era_entry): Likewise.
35244 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35245 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35246 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35247 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35248 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35249
35250 2017-08-31 Florian Weimer <fweimer@redhat.com>
35251
35252 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35253 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35254 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35255 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35256 Likewise.
35257 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35258 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35259 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35260 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35261 Likewise.
35262 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35263
35264 2017-08-31 Florian Weimer <fweimer@redhat.com>
35265
35266 * misc/getttyent.c (skip, value): Remove internal_function.
35267 * misc/syslog.c (openlog_internal): Likewise.
35268 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35269
35270 2017-08-31 Florian Weimer <fweimer@redhat.com>
35271
35272 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35273 (__nss_rewrite_field): Remove internal_function.
35274 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35275 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35276 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35277 * nss/nsswitch.c (nss_parse_file, nss_getline)
35278 (nss_parse_service_list, nss_new_service): Likewise.
35279 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35280 * nss/valid_field.c (__nss_valid_field): Likewise.
35281 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35282
35283 2017-08-31 Florian Weimer <fweimer@redhat.com>
35284
35285 * malloc/arena.c (__malloc_fork_lock_parent)
35286 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35287 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35288 internal_function from defintions.
35289 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35290 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35291 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35292 internal_function from declarations.
35293 * malloc/malloc.c (internal_function): Do not define.
35294 (mem2mem_check): Remove internal_function from declaration.
35295 (munmap_chunk, mremap_chunk): Remove internal_function.
35296 * malloc/mtrace.c (tr_where): Likewise.
35297
35298 2017-08-31 Florian Weimer <fweimer@redhat.com>
35299
35300 * include/rpc/pmap_clnt.h (__get_socket): Remove
35301 internal_function.
35302 * sunrpc/auth_des.c (synchronize): Likewise.
35303 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35304 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35305 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35306 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35307 (key_call): Likewise.
35308 * sunrpc/pm_getport.c (__get_socket): Likewise.
35309 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35310 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35311 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35312 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35313 (invalidate): Likewise.
35314 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35315 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35316 (set_input_fragment, get_input_bytes): Likewise.
35317
35318 2017-08-31 Florian Weimer <fweimer@redhat.com>
35319
35320 * malloc/malloc.c (_int_free): Remove locked variable and related
35321 asserts.
35322
35323 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35324
35325 [BZ #22051]
35326 * Makerules (build-module-helper-objlist): Filter out
35327 $(elf-objpfx)sofini.os.
35328 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35329 needed.
35330
35331 2017-08-31 Florian Weimer <fweimer@redhat.com>
35332
35333 * libio/fcloseall.c: Assume weak_alias is defined.
35334 * libio/feof.c: Likewise.
35335 * libio/fileno.c: Likewise.
35336 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35337 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35338 definitions.
35339 (_IO_file_open): Call __open directly.
35340 (_IO_new_file_sync): Assume ESPIPE is defined.
35341 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35342 (_IO_new_file_write): Call __write directly.
35343 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35344 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35345 * libio/genops.c: Assume _LIBC is defined.
35346 (save_for_backup): Remove internal_function.
35347 * libio/getc.c: Assume weak_alias is defined.
35348 * libio/getwc.c: Likewise.
35349 * libio/iofclose.c: Assume _LIBC is defined.
35350 * libio/iofdopen.c: Likewise.
35351 (_IO_fcntl): Remove macro definition.
35352 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35353 Call __fcntl directly.
35354 * libio/iofflush.c: Assume weak_alias is defined.
35355 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35356 defined.
35357 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35358 * libio/iofgets.c: Likewise.
35359 * libio/iofopen.c: Assume _LIBC is defined.
35360 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35361 * libio/iofputs.c: Assume weak_alias is defined.
35362 * libio/iofread.c: Likewise.
35363 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35364 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35365 * libio/ioftell.c: Assume weak_alias is defined.
35366 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35367 * libio/iofwide.c: Assume _LIBC is defined.
35368 (_IO_fwide): Drop SHARED conditional because it is implied by
35369 SHLIB_COMPAT.
35370 * libio/iofwrite.c: Assume weak_alias is defined.
35371 * libio/iogetdelim.c: Likewise.
35372 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35373 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35374 (_IO_getwline): Call __wmemcpy directly.
35375 * libio/iopopen.c: Assume _LIBC is defined.
35376 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35377 (_IO_close): Remove macro definitions.
35378 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35379 _exit directly.
35380 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35381 directly.
35382 * libio/ioputs.c: Assume weak_alias is defined.
35383 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35384 * libio/iosetbuffer.c: Assume weak_alias is defined.
35385 * libio/iosetvbuf.c: Likewise.
35386 * libio/ioungetc.c: Likewise.
35387 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35388 libc_hidden_def, libc_hidden_weak, NULL are defined.
35389 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35390 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35391 defined.
35392 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35393 definitions.
35394 (_IO_old_file_init_internal): Drop SHARED conditional because it
35395 is implied by SHLIB_COMPAT.
35396 (_IO_old_file_fopen): Call __open directly.
35397 (_IO_old_file_sync): Assume ESPIPE is defined.
35398 (_IO_old_file_write): Call __write directly.
35399 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35400 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35401 Call __fcntl directly.
35402 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35403 (_IO_old_fgetpos): Assume EIO is defined.
35404 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35405 (_IO_old_fgetpos64): Assume EIO is defined.
35406 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35407 (_IO_old_fsetpos): Assume EIO is defined.
35408 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35409 (_IO_old_fsetpos64): Assume EIO is defined.
35410 * libio/oldiopopen.c: Assume _LIBC is defined.
35411 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35412 (_IO_close): Remove macro definitions.
35413 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35414 directly.
35415 (_IO_old_proc_close): Call __close, __waitpid directly.
35416 * libio/put.c: Assume weak_alias is defined.
35417 * libio/stdfiles.c: Assume _LIBC is defined.
35418 * libio/stdio.c: Likewise.
35419 * libio/wfileops.c: Likewise.
35420 (_IO_wfile_sync): Assume ESPIPE is defined.
35421 * libio/wgenops.c: Assume _LIBC is defined.
35422 (save_for_wbackup): Remove internal_function.
35423
35424 2017-08-31 Florian Weimer <fweimer@redhat.com>
35425
35426 * malloc/malloc.c (top_check): Change return type to void. Remove
35427 internal_function.
35428 * malloc/hooks.c (top_check): Likewise.
35429 (malloc_check, realloc_check, memalign_check): Adjust.
35430
35431 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35432
35433 [BZ #21457]
35434 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35435 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35436 sigcontext and namespace requirements.
35437 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35438 * sysdeps/m68k/sys/ucontext.h: Likewise.
35439 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35440 * sysdeps/unix/sysv/linux/aarch64/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/aarch64/ucontext_i.sym (oEXTENSION): Use
35446 __glibc_reserved1 instead of __reserved.
35447 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35448 <bits/sigcontext.h>.
35449 (__ctx): Define earlier.
35450 (mcontext_t): Define structure contents rather than using struct
35451 sigcontext.
35452 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35453 mcontext_t instead of struct sigcontext.
35454 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35455 <bits/sigcontext.h>.
35456 (__ctx): Define earlier.
35457 (mcontext_t): Define structure contents rather than using struct
35458 sigcontext.
35459 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35460 <bits/sigcontext.h>.
35461 (__ctx): Define earlier.
35462 (mcontext_t): Define structure contents rather than using struct
35463 sigcontext.
35464 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35465 mcontext_t instead of struct sigcontext.
35466 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35467 mcontext_t instead of struct sigcontext.
35468 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35469 <bits/sigcontext.h>.
35470 (__ctx): New macro.
35471 (struct __ia64_fpreg_mcontext): New type.
35472 (mcontext_t): Define structure contents rather than using struct
35473 sigcontext.
35474 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35475 (uc_sigmask): Define using __ctx.
35476 (uc_stack): Likewise.
35477 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35478 <bits/sigcontext.h>.
35479 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35480 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35481 <bits/sigcontext.h>.
35482 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35483 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35484 <bits/sigcontext.h>.
35485 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35486 <bits/sigcontext.h>.
35487 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35488 <bits/sigcontext.h>.
35489 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35490 <bits/sigcontext.h>.
35491 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35492 <bits/sigcontext.h>.
35493 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35494 <bits/sigcontext.h>.
35495 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35496 <bits/sigcontext.h>.
35497 (__ctx): Define earlier.
35498 (mcontext_t): Define structure contents rather than using struct
35499 sigcontext.
35500 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35501 <bits/sigcontext.h>. Include <bits/types.h>.
35502 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35503 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35504 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35505 (test-xfail-UNIX98/signal.h/conform): Likewise.
35506 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35507 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35508 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35509 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35510 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35511 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35512 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35513 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35514 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35515
35516 2017-08-30 Florian Weimer <fweimer@redhat.com>
35517
35518 * malloc/dynarray_emplace_enlarge.c
35519 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35520 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35521 * malloc/tst-dynarray.c (test_long_overflow): New function.
35522 (do_test): Call it.
35523
35524 2017-08-30 Florian Weimer <fweimer@redhat.com>
35525
35526 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35527 (set_arena_corrupt): Remove definitions.
35528 (mtrim): Do not check for corrupt arena.
35529 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35530 Likewise.
35531
35532 2017-08-30 Florian Weimer <fweimer@redhat.com>
35533
35534 [BZ #21754]
35535 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35536 check_action.
35537 (ptmalloc_init): Do not set or use check_action.
35538 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35539 call to malloc_printerr. Remove return statement.
35540 (free_check): Likewise. Remove arena unlock.
35541 (top_check): Update comment. Adjust call to malloc_printerr.
35542 Remove heap repair code.
35543 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35544 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35545 (sysmalloc): Adjust call to malloc_printerr.
35546 (munmap_chunk, __libc_realloc): Likewise. Remove return
35547 statement.
35548 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35549 Remove errout label and corresponding gotos.
35550 (_int_free): Likewise. Remove arena unlock.
35551 (do_set_mallopt_check): Do not set check_action.
35552 (malloc_printerr): Adjust parameter list. Do not mark arena as
35553 corrupt.
35554 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35555 comment.
35556 * manual/probes.texi (Memory Allocation Probes): Remove
35557 memory_mallopt_check_action.
35558
35559 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35560
35561 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35562 Use pointer to uint64_t instead of long int for sp.
35563
35564 2017-08-30 Florian Weimer <fweimer@redhat.com>
35565
35566 [BZ #21754]
35567 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35568 without printing a backtrace. Do not leak any information in the
35569 error message.
35570 * manual/memory.texi (Heap Consistency Checking): Update.
35571 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35572
35573 2017-08-30 Florian Weimer <fweimer@redhat.com>
35574
35575 Do not scale NPTL tests with available number of CPUs.
35576 * nptl/tst-cond16.c (count): Set to constant value of 8.
35577 * nptl/tst-cond18.c (count): Likewise.
35578
35579 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35580
35581 [BZ #22035]
35582 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35583 Define to take a second argument that is a macro that
35584 concatentates a suffix, not the suffix itself.
35585 (__CONCAT_d): New macro.
35586 (__CONCAT_f): Likewise.
35587 (__CONCAT_l): Likewise.
35588
35589 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35590
35591 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35592 by child.
35593
35594 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35595 Aurelien Jarno <aurelien@aurel32.net>
35596 Maciej W. Rozycki <macro@imgtec.com>
35597
35598 [BZ #21956]
35599 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35600 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35601 `mips16-syscall6' and `mips16-syscall7'.
35602 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35603 (CFLAGS-mips16-syscall7.c): Remove.
35604 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35605 Remove `__mips16_syscall5', `__mips16_syscall6' and
35606 `__mips16_syscall7'.
35607 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35608 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35609 `__mips_syscall_return'.
35610 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35611 (__mips16_syscall1): Likewise.
35612 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35613 (__mips16_syscall2): Likewise.
35614 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35615 (__mips16_syscall3): Likewise.
35616 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35617 (__mips16_syscall4): Likewise.
35618 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35619 Remove.
35620 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35621 Remove.
35622 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35623 Remove.
35624 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35625 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35626 `__mips16_syscall5'. Remove prototype.
35627 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35628 `__mips16_syscall6'. Remove prototype.
35629 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35630 `__mips16_syscall7'. Remove prototype.
35631 (__nomips16, __mips16_syscall_return): Move to...
35632 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35633 (__nomips16, __mips_syscall_return): ... here.
35634 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35635 `__mips16_syscall_return' to `__mips_syscall_return'.
35636 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35637 `internal_syscall##nr'.
35638 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35639 `internal_syscall##nr'.
35640 (FORCE_FRAME_POINTER): Remove.
35641 (__mips_syscall5): New prototype.
35642 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35643 (__mips_syscall6): New prototype.
35644 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35645 (__mips_syscall7): New prototype.
35646 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35647 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35648 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35649 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35650 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35651 (sysdep_routines): Add libc-do-syscall.
35652 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35653 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35654
35655 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35656
35657 [BZ #21672]
35658 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35659 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35660 (advise_stack_range): New function.
35661 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35662 stack non required to advise_stack_range at allocatestack.c
35663
35664 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35665
35666 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35667
35668 2017-08-29 Florian Weimer <fweimer@redhat.com>
35669
35670 [BZ #22026]
35671 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35672 __end_fct. Mangle __end_fct after setting it to NULL.
35673 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35674 (modules-names, modules-names-tests): Add
35675 tst-gconv-init-failure-mod.
35676 (gconv-modules): New target.
35677 (tst-gconv-init-failure-mod.so): Link against libsupport.
35678 (tst-gconv-init-failure): Depend on gconv-modules,
35679 tst-gconv-init-failure-mod.so.
35680 * iconv/tst-gconv-init-failure-mod.c: New file.
35681 * iconv/tst-gconv-init-failure.c: Likewise.
35682 * iconv/test-gconv-modules: Likewise.
35683
35684 2017-08-29 Florian Weimer <fweimer@redhat.com>
35685
35686 [BZ #22025]
35687 * iconv/gconv_db.c (free_derivation): Remove redundant
35688 parentheses.
35689 (gen_steps): Unconditionally mangle __btowc_fct after
35690 initialization.
35691 (increment_counter): Likewise. Do not call init_fct for internal
35692 modules.
35693
35694 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35695
35696 [BZ #22028]
35697 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35698 (_MSUF_): Remove macro.
35699 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35700 Likewise.
35701 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35702 (__REDIRFROM_X): New macro.
35703 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35704 Likewise.
35705 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35706 (__REDIRTO_X): Likewise.
35707 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35708 arguments.
35709 (__MATH_REDIRCALL_2): Likewise.
35710 (__MATH_REDIRCALL_INTERNAL): Likewise.
35711 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35712 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35713 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35714 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35715 * math/test-finite-macros.c: New file.
35716 * math/Makefile (tests): Add test-finite-macros.
35717 (CFLAGS-test-finite-macros.c): New variable.
35718
35719 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35720 Jeff Law <law@redhat.com>
35721
35722 [BZ #22025]
35723 Mangle NULL pointers in iconv/gconv.
35724 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35725 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35726 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35727 is non-NULL before demangling the end_fct. Check for NULL
35728 end_fct after demangling.
35729 (__gconv_release_step): Demangle the end_fct before checking
35730 it for NULL. Remove assert on __shlibc_handle != NULL.
35731 (gen_steps): Don't check btowc_fct for NULL before mangling.
35732 Demangle init_fct before checking for NULL.
35733 (increment_counter): Likewise.
35734 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35735 end_fct for NULL before mangling.
35736 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35737 for NULL.
35738
35739 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35740
35741 [BZ #21971]
35742 * locale/iso-639.def: add Morisyen.
35743
35744 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35745
35746 [BZ #21930]
35747 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35748 (iszero): New C++ implementation that does not use
35749 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35750 signaling nans are enabled, since __builtin_types_compatible_p
35751 is a C-only feature.
35752 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35753 defined, include ieee754_float128.h for access to the union and
35754 member ieee854_float128.ieee.
35755 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35756 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35757 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35758 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35759 options of test-math-zero on powerpc64le.
35760
35761 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35762
35763 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35764 Change double to float.
35765
35766 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35767
35768 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35769 unconditional.
35770 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35771 conditional code; define contents only for [LIBM_SVID_COMPAT].
35772
35773 2017-08-28 Florian Weimer <fweimer@redhat.com>
35774
35775 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35776 (abi-lp64_be-options): Remove.
35777 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35778 (abi-hard-options): Likewise.
35779 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35780 (abi-o32_hard-options, abi-o32_soft_2008-options)
35781 (abi-o32_hard_2008-options, abi-n32_soft-options)
35782 (abi-n32_hard-options, abi-n32_soft_2008-options)
35783 (abi-n32_hard_2008-options, abi-n64_soft-options)
35784 (abi-n64_hard-options, abi-n64_soft_2008-options)
35785 (abi-n64_hard_2008-options): Likewise.
35786 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35787 (abi-64-v1-options, abi-64-v2-options): Likewise.
35788 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35789 (abi-64-options): Likewise.
35790 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35791 (abi-64-options): Likewise.
35792 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35793 (abi-64-options): Likewise.
35794 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35795 (abi-64-options, abi-x32-options): Likewise.
35796
35797 2017-08-28 Florian Weimer <fweimer@redhat.com>
35798
35799 Store supported list of SYS_* system calls in the source tree.
35800 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35801 (bits/syscall.h): Generate from list file.
35802 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35803 [$(subdir) = misc] (tests): Add tst-syscall-list.
35804 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35805 [$(subdir) = misc] (tst-syscall-list-macros.list)
35806 [$(subdir) = misc] (tst-syscall-list-nr.list)
35807 (tst-syscall-list-sys.list): Helper targets for new
35808 tst-syscall-list test.
35809 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35810 tst-syscall-list.sh.
35811 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35812 target. Do not include bits/syscall.d.
35813 [$(subdir) = misc] (generated): Do not update.
35814 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35815 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35816 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35817 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35818
35819 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35820
35821 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35822 (tst-cxa_atexit, tst-on_exit): Likewise.
35823 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35824 tst-cxa_atexit, and tst-on_exit.
35825 * stdlib/tst-atexit-common.c: New file.
35826 * stdlib/tst-atexit.c: New file.
35827 * stdlib/tst-at_quick_exit.c: New file.
35828 * stdlib/tst-cxa_atexit.c: New file.
35829 * stdlib/tst-on_exit.c: New file.
35830
35831 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35832
35833 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35834 * mach/stack_chk_fail_local.c: New file.
35835 * hurd/stack_chk_fail_local.c: New file.
35836 * mach/Machrules ($(interface-library)-routines): Add
35837 stack_chk_fail_local.
35838 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35839 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35840 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35841 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35842 * hurd/Makefile (CFLAGS-hurdstartup.o,
35843 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35844
35845 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35846
35847 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35848 (index_cpu_*, index_arch_*): Removed.
35849
35850 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35851
35852 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35853 Use uint64_t instead of unsigned long.
35854
35855 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35856
35857 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35858 [__HAVE_DISTINCT_FLOAT128].
35859
35860 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35861 of <bits/math-finite.h>.
35862 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35863 inclusion of <bits/math-finite.h>.
35864 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35865 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35866 __NO_LONG_DOUBLE_MATH].
35867 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35868 (__MATH_REDIRCALL_2): Likewise.
35869 (__MATH_REDIRCALL_INTERNAL): Likewise.
35870 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35871 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35872 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35873
35874 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35875 Remove file.
35876 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35877 Likewise.
35878 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35879 Likewise.
35880 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35881 Likewise.
35882 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35883 Likewise.
35884 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35885 Likewise.
35886 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35887 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35888 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35889 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35890 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35891 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35892 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35893 w_sqrtf_compat-ppc32.
35894
35895 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35896
35897 * math/math.h [defined __cplusplus] (issignaling): In the long
35898 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35899 is not defined. Call __issignaling, otherwise.
35900
35901 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35902
35903 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35904 syscall definitions and replace __builtin_expect with __glibc_likely.
35905 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35906 syscall.
35907 (SYSCALL_CANCELLABLE): Removedefinition
35908 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35909 definition.
35910 (PSEUDO_END): Likewise.
35911 [IS_IN (libpthread)] (CENABLE): Likewise.
35912 [IS_IN (libpthread)] (CDISABLE): Likewise.
35913 [IS_IN (libc)] (CENABLE): Likewise.
35914 [IS_IN (libc)] (CENABLE): Likewise.
35915 [IS_IN (librt)] (CDISABLE): Likewise.
35916 [IS_IN (librt)] (CDISABLE): Likewise.
35917 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35918 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35919 definition.
35920 (PSEUDO_END): Likewise.
35921 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35922 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35923 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35924 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35925 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35926 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35927 (CENABLE): Likewise.
35928 (CDISABLE): Likewise.
35929 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35930 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35931 defintion.
35932 (PSEUDO_END): Likewise.
35933 [IS_IN (libpthread)] (CENABLE): Likewise.
35934 [IS_IN (libpthread)] (CDISABLE): Likewise.
35935 [IS_IN (libc)] (CENABLE): Likewise.
35936 [IS_IN (libc)] (CENABLE): Likewise.
35937 [IS_IN (librt)] (CDISABLE): Likewise.
35938 [IS_IN (librt)] (CDISABLE): Likewise.
35939 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35940 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35941 definition.
35942 (PSEUDO_END): Likewise.
35943 [IS_IN (libpthread)] (CENABLE): Likewise.
35944 [IS_IN (libpthread)] (CDISABLE): Likewise.
35945 [IS_IN (libc)] (CENABLE): Likewise.
35946 [IS_IN (libc)] (CENABLE): Likewise.
35947 [IS_IN (librt)] (CDISABLE): Likewise.
35948 [IS_IN (librt)] (CDISABLE): Likewise.
35949 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35950 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35951 definition.
35952 (PSEUDO_END): Likewise.
35953 [IS_IN (libpthread)] (CENABLE): Likewise.
35954 [IS_IN (libpthread)] (CDISABLE): Likewise.
35955 [IS_IN (libc)] (CENABLE): Likewise.
35956 [IS_IN (libc)] (CENABLE): Likewise.
35957 [IS_IN (librt)] (CDISABLE): Likewise.
35958 [IS_IN (librt)] (CDISABLE): Likewise.
35959 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35960 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35961 definition.
35962 (PSEUDO_END): Likewise.
35963 [IS_IN (libpthread)] (CENABLE): Likewise.
35964 [IS_IN (libpthread)] (CDISABLE): Likewise.
35965 [IS_IN (libc)] (CENABLE): Likewise.
35966 [IS_IN (libc)] (CENABLE): Likewise.
35967 [IS_IN (librt)] (CDISABLE): Likewise.
35968 [IS_IN (librt)] (CDISABLE): Likewise.
35969 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35970 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35971 definition.
35972 (PSEUDO_END): Likewise.
35973 [IS_IN (libpthread)] (CENABLE): Likewise.
35974 [IS_IN (libpthread)] (CDISABLE): Likewise.
35975 [IS_IN (libc)] (CENABLE): Likewise.
35976 [IS_IN (libc)] (CENABLE): Likewise.
35977 [IS_IN (librt)] (CDISABLE): Likewise.
35978 [IS_IN (librt)] (CDISABLE): Likewise.
35979 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35980 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35981 definition.
35982 (PSEUDO_END): Likewise.
35983 [IS_IN (libpthread)] (CENABLE): Likewise.
35984 [IS_IN (libpthread)] (CDISABLE): Likewise.
35985 [IS_IN (libc)] (CENABLE): Likewise.
35986 [IS_IN (libc)] (CENABLE): Likewise.
35987 [IS_IN (librt)] (CDISABLE): Likewise.
35988 [IS_IN (librt)] (CDISABLE): Likewise.
35989 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35990 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35991 Remove definition.
35992 (PSEUDO_END): Likewise.
35993 [IS_IN (libpthread)] (CENABLE): Likewise.
35994 [IS_IN (libpthread)] (CDISABLE): Likewise.
35995 [IS_IN (libc)] (CENABLE): Likewise.
35996 [IS_IN (libc)] (CENABLE): Likewise.
35997 [IS_IN (librt)] (CDISABLE): Likewise.
35998 [IS_IN (librt)] (CDISABLE): Likewise.
35999 (SINGLE_THREAD_P): Likewise.
36000 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
36001 definition.
36002 (PSEUDO_END): Likewise.
36003 [IS_IN (libpthread)] (CENABLE): Likewise.
36004 [IS_IN (libpthread)] (CDISABLE): Likewise.
36005 [IS_IN (libc)] (CENABLE): Likewise.
36006 [IS_IN (libc)] (CENABLE): Likewise.
36007 [IS_IN (librt)] (CDISABLE): Likewise.
36008 [IS_IN (librt)] (CDISABLE): Likewise.
36009 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36010 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
36011 definition.
36012 (PSEUDO_END): Likewise.
36013 [IS_IN (libpthread)] (CENABLE): Likewise.
36014 [IS_IN (libpthread)] (CDISABLE): Likewise.
36015 [IS_IN (libc)] (CENABLE): Likewise.
36016 [IS_IN (libc)] (CENABLE): Likewise.
36017 [IS_IN (librt)] (CDISABLE): Likewise.
36018 [IS_IN (librt)] (CDISABLE): Likewise.
36019 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36020 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
36021 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
36022 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
36023 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
36024 definition.
36025 (PSEUDO_END): Likewise.
36026 [IS_IN (libpthread)] (CENABLE): Likewise.
36027 [IS_IN (libpthread)] (CDISABLE): Likewise.
36028 [IS_IN (libc)] (CENABLE): Likewise.
36029 [IS_IN (libc)] (CENABLE): Likewise.
36030 [IS_IN (librt)] (CDISABLE): Likewise.
36031 [IS_IN (librt)] (CDISABLE): Likewise.
36032 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36033 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
36034 definition.
36035 (PSEUDO_END): Likewise.
36036 [IS_IN (libpthread)] (CENABLE): Likewise.
36037 [IS_IN (libpthread)] (CDISABLE): Likewise.
36038 [IS_IN (libc)] (CENABLE): Likewise.
36039 [IS_IN (libc)] (CENABLE): Likewise.
36040 [IS_IN (librt)] (CDISABLE): Likewise.
36041 [IS_IN (librt)] (CDISABLE): Likewise.
36042 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36043 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
36044 definition.
36045 (PSEUDO_END): Likewise.
36046 [IS_IN (libpthread)] (CENABLE): Likewise.
36047 [IS_IN (libpthread)] (CDISABLE): Likewise.
36048 [IS_IN (libc)] (CENABLE): Likewise.
36049 [IS_IN (libc)] (CENABLE): Likewise.
36050 [IS_IN (librt)] (CDISABLE): Likewise.
36051 [IS_IN (librt)] (CDISABLE): Likewise.
36052 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36053 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
36054 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
36055 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
36056 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
36057 definition.
36058 (PSEUDO_END): Likewise.
36059 [IS_IN (libpthread)] (CENABLE): Likewise.
36060 [IS_IN (libpthread)] (CDISABLE): Likewise.
36061 [IS_IN (libc)] (CENABLE): Likewise.
36062 [IS_IN (libc)] (CENABLE): Likewise.
36063 [IS_IN (librt)] (CDISABLE): Likewise.
36064 [IS_IN (librt)] (CDISABLE): Likewise.
36065 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36066 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
36067 definition.
36068 (PSEUDO_END): Likewise.
36069 [IS_IN (libpthread)] (CENABLE): Likewise.
36070 [IS_IN (libpthread)] (CDISABLE): Likewise.
36071 [IS_IN (libc)] (CENABLE): Likewise.
36072 [IS_IN (libc)] (CENABLE): Likewise.
36073 [IS_IN (librt)] (CDISABLE): Likewise.
36074 [IS_IN (librt)] (CDISABLE): Likewise.
36075 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36076
36077 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
36078
36079 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
36080
36081 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36082
36083 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
36084
36085 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36086
36087 [BZ #21982]
36088 * string/stratcliff.c (do_test): Declare size, nchars, inner,
36089 middle and outer with size_t instead of int. Repleace %d and
36090 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
36091 "MAX (outer, nchars - 64)" to support unsigned outer and
36092 nchars. Also exit loop when outer == 0.
36093
36094 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36095
36096 * include/fcntl.h (__fcntl_nocancel): Remove definition.
36097 * include/signal.h (__sigsuspend_nocancel): Likewise.
36098 * include/time.h (__nanosleep_nocancel): Likewise.
36099 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
36100 * login/utmp_file.c: Include non cancellable syscall header.
36101 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36102 prototype.
36103
36104 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36105
36106 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36107 .byte sequences with AVX512F instructions.
36108 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36109 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36110 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36111 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36112 Likewise.
36113 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36114 Likewise.
36115
36116 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36117 Steve Ellcey <sellcey@cavium.com>
36118
36119 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36120 Use PTR_REG macro in cmp instruction.
36121
36122 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36123
36124 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36125 Change the return type of the ifunc resolver to match the return
36126 type of the target function.
36127
36128 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36129
36130 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36131 (preadv64): Likewise.
36132 (pwrite64(: Likewise.
36133 (pwritev64): Likewise.
36134
36135 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36136 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36137 (LOAD_ARGS_0): Likewise.
36138 (LOAD_ARGS_1): Likewise.
36139 (LOAD_ARGS_2): Likewise.
36140 (LOAD_ARGS_3): Likewise.
36141 (LOAD_ARGS_4): Likewise.
36142 (LOAD_ARGS_5): Likewise.
36143 (LOAD_ARGS_6): Likewise.
36144 (LOAD_REGS_0): Likewise.
36145 (LOAD_REGS_1): Likewise.
36146 (LOAD_REGS_2): Likewise.
36147 (LOAD_REGS_3): Likewise.
36148 (LOAD_REGS_4): Likewise.
36149 (LOAD_REGS_5): Likewise.
36150 (LOAD_REGS_6): Likewise.
36151 (ASM_ARGS_0): Likewise.
36152 (ASM_ARGS_1): Likewise.
36153 (ASM_ARGS_2): Likewise.
36154 (ASM_ARGS_3): Likewise.
36155 (ASM_ARGS_4): Likewise.
36156 (ASM_ARGS_5): Likewise.
36157 (ASM_ARGS_6): Likewise.
36158 (LOAD_ARGS_TYPES_1): Likewise.
36159 (LOAD_ARGS_TYPES_2): Likewise.
36160 (LOAD_ARGS_TYPES_3): Likewise.
36161 (LOAD_ARGS_TYPES_4): Likewise.
36162 (LOAD_ARGS_TYPES_5): Likewise.
36163 (LOAD_ARGS_TYPES_6): Likewise.
36164 (LOAD_REGS_TYPES_1): Likewise.
36165 (LOAD_REGS_TYPES_2): Likewise.
36166 (LOAD_REGS_TYPES_3): Likewise.
36167 (LOAD_REGS_TYPES_4): Likewise.
36168 (LOAD_REGS_TYPES_5): Likewise.
36169 (LOAD_REGS_TYPES_6): Likewise.
36170 (TYPEFY): New define.
36171 (ARGIFY): Likewise.
36172 (internal_syscall0): Likewise.
36173 (internal_syscall1): Likewise.
36174 (internal_syscall2): Likewise.
36175 (internal_syscall3): Likewise.
36176 (internal_syscall4): Likewise.
36177 (internal_syscall5): Likewise.
36178 (internal_syscall6): Likewise.
36179 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36180 (INTERNAL_SYSCALL_NCS): Remove define.
36181 (internal_syscall1): Add define.
36182
36183 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36184
36185 * math/w_remainder_compat.c: Remove duplicate inclusion of
36186 math-svid-compat.h.
36187 * math/w_remainderf_compat.c: Likewise.
36188 * math/w_remainderl_compat.c: Likewise.
36189
36190 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36191
36192 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36193
36194 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36195
36196 [BZ #21684]
36197 * math/tgmath.h (__floating_type): Simplify definitions.
36198 (__real_integer_type): New macro.
36199 (__complex_integer_type): Likewise.
36200 (__expr_is_real): Likewise.
36201 (__tgmath_real_type_sub): Update comment to describe handling of
36202 complex types.
36203 (__tgmath_complex_type_sub): New macro.
36204 (__tgmath_complex_type): Likewise.
36205 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36206 (__TGMATH_CF128): Use __expr_is_real.
36207 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36208 __expr_is_real.
36209 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36210 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36211 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36212 integer types.
36213
36214 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36215
36216 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36217 macro.
36218 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36219 alias.
36220 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36221 Likewise.
36222
36223 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36224 nanosleep_not_cancel with __nanosleep_nocancel.
36225 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36226 (__nanosleep_nocancel): New macro.
36227 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36228 function.
36229 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36230 macro.
36231 (__nanosleep_nocancel): New prototype.
36232
36233 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36234 pause_not_cancel with __pause_nocancel.
36235 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36236 (__pause_nocancel): New macro.
36237 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36238 macro.
36239 (__pause_nocancel): New prototype.
36240 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36241
36242 2017-08-22 Martin Sebor <msebor@redhat.com>
36243
36244 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36245 to return a pointer to the same type as the target function.
36246
36247 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36248
36249 [BZ #18822]
36250 [BZ #21986]
36251 * include/printf.h (__printf_fphex): Add attribute_hidden.
36252 (__guess_grouping): New prototype.
36253 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36254 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36255 libc_hidden_proto and libc_hidden_def.
36256 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36257 (__vstrfmon_l): Remove the third argument passed to
36258 __guess_grouping.
36259
36260 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36261
36262 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36263 definition for issignaling that does not rely on __MATH_TG,
36264 since __MATH_TG uses __builtin_types_compatible_p, which is only
36265 available in C mode.
36266 (CFLAGS-test-math-issignaling.cc): New variable.
36267 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36268 * math/test-math-issignaling.cc: New test for C++ implementation
36269 of type-generic issignaling.
36270 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36271 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36272 options of test-math-issignaling on powerpc64le.
36273
36274 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36275
36276 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36277 building libc.a.
36278 (hidden_proto): Likewise.
36279 (hidden_tls_proto): Likewise.
36280 (__hidden_proto): Likewise.
36281
36282 2017-08-22 Florian Weimer <fweimer@redhat.com>
36283
36284 math: Statically link tests of internal functionality.
36285 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36286 atest-exp2.
36287 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36288 (gmp-objs): Remove assignment.
36289 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36290
36291 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36292
36293 [BZ #21987]
36294 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36295 and copy to ...
36296 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36297 ... here.
36298 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36299 ... and here.
36300
36301 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36302 variable definitions above inclusion of ../Rules.
36303
36304 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36305
36306 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36307 case calling __builtin_unreachable.
36308
36309 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36310
36311 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36312 __waitpid_nocancel.
36313 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36314 (__waitpid_nocancel): New macro.
36315 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36316 macro.
36317 (__waitpid_nocancel): Replace macro with a function.
36318 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36319 function.
36320
36321 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36322 __fcntl_nocancel.
36323 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36324 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36325
36326 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36327 __writev_nocancel_nostatus.
36328 (write_call_graph): Likewise.
36329 (write_bb_counts): Likewise.
36330 * resolv/herror.c (herror): Likewise.
36331 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36332 macro.
36333 (__writev_nocancel_nostatus): New macro.
36334 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36335 Remove macro.
36336 (__writev_nocancel_nostatus): New function.
36337
36338 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36339
36340 Revert:
36341 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36342
36343 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36344 building libc.a.
36345 (hidden_proto): Likewise.
36346 (hidden_tls_proto): Likewise.
36347 (__hidden_proto): Likewise.
36348
36349 [BZ #21973]
36350 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36351 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36353 Likewise.
36354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36355 Likewise.
36356 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36357 Likewise.
36358 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36359 Likewise.
36360 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36361 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36362 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36363 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36364 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36365 GLIBC_2.0 sqrtl symbol.
36366
36367 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36368 [__USE_MISC] (_LIB_VERSION): Likewise.
36369 [__USE_MISC] (struct exception): Likewise.
36370 [__USE_MISC] (matherr): Likewise.
36371 [__USE_MISC] (DOMAIN): Likewise.
36372 [__USE_MISC] (SING): Likewise.
36373 [__USE_MISC] (OVERFLOW): Likewise.
36374 [__USE_MISC] (UNDERFLOW): Likewise.
36375 [__USE_MISC] (TLOSS): Likewise.
36376 [__USE_MISC] (PLOSS): Likewise.
36377 [__USE_MISC] (HUGE): Likewise.
36378 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36379 * math/math-svid-compat.h: New file.
36380 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36381 and matherrl.
36382 * include/math.h [!_ISOMAC] (__matherr): Remove.
36383 * manual/arith.texi (FP Exceptions): Do not document matherr.
36384 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36385 (tests-internal): New variable.
36386 (install-lib): Do not add libieee.a.
36387 (non-lib.a): Likewise.
36388 (extra-objs): Do not add libieee.a and ieee-math.o.
36389 (CPPFLAGS-s_lib_version.c): Remove variable.
36390 ($(objpfx)libieee.a): Remove rule.
36391 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36392 * math/ieee-math.c: Remove.
36393 * math/libm-test-support.c (matherr): Remove.
36394 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36395 and license notices. Include <math-svid-compat.h> and
36396 <shlib-compat.h>.
36397 (matherr): Undefine as macro. Use compat_symbol_reference.
36398 (_LIB_VERSION): Likewise.
36399 * math/test-matherr-2.c: New file.
36400 * math/test-matherr-3.c: Likewise.
36401 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36402 declaration.
36403 (__kernel_standard_f): Likewise.
36404 (__kernel_standard_l): Likewise.
36405 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36406 <math_private.h>. Include <math-svid-compat.h>.
36407 (_LIB_VERSION): Undefine as macro.
36408 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36409 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36410 [LIBM_SVID_COMPAT], use compat_symbol.
36411 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36412 <math_private.h>. Include <math-svid-compat.h>.
36413 (matherr): Undefine as macro.
36414 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36415 compat_symbol.
36416 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36417 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36418 compat_symbol_reference.
36419 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36420 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36421 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36422 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36423 (MATHERR_D): Remove declaration.
36424 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36425 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36426 [LIBM_BUILD] (pmatherrf): Likewise.
36427 [LIBM_BUILD] (pmatherr): Likewise.
36428 [LIBM_BUILD] (pmatherrl): Likewise.
36429 (DOMAIN): Likewise.
36430 (SING): Likewise.
36431 (OVERFLOW): Likewise.
36432 (UNDERFLOW): Likewise.
36433 (TLOSS): Likewise.
36434 (PLOSS): Likewise.
36435 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36436 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36437 compat_symbol.
36438 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36439 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36440 compat_symbol.
36441 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36442 * math/w_acos_compat.c: Likewise.
36443 * math/w_acosf_compat.c: Likewise.
36444 * math/w_acosh_compat.c: Likewise.
36445 * math/w_acoshf_compat.c: Likewise.
36446 * math/w_acoshl_compat.c: Likewise.
36447 * math/w_acosl_compat.c: Likewise.
36448 * math/w_asin_compat.c: Likewise.
36449 * math/w_asinf_compat.c: Likewise.
36450 * math/w_asinl_compat.c: Likewise.
36451 * math/w_atan2_compat.c: Likewise.
36452 * math/w_atan2f_compat.c: Likewise.
36453 * math/w_atan2l_compat.c: Likewise.
36454 * math/w_atanh_compat.c: Likewise.
36455 * math/w_atanhf_compat.c: Likewise.
36456 * math/w_atanhl_compat.c: Likewise.
36457 * math/w_cosh_compat.c: Likewise.
36458 * math/w_coshf_compat.c: Likewise.
36459 * math/w_coshl_compat.c: Likewise.
36460 * math/w_exp10_compat.c: Likewise.
36461 * math/w_exp10f_compat.c: Likewise.
36462 * math/w_exp10l_compat.c: Likewise.
36463 * math/w_exp2_compat.c: Likewise.
36464 * math/w_exp2f_compat.c: Likewise.
36465 * math/w_exp2l_compat.c: Likewise.
36466 * math/w_fmod_compat.c: Likewise.
36467 * math/w_fmodf_compat.c: Likewise.
36468 * math/w_fmodl_compat.c: Likewise.
36469 * math/w_hypot_compat.c: Likewise.
36470 * math/w_hypotf_compat.c: Likewise.
36471 * math/w_hypotl_compat.c: Likewise.
36472 * math/w_j0_compat.c: Likewise.
36473 * math/w_j0f_compat.c: Likewise.
36474 * math/w_j0l_compat.c: Likewise.
36475 * math/w_j1_compat.c: Likewise.
36476 * math/w_j1f_compat.c: Likewise.
36477 * math/w_j1l_compat.c: Likewise.
36478 * math/w_jn_compat.c: Likewise.
36479 * math/w_jnf_compat.c: Likewise.
36480 * math/w_jnl_compat.c: Likewise.
36481 * math/w_lgamma_main.c: Likewise.
36482 * math/w_lgamma_r_compat.c: Likewise.
36483 * math/w_lgammaf_main.c: Likewise.
36484 * math/w_lgammaf_r_compat.c: Likewise.
36485 * math/w_lgammal_main.c: Likewise.
36486 * math/w_lgammal_r_compat.c: Likewise.
36487 * math/w_log10_compat.c: Likewise.
36488 * math/w_log10f_compat.c: Likewise.
36489 * math/w_log10l_compat.c: Likewise.
36490 * math/w_log2_compat.c: Likewise.
36491 * math/w_log2f_compat.c: Likewise.
36492 * math/w_log2l_compat.c: Likewise.
36493 * math/w_log_compat.c: Likewise.
36494 * math/w_logf_compat.c: Likewise.
36495 * math/w_logl_compat.c: Likewise.
36496 * math/w_pow_compat.c: Likewise.
36497 * math/w_powf_compat.c: Likewise.
36498 * math/w_powl_compat.c: Likewise.
36499 * math/w_remainder_compat.c: Likewise.
36500 * math/w_remainderf_compat.c: Likewise.
36501 * math/w_remainderl_compat.c: Likewise.
36502 * math/w_scalb_compat.c: Likewise.
36503 * math/w_scalbf_compat.c: Likewise.
36504 * math/w_scalbl_compat.c: Likewise.
36505 * math/w_sinh_compat.c: Likewise.
36506 * math/w_sinhf_compat.c: Likewise.
36507 * math/w_sinhl_compat.c: Likewise.
36508 * math/w_sqrt_compat.c: Likewise.
36509 * math/w_sqrtf_compat.c: Likewise.
36510 * math/w_sqrtl_compat.c: Likewise.
36511 * math/w_tgamma_compat.c: Likewise.
36512 * math/w_tgammaf_compat.c: Likewise.
36513 * math/w_tgammal_compat.c: Likewise.
36514 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36515 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36516 * sysdeps/ieee754/k_standard.c: Likewise.
36517 * sysdeps/ieee754/k_standardf.c: Likewise.
36518 * sysdeps/ieee754/k_standardl.c: Likewise.
36519 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36520 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36521 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36522 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36523 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36524 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36525 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36526 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36527 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36529 Likewise.
36530 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36531 Likewise.
36532 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36533 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36534 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36535 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36536
36537 2017-08-21 Florian Weimer <fweimer@redhat.com>
36538
36539 [BZ #21864]
36540 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36541 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36542 Move before inclusion of ../Rules.
36543
36544 2017-08-21 Florian Weimer <fweimer@redhat.com>
36545
36546 [BZ #21972]
36547 * assert/assert.h (assert): Use static_cast (bool) for C++.
36548 Use the ternary operator in the warning branch for GNU C.
36549 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36550 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36551 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36552 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36553 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36554
36555 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36556
36557 [BZ #18822]
36558 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36559 (__syscall_clock_gettime): Add attribute_hidden.
36560 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36561 (__start_context): Likewise.
36562
36563 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36564
36565 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36566 building libc.a.
36567 (hidden_proto): Likewise.
36568 (hidden_tls_proto): Likewise.
36569 (__hidden_proto): Likewise.
36570
36571 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36572
36573 * include/libc-symbols.h (attribute_hidden): Enable hidden
36574 visibility in libc.a compiled with PIE.
36575
36576 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36577
36578 [BZ #18822]
36579 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36580 Add attribute_hidden.
36581
36582 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36583
36584 [BZ #21864]
36585 * Makerules (all-nonlib): Add $(others-extras).
36586 * catgets/Makefile (others-extras): New.
36587 * elf/Makefile (others-extras): Likewise.
36588 * nss/Makefile (others-extras): Likewise.
36589
36590 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36591
36592 [BZ #18822]
36593 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36594 * elf/dl-open.c: Include <libc-internal.h>.
36595 (__libc_multiple_libcs): Removed.
36596 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36597 <hp-timing.h>.
36598 * include/libc-internal.h (__libc_multiple_libcs): New.
36599 * misc/sbrk.c: Include <libc-internal.h>.
36600 (__libc_multiple_libcs): Removed.
36601
36602 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36603
36604 [BZ #18822]
36605 * grp/initgroups.c (__nss_group_database): Removed.
36606 (__nss_initgroups_database): Likewise.
36607 * nscd/gai.c (__nss_hosts_database): Likewise.
36608 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36609 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36610 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36611 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36612 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36613 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36614 attribute_hidden.
36615 * nss/nsswitch.c (__nss_database_custom): Define only if
36616 USE_NSCD is defined.
36617 (__nss_configure_lookup): Use __nss_database_custom only if
36618 USE_NSCD is defined.
36619 * nss/nsswitch.h (__nss_database_custom): Declare only if
36620 USE_NSCD is defined. Add attribute_hidden.
36621 (__nss_setent): Add attribute_hidden.
36622 (__nss_endent): Likewise.
36623 (__nss_getent_r): Likewise.
36624 (__nss_getent): Likewise.
36625 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36626
36627 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36628
36629 [BZ #18822]
36630 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36631 libc_hidden_proto and libc_hidden_def.
36632
36633 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36634
36635 [BZ #18822]
36636 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36637 Add libc_hidden_proto.
36638 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36639 Add libc_hidden_def.
36640
36641 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36642
36643 [BZ #21974]
36644 * gmon/Makefile (routines): Remove bb_init_func and
36645 bb_exit_func.
36646 (elide-routines.os): Removed.
36647 * gmon/bb_exit_func.c: Likewise.
36648 * gmon/bb_init_func.c: Likewise.
36649 * include/sys/gmon.h (__bb): Likewise.
36650 (__bb_init_func): Likewise.
36651 (__bb_exit_func): Likewise.
36652 * sysdeps/alpha/bb_init_func.S: Likewise.
36653
36654 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36655
36656 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36657 * include/setjmp.h (____longjmp_chk): Here. Add
36658 attribute_hidden.
36659
36660 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36661
36662 [BZ #18822]
36663 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36664 attribute_hidden.
36665 (__strspn_sse2): Likewise.
36666
36667 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36668
36669 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36670 (close_not_cancel_no_status): Likewise.
36671 (__close_nocancel): New macro.
36672 (__close_nocancel_nostatus): Likewise.
36673 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36674 macro.
36675 (close_not_cancel): Likewise.
36676 (close_not_cancel_no_status): Likewise.
36677 (__close_nocancel): New prototype.
36678 (__close_nocancel_nostatus): New function.
36679 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36680 * catgets/open_catalog.c (__open_catalog): Replace
36681 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36682 * gmon/gmon.c (write_gmon): Likewise.
36683 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36684 * intl/loadmsgcat.c (close): Likewise.
36685 * io/ftw.c (open_dir_stream): Likewise.
36686 (ftw_startup): Likewise.
36687 * libio/fileops.c (_IO_file_open): Likewise.
36688 (_IO_file_close_mmap): Likewise.
36689 (_IO_file_close): Likewise.
36690 * libio/iopopen.c (_IO_dup2): Likewise.
36691 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36692 * locale/loadlocale.c (_nl_load_locale): Likewise.
36693 * login/utmp_file.c (pututline_file): Likewise.
36694 (endutent_file): Likewise.
36695 * misc/daemon.c (daemon): Likewise.
36696 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36697 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36698 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36699 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36700 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36701 * nscd/nscd_helper.c (open_socket): Likewise.
36702 (__nscd_open_socket): Likewise.
36703 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36704 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36705 (__nscd_innetgr): Likewise.
36706 * nss/nss_db/db-open.c (internal_setent): Likewise.
36707 * resolv/res-close.c (__res_iclose): Likewise.
36708 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36709 * sysdeps/posix/closedir.c (__closedir): Likewise.
36710 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36711 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36712 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36713 (opendir_tail): Likewise.
36714 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36715 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36716 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36717 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36718 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36719 (gethostid): Likewise.
36720 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36721 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36722 Likewise.
36723 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36724 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36725 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36726 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36727 Likewise.
36728 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36729 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36730 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36731 Likewise.
36732 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36733 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36734 Likewise.
36735 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36736 Likewise.
36737 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36738 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36739 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36740 __close_nocancel.
36741
36742 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36743 (openat_not_cancel_3): Likewise.
36744 (openat64_not_cancel_3): Likewise).
36745 (openat_not_cancel_3): Likewise).
36746 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36747 macro.
36748 (openat_not_cancel_3): Likewise.
36749 (openat64_not_cancel): Likewise.
36750 (openat64_not_cancel_3): Likewise.
36751 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36752 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36753 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36754 __open{64}_nocancel.
36755 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36756 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36757 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36758
36759 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36760
36761 [BZ #18822]
36762 * include/argz.h (__argz_create_sep): New function prototype.
36763 (__argz_append): Likewise.
36764 (__argz_add): Likewise.
36765 (__argz_add_sep): Likewise.
36766 (__argz_delete): Likewise.
36767 (__argz_insert): Likewise.
36768 (__argz_replace): Likewise.
36769 * string/argz.h (__argz_create_sep): Removed.
36770 (__argz_append): Likewise.
36771 (__argz_add): Likewise.
36772 (__argz_add_sep): Likewise.
36773 (__argz_delete): Likewise.
36774 (__argz_insert): Likewise.
36775 (__argz_replace): Likewise.
36776
36777 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36778
36779 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36780 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36781 (GNU_PROPERTY_STACK_SIZE): Likewie.
36782 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36783 (GNU_PROPERTY_LOPROC): Likewise.
36784 (GNU_PROPERTY_HIPROC): Likewise.
36785 (GNU_PROPERTY_LOUSER): Likewise.
36786 (GNU_PROPERTY_HIUSER): Likewise.
36787 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36788 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36789 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36790 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36791 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36792 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36793 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36794 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36795 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36796 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36797 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36798 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36799 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36800 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36801 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36802 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36803 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36804 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36805 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36806 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36807 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36808 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36809 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36810
36811 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36812
36813 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36814 in C++ mode.
36815
36816 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36817
36818 [BZ #21930]
36819 * math/math.h (isinf): Check if in C or C++ mode before using
36820 __builtin_types_compatible_p, since this is a C mode feature.
36821
36822 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36823
36824 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36825 (__write_nocancel): New macro.
36826 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36827 Rewrite as a function prototype.
36828 (write_not_cancel): Remove macro.
36829 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36830 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36831 (write_gmon): Likewise.
36832 * libio/fileops.c (_IO_new_file_write): Likewise.
36833 * login/utmp_file.c (pututline_file): Likewise.
36834 (updwtmp_file): Likewise.
36835 * stdio-common/psiginfo.c (psiginfo): Likewise.
36836 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36837 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36838 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36839 Likewise.
36840 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36841 Likewise.
36842
36843 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36844 (__read_nocancel): New macro.
36845 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36846 __read_nocancel.
36847 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36848 macro.
36849 (__read_nocancel): New prototype.
36850 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36851 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36852 with __read_nocancel.
36853 * intl/loadmsgcat.c (read): Likewise.
36854 * libio/fileops.c (_IO_file_read): Likewise.
36855 * locale/loadlocale.c (_nl_load_locale): Likewise.
36856 * login/utmp_file.c (getutent_r_file): Likewise.
36857 (internal_getut_r): Likewise.
36858 (getutline_r_file): Likewise.
36859 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36860 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36861 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36862 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36863 Likewise.
36864 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36865 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36866 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36867 Likewise.
36868 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36869 Likewise.
36870 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36871 Likewise.
36872 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36873 Likewise.
36874 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36875
36876 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36877
36878 [BZ #21966]
36879 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36880 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36881 usable.
36882
36883 2017-08-17 DJ Delorie <dj@redhat.com>
36884
36885 * bug17079.c: Update to new test harness.
36886 * test-digits-dots.c: Likewise.
36887 * test-netdb.c: Likewise.
36888 * tst-field.c: Likewise.
36889 * tst-nss-getpwent.c: Likewise.
36890 * tst-nss-static.c: Likewise.
36891 * tst-nss-test1.c: Likewise.
36892 * tst-nss-test2.c: Likewise.
36893 * tst-nss-test3.c: Likewise.
36894 * tst-nss-test4.c: Likewise.
36895 * tst-nss-test5.c: Likewise.
36896
36897 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36898
36899 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36900 (open_not_cancel_2): Likewise.
36901 (open_nocancel): New macro.
36902 (open64_nocancel): Likewise.
36903 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36904 (open_not_cancel_2): Likewise.
36905 (__open_nocancel): New prototype.
36906 (__open64_nocancel): Likewise.
36907 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36908 __open_nocancel.
36909 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36910 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36911 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36912 with __open_nocancel.
36913 * csu/check_fds.c (check_one_fd): Likewise.
36914 * gmon/gmon.c (write_gmon): Likewise.
36915 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36916 * intl/loadmsgcat.c (open): Likewise.
36917 * libio/fileops.c (_IO_file_open): Likewise.
36918 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36919 * locale/loadlocale.c (_nl_load_locale): Likewise.
36920 * login/utmp_file.c (setutent_file): Likewise.
36921 * misc/daemon.c (daemon): Likewise.
36922 * nss/nss_db/db-open.c (internal_setent): Likewise.
36923 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36924 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36925 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36926 (__opendir): Likewise.
36927 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36928 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36929 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36930 (gethostid): Likewise.
36931 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36932 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36933 Likewise.
36934 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36935 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36936 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36937 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36938 Likewise.
36939 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36940 Likewise.
36941 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36942 Likewise.
36943 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36944 Likewise.
36945 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36946 Likewise.
36947 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36948 Likewise.
36949 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36950 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36951
36952 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36953
36954 * benchtests/bench-skeleton.c (main): Add support for
36955 latency benchmarking.
36956 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36957
36958 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36959
36960 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36961 the startup object.
36962
36963 2017-08-17 Florian Weimer <fweimer@redhat.com>
36964
36965 * include/sys/socket.h (__opensock): Remove internal_function.
36966 * socket/opensock.c (__opensock): Likewise.
36967 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36968
36969 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36970
36971 [BZ #21944]
36972 * signal/bits/types/__sigval_t.h: New file.
36973 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36974 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36975 and define sigval_t using __sigval_t.
36976 * include/bits/types/__sigval_t.h: New file.
36977 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36978 instead of <bits/types/__sigval_t.h>.
36979 (struct sigevent): Use __sigval_t instead of sigval_t.
36980 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36981 instead of <bits/types/__sigval_t.h>.
36982 (siginfo_t): Use __sigval_t instead of sigval_t.
36983 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36984 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36985 (struct sigevent): Use __sigval_t instead of sigval_t.
36986 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36987 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36988 (siginfo_t): Use __sigval_t instead of sigval_t.
36989 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36990
36991 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36992
36993 * NEWS: Remove "[Add new features here]" for 2.27.
36994
36995 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36996
36997 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36998 libc.so.
36999
37000 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37001
37002 * NEWS: Mention x86-64 FMA optimization.
37003
37004 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37005
37006 [BZ #21912]
37007 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37008 Add e_expf-fma.
37009 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
37010 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
37011 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
37012
37013 2017-08-16 Andreas Schwab <schwab@suse.de>
37014
37015 [BZ #16750]
37016 CVE-2009-5064
37017 * elf/ldd.bash.in: Never run file directly.
37018
37019 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
37020
37021 [BZ #21955]
37022 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
37023 (L(SP_INF_0)): Likewise.
37024
37025 2017-08-15 Florian Weimer <fweimer@redhat.com>
37026
37027 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
37028 run-built-tests.
37029
37030 2017-08-15 Florian Weimer <fweimer@redhat.com>
37031
37032 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
37033 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
37034 BROKEN_THREAD_SIGNALS code.
37035 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
37036 request_list): Remove caller_pid member used for
37037 BROKEN_THREAD_SIGNALS.
37038 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
37039 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
37040 Remove BROKEN_THREAD_SIGNALS support.
37041 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
37042 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
37043
37044 2017-08-15 Florian Weimer <fweimer@redhat.com>
37045
37046 * gmon/Makefile (tests): Add tst-gmon.
37047 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
37048 Set.
37049 (tests-special): Add tst-gmon-prof.out.
37050 (tst-gmon.out): Depend on clean-tst-gmon-data.
37051 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
37052 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
37053 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
37054 startup object.
37055 * aclocal.m4 (GPROF): Set and substitute.
37056 * config.amke.in (GPROF): Set.
37057 * configure: Regenerate.
37058
37059 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
37060
37061 * elf/elf.h A (NT_PPC_TAR): New macro.
37062 (NT_PPC_PPR): Likewise.
37063 (NT_PPC_DSCR): Likewise.
37064 (NT_PPC_EBB): Likewise.
37065 (NT_PPC_PMU): Likewise.
37066 (NT_PPC_TM_CGPR): Likewise.
37067 (NT_PPC_TM_CFPR): Likewise.
37068 (NT_PPC_TM_CVMX): Likewise.
37069 (NT_PPC_TM_CVSX): Likewise.
37070 (NT_PPC_TM_SPR): Likewise.
37071 (NT_PPC_TM_CTAR): Likewise.
37072 (NT_PPC_TM_CPPR): Likewise.
37073 (NT_PPC_TM_CDSCR): Likewise.
37074
37075 2017-08-15 Florian Weimer <fweimer@redhat.com>
37076
37077 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
37078 regparm (2) instead of internal_function.
37079 (_MCOUNT_DECL): Adjust.
37080
37081 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
37082
37083 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
37084 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
37085
37086 2017-08-14 Joseph Myers <joseph@codesourcery.com>
37087
37088 * conform/data/sys/wait.h-data (si_value): Do not expect for
37089 XPG42.
37090
37091 2017-08-14 Florian Weimer <fweimer@redhat.com>
37092
37093 [BZ #21962]
37094 NSS: Create stubs for accidentally exported lookup functions.
37095 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
37096 Remove declaration.
37097 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
37098 (ether_hostton): Call __nss_ethers_lookup2 instead.
37099 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
37100 (ether_ntohost): Call __nss_ethers_lookup2 instead.
37101 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37102 (setup): Call __nss_netgroup_lookup2 instead.
37103 * nss/Makefile (routines): Add compat-lookup.
37104 * nss/Versions (GLIBC_2.27): Add symbol version.
37105 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
37106 (DB_COMPAT_FCT): Remove.
37107 * nss/compat-lookup.c: New file.
37108 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37109 from databases.def.
37110 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37111 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37112 (netname2user): Call __nss_publickey_lookup2 instead.
37113 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37114 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37115 instead.
37116
37117 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37118 Sergei Trofimovich <slyfox@inbox.ru>
37119
37120 [BZ #21908]
37121 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37122 Rename to MMAP2_PAGE_UNIT.
37123 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37124 __OFF_T_MATCHES_OFF64_T is not defined.
37125 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37126 uint64_t.
37127 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37128 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37129
37130 2017-08-14 Florian Weimer <fweimer@redhat.com>
37131
37132 i386: Do not set internal_function.
37133 * config.h.in (USE_REGPARMS, internal_function): Remove.
37134 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37135 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37136
37137 2017-08-14 Florian Weimer <fweimer@redhat.com>
37138
37139 * elf/dl-init.c (_dl_init): Remove internal_function.
37140 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37141 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37142
37143 2017-08-14 Florian Weimer <fweimer@redhat.com>
37144
37145 * elf/rtld.c (_dl_start): Remove internal_function.
37146 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37147 _dl_start.
37148
37149 2017-08-14 Florian Weimer <fweimer@redhat.com>
37150
37151 * elf/dl-fini.c (_dl_fini): Remove internal_function
37152 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37153
37154 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37155
37156 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37157 (bit_cpu_SHSTK): Likewise.
37158 (index_cpu_IBT): Likewise.
37159 (index_cpu_SHSTK): Likewise.
37160 (reg_IBT): Likewise.
37161 (reg_SHSTK): Likewise.
37162 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37163 Handle index_cpu_IBT and index_cpu_SHSTK.
37164
37165 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37166
37167 [BZ #19982]
37168 * po/fr.po: Fix spelling mistake.
37169
37170 2017-08-13 Florian Weimer <fweimer@redhat.com>
37171
37172 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37173 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37174 (_dl_catch_error, _dl_receive_error): Likewise.
37175 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37176 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37177 (_dl_deallocate_tls): Likewise.
37178 * include/dlfcn.h (_dl_addr): Likewise.
37179 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37180 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37181 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37182 Likewise.
37183
37184 2017-08-13 Florian Weimer <fweimer@redhat.com>
37185
37186 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37187 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37188 internal_function.
37189 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37190
37191 2017-08-13 Florian Weimer <fweimer@redhat.com>
37192
37193 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37194 internal_function.
37195 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37196 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37197 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37198 internal_function from _dl_make_stack_executable_hook member.
37199 (_dl_make_stack_executable): Remove internal_function.
37200 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37201 Likewise.
37202 * sysdeps/unix/sysv/linux/dl-execstack.c
37203 (_dl_make_stack_executable): Likewise.
37204
37205 2017-08-13 Florian Weimer <fweimer@redhat.com>
37206
37207 * sysdeps/unix/sysv/linux/netlinkaccess.h
37208 (__netlink_assert_response): Remove internal_function.
37209 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37210 (__netlink_assert_response): Likewise.
37211
37212 2017-08-13 Florian Weimer <fweimer@redhat.com>
37213
37214 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37215 internal_function.
37216 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37217
37218 2017-08-13 Florian Weimer <fweimer@redhat.com>
37219
37220 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37221 internal_function.
37222 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37223 * inet/netgroup.h (__internal_setnetgrent)
37224 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37225 * inet/getnetgrent_r.c (__internal_setnetgrent)
37226 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37227 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37228 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37229 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37230 * nss/nsswitch.h (db_lookup_function): Likewise.
37231
37232 2017-08-13 Florian Weimer <fweimer@redhat.com>
37233
37234 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37235 Remove internal_function.
37236 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37237 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37238 message argument on the stack.
37239 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37240 Likeweise.
37241
37242 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37243
37244 Adapt test case data to the changes in the thousands
37245 separators.
37246
37247 [BZ #20756]
37248 * localedata/tst-langinfo.sh: Adapt test case data.
37249 * stdlib/tst-strfmon_l.c: Likewise.
37250 * stdlib/tst-strtod4.c: Likewise.
37251 * stdlib/tst-strtod5i.c: Likewise.
37252
37253 2017-08-11 Florian Weimer <fweimer@redhat.com>
37254
37255 [BZ #21242]
37256 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37257 Suppress pedantic warning resulting from statement expression.
37258 (__ASSERT_FUNCTION): Add missing __extension__.
37259
37260 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37261
37262 * benchtests/bench-memmove-large.c: Print output in JSON
37263 format.
37264 * benchtests/bench-memmove.c: Likewise.
37265
37266 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37267 * benchtests/bench-memchr.c (do_one_test): Likewise.
37268 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37269 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37270 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37271 * benchtests/bench-memmove.c (do_one_test): Likewise.
37272 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37273 * benchtests/bench-memset.c (do_one_test): Likewise.
37274 * benchtests/bench-string.h (test_init): Remove memsets.
37275
37276 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37277
37278 * manual/lang.texi
37279 (Computing the Width of an Integer Data Type): Rename section to
37280 "Width of an Integer Type". Remove inaccurate statement regarding
37281 lack of C language facilities for determining width of integer
37282 types, and reorder content to improve flow and context of
37283 discussion.
37284
37285 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37286
37287 * lang.texi (va_copy): Change standard from ISO to C99.
37288 (__va_copy): Add standard and header annotation.
37289 Update description for clarity of origins and current use.
37290
37291 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37292
37293 [BZ #21941]
37294 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37295 xssqrtqp requires operands to be in Vector Registers
37296 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37297 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37298 (__ieee754_sqrtf128): Likewise.
37299
37300 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37301
37302 * sysdeps/aarch64/memcmp.S (memcmp):
37303 Rewrite of optimized memcmp.
37304
37305 2017-08-10 Florian Weimer <fweimer@redhat.com>
37306
37307 Introduce ld.so exceptions.
37308 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37309 (_dl_exception_create, _dl_exception_create_format)
37310 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37311 (_dl_catch_exception): Declare.
37312 (_dl_catch_error): Update comment.
37313 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37314 errstring, malloced members with exception member.
37315 (_dl_out_of_memory): Remove.
37316 (fatal_error): New function, extracted from _dl_signal_error.
37317 (_dl_signal_exception, _dl_signal_cexception): New functions.
37318 (_dl_signal_error): Call _dl_exception_create to allocate an
37319 exception object.
37320 (_dl_catch_exception): New function, based on _dl_catch_error.
37321 (_dl_catch_error): Implement using _dl_catch_exception.
37322 * elf/dl-exception.c: New file.
37323 * elf/Makefile (dl-routines): Add dl-exception.
37324 (elide-routines.os): Likewise.
37325 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37326 _dl_exception_create_format, _dl_exception_free.
37327 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37328 _dl_signal_exception.
37329 * elf/dl-lookup.c (make_string): Remove.
37330 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37331 _dl_signal_cexception, _dl_exception_free.
37332 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37333 _dl_signal_exception.
37334 * elf/dl-sym.c (do_sym): Likewise.
37335 * elf/dl-version.c (make_string): Remove.
37336 (match_symbol): Use _dl_exception_create_format,
37337 _dl_signal_cexception, _dl_exception_free.
37338 (_dl_check_map_versions): Likewise.
37339 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37340 _dl_catch_exception.
37341 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37342 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37343 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37344 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37345 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37346 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37347 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37348 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37349 Likewise.
37350 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37352 (ld.so): Likewise.
37353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37354 (ld.so): Likewise.
37355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37356 Likewise.
37357 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37358 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37359 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37360 Likewise.
37361 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37362 Likewise.
37363 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37364
37365 2017-08-10 Florian Weimer <fweimer@redhat.com>
37366
37367 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37368 attribute_hidden, internal_function.
37369 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37370 internal_function.
37371
37372 2017-08-10 Florian Weimer <fweimer@redhat.com>
37373
37374 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37375 function which calls __builtin_unreachable.
37376
37377 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37378
37379 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37380 Indian monetary formatting
37381 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37382 test cases.
37383
37384 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37385
37386 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37387 Fix typo in comment.
37388
37389 [BZ #21928]
37390 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37391 PTRACE_SEIZE_DEVEL): Remove.
37392 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37393 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37394 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37395 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37396 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37397
37398 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37399
37400 * posix/bits/types.h (__qaddr_t): Remove.
37401
37402 [BZ #21457]
37403 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37404 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37405 __glibc_reserved1.
37406 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37407 (ucontext_t): Use __ctx with uc_flags.
37408 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37409 (__ctxt): Likewise.
37410 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37411 __glibc_reserved1.
37412 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37413 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37414 __glibc_reserved1.
37415 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37416 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37417 __glibc_reserved1.
37418 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37419 macro.
37420 (ucontext_t): Use __ctx with uc_flags.
37421 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37422 (ucontext_t): Use __ctx with uc_flags.
37423 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37424 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37425 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37426 (ucontext_t): Use __ctx with uc_flags.
37427 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37428 undefine further down.
37429 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37430 __glibc_reserved1.
37431 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37432 undefine further down.
37433 (ucontext_t): Use __ctx with uc_flags.
37434 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37435 undefine further down.
37436 (ucontext_t): Use __ctx with uc_flags.
37437 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37438 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37439 Rename uc_pad to __glibc_reserved1.
37440 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37441 undefine further down.
37442 (ucontext_t): Use __ctx with uc_flags.
37443 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37444 further down.
37445 (ucontext_t): Use __ctx with uc_flags.
37446 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37447 __ctx with uc_flags.
37448 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37449 (ucontext_t): Use __ctx with uc_flags.
37450 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37451 __ctx with uc_flags.
37452
37453 2017-08-09 Florian Weimer <fweimer@redhat.com>
37454
37455 [BZ #21932]
37456 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37457 before early return.
37458
37459 2017-08-09 Andreas Schwab <schwab@suse.de>
37460
37461 [BZ #21041]
37462 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37463 renamed alias.
37464
37465 [BZ #21041]
37466 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37467 tst-compat-forwarder.
37468 (modules-names): Add tst-compat-forwarder-mod.
37469 ($(objpfx)tst-compat-forwarder): Depend on
37470 $(objpfx)tst-compat-forwarder-mod.so.
37471 * nptl/tst-compat-forwarder.c: New file.
37472 * nptl/tst-compat-forwarder-mod.c: New file.
37473
37474 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37475
37476 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37477 comments.
37478
37479 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37480 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37481 memcpy_falkor.
37482 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37483 Bump.
37484 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37485 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37486 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37487 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37488 Add falkor.
37489 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37490 New macro.
37491
37492 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37493
37494 [BZ #759]
37495 * manual/setjmp.texi (getcontex): Document uc_stack value
37496 compatibility differences.
37497
37498 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37499
37500 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37501 (old_malloc_hook): Likewise.
37502 (old_memalign_hook): Likewise.
37503 (old_realloc_hook): Likewise.
37504 (struct hdr): Likewise.
37505 (flood): Likewise.
37506 (freehook): Likewise.
37507 (mallochook): Likewise.
37508 (memalignhook): Likewise.
37509 (reallochook): Likewise.
37510 (mprobe): Likewise.
37511 * malloc/mtrace.c (mallwatch): Likewise.
37512 (tr_old_free_hook): Likewise.
37513 (tr_old_malloc_hook): Likewise.
37514 (tr_old_realloc_hook): Likewise.
37515 (tr_old_memalign_hook): Likewise.
37516 (tr_where): Likewise.
37517 (lock_and_info): Likewise.
37518 (tr_freehook): Likewise.
37519 (tr_mallochook): Likewise.
37520 (tr_reallochook): Likewise.
37521 (tr_memalignhook): Likewise.
37522 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37523 * misc/mmap.c (__mmap): Likewise.
37524 * misc/mmap64.c (__mmap64): Likewise.
37525 * misc/mprotect.c (__mprotect): Likewise.
37526 * misc/msync.c (msync): Likewise.
37527 * misc/munmap.c (__munmap): Likewise.
37528 * posix/posix_madvise.c (posix_madvise): Likewise.
37529 * socket/send.c (__send): Likewise.
37530 * socket/sendto.c (__sendto): Likewise.
37531 * socket/setsockopt.c (__setsockopt): Likewise.
37532 * string/memcmp.c (__ptr_t): Remove macro.
37533 (MEMCMP): Use void * instead of ptr_t.
37534 * string/memrchr.c (__ptr_t): Remove macro.
37535 (__memrchr): Use void * instead of ptr_t.
37536 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37537 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37538 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37539 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37540 * sysdeps/mach/msync.c (msync): Likewise.
37541 * sysdeps/mach/munmap.c (__munmap): Likewise.
37542 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37543 Likewise.
37544 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37545 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37546 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37547 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37548 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37549 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37550 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37551 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37552 Likewise.
37553 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37554 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37555 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37556 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37557 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37558 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37559 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37560 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37561 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37562 Likewise.
37563 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37564 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37565 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37566 (MEMCMP): Use void * instead of ptr_t.
37567 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37568 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37569
37570 2017-08-08 Florian Weimer <fweimer@redhat.com>
37571
37572 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37573 return statement.
37574
37575 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37576
37577 [BZ #21913]
37578 * csu/libc-tls.c: Include <startup.h> first.
37579 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37580 * elf/dl-tunables.c: Include <startup.h> first.
37581 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37582 * sysdeps/generic/startup.h: New file.
37583 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37584 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37585 (I386_USE_SYSENTER): New. Defined to 0.
37586
37587 2017-08-08 Andreas Schwab <schwab@suse.de>
37588
37589 [BZ #21041]
37590 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37591 * nptl/pt-system.c (system): Likewise.
37592
37593 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37594
37595 [BZ #21780]
37596 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37597 EOPNOTSUPP.
37598 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37599 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37600 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37601 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37602 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37603 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37604 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37605
37606 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37607
37608 [BZ #21899]
37609 * bits/sigaction.h (struct sigaction): Define sa_handler and
37610 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37611 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37612 [__USE_XOPEN_EXTENDED].
37613 (SA_RESTART): Likewise.
37614 (SA_NODEFER): Likewise.
37615 (SA_RESETHAND): Likewise.
37616 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37617 (struct sigaction): Define sa_handler and sa_sigaction using union
37618 also for [__USE_XOPEN_EXTENDED].
37619 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37620 [__USE_XOPEN_EXTENDED].
37621 (SA_RESTART): Likewise.
37622 (SA_NODEFER): Likewise.
37623 (SA_RESETHAND): Likewise.
37624 * sysdeps/unix/sysv/linux/bits/sigaction.h
37625 (struct sigaction): Define sa_handler and sa_sigaction using union
37626 also for [__USE_XOPEN_EXTENDED].
37627 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37628 [__USE_XOPEN_EXTENDED].
37629 (SA_RESTART): Likewise.
37630 (SA_NODEFER): Likewise.
37631 (SA_RESETHAND): Likewise.
37632 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37633 (struct sigaction): Define sa_handler and sa_sigaction using union
37634 also for [__USE_XOPEN_EXTENDED].
37635 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37636 [__USE_XOPEN_EXTENDED].
37637 (SA_RESTART): Likewise.
37638 (SA_NODEFER): Likewise.
37639 (SA_RESETHAND): Likewise.
37640 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37641 (struct sigaction): Define sa_handler and sa_sigaction using union
37642 also for [__USE_XOPEN_EXTENDED].
37643 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37644 [__USE_XOPEN_EXTENDED].
37645 (SA_RESTART): Likewise.
37646 (SA_NODEFER): Likewise.
37647 (SA_RESETHAND): Likewise.
37648 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37649 (struct sigaction): Define sa_handler and sa_sigaction using union
37650 also for [__USE_XOPEN_EXTENDED].
37651 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37652 [__USE_XOPEN_EXTENDED].
37653 (SA_RESTART): Likewise.
37654 (SA_NODEFER): Likewise.
37655 (SA_RESETHAND): Likewise.
37656 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37657 (struct sigaction): Define sa_handler and sa_sigaction using union
37658 also for [__USE_XOPEN_EXTENDED].
37659 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37660 [__USE_XOPEN_EXTENDED].
37661 (SA_RESTART): Likewise.
37662 (SA_NODEFER): Likewise.
37663 (SA_RESETHAND): Likewise.
37664 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37665 (struct sigaction): Define sa_handler and sa_sigaction using union
37666 also for [__USE_XOPEN_EXTENDED].
37667 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37668 [__USE_XOPEN_EXTENDED].
37669 (SA_RESTART): Likewise.
37670 (SA_NODEFER): Likewise. Define directly rather than as alias.
37671 (SA_RESETHAND): Likewise.
37672 (SA_INTERRUPT): Define only for [__USE_MISC].
37673 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37674 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37675 [__USE_MISC].
37676 (SA_STACK): Define only for [__USE_MISC].
37677 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37678 (struct sigaction): Define sa_handler and sa_sigaction using union
37679 also for [__USE_XOPEN_EXTENDED].
37680 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37681 [__USE_XOPEN_EXTENDED].
37682 (SA_RESTART): Likewise.
37683 (SA_NODEFER): Likewise.
37684 (SA_RESETHAND): Likewise.
37685 (SA_NOPTRACE): Define only for [__USE_MISC].
37686
37687 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37688 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37689 (struct catalog_info): Likewise.
37690 * inet/htontest.c (lo): Likewise.
37691 (foo): Likewise.
37692 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37693 * inet/inet_net.c (inet_network): Likewise.
37694 * inet/inet_netof.c (inet_netof): Likewise.
37695 * inet/rcmd.c (__ivaliduser): Likewise.
37696 (iruserok): Likewise.
37697 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37698 * locale/programs/locale-spec.c (locale_special): Likewise.
37699 * nis/nis_findserv.c (struct findserv_req): Likewise.
37700 (__nis_findfastest_with_timeout): Likewise.
37701 * nss/test-netdb.c (test_network): Likewise.
37702 * resolv/inet_neta.c (inet_neta): Likewise.
37703 * resolv/ns_date.c (ns_datetosecs): Likewise.
37704 (SECS_PER_DAY): Likewise.
37705 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37706 Likewise.
37707 * resolv/res_comp.c (__putlong): Likewise.
37708 (__putshort): Likewise.
37709 (_getlong): Likewise.
37710 (_getshort): Likewise.
37711 * resolv/res_debug.c (p_time): Likewise.
37712 (precsize_ntoa): Likewise.
37713 (precsize_aton): Likewise.
37714 (latlon2ul): Likewise.
37715 (loc_aton): Likewise.
37716 (loc_ntoa): Likewise.
37717 * resolv/res_hconf.c (struct netaddr): Likewise.
37718 (_res_hconf_reorder_addrs): Likewise.
37719 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37720 (clnttcp_control): Likewise.
37721 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37722 (clntudp_control): Likewise.
37723 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37724 (clntunix_control): Likewise.
37725 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37726 * sunrpc/rpc/auth.h (union des_block): Likewise.
37727 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37728 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37729 (xdrrec_create): Likewise.
37730 (xdrrec_endofrecord): Likewise.
37731 (flush_out): Likewise.
37732 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37733 (xdrstdio_putlong): Likewise.
37734 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37735 Likewise.
37736
37737 * misc/sys/cdefs.h (__long_double_t): Remove.
37738 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37739 instead of __long_double_t,
37740 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37741
37742 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37743
37744 * benchtests/scripts/compare_strings.py: Avoid display error when
37745 running on a text terminal.
37746
37747 * benchtests/scripts/compare_strings.py (main): Add an
37748 optional -base option.
37749 (process_results): New argument base_func.
37750
37751 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37752 hardcoding memcpy.
37753 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37754 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37755
37756 2017-08-07 Andreas Schwab <schwab@suse.de>
37757
37758 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37759 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37760 * intl/Makefile ($(objpfx)tst-gettext.out)
37761 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37762 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37763 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37764 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37765 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37766 * posix/Makefile ($(objpfx)globtest.out)
37767 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37768 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37769 ($(objpfx)tst-printf.out): Likewise.
37770 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37771 ($(objpfx)tst-setcontext3.out): Likewise.
37772
37773 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37774
37775 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37776 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37777 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37778 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37779 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37780 and mptan-fma.
37781 (CFLAGS-doasin-fma.c): New.
37782 (CFLAGS-dosincos-fma.c): Likewise.
37783 (CFLAGS-e_asin-fma.c): Likewise.
37784 (CFLAGS-e_atan2-fma.c): Likewise.
37785 (CFLAGS-e_exp-fma.c): Likewise.
37786 (CFLAGS-e_log-fma.c): Likewise.
37787 (CFLAGS-e_pow-fma.c): Likewise.
37788 (CFLAGS-halfulp-fma.c): Likewise.
37789 (CFLAGS-mpa-fma.c): Likewise.
37790 (CFLAGS-mpatan-fma.c): Likewise.
37791 (CFLAGS-mpatan2-fma.c): Likewise.
37792 (CFLAGS-mpexp-fma.c): Likewise.
37793 (CFLAGS-mplog-fma.c): Likewise.
37794 (CFLAGS-mpsqrt-fma.c): Likewise.
37795 (CFLAGS-mptan-fma.c): Likewise.
37796 (CFLAGS-s_atan-fma.c): Likewise.
37797 (CFLAGS-sincos32-fma.c): Likewise.
37798 (CFLAGS-slowexp-fma.c): Likewise.
37799 (CFLAGS-slowpow-fma.c): Likewise.
37800 (CFLAGS-s_sin-fma.c): Likewise.
37801 (CFLAGS-s_tan-fma.c): Likewise.
37802 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37803 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37804 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37805 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37806 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37807 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37808 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37809 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37810 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37811 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37812 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37813 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37814 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37815 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37816 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37817 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37818 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37819 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37820 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37821 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37822 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37823 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37824 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37825 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37826 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37827 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37828 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37829 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37830 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37831 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37832 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37833
37834 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37835
37836 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37837 (min_of_type_f): New macro.
37838 (min_of_type_): Likewise.
37839 (min_of_type_l): Likewise.
37840 (min_of_type_f128): Likewise.
37841 (min_of_type): Define using __MATH_TG and taking an expression
37842 argument.
37843 (math_check_force_underflow): Pass expression instead of type to
37844 min_of_type.
37845 (math_check_force_underflow_nonneg): Likewise.
37846
37847 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37848
37849 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37850 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37851 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37852
37853 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37854
37855 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37856 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37857 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37858 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37859 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37860 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37861 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37862 memmove_chk-nonshared and memset_chk-nonshared
37863 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37864 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37865 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37866 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37867 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37868 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37869 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37870 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37871 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37872 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37873 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37874 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37875 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37876 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37877 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37878 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37879 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37880 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37881 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37882 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37883 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37884 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37885 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37886 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37887 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37888 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37889 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37890 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37891 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37892 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37893 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37894 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37895 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37896 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37897 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37898 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37899 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37900 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37901 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37902 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37903 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37904 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37905 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37906 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37907 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37908 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37909 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37910 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37911 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37912 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37913 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37914 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37915 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37916 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37917 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37918 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37919 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37920 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37921 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37922 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37923 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37924 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37925 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37926 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37927 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37928 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37929 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37930 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37931 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37932 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37933 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37934 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37935 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37936 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37937 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37938 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37939 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37940 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37941 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37942 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37943 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37944 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37945 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37946 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37947 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37948 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37949 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37950 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37951 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37952 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37953 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37954 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37955 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37956 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37957 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37958 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37959 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37960 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37961 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37962 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37963 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37964 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37965 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37966 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37967 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37968 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37969 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37970 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37971
37972 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37973
37974 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37975 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37976 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37977 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37978 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37979 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37980 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37981 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37982 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37983 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37984 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37985 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37986 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37987 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37988 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37989 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37990 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37991 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37992 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37993 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37994 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37995 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37996 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37997 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37998 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37999 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
38000 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
38001 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
38002 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
38003 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
38004 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
38005 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
38006 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
38007 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
38008 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
38009 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
38010 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
38011 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
38012 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
38013 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
38014 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
38015 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
38016 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
38017 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
38018 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
38019 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
38020 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
38021 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
38022 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
38023 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
38024 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
38025 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
38026 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
38027 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
38028 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
38029 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
38030 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
38031 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
38032 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
38033 ...
38034 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
38035 Don't include <sysdep.h> nor <init-arch.h>.
38036 (_ZGVbN2v_cos): Removed.
38037 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
38038 ...
38039 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
38040 Don't include <sysdep.h> nor <init-arch.h>.
38041 (_ZGVdN4v_cos): Removed.
38042 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
38043 ...
38044 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
38045 Don't include <sysdep.h> nor <init-arch.h>.
38046 (_ZGVeN8v_cos): Removed.
38047 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
38048 ...
38049 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
38050 Don't include <sysdep.h> nor <init-arch.h>.
38051 (_ZGVbN2v_exp): Removed.
38052 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
38053 ...
38054 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
38055 Don't include <sysdep.h> nor <init-arch.h>.
38056 (_ZGVdN4v_exp): Removed.
38057 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
38058 ...
38059 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
38060 Don't include <sysdep.h> nor <init-arch.h>.
38061 (_ZGVeN8v_exp): Removed.
38062 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
38063 ...
38064 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
38065 Don't include <sysdep.h> nor <init-arch.h>.
38066 (_ZGVbN2v_log): Removed.
38067 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
38068 ...
38069 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
38070 Don't include <sysdep.h> nor <init-arch.h>.
38071 (_ZGVdN4v_log): Removed.
38072 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
38073 ...
38074 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
38075 Don't include <sysdep.h> nor <init-arch.h>.
38076 (_ZGVeN8v_log): Removed.
38077 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
38078 ...
38079 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
38080 Don't include <sysdep.h> nor <init-arch.h>.
38081 (_ZGVbN2vv_pow): Removed.
38082 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
38083 ...
38084 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
38085 Don't include <sysdep.h> nor <init-arch.h>.
38086 (_ZGVdN4vv_pow): Removed.
38087 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
38088 ...
38089 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
38090 Don't include <sysdep.h> nor <init-arch.h>.
38091 (_ZGVeN8vv_pow): Removed.
38092 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
38093 ...
38094 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
38095 Don't include <sysdep.h> nor <init-arch.h>.
38096 (_ZGVbN2v_sin): Removed.
38097 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
38098 ...
38099 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
38100 Don't include <sysdep.h> nor <init-arch.h>.
38101 (_ZGVbN4v_sin): Removed.
38102 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
38103 ...
38104 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38105 Don't include <sysdep.h> nor <init-arch.h>.
38106 (_ZGVbN8v_sin): Removed.
38107 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38108 ...
38109 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38110 Don't include <sysdep.h> nor <init-arch.h>.
38111 (_ZGVbN2vvv_sincos): Removed.
38112 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38113 ...
38114 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38115 Don't include <sysdep.h> nor <init-arch.h>.
38116 (_ZGVdN4vvv_sincos): Removed.
38117 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38118 ...
38119 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38120 Don't include <sysdep.h> nor <init-arch.h>.
38121 (_ZGVeN8vvv_sincos): Removed.
38122 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38123 ...
38124 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38125 Don't include <sysdep.h> nor <init-arch.h>.
38126 (_ZGVeN16v_cosf): Removed.
38127 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38128 ...
38129 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38130 Don't include <sysdep.h> nor <init-arch.h>.
38131 (_ZGVbN4v_cosf): Removed.
38132 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38133 ...
38134 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38135 Don't include <sysdep.h> nor <init-arch.h>.
38136 (_ZGVdN8v_cosf): Removed.
38137 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38138 ...
38139 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38140 Don't include <sysdep.h> nor <init-arch.h>.
38141 (_ZGVeN16v_expf): Removed.
38142 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38143 ...
38144 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38145 Don't include <sysdep.h> nor <init-arch.h>.
38146 (_ZGVbN4v_expf): Removed.
38147 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38148 ...
38149 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38150 Don't include <sysdep.h> nor <init-arch.h>.
38151 (_ZGVdN8v_expf): Removed.
38152 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38153 ...
38154 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38155 Don't include <sysdep.h> nor <init-arch.h>.
38156 (_ZGVeN16v_logf): Removed.
38157 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38158 ...
38159 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38160 Don't include <sysdep.h> nor <init-arch.h>.
38161 (_ZGVbN4v_logf): Removed.
38162 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38163 ...
38164 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38165 Don't include <sysdep.h> nor <init-arch.h>.
38166 (_ZGVdN8v_logf): Removed.
38167 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38168 ...
38169 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38170 Don't include <sysdep.h> nor <init-arch.h>.
38171 (_ZGVeN16vv_powf): Removed.
38172 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38173 ...
38174 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38175 Don't include <sysdep.h> nor <init-arch.h>.
38176 (_ZGVbN4vv_powf): Removed.
38177 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38178 ...
38179 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38180 Don't include <sysdep.h> nor <init-arch.h>.
38181 (_ZGVdN8vv_powf): Removed.
38182 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38183 ...
38184 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38185 Don't include <sysdep.h> nor <init-arch.h>.
38186 (_ZGVeN16vvv_sincosf): Removed.
38187 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38188 ...
38189 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38190 Don't include <sysdep.h> nor <init-arch.h>.
38191 (_ZGVbN4vvv_sincosf): Removed.
38192 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38193 ...
38194 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38195 Don't include <sysdep.h> nor <init-arch.h>.
38196 (_ZGVdN8vvv_sincosf): Removed.
38197 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38198 ...
38199 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38200 Don't include <sysdep.h> nor <init-arch.h>.
38201 (_ZGVeN16v_sinf): Removed.
38202 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38203 ...
38204 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38205 Don't include <sysdep.h> nor <init-arch.h>.
38206 (_ZGVbN4v_sinf): Removed.
38207 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38208 ...
38209 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38210 Don't include <sysdep.h> nor <init-arch.h>.
38211 (_ZGVdN8v_sinf): Removed.
38212
38213 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38214
38215 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38216 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38217 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38218 s_rint-sse4_1 and s_rintf-sse4_1.
38219 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38220 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38221 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38222 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38223 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38224 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38225 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38226 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38227 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38228 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38229 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38230 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38231 (__ceil): Removed.
38232 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38233 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38234 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38235 (__ceilf): Removed.
38236 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38237 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38238 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38239 (__floor): Removed.
38240 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38241 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38242 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38243 (__floorf): Removed.
38244 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38245 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38246 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38247 (__nearbyint): Removed.
38248 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38249 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38250 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38251 (__nearbyintf): Removed.
38252 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38253 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38254 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38255 (__rint): Removed.
38256 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38257 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38258 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38259 (__rintf): Removed.
38260
38261 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38262
38263 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38264 SHARED. Avoid dynamic relocation against main in static PIE.
38265
38266 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38267
38268 [BZ #21815]
38269 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38270 (LDFLAGS-tst-prelink): Likewise.
38271
38272 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38273
38274 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38275 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38276 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38277 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38278 (INTERNAL_SYSCALL_NCS): Likewise.
38279 (LOADARGS_1): Likewise.
38280 (LOADARGS_5): Likewise.
38281 (RESTOREARGS_1): Likewise.
38282 (RESTOREARGS_5): Likewise.
38283
38284 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38285
38286 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38287 (MEMPCPY_SYMBOL): Likewise.
38288 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38289 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38290 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38291 in libc.a.
38292 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38293 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38294 Likewise.
38295 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38296 (__hidden_ver1): Don't use in libc.a.
38297 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38298 (__mempcpy): Don't create a weak alias in libc.a.
38299 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38300 libc.a.
38301 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38302 (__hidden_ver1): Don't use in libc.a.
38303
38304 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38305
38306 * config.make.in (have-insert): New.
38307 * configure.ac (libc_cv_insert): New. Set to yes if linker
38308 supports INSERT in linker script.
38309 (AC_SUBST(libc_cv_insert): New.
38310 * configure: Regenerated.
38311 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38312 if $(have-insert) == yes.
38313
38314 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38315
38316 * elf/Makefile (tests): Add vismain only if
38317 $(have-protected-data) == yes.
38318 (tests-pie): Likewise.
38319
38320 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38321
38322 [BZ #21871]
38323 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38324 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38325
38326 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38327
38328 [BZ #21790]
38329 * sysdeps/i386/i586/memset.S
38330 (__memset_zero_constant_len_parameter): Removed.
38331 * sysdeps/i386/i686/memset.S
38332 (__memset_zero_constant_len_parameter): Likewise.
38333 * sysdeps/i386/i686/multiarch/memset_chk.S
38334 (__memset_zero_constant_len_parameter): Likewise.
38335 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38336 Likewise.
38337
38338 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38339
38340 * stdlib/getentropy.c (getentropy): Change return type to int.
38341
38342 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38343
38344 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38345
38346 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38347
38348 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38349 u_intN_t.
38350 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38351 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38352 Likewise.
38353 (ieee_float_shape_type): Likewise.
38354 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38355 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38356 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38357 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38358 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38359 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38360 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38361 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38362 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38363 Likewise.
38364 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38365 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38366 (__ieee754_yn): Likewise.
38367 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38368 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38369 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38370 Likewise.
38371 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38372 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38373 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38374 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38375 (__erfc): Likewise.
38376 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38377 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38378 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38379 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38380 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38381 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38382 Likewise.
38383 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38384 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38385 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38386 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38387 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38388 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38389 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38390 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38391 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38392 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38393 (__issignaling): Likewise.
38394 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38395 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38396 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38397 Likewise.
38398 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38399 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38400 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38401 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38402 Likewise.
38403 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38404 Likewise.
38405 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38406 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38407 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38408 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38409 (__erfcf): Likewise.
38410 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38411 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38412 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38413 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38414 Likewise.
38415 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38416 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38417 Likewise.
38418 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38419 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38420 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38421 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38422 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38423 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38424 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38425 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38426 Likewise.
38427 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38428 Likewise.
38429 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38430 Likewise.
38431 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38432 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38433 Likewise.
38434 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38435 Likewise.
38436 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38437 (__ieee754_ynl): Likewise.
38438 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38439 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38440 Likewise.
38441 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38442 Likewise.
38443 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38444 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38445 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38446 Likewise.
38447 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38448 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38449 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38450 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38451 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38452 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38453 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38454 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38455 Likewise.
38456 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38457 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38458 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38459 Likewise.
38460 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38461 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38462 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38463 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38464 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38465 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38466 Likewise.
38467 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38468 Likewise.
38469 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38470 Likewise.
38471 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38472 Likewise.
38473 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38474 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38475 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38476 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38477 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38478 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38479 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38480 Likewise.
38481 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38482 Likewise.
38483 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38484 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38485 Likewise.
38486 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38487 (__ieee754_remainderl): Likewise.
38488 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38489 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38490 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38491 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38492 Likewise.
38493 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38494 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38495 Likewise.
38496 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38497 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38498 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38499 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38500 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38501 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38502 Likewise.
38503 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38504 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38505 (__ieee754_y0l): Likewise.
38506 (pzero): Likewise.
38507 (qzero): Likewise.
38508 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38509 (__ieee754_y1l): Likewise.
38510 (pone): Likewise.
38511 (qone): Likewise.
38512 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38513 (__ieee754_ynl): Likewise.
38514 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38515 (__ieee754_lgammal_r): Likewise.
38516 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38517 Likewise.
38518 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38519 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38520 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38521 (__erfcl): Likewise.
38522 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38523 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38524 Likewise.
38525 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38526 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38527 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38528 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38529 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38530 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38531 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38532 Likewise.
38533 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38534 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38535 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38536 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38537 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38538 Likewise.
38539 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38540 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38541 Likewise.
38542 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38543 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38544 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38545 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38546 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38547
38548 2017-08-03 Florian Weimer <fweimer@redhat.com>
38549
38550 [BZ #21885]
38551 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38552 on memory allocation failure.
38553
38554 2017-08-03 Alan Modra <amodra@gmail.com>
38555
38556 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38557 tst-tlsopt-powerpc.c with function name change and no test harness.
38558 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38559 Call tls_get_addr_opt_test.
38560 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38561 (modules-names): Add mod-tlsopt-powerpc.
38562 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38563 (tst-tlsopt-powerpc): Depend on .so.
38564 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38565 define. Expand use in TLS_GD and TLS_LD.
38566
38567 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38568
38569 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38570 function.
38571 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38572
38573 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38574
38575 [BZ #21686]
38576 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38577 comparing size with that of double.
38578 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38579 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38580 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38581 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38582 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38583 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38584 unsigned __int128 types.
38585
38586 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38587
38588 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38589 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38590 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38591 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38592 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38593
38594 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38595
38596 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38597
38598 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38599
38600 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38601 of SHARED.
38602 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38603 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38604 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38605 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38606 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38607 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38608 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38609
38610 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38611
38612 [BZ #21685]
38613 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38614 bit-field expressions passed to sizeof or typeof.
38615 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38616 (__TGMATH_F128): Likewise.
38617 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38618 (__TGMATH_CF128): Likewise.
38619 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38620 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38621 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38622 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38623 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38624 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38625 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38626 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38627 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38628 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38629 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38630 (__TGMATH_UNARY_IMAG): Likewise.
38631 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38632 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38633 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38634 type.
38635 (define_vars_for_type): Handle bit_field type specially.
38636 (Tests.__init__): Declare structure with bit-field element.
38637
38638 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38639
38640 [BZ #21791]
38641 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38642 (MEMCPY_CHK): Define only if SHARED is defined.
38643 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38644 Likewise.
38645 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38646 Likewise.
38647
38648 See ChangeLog.18 for earlier changes.