]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
powerpc: Simplify vsyscall internal macros
[thirdparty/glibc.git] / ChangeLog
1 2019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
4 defined.
5 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
6 (__get_timebase_freq): Remove use of
7 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
8 (get_timebase_freq_fallback): New symbol.
9 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
10 HAVE_GETTIMEOFDAY_VSYSCALL.
11 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
12 HAVE_TIME_VSYSCALL.
13 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
14 implementation.
15 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
16 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
17 powerpc64.
18 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
19 * .../sysv/linux/powerpc/powerpc64/sysdep.h
20 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
21 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
22 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
23
24 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
25 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
26 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
27 Likewise.
28 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
29 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
30 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
31 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
32 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
33 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
34 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
35 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
36 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
37 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
38 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
39 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
40 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
41 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
42 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
43 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
44 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
45 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
46 name.
47 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
48 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
49 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
50 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
51 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
52 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
53 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
54 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
55 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
56 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
57 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
58 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
59 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
60 HAVE_GETCPU_VSYSCALL): Likewise.
61 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
62 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
63 HAVE_GETCPU_VSYSCALL): Likewise.
64 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
65 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
66 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
67 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
68 HAVE_GETCPU_VSYSCALL): Likewise.
69 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
70 invalid names if architecture does not define them.
71 (get_vdso_mangle_symbol): New symbol.
72 * sysdeps/unix/sysv/linux/init-first.c: New file.
73 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
74 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
75 clock_gettime, clock_getres, getcpu, time): Remove declaration.
76 (__libc_vdso_platform_setup_arch): Likewise and use
77 get_vdso_mangle_symbol to setup vDSO symbols.
78 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
79 attribute_hidden.
80 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
81 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
82 definition.
83
84 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
85 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
86 Use get_vdso_symbol instead of _dl_vdso_vsym.
87 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
88 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
89 (__lookup_riscv_flush_icache): Likewise.
90 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
91 Likewise.
92 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
93 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
94 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
95 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
96 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
97 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
98 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
99 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
100 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
101 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
102 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
103 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
104 Define.
105 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
106 Likewise.
107 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
108 Likewise.
109 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
110 Likewise.
111 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
112 Likewise.
113 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
114 Likewise.
115 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
116 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
117 definition.
118 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
119 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
120 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
121 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
122 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
123 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
125 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
126 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
127 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
128 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
129 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
130 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
131 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
132 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
133 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
134 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
135 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
136 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
137 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
138 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
139 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
140 (get_vdso_symbol): New function.
141
142 2019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
143
144 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
145 position of string null termination.
146
147 2019-09-14 Aurelien Jarno <aurelien@aurel32.net>
148
149 [BZ #24986]
150 * sysdeps/unix/alpha/getegid.S: Move to ...
151 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
152 * sysdeps/unix/alpha/geteuid.S: Move to ...
153 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
154 * sysdeps/unix/alpha/getppid.S: Move to ...
155 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
156
157 2019-09-09 Paul Eggert <eggert@cs.ucla.edu>
158
159 Fix http: URL in 'configure'
160 * configure.ac: Add URL to AC_INIT so that it generates an
161 https: URL instead of an http: URL.
162 * configure: Regenerate.
163
164 Regenerate charmap-kw.h, locfile-kw.h
165 This propagates the recent http->https URL changes.
166 Since I used gperf 3.1 to regenerate, this is also a minor
167 internal-to-localedef API change.
168 URL problem reported by Joseph Myers in:
169 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
170 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
171 Regenerate with gperf 3.1.
172 * locale/programs/linereader.h (kw_hash_fct_t):
173 * locale/programs/repertoire.c (repertoiremap_hash):
174 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
175
176 2019-09-05 Florian Weimer <fweimer@redhat.com>
177
178 [BZ #24962]
179 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
180 (_nl_category_names_get): New function.
181 * intl/dcigettext.c (category_to_name): Call it.
182 * locale/findlocale.c (_nl_find_locale): Likewise.
183 * intl/loadlocale.c (_nl_load_locale): Likewise.
184 * locale/newlocale.c (__newlocale): Likewise.
185 * locale/setlocale.c (_nl_category_names): Adjust definition.
186 (_nl_category_name_idxs): Likewise.
187 (new_composite_name): Call _nl_category_names_get.
188 (setlocale): Likewise.
189
190 2019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
191
192 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
193 const attribute with pure attribute.
194
195 2019-09-04 Lukasz Majewski <lukma@denx.de>
196
197 * sysdeps/unix/sysv/linux/kernel-features.h
198 (__ASSUME_TIME64_SYSCALLS): New macro.
199
200 2019-09-04 Zack Weinberg <zackw@panix.com>
201
202 [BZ #24959]
203 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
204 * rt/clock_getres.c: Move to time/clock_getres.c.
205 * rt/clock_gettime.c: Move to time/clock_gettime.c.
206 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
207 * rt/clock_settime.c: Move to time/clock_settime.c.
208 * rt/tst-clock.c: Move to time/tst-clock.c.
209 * rt/tst-clock2.c: Move to time/tst-clock2.c.
210 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
211 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
212 * rt/clock-compat.c: Delete file.
213
214 * time/clock_getcpuclockid.c
215 * time/clock_getres.c
216 * time/clock_gettime.c
217 * time/clock_nanosleep.c
218 * time/clock_settime.c
219 * sysdeps/posix/clock_getres.c
220 * sysdeps/unix/clock_gettime.c
221 * sysdeps/unix/clock_nanosleep.c
222 * sysdeps/unix/clock_settime.c
223 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
224 * sysdeps/unix/sysv/linux/clock_getres.c
225 * sysdeps/unix/sysv/linux/clock_gettime.c
226 * sysdeps/unix/sysv/linux/clock_nanosleep.c
227 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
228 defined by this file with default symbol version GLIBC_2_17,
229 and optionally a compatibility alias at symbol version GLIBC_2_2.
230 * include/time.h: Remove internal prototypes for clock_getres,
231 clock_nanosleep, and clock_getcpuclockid.
232
233 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
234 Remove unused function realtime_gettime.
235
236 * rt/Makefile (clock-routines, routines): Remove variable.
237 (librt-routines): Remove clock-compat.
238 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
239 and tst-cpuclock1.
240 * time/Makefile (routines): Add clock_getres, clock_gettime,
241 clock_settime, clock_getcpuclockid, and clock_nanosleep.
242 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
243 and tst-cpuclock1.
244
245 * rt/Versions (libc): Remove entire stanza.
246 (librt GLIBC_2.2): Remove all clock_* functions.
247 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
248 Add clock_getres, clock_gettime, clock_settime,
249 clock_getcpuclockid, and clock_nanosleep.
250 (libc GLIBC_PRIVATE): Add __clock_gettime.
251
252 * sysdeps/mach/hurd/i386/librt.abilist
253 * sysdeps/unix/sysv/linux/alpha/librt.abilist
254 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
255 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
256 * sysdeps/unix/sysv/linux/hppa/librt.abilist
257 * sysdeps/unix/sysv/linux/i386/librt.abilist
258 * sysdeps/unix/sysv/linux/ia64/librt.abilist
259 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
260 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
261 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
262 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
263 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
264 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
267 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
268 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
269 * sysdeps/unix/sysv/linux/sh/librt.abilist
270 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
271 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
272 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
273 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
274 Remove entries for clock_getres, clock_gettime, clock_settime,
275 clock_getcpuclockid, and clock_nanosleep.
276
277 * sysdeps/mach/hurd/i386/libc.abilist
278 * sysdeps/unix/sysv/linux/alpha/libc.abilist
279 * sysdeps/unix/sysv/linux/arm/libc.abilist
280 * sysdeps/unix/sysv/linux/hppa/libc.abilist
281 * sysdeps/unix/sysv/linux/i386/libc.abilist
282 * sysdeps/unix/sysv/linux/ia64/libc.abilist
283 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
284 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
285 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
286 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
287 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
288 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
289 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
292 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
293 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
294 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
295 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
296 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
297 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
298 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
299 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
300 Add another set of entries for clock_getres, clock_gettime,
301 clock_settime, clock_getcpuclockid, and clock_nanosleep at
302 whatever version GLIBC_2.2 maps to.
303
304 2019-09-03 Aurelien Jarno <aurelien@aurel32.net>
305
306 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
307
308 2019-09-03 Florian Weimer <fweimer@redhat.com>
309
310 [BZ #24950]
311 * locale/programs/charmap.h (struct charseq): Turn bytes into a
312 flexible array member.
313 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
314 replace.
315
316 2019-09-02 Florian Weimer <fweimer@redhat.com>
317
318 * misc/tst-mntent-autofs.c: New file.
319 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
320
321 2019-09-02 Ian Kent <ikent@redhat.com>
322
323 Use autofs "ignore" mount hint in getmntent_r/getmntent.
324 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
325 getmntent_r.
326 (__getmntent_r): Call it. Filter out autofs entries with an
327 "ignore" mount option.
328
329 2019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
330
331 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
332 (generic_memcpy): Include generic C memcpy.
333 * benchtests/bench-memmove.c (simple_memmove): Remove.
334 (generic_memmove): Include generic C memmove.
335 * benchtests/bench-memset.c (simple_memset): Remove.
336 (generic_memset): Include generic C memset.
337 * benchtests/bench-memset-large.c (simple_memset): Remove.
338 (generic_memset): Include generic C memset.
339 * benchtests/bench-memset-walk.c (simple_memset): Remove.
340 (generic_memset): Include generic C memset.
341 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
342 * string/memset.c (MEMSET): Likewise.
343 * sysdeps/x86_64/memcopy.h: Remove empty file.
344
345 2019-08-30 Florian Weimer <fweimer@redhat.com>
346
347 nptl: Move pthread_attr_getinheritsched implementation into libc.
348 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
349 (libpthread-routines): Remove pthread_attr_getinheritsched.
350 * nptl/Versions (libpthread GLIBC_2.0): Remove
351 pthread_attr_getinheritsched.
352 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
353 * nptl/nptl-init.c (pthread_functions): Remove initializer for
354 ptr_pthread_attr_getinheritsched.
355 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
356 Remove ptr_pthread_attr_getinheritsched member.
357 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
358 Remove pthread_attr_getinheritsched.
359 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
360 Likewise.
361 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
362 Likewise.
363 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
364 Likewise.
365 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
366 Likewise.
367 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
368 Likewise.
369 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
370 Likewise.
371 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
372 Likewise.
373 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
374 (GLIBC_2.4): Likewise.
375 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
376 (GLIBC_2.0): Likewise.
377 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
378 (GLIBC_2.18): Likewise.
379 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
380 (GLIBC_2.18): Likewise.
381 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
382 (GLIBC_2.0): Likewise.
383 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
384 (GLIBC_2.0): Likewise.
385 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
386 Likewise.
387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
388 (GLIBC_2.0): Likewise.
389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
390 (GLIBC_2.3): Likewise.
391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
392 (GLIBC_2.17): Likewise.
393 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
394 (GLIBC_2.27): Likewise.
395 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
396 (GLIBC_2.0): Likewise.
397 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
398 (GLIBC_2.2): Likewise.
399 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
400 Likewise.
401 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
402 Likewise.
403 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
404 (GLIBC_2.0): Likewise.
405 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
406 (GLIBC_2.2): Likewise.
407 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
408 (GLIBC_2.2.5): Likewise.
409 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
410 (GLIBC_2.16): Likewise.
411
412 2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
413
414 * sysdeps/mach/hurd/getcwd.c
415 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
416 slash if we got an unknown root directory. (__getcwd): Do not fail with
417 EGRATUITOUS if we got an unknown root directory.
418 * hurd/hurdselect.c (SELECT_ERROR): New macro.
419 (_hurd_select):
420 - Add `error' field to `d' structures array.
421 - If a poll descriptor is bogus, set EBADF, but continue with a zero
422 timeout.
423 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
424 EBADF there is any bit set above _hurd_dtablesize.
425 - Do not request io_select on bogus descriptors (SELECT_ERROR).
426 - On io_select request error, record the error.
427 - On io_select bogus reply, use EIO error code.
428 - On io_select bogus or error reply, record the error.
429 - Do not destroy reply port for bogus FDs.
430 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
431 EBADF case, or else POLLERR.
432 - On error, make select simulated readiness.
433
434 [BZ #19903]
435 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
436 as __vm_allocate.
437
438 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
439 unlocks SS and returns to the saved PC.
440 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
441 thread stack instead of the saved PC.
442
443 2019-08-30 Richard Braun <rbraun@sceen.net>
444
445 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
446 timeout.
447 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
448 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
449 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
450 <limits.h>.
451 (_hurd_select): Replace the call to __io_select with either
452 __io_select_request or __io_select_timeout_request, depending on the
453 timeout. Count the number of ready descriptors (replies for which at
454 least one type bit is set). Implement the timeout locally when there is
455 no file descriptor.
456
457 2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
458
459 * elf/dl-addr.c (determine_info): Calculate the symbol index
460 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
461 * elf/dl-lookup.c (do_lookup_x): Ditto.
462 (_dl_setup_hash): Initialize MIPS xhash translation table.
463 * elf/elf.h (SHT_MIPS_XHASH): New define.
464 (DT_MIPS_XHASH): New define.
465 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
466 define.
467 (ELF_MACHINE_HASH_SYMIDX): Ditto.
468 (ELF_MACHINE_XHASH_SETUP): Ditto.
469 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
470 define.
471 (ELF_MACHINE_HASH_SYMIDX): Ditto.
472 (ELF_MACHINE_XHASH_SETUP): Ditto.
473 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
474 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
475 version.
476 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
477
478 2019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
479
480 * sysdeps/sh/preconfigure.ac: New file.
481 * sysdeps/sh/preconfigure: Regenerate.
482 * sysdeps/sh/be/sh3/Implies: New file.
483 * sysdeps/sh/be/sh4/Implies: Likewise.
484 * sysdeps/sh/le/sh3/Implies: Likewise.
485 * sysdeps/sh/le/sh4/Implies: Likewise.
486 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
487 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
488 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
489 sysdeps/unix/sysv/linux/sh/le/*.abilist.
490 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
491
492 * sysdeps/microblaze/preconfigure.ac: New file.
493 * sysdeps/microblaze/preconfigure: Regenerate.
494 * sysdeps/microblaze/be/implies: New file.
495 * sysdeps/microblaze/le/implies: Likewise.
496 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
497 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
498 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
499 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
500 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
501
502 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
503 * sysdeps/arm/preconfigure: Regenerate.
504 * sysdeps/arm/be/Implies: New file.
505 * sysdeps/arm/be/armv6/Implies: Likewise.
506 * sysdeps/arm/be/armv6t2/Implies: Likewise.
507 * sysdeps/arm/be/armv7/Implies: Likewise.
508 * sysdeps/arm/le/Implies: Likewise.
509 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
510 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
511 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
512 sysdeps/unix/sysv/linux/arm/le/*.abilist.
513 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
514
515 2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
516
517 Fix posix/tst-regex by using UTF-8 and own test input
518 Problem reported by Stefan Liebler in:
519 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
520 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
521 (do_test, test_expr): Adjust to the fact that this source file,
522 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
523 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
524 so that it is now UTF-8.
525
526 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
527
528 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
529 (fegetenv_status): Generate 'mffsl' unconditionally.
530
531 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
532
533 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
534 FPSCR read.
535 (_FPU_MASK_ALL): Delete.
536
537 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
538
539 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
540 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
541 if possible.
542 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
543 with simpler required steps, set fewer FPSCR bits if possible.
544
545 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
546
547 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
548 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
549 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
550 weight access to FPSCR; remove unnecessary second FPSCR read and
551 validate.
552 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
553 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
554 access to FPSCR; Use macros in fenv_libc.h in favor of local.
555
556 2019-08-28 Paul A. Clarke <pc@us.ibm.com>
557
558 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
559 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
560 (fenv_exceptions_to_reg): New.
561 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
562 operation with call to fenv_exceptions_to_reg().
563 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
564
565 2019-08-28 Florian Weimer <fweimer@redhat.com>
566
567 * misc/mntent.c (struct mntent_buffer): Define.
568 (mntent_buffer): Adjust type to void *.
569 (allocate): Adjust for allocate_once.
570 (deallocate): New function.
571 (getmntent): Call allocate_once.
572
573 2019-08-28 Florian Weimer <fweimer@redhat.com>
574
575 nptl: Move pthread_attr_setdetachstate implementation into libc.
576 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
577 (libpthread-routines): Remove pthread_attr_setdetachstate.
578 * nptl/Versions (libpthread GLIBC_2.0): Remove
579 pthread_attr_setdetachstate.
580 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
581 * nptl/nptl-init.c (pthread_functions): Remove initializer for
582 ptr_pthread_attr_setdetachstate.
583 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
584 Remove ptr_pthread_attr_setdetachstate member.
585 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
586 Remove pthread_attr_setdetachstate.
587 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
588 Likewise.
589 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
590 Likewise.
591 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
592 Likewise.
593 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
594 Likewise.
595 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
596 Likewise.
597 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
598 Likewise.
599 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
600 (GLIBC_2.4): Likewise.
601 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
602 (GLIBC_2.0): Likewise.
603 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
604 (GLIBC_2.18): Likewise.
605 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
606 (GLIBC_2.0): Likewise.
607 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
608 (GLIBC_2.0): Likewise.
609 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
610 Likewise.
611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
612 (GLIBC_2.0): Likewise.
613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
614 (GLIBC_2.3): Likewise.
615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
616 (GLIBC_2.17): Likewise.
617 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
618 (GLIBC_2.27): Likewise.
619 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
620 (GLIBC_2.0): Likewise.
621 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
622 (GLIBC_2.2): Likewise.
623 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
624 Likewise.
625 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
626 (GLIBC_2.0): Likewise.
627 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
628 (GLIBC_2.2): Likewise.
629 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
630 (GLIBC_2.2.5): Likewise.
631 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
632 (GLIBC_2.16): Likewise.
633
634 2019-08-28 Florian Weimer <fweimer@redhat.com>
635
636 [BZ #24902]
637 * login/Makefile (tests): Add tst-pututxline-lockfail.
638 (tst-pututxline-lockfail): Link with -lpthread.
639 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
640 (__libc_getutid_r): Adjust.
641 (__libc_pututline): Likewise. Check for file_offset == -1.
642 * login/tst-pututxline-lockfail.c: New file.
643
644 2019-08-28 Stefan Liebler <stli@linux.ibm.com>
645
646 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
647 * posix/tst-regex.input: New file.
648
649 2019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
650
651 [BZ #24916]
652 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
653 tst-undefined-weak.
654 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
655 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
656 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
657 * sysdeps/mips/tst-undefined-weak.c: Likewise.
658 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
659 Increment highest valid ABIVERSION value.
660
661 2019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
662
663 * sysdeps/unix/sysv/linux/mips/Makefile
664 (test-xfail-check-execstack):
665 Move under mips-has-gnustack != yes.
666 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
667 Apply -Wa,-execstack if mips-force-execstack == yes.
668 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
669 * sysdeps/unix/sysv/linux/mips/configure.ac
670 (mips-force-execstack): New var.
671 Set to yes for hard-float builds with minimum_kernel < 4.8.0
672 or minimum_kernel not set at all.
673 (mips-has-gnustack): New var.
674 Use value of libc_cv_as_noexecstack
675 if mips-force-execstack != yes, otherwise set to no.
676
677 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
678 Florian Weimer <fweimer@redhat.com>
679
680 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
681 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
682 Make a compat_symbol.
683 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
684 (__profil_counter_global): Likewise.
685
686 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
687 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
688 uintptr_t.
689 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
690 sigcontext_get_pc and return aligned cast to uintptr_t.
691 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
692 * sysdeps/posix/profil.c (profil_count): Change PC argument to
693 uintptr_t.
694 (__profil): Use SA_SIGINFO.
695 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
696 uintptr_t.
697 (__sprofil): Use SA_SIGINFO.
698 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
699 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
700 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
701 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
702 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
703 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
704 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
705 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
706 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
707 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
708 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
709 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
710 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
711 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
712 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
713 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
714 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
715 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
716 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
717 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
718 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
719 GET_PC, __sigaction, sigaction): Remove defines.
720 (sigcontext_get_pc): New function.
721 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
722 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
723 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
724 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
725 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
726 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
727 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
728 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
729 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
730 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
731 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
732 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
733 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
734 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
735 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
736 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
737 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
738 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
739 Handle CTX argument as ucontext_t.
740 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
741 Likewise.
742 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
743 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
744 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
745 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
746 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
747 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
748 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
749 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
750 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
751 tst-sigcontextinfo-get_pc.
752 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
753 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
754
755 2019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
756
757 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
758 definition.
759
760 2019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
761
762 [BZ #24682]
763 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
764 * localedata/locales/ug_CN (first_weekday): Likewise.
765 * localedata/locales/zh_CN (first_weekday): Likewise.
766
767 2019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
768
769 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
770 field name in mcontext_t struct.
771
772 2019-08-22 Joseph Myers <joseph@codesourcery.com>
773
774 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
775 unsupported with libidn2 before 2.0.5.
776 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
777
778 * manual/time.texi (strftime): Document %Ob and %OB as C2X
779 features.
780
781 2019-08-21 Paul Eggert <eggert@cs.ucla.edu>
782
783 Remove dead regex code
784 * posix/regex_internal.c (re_node_set_insert):
785 Remove unnecessary assignment. Reported by Tim Rühsen in:
786 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
787
788 Fix bad pointer / leak in regex code
789 This was found by Coverity (CID 1484201). [BZ#24844]
790 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
791 pointer and/or memory leak when storage is exhausted.
792
793 2019-08-21 Zack Weinberg <zackw@panix.com>
794
795 * misc/syslog.c (__vsyslog_internal)
796 * time/getdate.c (__getdate_r)
797 * time/tst_wcsftime.c (main):
798 Use return value of time, not its argument.
799
800 * string/strfry.c (strfry)
801 * sysdeps/mach/sleep.c (__sleep):
802 Remove unnecessary casts of NULL in calls to time.
803
804 2019-08-21 Joseph Myers <joseph@codesourcery.com>
805
806 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
807 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
808 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
809 (__TGMATH_2_NARROW_F): Likewise.
810 (__TGMATH_2_NARROW_D): New macro.
811 (__TGMATH_2_NARROW_F16): Likewise.
812 (__TGMATH_2_NARROW_F32): Likewise.
813 (__TGMATH_2_NARROW_F64): Likewise.
814 (__TGMATH_2_NARROW_F32X): Likewise.
815 (__TGMATH_2_NARROW_F64X): Likewise.
816 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
817 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
818 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
819 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
820 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
821 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
822 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
823 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
824 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
825 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
826 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
827 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
828 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
829 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
830 Likewise.
831 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
832 Likewise.
833 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
834 Likewise.
835 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
836 Likewise.
837 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
838 Likewise.
839 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
840 Likewise.
841 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
842 Likewise.
843 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
844 Likewise.
845 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
846 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
847 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
848 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
849 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
850 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
851 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
852 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
853 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
854 Likewise.
855 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
856 Likewise.
857 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
858 Likewise.
859 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
860 Likewise.
861 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
862 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
863 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
864 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
865 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
866 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
867 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
868 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
869 * math/gen-tgmath-tests.py (Type): Add members
870 non_standard_real_argument_types_list, long_double_type,
871 complex_float64_type and float32x_ext_type.
872 (Type.__init__): Set the new members.
873 (Type.floating_type): Add new argument floatn.
874 (Type.real_floating_type): Likewise.
875 (Type.can_combine_types): Likewise.
876 (Type.combine_types): Likewise.
877 (Type.init_types): Create internal Float32x_ext type.
878 (Tests.__init__): Define Float32x_ext in generated C code.
879 (Tests.add_tests): Handle narrowing functions.
880 (Tests.add_all_tests): Likewise.
881 (Tests.tests_text): Allow variation in mant_dig for narrowing
882 functions with compilers before GCC 8.
883 * math/Makefile (tgmath3-narrow-types): New variable.
884 (tgmath3-narrow-macros): Likewise.
885 (tgmath3-macros): Add $(tgmath3-narrow-macros).
886
887 2019-08-20 Andreas Schwab <schwab@suse.de>
888
889 * sysdeps/i386/fpu/libm-test-ulps: Update.
890
891 2019-08-19 Carlos O'Donell <carlos@redhat.com>
892
893 * nscd/nscd.conf: Add warning and comment about shared option.
894
895 2019-08-19 Carlos O'Donell <carlos@redhat.com>
896
897 * nss/nsswitch.conf: Expand comments, and simplify defaults.
898 * manual/nss.texi (NSS Basics): List all known databases.
899 (Services in the NSS configuration): Mention automount.
900
901 2019-08-19 Florian Weimer <fweimer@redhat.com>
902
903 Do not print backtraces on fatal errors.
904 * debug/fortify_fail.c (__libc_argv): Remove declaration.
905 (__fortify_fail_abort): Remove definition.
906 (__fortify_fail): Call __libc_message directly.
907 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
908 (__stack_chk_fail): Call __fortify_fail instead of
909 __fortify_fail_abort.
910 * include/stdio.h (__fortify_fail_abort): Remove declaration.
911 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
912 definitions.
913 (__libc_message): Do not handle do_backtrace. Do not call
914 BEFORE_ABORT.
915 (__libc_fatal): Do not pass do_backtrace to __libc_message.
916 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
917 (before_abort): Remove definitions.
918
919 2019-08-16 Florian Weimer <fweimer@redhat.com>
920
921 nptl: Move pthread_attr_getdetachstate implementation into libc.
922 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
923 (libpthread-routines): Remove pthread_attr_getdetachstate.
924 * nptl/Versions (libpthread GLIBC_2.0): Remove
925 pthread_attr_getdetachstate.
926 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
927 * nptl/nptl-init.c (pthread_functions): Remove initializer for
928 ptr_pthread_attr_getdetachstate.
929 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
930 Remove ptr_pthread_attr_getdetachstate member.
931 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
932 Remove pthread_attr_getdetachstate.
933 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
934 Likewise.
935 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
936 Likewise.
937 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
938 Likewise.
939 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
940 Likewise.
941 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
942 Likewise.
943 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
944 Likewise.
945 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
946 (GLIBC_2.4): Likewise.
947 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
948 (GLIBC_2.0): Likewise.
949 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
950 (GLIBC_2.18): Likewise.
951 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
952 (GLIBC_2.0): Likewise.
953 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
954 (GLIBC_2.0): Likewise.
955 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
956 Likewise.
957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
958 (GLIBC_2.0): Likewise.
959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
960 (GLIBC_2.3): Likewise.
961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
962 (GLIBC_2.17): Likewise.
963 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
964 (GLIBC_2.27): Likewise.
965 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
966 (GLIBC_2.0): Likewise.
967 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
968 (GLIBC_2.2): Likewise.
969 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
970 Likewise.
971 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
972 (GLIBC_2.0): Likewise.
973 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
974 (GLIBC_2.2): Likewise.
975 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
976 (GLIBC_2.2.5): Likewise.
977 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
978 (GLIBC_2.16): Likewise.
979
980 2019-08-16 Joseph Myers <joseph@codesourcery.com>
981
982 * math/libm-test-compat_totalorder.inc (do_test)
983 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
984 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
985 * math/libm-test-compat_totalordermag.inc (do_test)
986 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
987
988 2019-08-15 Florian Weimer <fweimer@redhat.com>
989
990 nptl: Move pthread_attr_init implementation into libc.
991 * nptl/Makefile (routines): Add pthread_attr_init.
992 (libpthread-routines): Remove pthread_attr_init.
993 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
994 (libpthread GLIBC_2.0): Likewise.
995 * nptl/pthread_attr_init.c: Check for libc compat version instead
996 of libpthread compat version.
997 * nptl/forward.c (__pthread_attr_init_2_0)
998 (__pthread_attr_init_2_1): Remove definitions.
999 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1000 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1001 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1002 Remove members ptr___pthread_attr_init_2_0,
1003 ptr___pthread_attr_init_2_1.
1004 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1005 Remove pthread_attr_init.
1006 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1007 Likewise.
1008 (GLIBC_2.1): Likewise.
1009 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1010 Likewise.
1011 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1012 Likewise.
1013 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1014 Likewise.
1015 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1016 Likewise.
1017 (GLIBC_2.1): Likewise.
1018 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1019 Likewise.
1020 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1021 (GLIBC_2.4): Likewise.
1022 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1023 (GLIBC_2.0): Likewise.
1024 (GLIBC_2.1): Likewise.
1025 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1026 (GLIBC_2.18): Likewise.
1027 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1028 (GLIBC_2.0): Likewise.
1029 (GLIBC_2.1): Likewise.
1030 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1031 (GLIBC_2.0): Likewise.
1032 (GLIBC_2.1): Likewise.
1033 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1034 Likewise.
1035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1036 (GLIBC_2.0): Likewise.
1037 (GLIBC_2.1): Likewise.
1038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1039 (GLIBC_2.3): Likewise.
1040 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1041 (GLIBC_2.17): Likewise.
1042 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1043 (GLIBC_2.27): Likewise.
1044 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1045 (GLIBC_2.0): Likewise.
1046 (GLIBC_2.1): Likewise.
1047 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1048 (GLIBC_2.2): Likewise.
1049 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1050 Likewise.
1051 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1052 (GLIBC_2.0): Likewise.
1053 (GLIBC_2.1): Likewise.
1054 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1055 (GLIBC_2.2): Likewise.
1056 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1057 (GLIBC_2.2.5): Likewise.
1058 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1059 (GLIBC_2.16): Likewise.
1060
1061 2019-08-15 Florian Weimer <fweimer@redhat.com>
1062
1063 [BZ #24900]
1064 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1065 new object in __RTLD_OPENEXEC mode (except for the origin).
1066 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1067 check for the error message.
1068 (do_test): Call it. Add check using relative path.
1069 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1070 (tst-dlopen-aout-container): Link with libpthread.
1071 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1072
1073 2019-08-15 Joseph Myers <joseph@codesourcery.com>
1074
1075 * math/bits/mathcalls.h
1076 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1077 (totalorder): Take pointer arguments.
1078 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1079 (totalordermag): Likewise.
1080 * manual/arith.texi (totalorder): Likewise.
1081 (totalorderf): Likewise.
1082 (totalorderl): Likewise.
1083 (totalorderfN): Likewise.
1084 (totalorderfNx): Likewise.
1085 (totalordermag): Likewise.
1086 (totalordermagf): Likewise.
1087 (totalordermagl): Likewise.
1088 (totalordermagfN): Likewise.
1089 (totalordermagfNx): Likewise.
1090 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1091 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1092 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1093 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1094 totalorderl, totalordermag, totalordermagf, totalordermagl,
1095 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1096 totalordermagf64, totalordermagf32x, totalorderf64x,
1097 totalordermagf64x, totalorderf128 and totalordermagf128.
1098 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1099 and compat_totalordermag.
1100 (libm-test-funcs-compat): New variable.
1101 (libm-tests-compat): Likewise.
1102 (tests): Do not include compat tests.
1103 (tests-internal): Add compat tests.
1104 ($(foreach t,$(libm-tests-base),
1105 $(objpfx)$(t)-compat_totalorder.o)): Depend
1106 on $(objpfx)libm-test-totalorder.c.
1107 ($(foreach t,$(libm-tests-base),
1108 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1109 $(objpfx)libm-test-totalordermag.c.
1110 (tgmath3-macros): Remove totalorder and totalordermag.
1111 * math/libm-test-compat_totalorder.inc: New file.
1112 * math/libm-test-compat_totalordermag.inc: Likewise.
1113 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1114 (RUN_TEST_fpfp_b): New macro.
1115 (RUN_TEST_LOOP_fpfp_b): Likewise.
1116 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1117 TEST_fpfp_b.
1118 (totalorder_test): Condition on [!COMPAT_TEST].
1119 (do_test): Likewise.
1120 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1121 TEST_fpfp_b.
1122 (totalordermag_test): Condition on [!COMPAT_TEST].
1123 (do_test): Likewise.
1124 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1125 totalorder and totalordermag.
1126 * math/test-tgmath.c (NCALLS): Change to 132.
1127 (F(compile_test)): Do not call totalorder or totalordermag.
1128 (F(totalorder)): Remove.
1129 (F(totalordermag)): Likewise.
1130 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1131 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1132 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1133 SJSTR_HELPER.
1134 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1135 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1136 [!_ISOMAC] (TEST_ALIGN): Likewise.
1137 [!_ISOMAC] (TEST_OFFSET): Likewise.
1138 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1139 and <first-versions.h>.
1140 (__totalorder): Take pointer arguments. Add symbol versions and
1141 compat symbols.
1142 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1143 <shlib-compat.h> and <first-versions.h>.
1144 (__totalordermag): Take pointer arguments. Add symbol versions
1145 and compat symbols.
1146 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1147 <shlib-compat.h> and <first-versions.h>.
1148 (__totalorder): Take pointer arguments. Add symbol versions and
1149 compat symbols.
1150 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1151 <shlib-compat.h> and <first-versions.h>.
1152 (__totalordermag): Take pointer arguments. Add symbol versions
1153 and compat symbols.
1154 * sysdeps/ieee754/float128/float128_private.h
1155 (__totalorder_compatl): New macro.
1156 (__totalordermag_compatl): Likewise.
1157 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1158 and <first-versions.h>.
1159 (__totalorderf): Take pointer arguments. Add symbol versions and
1160 compat symbols.
1161 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1162 <shlib-compat.h> and <first-versions.h>.
1163 (__totalordermagf): Take pointer arguments. Add symbol versions
1164 and compat symbols.
1165 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1166 <shlib-compat.h> and <first-versions.h>.
1167 (__totalorderl): Take pointer arguments. Add symbol versions and
1168 compat symbols.
1169 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1170 <shlib-compat.h> and <first-versions.h>.
1171 (__totalordermagl): Take pointer arguments. Add symbol versions
1172 and compat symbols.
1173 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1174 <shlib-compat.h>.
1175 (__totalorderl): Take pointer arguments. Add symbol versions and
1176 compat symbols.
1177 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1178 <shlib-compat.h>.
1179 (__totalordermagl): Take pointer arguments. Add symbol versions
1180 and compat symbols.
1181 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1182 <shlib-compat.h> and <first-versions.h>.
1183 (__totalorderl): Take pointer arguments. Add symbol versions and
1184 compat symbols.
1185 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1186 <shlib-compat.h> and <first-versions.h>.
1187 (__totalordermagl): Take pointer arguments. Add symbol versions
1188 and compat symbols.
1189 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1190 pointer arguments.
1191 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1192 Likewise.
1193 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1194 (do_test): Update calls to totalorderl and totalordermagl.
1195 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1196 Update calls to totalorderl and totalordermagl.
1197 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1198 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1199 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1200 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1201 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1202 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1203 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1204 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1205 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1206 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1207 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1208 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1209 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1210 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1212 Likewise.
1213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1214 Likewise.
1215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1216 Likewise.
1217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1218 Likewise.
1219 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1220 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1221 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1222 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1223 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1224 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1225 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1226 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1227
1228 2019-08-15 Florian Weimer <fweimer@redhat.com>
1229
1230 [BZ #24899]
1231 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1232 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1233 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1234 Likewise.
1235 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1236 __attribute_nonstring__ to ut_id.
1237 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1238 Likewise.
1239
1240 2019-08-15 Florian Weimer <fweimer@redhat.com>
1241
1242 [BZ #24880]
1243 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1244 (file_locking_unlock): Likewise.
1245
1246 2019-08-15 Florian Weimer <fweimer@redhat.com>
1247
1248 [BZ #24879]
1249 login: Disarm timer after utmp lock acquisition.
1250 * login/utmp_file.c (struct file_locking): Remove.
1251 (try_file_lock): Adjust.
1252 (file_lock_restore): Remove function.
1253 (__libc_getutent_r): .
1254 (internal_getut_r): Likewise.
1255 (__libc_getutline_r): Likewise.
1256 (__libc_pututline): Likewise.
1257 (__libc_updwtmp): Likewise.
1258
1259 2019-08-15 Florian Weimer <fweimer@redhat.com>
1260
1261 nptl: Remove pthread_self compatibility symbol from libpthread.
1262 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1263 pthread_equal.
1264 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1265 * nptl/compat-pthread_self.c: Remove file.
1266 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1267 Remove pthread_self.
1268 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1269 Likewise.
1270 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1271 Likewise.
1272 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1273 Likewise.
1274 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1275 Likewise.
1276 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1277 Likewise.
1278 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1279 (GLIBC_2.4): Likewise.
1280 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1281 (GLIBC_2.0): Likewise.
1282 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1283 (GLIBC_2.18): Likewise.
1284 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1285 (GLIBC_2.0): Likewise.
1286 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1287 (GLIBC_2.0): Likewise.
1288 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1289 Likewise.
1290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1291 (GLIBC_2.0): Likewise.
1292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1293 (GLIBC_2.3): Likewise.
1294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1295 (GLIBC_2.17): Likewise.
1296 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1297 (GLIBC_2.0): Likewise.
1298 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1299 (GLIBC_2.2): Likewise.
1300 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1301 Likewise.
1302 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1303 (GLIBC_2.0): Likewise.
1304 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1305 (GLIBC_2.2): Likewise.
1306 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1307 (GLIBC_2.2.5): Likewise.
1308 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1309 (GLIBC_2.16): Likewise.
1310
1311 2019-08-15 Florian Weimer <fweimer@redhat.com>
1312
1313 nptl: Move pthread_attr_destroy implementation into libc.
1314 * nptl/Makefile (routines): Add pthread_attr_destroy.
1315 (libpthread-routines): Remove pthread_attr_destroy.
1316 * nptl/Versions (libpthread GLIBC_2.0): Remove
1317 pthread_attr_destroy.
1318 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1319 libc compat version instead of libpthread compat version.
1320 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1321 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1322 ptr_pthread_attr_destroy.
1323 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1324 Remove ptr_pthread_attr_destroy member.
1325 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1326 Remove pthread_attr_destroy.
1327 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1328 Likewise.
1329 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1330 Likewise.
1331 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1332 Likewise.
1333 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1334 Likewise.
1335 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1336 Likewise.
1337 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1338 Likewise.
1339 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1340 (GLIBC_2.4): Likewise.
1341 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1342 (GLIBC_2.0): Likewise.
1343 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1344 (GLIBC_2.18): Likewise.
1345 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1346 (GLIBC_2.0): Likewise.
1347 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1348 (GLIBC_2.0): Likewise.
1349 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1350 Likewise.
1351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1352 (GLIBC_2.0): Likewise.
1353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1354 (GLIBC_2.3): Likewise.
1355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1356 (GLIBC_2.17): Likewise.
1357 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1358 (GLIBC_2.27): Likewise.
1359 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1360 (GLIBC_2.0): Likewise.
1361 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1362 (GLIBC_2.2): Likewise.
1363 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1364 Likewise.
1365 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1366 (GLIBC_2.0): Likewise.
1367 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1368 (GLIBC_2.2): Likewise.
1369 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1370 (GLIBC_2.2.5): Likewise.
1371 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1372 (GLIBC_2.16): Likewise.
1373
1374 2019-08-15 Andreas Schwab <schwab@suse.de>
1375
1376 * sysdeps/i386/fpu/libm-test-ulps: Update.
1377
1378 2019-08-15 Florian Weimer <fweimer@redhat.com>
1379
1380 * malloc/Makefile (tests): Only add tst-mxfast for
1381 $(have-tunables).
1382 * malloc/tst-mxfast.c: Fix copyright year.
1383 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1384 assert for checks.
1385
1386 2019-08-15 Florian Weimer <fweimer@redhat.com>
1387
1388 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1389 descriptor.
1390 * login/Makefile (tests): Add tst-updwtmpx.
1391 * login/tst-updwtmpx.c: New file.
1392
1393 2019-08-15 Florian Weimer <fweimer@redhat.com>
1394
1395 nptl: Move pthread_equal implementation into libc.
1396 * nptl/Makefile (routines): Add pthread_equal.
1397 * nptl/forward.c (pthread_equal): Remove definition.
1398 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1399 ptr_pthread_equal.
1400 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1401 Remove ptr_pthread_equal member.
1402 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1403 Remove pthread_equal.
1404 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1405 Likewise.
1406 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1407 Likewise.
1408 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1409 Likewise.
1410 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1411 Likewise.
1412 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1413 Likewise.
1414 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1415 Likewise.
1416 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1417 (GLIBC_2.4): Likewise.
1418 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1419 (GLIBC_2.0): Likewise.
1420 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1421 (GLIBC_2.18): Likewise.
1422 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1423 (GLIBC_2.0): Likewise.
1424 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1425 (GLIBC_2.0): Likewise.
1426 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1427 Likewise.
1428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1429 (GLIBC_2.0): Likewise.
1430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1431 (GLIBC_2.3): Likewise.
1432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1433 (GLIBC_2.17): Likewise.
1434 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1435 (GLIBC_2.27): Likewise.
1436 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1437 (GLIBC_2.0): Likewise.
1438 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1439 (GLIBC_2.2): Likewise.
1440 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1441 Likewise.
1442 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1443 (GLIBC_2.0): Likewise.
1444 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1445 (GLIBC_2.2): Likewise.
1446 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1447 (GLIBC_2.2.5): Likewise.
1448 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1449 (GLIBC_2.16): Likewise.
1450
1451 2019-08-14 Florian Weimer <fweimer@redhat.com>
1452
1453 * support/support_descriptors.c: Include <support/descriptors.h>.
1454
1455 2019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1456
1457 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1458 Disable DC ZVA code if this macro is defined as zero.
1459 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1460 Change to zero to disable using DC ZVA.
1461
1462 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1463
1464 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1465 Update comment.
1466 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1467 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1468 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1469 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1470 Likewise.
1471
1472 2019-08-13 Florian Weimer <fweimer@redhat.com>
1473
1474 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1475 Remove macros.
1476 (struct file_locking): New.
1477 (try_file_lock, file_unlock, file_lock_restore): New functions.
1478 (__libc_getutent_r): Use the new functions.
1479 (internal_getut_r): Likewise.
1480 (__libc_getutline_r): Likewise.
1481 (__libc_pututline): Likewise.
1482 (__libc_updwtmp): Likewise.
1483
1484 2019-08-13 Joseph Myers <joseph@codesourcery.com>
1485
1486 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1487 comment.
1488 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1489 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1490 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1491 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1492 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1493 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1494 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1495 Likewise.
1496 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1497 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1498 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1499 Likewise.
1500 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1501 Likewise.
1502 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1503 Likewise.
1504 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1505 Likewise.
1506 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1507 Likewise.
1508 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1509 Likewise.
1510 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1511 Likewise.
1512 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1513 (IEC_60559_BFP_EXT)]: Likewise.
1514 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1515 Likewise.
1516 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1517 Likewise.
1518 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1519 Likewise.
1520 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1521 Likewise.
1522 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1523 Likewise.
1524 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1525 Likewise.
1526 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1527 Likewise.
1528 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1529 Likewise.
1530 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1531 Likewise, except for totalorder, totalordermag, getpayload,
1532 setpayload and setpayloadsig.
1533 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1534 except for totalorder and totalordermag.
1535
1536 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1537 (strdup): Likewise.
1538 (strndup): Likewise.
1539
1540 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1541 Undefine and define to 1 if [_GNU_SOURCE].
1542 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1543 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1544 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1545 (__USE_ISOC99): Likewise.
1546 (__USE_ISOC95): Likewise.
1547 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1548
1549 2019-08-13 Florian Weimer <fweimer@redhat.com>
1550
1551 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1552 are always true.
1553 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1554 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1555 * login/getutmpx.c (getutmpx): Likewise.
1556 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1557 true.
1558 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1559 _HAVE_UT_TV are always true.
1560 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1561 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1562 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1563 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1564 are always true.
1565 (internal_getut_r): _HAVE_UT_TYPE is always true.
1566 (__libc_pututline): Likewise.
1567 * login/programs/utmpdump.c (print_entry): Assume that
1568 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1569 _HAVE_UT_TV are always true.
1570 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1571 _HAVE_UT_ID are always true.
1572 * sysdeps/gnu/bits/utmp.h: Move to ...
1573 * bits/utmp.h: ... here, replacing the old file.
1574
1575 2019-08-12 Florian Weimer <fweimer@redhat.com>
1576
1577 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1578 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1579 not set.
1580 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1581 (do_test): Open the executable using an absolute path. Print
1582 error message to standard output.
1583
1584 2019-08-09 DJ Delorie <dj@redhat.com>
1585
1586 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1587 * manual/tunables.texi: Document it.
1588 * malloc/malloc.c (do_set_mxfast): New.
1589 (__libc_mallopt): Call it.
1590 * malloc/arena.c: Add mxfast tunable.
1591 * malloc/tst-mxfast.c: New.
1592 * malloc/Makefile: Add it.
1593
1594 2019-08-08 Niklas Hambüchen <mail@nh2.me>
1595 Carlos O'Donell <carlos@redhat.com>
1596
1597 [BZ #24026]
1598 * malloc/malloc.c (__malloc_info): Account for top chunk.
1599
1600 2019-08-07 Joseph Myers <joseph@codesourcery.com>
1601
1602 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1603 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1604
1605 2019-08-06 Joseph Myers <joseph@codesourcery.com>
1606
1607 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1608
1609 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
1610
1611 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1612
1613 2019-08-05 Joseph Myers <joseph@codesourcery.com>
1614
1615 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1616 New macro.
1617
1618 2019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1619
1620 [BZ #19767]
1621 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1622 Remove definition.
1623 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1624 Likewise.
1625 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1626 Likewise.
1627 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1628 Likewise.
1629 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1630 (ALWAYS_USE_VSYSCALL): Likewise.
1631 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1632 (ALWAYS_USE_VSYSCALL): Likewise.
1633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1634 (ALWAYS_USE_VSYSCALL): Likewise.
1635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1636 (ALWAYS_USE_VSYSCALL): Likewise.
1637 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1638 Likewise.
1639 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1640 (ALWAYS_USE_VSYSCALL): Likewise.
1641 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1642 (ALWAYS_USE_VSYSCALL): Likewise.
1643 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1644 Likewise.
1645 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1646 Likewise.
1647 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1648 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1649 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1650 USE_VSYSCALL): Remove defitions.
1651
1652 [BZ #19767]
1653 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
1654 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
1655 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1656 Define.
1657
1658 [BZ #19767]
1659 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
1660 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
1661 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1662 (ALWAYS_USE_VSYSCALL): Define.
1663 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1664 (ALWAYS_USE_VSYSCALL): Likewise.
1665
1666 [BZ #19767]
1667 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
1668 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
1669 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1670 Define.
1671
1672 * sysdeps/sh/libm-test-ulps: Update.
1673
1674 2019-08-05 Florian Weimer <fweimer@redhat.com>
1675
1676 [BZ #23518]
1677 * login/uptmp-private.h (struct ufuncs): Remove definition.
1678 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
1679 (__libc_utmp_jump_table): Remove declarations.
1680 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
1681 (__libc_getutline_r, __libc_pututline, __libc_endutent)
1682 (__libc_updwtmp): Declare.
1683 * login/getutent_r.c (__libc_utmp_unknown_functions)
1684 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
1685 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
1686 (endutent_unknown): Remove definitions.
1687 (__setutent): Call __libc_setutent.
1688 (__getutent_r): Call __libc_getutent_r.
1689 (__pututline): Call __libc_pututline.
1690 (__endutent): Call __libc_endutent.
1691 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
1692 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
1693 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
1694 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
1695 (__libc_setutent): Rename from stetutent_file. Drop static.
1696 (maybe_setutent): New function.
1697 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
1698 Check for initialization.
1699 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
1700 Check for initialization.
1701 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
1702 Check for initialization.
1703 (__libc_pututline): Rename from pututline_file. Drop static.
1704 Check for initialization.
1705 (__libc_endutent): Rename from endutent_file. Drop static. Check
1706 for initialization.
1707 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
1708 * login/utmpname.c (__utmpname): Call __libc_endutent.
1709 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
1710 __libc_getutlien_r, __libc_endutent.
1711 * manual/users.texi (Who Logged In, Manipulating the Database):
1712 Adjust.
1713
1714 2019-08-05 Alexandra Hájková <ahajkova@redhat.com>
1715
1716 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
1717
1718 2019-08-02 Joseph Myers <joseph@codesourcery.com>
1719
1720 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
1721
1722 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
1723 kernel version number to 5.2.
1724
1725 2019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
1726
1727 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
1728 mnemonics and set .machine power8.
1729 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
1730 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
1731 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1732 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1733 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1734 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1735 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1736 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
1737 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
1738 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
1739
1740 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1741
1742 * sysdeps/hppa/fpu/libm-test-ulps: Update.
1743
1744 2019-08-01 Florian Weimer <fweimer@redhat.com>
1745
1746 [BZ #24867]
1747 * malloc/malloc.c (__malloc_info): Remove unwanted leading
1748 whitespace.
1749
1750 2019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1751
1752 [BZ #15813]
1753 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
1754 attempt.
1755
1756 2019-08-01 Carlos O'Donell <carlos@redhat.com>
1757
1758 * version.h (RELEASE): Set to "stable".
1759 (VERSION): Set to "2.30".
1760 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
1761
1762 * manual/install.texi: Update component versions.
1763 * INSTALL: Regenerate.
1764 * NEWS: Update.
1765
1766 2019-07-31 Carlos O'Donell <carlos@redhat.com>
1767
1768 * po/be.po: Update translations.
1769 * po/bg.po: Likewise.
1770 * po/ca.po: Likewise.
1771 * po/cs.po: Likewise.
1772 * po/da.po: Likewise.
1773 * po/de.po: Likewise.
1774 * po/el.po: Likewise.
1775 * po/eo.po: Likewise.
1776 * po/es.po: Likewise.
1777 * po/fi.po: Likewise.
1778 * po/fr.po: Likewise.
1779 * po/gl.po: Likewise.
1780 * po/hr.po: Likewise.
1781 * po/hu.po: Likewise.
1782 * po/ia.po: Likewise.
1783 * po/id.po: Likewise.
1784 * po/it.po: Likewise.
1785 * po/ja.po: Likewise.
1786 * po/ko.po: Likewise.
1787 * po/lt.po: Likewise.
1788 * po/nb.po: Likewise.
1789 * po/nl.po: Likewise.
1790 * po/pl.po: Likewise.
1791 * po/pt_BR.po: Likewise.
1792 * po/ru.po: Likewise.
1793 * po/rw.po: Likewise.
1794 * po/sk.po: Likewise.
1795 * po/sl.po: Likewise.
1796 * po/sv.po: Likewise.
1797 * po/tr.po: Likewise.
1798 * po/uk.po: Likewise.
1799 * po/vi.po: Likewise.
1800 * po/zh_CN.po: Likewise.
1801 * po/zh_TW.po: Likewise.
1802
1803 2019-07-31 Florian Weimer <fweimer@redhat.com>
1804
1805 [BZ #24583]
1806 [BZ #24677]
1807 iconv, libio: Revert reference counting changes.
1808 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
1809 free the steps array.
1810 * libio/Makefile (tests): Remove tst-wfile-gconv.
1811 (tests-container): Do not add tst-wfile-ascii.
1812 (tst-wfile-gconv-ENV): Do not set.
1813 (generated): Do not add tst-wfile-gconv.mtrace,
1814 tst-wfile-gconv.check.
1815 [($run-built-tests)] (tests-special): Do not add
1816 tst-wfile-gconv-mem.out.
1817 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
1818 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
1819 instead of __wcsmbs_clone_conv.
1820 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
1821 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
1822
1823 2019-07-30 Joseph Myers <joseph@codesourcery.com>
1824
1825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1826 (__CONTEXT_FUNC_NAME): Restore setting of r31.
1827
1828 2019-07-30 Florian Weimer <fweimer@redhat.com>
1829
1830 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
1831 type to uintptr_t. Update comment.
1832 (check_stack_top): Adjust.
1833
1834 2019-07-29 Florian Weimer <fweimer@redhat.com>
1835
1836 Linux: Move declaration of getdents64 to <dirent.h>.
1837 * bits/dirent_ext.h: New file.
1838 * dirent/Makefile (headers): Add bits/dirent_ext.h.
1839 * dirent/dirent.h: Include <bits/dirent_ext.h>.
1840 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
1841 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
1842 declaration.
1843 * manual/filesys.texi (Low-level Directory Access): Update header
1844 to dirent.h.
1845
1846 2019-07-29 DJ Delorie <dj@redhat.com>
1847 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1848
1849 [BZ #24794]
1850 * Makeconfig (all-subdirs): Improved source comments.
1851 * Makefile (testroot.pristine/install.stamp): Pass
1852 subdirs='$(sorted-subdirs)' to make install.
1853
1854 2019-07-25 Florian Weimer <fweimer@redhat.com>
1855
1856 [BZ #24677]
1857 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
1858 counter before freeing array.
1859
1860 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1861
1862 [BZ #24603]
1863 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
1864 works.
1865 * sysdeps/x86_64/configure: Regenerated.
1866 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
1867 to -mprefer-vector-width=128 if supported.
1868
1869 2019-07-24 Florian Weimer <fweimer@redhat.com>
1870
1871 * scripts/build-many-glibcs.py (Context.checkout): Default to
1872 Linux 5.2.
1873
1874 2019-07-24 Florian Weimer <fweimer@redhat.com>
1875
1876 [BZ #24532]
1877 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
1878 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
1879 (sysdep_headers): Add bits/socket-constants.h.
1880 (tests-special): Add tst-socket-consts.out.
1881 (tst-socket-consts.out): New target.
1882 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
1883 around <asm/unistd.h>.
1884 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
1885 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
1886 <asm/socket.h>.
1887 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
1888 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
1889 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
1890 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
1891 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
1892 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
1893 Likewise.
1894 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
1895
1896 2019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1897
1898 [BZ #24794]
1899 * Makefile (testroot.pristine/install.stamp): Pass
1900 subdirs='$(all-subdirs)' to make install.
1901
1902 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
1903 the same arguments used in all tests.
1904
1905 2019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1906
1907 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
1908
1909 2019-07-20 Egor Kobylkin <egor@kobylkin.com>
1910
1911 [BZ #2872]
1912 * locale/C-translit.h.in: Add Cyrillic transliteration.
1913
1914 2019-07-19 Florian Weimer <fweimer@redhat.com>
1915
1916 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
1917 from Linux 5.2.
1918 (fsconfig): Add system call name.
1919 (fsmount): Likewise.
1920 (fsopen): Likewise.
1921 (fspick): Likewise.
1922 (move_mount): Likewise.
1923 (open_tree): Likewise.
1924
1925 2019-07-18 Carlos O'Donell <carlos@redhat.com>
1926
1927 * po/libc.pot: Regenerate.
1928
1929 2019-07-18 Mike Crowe <mac@mcrowe.com>
1930
1931 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
1932 functions recently added to sysdeps/nptl/pthread.h:
1933 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
1934 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
1935
1936 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
1937 pthread_cond_clockwait forwarding functions. There are no internal
1938 users, so it is unnecessary to expose these functions in libc.so.
1939 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
1940 unnecessary ptr___pthread_cond_clockwait member.
1941 * nptl/nptl-init.c (pthread_functions): Remove assignment of
1942 removed member.
1943
1944 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1945
1946 [BZ #21897]
1947 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
1948 begin with an uppercase letter now.
1949 (abmon): Likewise.
1950 (mon): Update from CLDR, reword February from "Kudo" to
1951 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
1952 and August from "Liiqen" to "Leqeeni".
1953 * localedata/locales/aa_ER (mon): Update from CLDR, reword
1954 April from "Agda Baxisso" to "Agda Baxis" and August from
1955 "Leqeeni" to "Liiqen".
1956 * localedata/locales/aa_ER@saaho (mon): Likewise.
1957 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
1958 abbreviated February from "Kud" to "Nah".
1959 (mon): Update from CLDR, reword February from "Kudo" to
1960 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
1961
1962 2019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
1963
1964 [BZ #23996]
1965 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
1966
1967 2019-07-17 PanderMusubi <pander@users.sourceforge.net>
1968
1969 [BZ #23996]
1970 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
1971 name_mrs, name_miss, and name_ms.
1972 * localedata/locales/nl_NL (LC_NAME): Likewise.
1973
1974 2019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
1975
1976 [BZ #24200]
1977 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
1978 * localedata/locales/en_IE (first_weekday): Likewise.
1979
1980 2019-07-12 Mike Crowe <mac@mcrowe.com>
1981
1982 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
1983 that is only useful if futex_supports_exact_relative_timeouts ()
1984 returns false.
1985 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
1986 Likewise.
1987 * sysdeps/nptl/futex-internal.h: Remove comment about relative
1988 timeouts potentially being imprecise since it's no longer true.
1989 Remove declaration of futex_supports_exact_relative_timeouts.
1990 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
1991 of futex_supports_exact_relative_timeouts.
1992
1993 * NEWS: Mention recently-added pthread_cond_clockwait,
1994 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
1995 sem_clockwait functions.
1996
1997 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
1998 works like pthread_mutex_timedlock but takes a clockid parameter to
1999 measure the abstime parameter against.
2000 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2001 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2002 * nptl/pthread_mutex_timedlock.c
2003 (__pthread_mutex_clocklock_common): Rename from
2004 __pthread_mutex_timedlock and add clockid parameter. Pass this
2005 parameter to lll_clocklock and lll_clocklock_elision in place of
2006 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2007 LIBC_PROBE and validate clockid parameter before calling
2008 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2009 implementation to add LIBC_PROBE and calls
2010 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2011 clockid.
2012 * nptl/Makefile: Add tst-mutex11.c.
2013 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2014 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2015 clockid parameters to pthread_mutex_clocklock.
2016 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2017 clockid parameter to indicate which clock to be used. Call
2018 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2019 (do_test): Call do_test_clock to separately test
2020 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2021 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2022 * nptl/tst-mutex9.c: Likewise.
2023 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2024 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2025 Likewise.
2026 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2027 Likewise.
2028 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2029 Likewise.
2030 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2031 Likewise.
2032 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2033 Likewise.
2034 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2035 Likewise.
2036 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2037 Likewise.
2038 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2039 (GLIBC_2.30): Likewise.
2040 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2041 (GLIBC_2.30): Likewise.
2042 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2043 (GLIBC_2.30): Likewise.
2044 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2045 (GLIBC_2.30): Likewise.
2046 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2047 (GLIBC_2.30): Likewise.
2048 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2049 Likewise.
2050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2051 (GLIBC_2.30): Likewise.
2052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2053 (GLIBC_2.30): Likewise.
2054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2055 (GLIBC_2.30): Likewise.
2056 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2057 (GLIBC_2.30): Likewise.
2058 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2059 (GLIBC_2.30): Likewise.
2060 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2061 (GLIBC_2.30): Likewise.
2062 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2063 Likewise.
2064 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2065 (GLIBC_2.30): Likewise.
2066 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2067 (GLIBC_2.30): Likewise.
2068 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2069 (GLIBC_2.30): Likewise.
2070 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2071 (GLIBC_2.30): Likewise.
2072
2073 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2074 parameter to indicate the clock that the abstime parameter should
2075 be measured against in preparation for adding
2076 pthread_mutex_clocklock.
2077 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2078 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2079 from __lll_timedlock and add clockid parameter.
2080 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2081 Likewise.
2082 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2083 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2084 rather than __gettimeofday so that clockid can be used. This means
2085 that conversion from struct timeval is no longer required.
2086 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2087 Likewise.
2088 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2089 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2090 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2091 from lll_timedlock_elision, add clockid parameter and use
2092 meaningful names for other parameters. (__pthread_mutex_timedlock):
2093 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2094 lll_clocklock_elision.
2095 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2096 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2097 clockid parameter. (__lll_clocklock_elision): Rename from
2098 __lll_timedlock_elision and add clockid parameter.
2099 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2100 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2101 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2102 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2103 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2104 (LLL_LOCK): Likewise.
2105 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2106 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2107
2108 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2109 pthread_rwlock_clockwrlock which behave like
2110 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2111 respectively, except they always measure abstime against the
2112 supplied clockid. The functions currently support CLOCK_REALTIME
2113 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2114 specified.
2115 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2116 pthread_wrlock_clockwrlock.
2117 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2118 pthread_rwlock_clockwrlock.c.
2119 * nptl/pthread_rwlock_clockrdlock.c: Implement
2120 pthread_rwlock_clockrdlock.
2121 * nptl/pthread_rwlock_clockwrlock.c: Implement
2122 pthread_rwlock_clockwrlock.
2123 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2124 clockid parameter and verify that it indicates a supported clock on
2125 entry so that we fail even if it doesn't end up being used. Pass
2126 that clock on to futex_abstimed_wait when necessary.
2127 (__pthread_rwlock_wrlock_full): Likewise.
2128 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2129 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2130 be used because there's no timeout.
2131 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2132 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2133 be used because there is no timeout.
2134 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2135 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2136 uses that clock.
2137 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2138 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2139 uses that clock.
2140 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2141 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2142 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2143 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2144 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2145 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2146 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2147 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2148 (GLIBC_2.30): Likewise.
2149 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2150 (GLIBC_2.30): Likewise.
2151 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2152 (GLIBC_2.30): Likewise.
2153 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2154 (GLIBC_2.30): Likewise.
2155 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2156 (GLIBC_2.30): Likewise.
2157 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2159 (GLIBC_2.30): Likewise.
2160 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2161 (GLIBC_2.30): Likewise.
2162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2163 (GLIBC_2.30): Likewise.
2164 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2165 (GLIBC_2.30): Likewise.
2166 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2167 (GLIBC_2.30): Likewise.
2168 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2169 (GLIBC_2.30): Likewise.
2170 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2171 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2172 (GLIBC_2.30): Likewise.
2173 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2174 (GLIBC_2.30): Likewise.
2175 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2176 (GLIBC_2.30): Likewise.
2177 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2178 (GLIBC_2.30): Likewise.
2179 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2180 pthread_rwlock_clockwrlock timeout tests to match the existing
2181 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2182 * nptl/tst-rwlock14.c (do_test): Likewise.
2183 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2184 ancillary output throughout. (tf): Accept thread_args structure so
2185 that rwlock, a clockid and function name can be passed to the
2186 thread. (do_test_clock): Rename from do_test. Accept clockid
2187 parameter to specify test clock. Use the magic clockid value of
2188 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2189 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2190 specified clockid to pthread_rwlock_clockrdlock and
2191 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2192 (do_test): Call do_test_clock to test each clockid in turn.
2193 * nptl/tst-rwlock7.c: Likewise.
2194 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2195 thread_args structure so that the (now int) thread number, the
2196 clockid and the function name can be passed to the thread.
2197 (do_test_clock): Renamed from do_test. Pass the necessary
2198 thread_args when creating the reader and writer threads. Use
2199 xpthread_create and xpthread_join.
2200 (do_test): Call do_test_clock to test each clockid in turn.
2201 * manual/threads.texi: Add documentation for
2202 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2203
2204 nptl: pthread_rwlock: Move timeout validation into _full functions
2205 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2206 Check validity of abstime parameter.
2207 (__pthread_rwlock_rwlock_full): Likewise.
2208 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2209 Remove check for validity of abstime parameter.
2210 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2211 Likewise.
2212
2213 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2214 like pthread_cond_timedwait except it always measures abstime
2215 against the supplied clockid.
2216 * nptl/Makefile: Add tst-cond26 and tst-cond27
2217 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2218 * sysdeps/nptl/pthread.h: Likewise
2219 * nptl/forward.c: Add __pthread_cond_clockwait
2220 * nptl/forward.c: Likewise
2221 * nptl/pthreadP.h: Likewise
2222 * sysdeps/nptl/pthread-functions.h: Likewise
2223 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2224 clockid parameter and comment describing why we don't need to check
2225 its value. Use that value when calling
2226 futex_abstimed_wait_cancelable rather than reading the clock from
2227 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2228 (__pthread_cond_timedwait): Read clock from flags and pass it to
2229 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2230 function with weak alias from pthread_cond_clockwait.
2231 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2232 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2233 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2234 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2235 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2236 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2237 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2238 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2239 (GLIBC_2.30): Likewise.
2240 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2241 (GLIBC_2.30): Likewise.
2242 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2243 (GLIBC_2.30): Likewise.
2244 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2245 (GLIBC_2.30): Likewise.
2246 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2247 (GLIBC_2.30): Likewise.
2248 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2249 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2250 (GLIBC_2.30): Likewise.
2251 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2252 (GLIBC_2.30): Likewise.
2253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2254 (GLIBC_2.30): Likewise.
2255 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2256 (GLIBC_2.30): Likewise.
2257 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2258 (GLIBC_2.30): Likewise.
2259 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2260 (GLIBC_2.30): Likewise.
2261 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2262 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2263 (GLIBC_2.30): Likewise.
2264 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2265 (GLIBC_2.30): Likewise.
2266 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2267 (GLIBC_2.30): Likewise.
2268 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2269 (GLIBC_2.30): Likewise.
2270 * nptl/tst-cond11.c (run_test): Support testing
2271 pthread_cond_clockwait too by using a special magic
2272 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2273 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2274 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2275 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2276 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2277 clocks to pthread_cond_clockwait.
2278 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2279 struct timespec and pthread_cond_clockwait.
2280 * manual/threads.texi: Document pthread_cond_clockwait.
2281
2282 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2283 sem_timedwait, but measures abstime against the specified clock.
2284 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2285 clockid parameters to indicate the clock which abstime should be
2286 measured against.
2287 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2288 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2289 __new_sem_wait_slow.
2290 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2291 on sem_timedwait.c.
2292 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2293 sem_clockwait.c to match those used for sem_timedwait.c.
2294 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2295 * nptl/Versions (GLIBC_2.30): Likewise.
2296 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2297 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2298 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2299 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2300 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2301 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2302 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2303 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2304 (GLIBC_2.30): Likewise.
2305 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2306 (GLIBC_2.30): Likewise.
2307 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2308 (GLIBC_2.30): Likewise.
2309 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2310 (GLIBC_2.30): Likewise.
2311 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2312 (GLIBC_2.30): Likewise.
2313 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2314 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2315 (GLIBC_2.30): Likewise.
2316 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2317 (GLIBC_2.30): Likewise.
2318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2319 (GLIBC_2.30): Likewise.
2320 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2321 (GLIBC_2.30): Likewise.
2322 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2323 (GLIBC_2.30): Likewise.
2324 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2325 (GLIBC_2.30): Likewise.
2326 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2327 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2328 (GLIBC_2.30): Likewise.
2329 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2330 (GLIBC_2.30): Likewise.
2331 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2332 (GLIBC_2.30): Likewise.
2333 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2334 (GLIBC_2.30): Likewise.
2335 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2336 sem_clockwait.
2337 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2338 tests to also test sem_clockwait.
2339 * manual/threads.texi: Document sem_clockwait.
2340
2341 nptl: Add clockid parameter to futex timed wait calls
2342 * sysdeps/nptl/lowlevellock-futex.h,
2343 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2344 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2345 takes a clockid rather than a special clockbit.
2346 * sysdeps/nptl/lowlevellock-futex.h: Add
2347 lll_futex_supported_clockid so that client functions can check
2348 whether their clockid parameter is valid even if they don't
2349 ultimately end up calling lll_futex_clock_wait_bitset.
2350 * sysdeps/nptl/futex-internal.h,
2351 sysdeps/unix/sysv/linux/futex-internal.h
2352 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2353 clockid_t parameter to indicate which clock the absolute time
2354 passed should be measured against. Pass that clockid onto
2355 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2356 returning -EINVAL.
2357 * sysdeps/nptl/futex-internal.h,
2358 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2359 futex_abstimed_supported_clockid so that client functions can check
2360 whether their clockid parameter is valid even if they don't
2361 ultimately end up calling futex_abstimed_wait.
2362 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2363 code to calculate relative timeout for
2364 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2365 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2366 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2367 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2368 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2369 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2370 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2371
2372 2019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2373
2374 [BZ #24699]
2375 * posix/tst-mmap-offset.c: Mention BZ #24699.
2376 (do_test_bz21270): Rename to do_test_large_offset and use
2377 mmap64_maximum_offset to check for maximum expected offset value.
2378 * sysdeps/generic/mmap_info.h: New file.
2379 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2380 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2381 __NR_mmap2 is used.
2382
2383 2019-07-10 DJ Delorie <dj@redhat.com>
2384 Sergei Trofimovich <slyfox@inbox.ru>
2385
2386 [BZ #24696]
2387 [BZ #24695]
2388 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2389 mappings.
2390 * nss/tst-nss-db-endgrent.c: New.
2391 * nss/tst-nss-db-endgrent.root: New.
2392 * nss/tst-nss-db-endpwent.c: New.
2393 * nss/tst-nss-db-endpwent.root: New.
2394 * nss/Makefile: Add new tests.
2395 * support/links-dso-program-c.c: Add selinux dependency.
2396 * support/links-dso-program.cc: Add selinux dependency.
2397 * support/Makefile: Build those with -lselinux if enabled.
2398
2399 2019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2400
2401 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2402 DT_AARCH64_VARIANT_PCS check.
2403 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2404 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2405 variant_pcs.
2406
2407 2019-07-10 Andreas Schwab <schwab@suse.de>
2408
2409 [BZ #23352]
2410 * malloc/malloc.h (__malloc_check_init): Don't declare.
2411 * include/malloc.h (__malloc_check_init): Likewise.
2412 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2413 * manual/memory.texi (__malloc_check_init): Don't mention it.
2414
2415 2019-07-10 Mao Han <han_mao@c-sky.com>
2416
2417 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2418
2419 2019-07-09 Paul A. Clarke <pc@us.ibm.com>
2420
2421 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2422 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2423
2424 2019-07-08 DJ Delorie <dj@redhat.com>
2425
2426 [BZ #23501]
2427 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2428 * io/tst-ftw-lnk.c: New test.
2429 * io/Makefile: Run it.
2430
2431 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2432
2433 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2434 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2435 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2436 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2437 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2438 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2439 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2440 Adjust implementation path.
2441 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2442 Adjust implementation path.
2443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2444 Adjust implementation path.
2445 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2446 (libm-sysdep_routines): Add s_log* objects.
2447 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2448 CFLAGS-s_logb-power7.c): New fule.
2449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2450 to ...
2451 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2452 ... here.
2453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2454 to ...
2455 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2456 ... here.
2457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2458 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2460 to ...
2461 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2462 ... here.
2463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2464 to ...
2465 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2466 ... here.
2467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2468 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2470 to ...
2471 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2472 ... here.
2473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2474 to ...
2475 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2476 ... here.
2477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2478 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2479 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2480 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2481 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2482 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2483
2484 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2485 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2486 powerpc32 integer 0 converting to -0.
2487
2488 * benchtests/Makefile (bench-math): Add logb.
2489 * benchtests/logb-inputs: New file.
2490 * benchtests/logbf-inputs: New file.
2491
2492 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2493 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2494 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2495 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2497 Adjust include.
2498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2499 Likewise.
2500 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2501 sysdep_routines): Add s_modf* objects.
2502 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2503 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2504 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2505 to ...
2506 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2507 ... here.
2508 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2509 to ...
2510 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2511 ... here.
2512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2513 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2514 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2515 to ...
2516 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2517 ... here.
2518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2519 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2520 ... here.
2521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2522 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2523
2524 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2525 twoM500, twoM600, two60factor, pdnum): Remove.
2526 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2527 (__ieee754_hypot): Replace static variables with inline definition,
2528 remove ununsed branches.
2529 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2530 (libm-sysdep_routines): Remove e_hypot-* objects.
2531 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2532 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2533 file.
2534 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2535 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2536 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2537 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2538 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2539
2540 * benchtests/Makefile (bench-math): Add hypot.
2541 * benchtests/hypot-inputs: New file.
2542
2543 2019-07-08 Vincent Chen <vincentc@andestech.com>
2544
2545 * sysdeps/unix/sysv/linux/dl-vdso.h
2546 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2547
2548 2019-07-04 Andreas Schwab <schwab@suse.de>
2549
2550 [BZ #24484]
2551 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2552
2553 2019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2554
2555 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2556 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2557 * sysdeps/aarch64/sys/ifunc.h: New file.
2558 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2559 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2560
2561 2019-07-01 Florian Weimer <fweimer@redhat.com>
2562
2563 [BZ #20188]
2564 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2565 Replace __vfork with __libpthread_version_placeholder for
2566 GLIBC_2.1.2.
2567 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2568 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2569 libpthread-compat.
2570 * nptl/pt-vfork.c: Remove file.
2571 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2572 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2573 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2574 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2575 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2576 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2577 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2578 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2579 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2580 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2581 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2582 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2583 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2584 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2585 Remove vfork, __vfork.
2586 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2587 Remove vfork.
2588 (GLIBC_2.1.2): Replace __vfork with
2589 __libpthread_version_placeholder.
2590 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2591 Remove vfork, __vfork.
2592 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2593 Likewise.
2594 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2595 Remove vfork.
2596 (GLIBC_2.1.2): Replace __vfork with
2597 __libpthread_version_placeholder.
2598 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2599 Remove vfork.
2600 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2601 (GLIBC_2.4): Remove vfork, __vfork.
2602 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2603 (GLIBC_2.0): Remove vfork.
2604 (GLIBC_2.1.2): Replace __vfork with
2605 __libpthread_version_placeholder.
2606 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2607 (GLIBC_2.18): Remove vfork, __vfork.
2608 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2609 (GLIBC_2.0): Remove vfork.
2610 (GLIBC_2.2): Remove __vfork.
2611 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2612 (GLIBC_2.2): Remove vfork, __vfork.
2613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2614 (GLIBC_2.0): Remove vfork.
2615 (GLIBC_2.1.2): Replace __vfork with
2616 __libpthread_version_placeholder.
2617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2618 (GLIBC_2.3): Remove vfork, __vfork.
2619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2620 (GLIBC_2.17): Likewise.
2621 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2622 (GLIBC_2.0): Remove vfork.
2623 (GLIBC_2.1.2): Replace __vfork with
2624 __libpthread_version_placeholder.
2625 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2626 (GLIBC_2.2): Remove vfork, __vfork.
2627 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2628 Likewise.
2629 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2630 (GLIBC_2.0): Remove vfork.
2631 (GLIBC_2.1.2): Replace __vfork with
2632 __libpthread_version_placeholder.
2633 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2634 (GLIBC_2.2): Remove vfork, __vfork.
2635 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2636 (GLIBC_2.2.5): Likewise.
2637 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2638 (GLIBC_2.16): Likewise.
2639 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2640 Remove __errno_location.
2641
2642 2019-07-02 Florian Weimer <fweimer@redhat.com>
2643
2644 [BZ #24757]
2645 * malloc/Depend: Add nptl and htl, due to potential indirect
2646 libpthread dependency of memusagestat.
2647
2648 2019-07-02 Stefan Liebler <stli@linux.ibm.com>
2649
2650 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2651 warning.
2652
2653 2019-07-01 Florian Weimer <fweimer@redhat.com>
2654
2655 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
2656 variant for arm-linux-gnueabi.
2657
2658 2019-07-01 H.J. Lu <hongjiu.lu@intel.com>
2659
2660 [BZ #24259]
2661 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
2662 relocation.
2663 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
2664 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
2665 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
2666 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
2667 and tst-cet-legacy-mod-6c.
2668 (CFLAGS-tst-cet-legacy-5a.c): New.
2669 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
2670 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
2671 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
2672 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
2673 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
2674 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
2675 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
2676 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
2677 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
2678 ($(objpfx)tst-cet-legacy-5a): Likewise.
2679 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
2680 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
2681 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
2682 ($(objpfx)tst-cet-legacy-5b): Likewise.
2683 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
2684 (tst-cet-legacy-5b-ENV): Likewise.
2685 ($(objpfx)tst-cet-legacy-6a): Likewise.
2686 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
2687 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
2688 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
2689 ($(objpfx)tst-cet-legacy-6b): Likewise.
2690 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
2691 (tst-cet-legacy-6b-ENV): Likewise.
2692 * sysdeps/x86/tst-cet-legacy-5.c: New file.
2693 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
2694 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
2695 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
2696 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
2697 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
2698 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
2699 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
2700 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
2701 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
2702 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
2703 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
2704 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
2705 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
2706
2707 2019-06-30 Paul A. Clarke <pc@us.ibm.com>
2708
2709 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
2710 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
2711 (__fegetround_ISA300) New.
2712 (__fegetround_ISA2) New.
2713 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
2714 (_FPU_MFFS): Move implementation...
2715 (_FPU_GETCW): Here.
2716 (_FPU_MFFSL): Move implementation....
2717 (_FPU_GET_RC_ISA300): Here. New.
2718 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
2719 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
2720 (fegetenv_status): New.
2721 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
2722 instead of fegetenv_register().
2723 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
2724
2725 2019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2726
2727 * benchtests/bench-math-inlines.c: Increase iterations.
2728 * benchtests/bench-memcmp.c: Likewise.
2729 * benchtests/bench-rawmemchr.c: Likewise.
2730 * benchtests/bench-strcmp.c: Likewise.
2731 * benchtests/bench-strcpy_chk.c: Likewise.
2732 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
2733 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
2734 (INNER_LOOP_ITERS_SMALL): Likewise.
2735 * benchtests/bench-strncat.c: Increase iterations.
2736 * benchtests/bench-strncmp.c: Increase iterations.
2737 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
2738 * benchtests/bench-strrchr.c: Increase iterations.
2739 * benchtests/bench-strstr.c: Keep iterations unchanged.
2740 * benchtests/bench-strtod.c: Increase iterations.
2741
2742 2019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2743
2744 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
2745 with INNER_LOOP_ITERS_LARGE.
2746 * benchtests/bench-memchr.c: Likewise.
2747 * benchtests/bench-rawmemchr.c: Likewise.
2748 * benchtests/bench-strcat.c: Likewise.
2749 * benchtests/bench-strchr.c: Likewise.
2750 * benchtests/bench-string.h: Likewise.
2751 * benchtests/bench-strlen.c: Likewise.
2752 * benchtests/bench-strncpy.c: Likewise.
2753 * benchtests/bench-strnlen.c: Likewise.
2754
2755 2019-06-28 Florian Weimer <fweimer@redhat.com>
2756
2757 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
2758 Use mmap instead of malloc. malloc with M_PERTURB writes to the
2759 entire allocated memory range.
2760
2761 2019-06-28 Tobias Klauser <tklauser@distanz.ch>
2762
2763 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
2764 (prepare_version_base): New helper inline function.
2765 (prepare_version): New macro replacing PREPARE_VERSION.
2766 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
2767
2768 2019-06-28 Florian Weimer <fweimer@redhat.com>
2769
2770 [BZ #24741]
2771 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
2772 mismatch in a versioned symbol reference.
2773 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
2774 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
2775 tst-sonamemove-dlopen.
2776 (module-names): Add tst-sonamemove-linkmod1,
2777 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
2778 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
2779 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
2780 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
2781 (tst-sonamemove-runmod1.so): Link against
2782 tst-sonamemove-runmod2.so.
2783 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
2784 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
2785 tst-sonamemove-runmod2.so.
2786 (tst-sonamemove-dlopen): Link with -ldl.
2787 (tst-sonamemove-dlopen.out): Likewise.
2788 * elf/tst-sonamemove-link.c: New file.
2789 * elf/tst-sonamemove-dlopen.c: Likewise.
2790 * elf/tst-sonamemove-linkmod1.c: Likewise.
2791 * elf/tst-sonamemove-linkmod1.map: Likewise.
2792 * elf/tst-sonamemove-runmod1.c: Likewise.
2793 * elf/tst-sonamemove-runmod1.map: Likewise.
2794 * elf/tst-sonamemove-runmod2.c: Likewise.
2795 * elf/tst-sonamemove-runmod2.map: Likewise.
2796
2797 2019-06-28 Florian Weimer <fweimer@redhat.com>
2798
2799 * support/xdlfcn.h (xdlvsym): Declare function.
2800 * support/xdlfcn.c (xdlvsym): Define funciton.
2801
2802 2019-06-28 Florian Weimer <fweimer@redhat.com>
2803
2804 [BZ #24744]
2805 io: Remove the copy_file_range emulation.
2806 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
2807 not define and call copy_file_range_compat.
2808 * io/Makefile (tests-static, tests-internal): Do not add
2809 tst-copy_file_range-compat.
2810 * io/copy_file_range-compat.c: Remove file.
2811 * io/copy_file_range.c (copy_file_range): Define as stub.
2812 * io/tst-copy_file_range-compat.c: Remove file.
2813 * io/tst-copy_file_range.c (xdevfile): Remove variable.
2814 (typical_sizes): Update comment. Remove 16K sizes.
2815 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
2816 Remove variables.
2817 (find_maximum_offset, pipe_as_source, pipe_as_destination)
2818 (delayed_write_failure_beginning, delayed_write_failure_end)
2819 (cross_device_failure, enospc_failure_1, enospc_failure)
2820 (oappend_failure): Remove functions.
2821 (tests): Adjust test case list.
2822 (do_test): Remove file system search code. Check for ENOSYS from
2823 copy_file_range. Do not free xdevfile.
2824 * manual/llio.texi (Copying File Data): Document ENOSYS error from
2825 copy_file_range. Do not document the EXDEV error, which future
2826 kernels may not report. Update the wording to reflect that
2827 further errors are possible.
2828 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2829 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
2830 not undefine.
2831 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2832 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
2833 Likewise.
2834 * sysdeps/unix/sysv/linux/kernel-features.h
2835 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
2836 Remove definition.
2837 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2838 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
2839 not undefine.
2840 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2841 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2842 Likewise.
2843
2844 2019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
2845
2846 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
2847 used as a mask for the mode argument of __vfprintf_internal.
2848 * stdio-common/printf-parse.h (printf_arg): New union member:
2849 pa_float128.
2850 * stdio-common/vfprintf-internal.c
2851 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
2852 (PARSE_FLOAT_VA_ARG): Likewise.
2853 (SETUP_FLOAT128_INFO): Likewise.
2854 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
2855 SETUP_FLOAT128_INFO.
2856 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
2857 floating-point value to the new union member, pa_float128.
2858 (printf_positional): Zero-initialize args_value[cnt] with memset.
2859
2860 2019-06-27 Florian Weimer <fweimer@redhat.com>
2861
2862 [BZ #24740]
2863 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
2864 buffer size if necessary.
2865 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
2866 Likewise.
2867 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
2868 New function.
2869 (large_buffer_checks): Likewise.
2870 (do_test): Call large_buffer_checks.
2871
2872 2019-06-26 H.J. Lu <hongjiu.lu@intel.com>
2873
2874 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
2875 * sysdeps/x86/dl-lookupcfg.h: Here.
2876 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
2877
2878 2019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2879
2880 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2881 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
2882 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
2883 file.
2884 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
2885 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
2886 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
2887 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
2888 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
2889
2890 * sysdeps/powerpc/powerpc32/fpu/Makefile
2891 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
2892 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
2893 and fctidz optimization.
2894 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
2895 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
2896 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
2897 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
2898 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
2899 CFLAGS-s_lround-power5+.c): New rule.
2900 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
2901 New file.
2902 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
2903 Likewise.
2904 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
2905 Likewise.
2906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
2907 Likewise.
2908 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
2909 Likewise.
2910 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
2911 Remove file.
2912 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
2913 Likewise.
2914 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
2915 Likewise.
2916 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
2917 Likewise.
2918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
2919 Likewise.
2920 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2921 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
2922 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2923 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
2924 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2925 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2926 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
2927
2928 2019-06-26 Vincent Chen <vincentc@andestech.com>
2929
2930 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
2931 specific system calls, fp_udfiex_crtl and udftrap.
2932
2933 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2934
2935 * nptl/tst-eintr1.c (tf1): Add return statement.
2936 (do_test): Remove unused th variable.
2937
2938 2019-06-26 Stefan Liebler <stli@linux.ibm.com>
2939
2940 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
2941 Return error if get_character fails.
2942
2943 2019-06-25 Stefan Liebler <stli@linux.ibm.com>
2944
2945 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2946
2947 2019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
2948
2949 [BZ #24652]
2950 * localedata/locales/szl_PL (day): Use the correct Unicode
2951 sequences instead of non-ASCII characters.
2952
2953 2019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
2954
2955 [BZ #24652]
2956 * localedata/locales/szl_PL (abday): Spelling corrections.
2957 (day): Likewise.
2958 (abmon): Likewise.
2959 (mon): Rename to...
2960 (alt_mon): This, then apply spelling corrections.
2961 (mon): New entry, month names in the genitive case.
2962
2963 2019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
2964
2965 [BZ #23831]
2966 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
2967 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
2968 (thousands_sep): Likewise.
2969 (grouping): Set to 3;3.
2970
2971 2019-06-21 Tobias Klauser <tklauser@distanz.ch>
2972
2973 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
2974 PREPARE_VERSION_KNOWN.
2975 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
2976 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
2977 define.
2978 (VDSO_HASH_LINUX_2_6_39): Likewise.
2979 (VDSO_NAME_LINUX_4_9): Likewise.
2980 (VDSO_HASH_LINUX_4_9): Likewise.
2981 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
2982 * sysdeps/unix/sysv/linux/powerpc/init-first.c
2983 (_libc_vdso_platform_setup): Likewise.
2984 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
2985 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
2986 Likewise.
2987 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
2988 Likewise.
2989
2990 2019-06-20 Mike Crowe <mac@mcrowe.com>
2991
2992 * nptl/eintr.c: Use libsupport.
2993 * nptl/tst-eintr1.c: Likewise.
2994 * nptl/tst-eintr2.c: Likewise.
2995 * nptl/tst-eintr3.c: Likewise.
2996 * nptl/tst-eintr4.c: Likewise.
2997 * nptl/tst-eintr5.c: Likewise.
2998 * nptl/tst-mutex-errorcheck.c: Likewise.
2999 * nptl/tst-mutex5.c: Likewise.
3000
3001 * support/test-driver.h: Add verbose_printf macro.
3002
3003 * support/xtime.h: Add xclock_now() helper function.
3004
3005 2019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3006 Florian Weimer <fweimer@redhat.com>
3007
3008 [BZ #24228]
3009 * libio/genops.c (_IO_unbuffer_all)
3010 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3011 buffers and access _IO_FILE_complete members of legacy libio streams.
3012 * libio/tst-bz24228.c: New file.
3013 * libio/tst-bz24228.map: Likewise.
3014 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3015 [build-shared] (generated): Add tst-bz24228.mtrace and
3016 tst-bz24228.check.
3017 [run-built-tests && build-shared] (tests-special): Add
3018 $(objpfx)tst-bz24228-mem.out.
3019 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3020 ($(objpfx)tst-bz24228-mem.out): New rule.
3021
3022 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
3023
3024 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3025 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3026 (__FPU_MFFSL): Likewise.
3027 (_FPU_SETCW): Likewise.
3028
3029 2019-06-19 Stan Shebs <stanshebs@google.com>
3030 Raoni Fassina Firmino <raoni@linux.ibm.com>
3031
3032 [BZ #24640]
3033 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3034 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3035 static-linking version.
3036 * sysdeps/unix/sysv/linux/powerpc/Makefile
3037 (tests-static): Add test-gettimebasefreq-static.
3038 (tests): Likewise.
3039 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3040 New file.
3041
3042 2019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
3043
3044 [BZ #24614]
3045 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3046 between the currency symbol and the minus sign).
3047 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3048
3049 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
3050
3051 [BZ #24556]
3052 * string/test-strcasestr.c (check_result): Add NULL check.
3053 * nss/tst-field.c (check_rewrite): Likewise.
3054 * benchtests/bench-strstr.c (do_one_test): Likewise.
3055 * string/test-strstr.c (check_result): Likewise.
3056 * argp/argp-test.c (popt): Increase size of buf to 12.
3057 * benchtests/bench-malloc-simple.c (bench):
3058 Do not initialize tests array out of bounds.
3059
3060 2019-06-19 Florian Weimer <fweimer@redhat.com>
3061
3062 [BZ #24166]
3063 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3064 dls_serpath field.
3065
3066 2019-06-18 Florian Weimer <fweimer@redhat.com>
3067
3068 [BZ #24323]
3069 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3070 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3071 fail when called from dlopen.
3072 * elf/Makefile [have-fpie && build-shared] (tests): Add
3073 tst-dlopen-pie.
3074 (tst-dlopen-pie): Link with -ldl.
3075 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3076 * elf/tst-dlopen-pie.c (do_test): New file.
3077
3078 2019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
3079
3080 [BZ #24614]
3081 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3082 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3083 between the currency symbol and the minus sign).
3084 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3085 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3086
3087 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3088
3089 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3090 sysdep-rtld-routines): Remove rules.
3091 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3092 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3093 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3094 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3095 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3096 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3097 vDSO path for SHARED.
3098 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3099 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3100 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3101 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3102 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3103 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3104
3105 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3106 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3107 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3108 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3109 CFLAGS-s_llround-power5+.c): New rule.
3110 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3111 New file.
3112 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3113 Likewise.
3114 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3115 Likewise.
3116 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3117 Likewise.
3118 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3119 Likewise.
3120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3121 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3123 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3125 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3126 * sysdeps/powerpc/powerpc64/fpu/Makefile
3127 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3128 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3129 (libm-sysdep_routines): Remove s_llround-* objects.
3130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3131 file.
3132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3133 Likewise.
3134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3135 Likewise.
3136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3137 Likewise.
3138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3139 Likewise.
3140 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3141 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3142 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3143 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3144 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3145 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3146 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3147 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3148 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3149 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3150 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3151 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3152 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3153 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3154
3155 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3156 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3157 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3158 * sysdeps/powerpc/powerpc32/fpu/Makefile
3159 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3160 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3161 optimization.
3162 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3163 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3164 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3165 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3166 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3167 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3168 CFLAGS-s_lrint-ppc32.c): New rule.
3169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3170 Remove file.
3171 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3172 Likewise.
3173 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3174 Likewise.
3175 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3176 Likewise.
3177 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3178 Likewise.
3179 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3180 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3181 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3182 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3183 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3184 New file.
3185 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3186 Likewise.
3187 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3188 Likewise.
3189 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3190 Likewise.
3191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3192 Likewise.
3193
3194 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3195 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3196 s_llrint-ppc64.
3197 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3198 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3199 file.
3200 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3201 Likewise.
3202 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3203 Likewise.
3204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3205 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3207 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3209 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3210 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3211 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3212 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3213 (libm-sysdep_routines): Remove s_llrint-* objects.
3214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3215 file.
3216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3217 Likewise.
3218 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3219 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3220 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3221 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3222 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3223 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3224 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3225 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3226 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3227 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3228
3229 2019-06-14 Florian Weimer <fweimer@redhat.com>
3230
3231 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3232 argument to __glibc_has_include to inhibit macro expansion.
3233
3234 2019-06-14 Florian Weimer <fweimer@redhat.com>
3235
3236 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3237 function-like macro, so that __has_include can inhibit expansion
3238 of its argument.
3239
3240 2019-06-13 Joseph Myers <joseph@codesourcery.com>
3241
3242 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3243 New macro.
3244
3245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3246 Allow memset in libc.so.
3247
3248 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3249
3250 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3251 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3252 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3253 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3254 symbols at load time.
3255 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3256
3257 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3258
3259 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3260 (DT_AARCH64_VARIANT_PCS): Define.
3261
3262 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3263
3264 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3265 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3266 objects.
3267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3268 Remove file.
3269 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3270 Likewise.
3271 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3272 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3273 Likewise.
3274 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3275 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3276 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3277 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3278 Remove s_finite* objects.
3279 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3281 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3284 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3285 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3286 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3287 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3288 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3289
3290 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3291 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3292
3293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3294 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3295 objects.
3296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3297 Remove file.
3298 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3299 Likewise.
3300 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3302 Likewise.
3303 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3304 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3305 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3306 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3307 Remove s_isinf* and s_isinf* objects.
3308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3309 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3310 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3312 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3314 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3315 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3316 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3317 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3318
3319 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3320 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3321
3322 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3323 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3324 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3325 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3326 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3327 s_isnanf-* objects.
3328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3329 Remove file
3330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3331 Likewise.
3332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3333 Likewise.
3334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3335 Likewise.
3336 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3338 Likewise.
3339 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3340 Likewise.
3341 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3342 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3343 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3344 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3345 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3346 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3347 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3348 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3349 Remove s_isnan-* and s_isnanf-* objects.
3350 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3351 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3353 Likewise.
3354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3359 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3360 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3361 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3362 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3363 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3364 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3365 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3366 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3367
3368 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3369 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3370
3371 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3372 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3373 CFLAGS-bench-isfinite.c): New rule.
3374 * benchtests/isnan-input: New file.
3375 * benchtests/isinf-input: New file.
3376 * benchtests/isfinite-input: New file.
3377
3378 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3379 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3380 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3381 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3383 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3384 s_copysign-ppc32.
3385 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3386 Remove file.
3387 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3388 Likewise.
3389 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3390 Likewise.
3391 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3392 Likewise.
3393 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3394 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3395 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3396 Remove s_copysign-power6 s_copysign-ppc64.
3397 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3398 Remove file.
3399 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3400 Likewise.
3401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3403 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3404 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3405 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3406 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3407
3408 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3409 round_to_integer_float, round_mode): Add RINT handling.
3410 (reset_fenv_mode): New symbol.
3411 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3412 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3413 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3414 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3415 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3416 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3417
3418 2019-06-12 Florian Weimer <fweimer@redhat.com>
3419
3420 [BZ #24632]
3421 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3422 * libio/freopen.c (freopen): Use it.
3423
3424 2019-06-12 Florian Weimer <fweimer@redhat.com>
3425
3426 Linux: Deprecate sysctl.
3427 * include/sysctl.h (__sysctl): Remove declaration.
3428 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3429 check.
3430 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3431 (sysctl): Add deprecation attribute.
3432 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3433 directly, to avoid the deprecation warning. Do not include
3434 <string.h>.
3435 (__sysctl): Remove hidden alias.
3436
3437 2019-06-12 Florian Weimer <fweimer@redhat.com>
3438
3439 Linux: Use kernel headers for statx definitions if available.
3440 * include/bits/statx-generic.h: New file.
3441 * include/bits/types/struct_statx.h: Likewise.
3442 * include/bits/types/struct_statx_timestamp.h: Likewise.
3443 * io/Makefile (headers): Add bits/statx-generic.h.
3444 * io/bits/statx-generic.h: New file. Partly copied from
3445 io/bits/statx.h.
3446 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3447 define original_statx.
3448 * io/bits/types/struct_statx.h: Likewise.
3449 * io/bits/types/struct_statx_timestamp.h: Likewise.
3450 (statx_generic): Use original_statx.
3451 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3452 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3453
3454 2019-06-12 Florian Weimer <fweimer@redhat.com>
3455
3456 * misc/sys/cdefs.h (__glibc_has_include): Define.
3457
3458 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3459
3460 * string/memmem.c (__memmem): Rewrite to improve performance.
3461
3462 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3463
3464 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3465 warning.
3466 (two_way_long_needle): Block inlining.
3467 * string/strstr.c (strstr2): Add new function.
3468 (strstr3): Likewise.
3469 (STRSTR): Completely rewrite strstr to improve performance.
3470
3471 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3472
3473 * benchtests/bench-strstr.c (test_hard_needle): New function.
3474
3475 2019-06-10 Joseph Myers <joseph@codesourcery.com>
3476
3477 * malloc/tst-calloc.c: Include <libc-diag.h>.
3478 (null_test): Ignore -Wunused-result around calls to calloc.
3479 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3480 (do_test): Ignore -Wunused-result around call to malloc.
3481
3482 2019-06-07 Florian Weimer <fweimer@redhat.com>
3483
3484 Linux: Add getdents64 system call.
3485 * include/dirnent.h (getdents): Add comment and change buffer
3486 argument type to void *.
3487 (getdents64): Likewise. Add hidden prototype.
3488 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3489 getdents64.
3490 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3491 Add tst-getdents64.
3492 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3493 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3494 argument type to void *.
3495 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3496 Add hidden definition and getdents64 alias.
3497 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3498 Likewise.
3499 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3500 * manual/filesys.texi (Accessing Directories): Add Low-level
3501 Directory Access node reference.
3502 (Opening a Directory): Cross-reference it.
3503 (Low-level Directory Access): New node.
3504 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3505 getdents64.
3506 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3507 Likewise.
3508 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3509 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3510 Likewise.
3511 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3512 Likewise.
3513 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3514 Likewise.
3515 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3516 Likewise.
3517 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3518 Likewise.
3519 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3520 Likewise.
3521 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3522 Likewise.
3523 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3524 (GLIBC_2.30): Likewise.
3525 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3526 (GLIBC_2.30): Likewise.
3527 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3528 (GLIBC_2.30): Likewise.
3529 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3530 (GLIBC_2.30): Likewise.
3531 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3532 Likewise.
3533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3534 (GLIBC_2.30): Likewise.
3535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3536 (GLIBC_2.30): Likewise.
3537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3538 (GLIBC_2.30): Likewise.
3539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3540 (GLIBC_2.30): Likewise.
3541 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3542 Likewise.
3543 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3544 Likewise.
3545 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3546 Likewise.
3547 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3548 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3549 Likewise.
3550 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3551 Likewise.
3552 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3553 Likewise.
3554 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3555 Likewise.
3556
3557 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
3558
3559 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3560 (__FPU_MFFS): New.
3561 (__FPU_MFFSL): New.
3562 (_FPU_GET_RC): New.
3563 (_FPU_GETCW): Use __FPU_MFFS().
3564 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3565
3566 2019-06-06 Florian Weimer <fweimer@redhat.com>
3567
3568 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3569 internal GCC preprocessor identifier __has_include__.
3570
3571 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
3572
3573 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3574 with call to equivalent function.
3575
3576 2019-06-04 Florian Weimer <fweimer@redhat.com>
3577
3578 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3579 (do_release_shlib): Adjust for __twalk_r.
3580 (__gconv_release_shlib): Call __twalk_r.
3581
3582 2019-06-04 Andreas Schwab <schwab@suse.de>
3583
3584 [BZ #18830]
3585 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3586 no irreversible characters occurred.
3587 * iconv/gconv_simple.c (internal_ucs4_loop)
3588 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3589 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3590 (ucs4_internal_loop_single, internal_ucs4le_loop)
3591 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3592 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3593 (ucs4le_internal_loop_single): Add const to outend.
3594 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3595 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3596 * iconv/Makefile (tests): Add tst-iconv7.
3597 * iconv/tst-iconv7.c: New file.
3598
3599 2019-06-03 Joseph Myers <joseph@codesourcery.com>
3600
3601 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3602
3603 2019-06-01 Florian Weimer <fweimer@redhat.com>
3604
3605 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3606 * sysdeps/unix/sysv/linux/arm/Makefile
3607 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3608 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3609 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3610 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3611 compatibility symbols.
3612
3613 2019-05-31 Florian Weimer <fweimer@redhat.com>
3614
3615 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3616 system calls for the arm architecture: breakpoint, get_tls,
3617 set_tls, usr26, usr32.
3618
3619 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3620
3621 * sysdeps/powerpc/Makefile
3622 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3623 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3624 Declare '.machine power7' to get support for ldbrx.
3625 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3626 directive based on the directory of the file.
3627 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3628 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3629 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3630 '.machine' directive.
3631 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3632 (VADDUQM_V7_V8): Remove.
3633 (__STRCASECMP): Replace macros with actual instructions.
3634 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3635 '.machine' directive.
3636 (VCLZD_V8_v7): Remove.
3637 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3638
3639 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3640
3641 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3642 Remove file.
3643 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3644
3645 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3646
3647 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3648 NEARBYINT handling.
3649 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3650 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3651 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
3652 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
3653 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
3654 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
3655
3656 2019-05-28 mansayk <6688000@gmail.com>
3657
3658 [BZ #24370]
3659 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
3660
3661 2019-05-28 mansayk <6688000@gmail.com>
3662
3663 [BZ #24369]
3664 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
3665 (abmon): Likewise, but remove the trailing dots.
3666
3667 2019-05-28 Joseph Myers <joseph@codesourcery.com>
3668
3669 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
3670
3671 2019-05-27 Florian Weimer <fweimer@redhat.com>
3672
3673 * nptl/nptl-init.c: Add comment.
3674
3675 2019-05-24 Florian Weimer <fweimer@redhat.com>
3676
3677 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
3678 struct in_addr/struct in6_addr alignment.
3679
3680 2019-05-23 Joseph Myers <joseph@codesourcery.com>
3681
3682 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3683 (F_SEAL_FUTURE_WRITE): New macro.
3684
3685 2019-05-23 Alexandra Hájková <ahajkova@redhat.com>
3686
3687 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
3688 * elf/tst-ldconfig-bad-aux-cache.c: New file.
3689 * elf/tst-ldconfig_aux-cache.root: New directory.
3690 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
3691 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
3692 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
3693
3694 2019-05-22 Zack Weinberg <zackw@panix.com>
3695
3696 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
3697 host type.
3698 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
3699 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
3700
3701 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
3702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
3703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
3704 Delete.
3705
3706 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
3707 Issue an #error if used with a compiler in SPE-float mode.
3708 * sysdeps/powerpc/powerpc32/__longjmp_common.S
3709 * sysdeps/powerpc/powerpc32/setjmp_common.S
3710 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
3711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
3712 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
3713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
3714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
3715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3716 Remove code to preserve SPE register state.
3717
3718 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
3719 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
3720 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
3721 Remove __SPE__ ifndefs.
3722
3723 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
3724
3725 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
3726 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
3727 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
3728 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
3729 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
3730 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
3731 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
3732 (INNER_LOOP_ITERS_MEDIUM): New define.
3733 (INNER_LOOP_ITERS_SMALL): New define.
3734 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
3735 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
3736 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
3737 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
3738 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
3739
3740 2019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3741
3742 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
3743 New define.
3744 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
3745 (SEMTIMEDOP_IPC_ARGS): Likewise.
3746
3747 2019-05-21 Florian Weimer <fweimer@redhat.com>
3748
3749 [BZ #24584]
3750 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
3751 before updating __counter field and release it afterwards. Add
3752 overflow check.
3753 * iconv/gconv.h (struct __gconv_step): Mention synchronization
3754 requirement for __counter member.
3755
3756 2019-05-21 Florian Weimer <fweimer@redhat.com>
3757
3758 [BZ #24583]
3759 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
3760 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
3761 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
3762 instead of __gconv_release_step.
3763 * libio/Makefile (tests): Add tst-wfile-gconv.
3764 (tests-container): Add tst-wfile-ascii.
3765 (tst-wfile-gconv-ENV): Enable mtrace.
3766 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
3767 (tests-special): Add tst-wfile-gconv-mem.out.
3768 (tst-wfile-gconv.out): Depend on locales.
3769 (tst-wfile-gconv-mem.out): Add mtrace rule.
3770 * libio/tst-wfile-ascii.c: New file.
3771 * libio/tst-wfile-gconv.c: Likewise.
3772
3773 2019-05-20 Florian Weimer <fweimer@redhat.com>
3774
3775 [BZ #24588]
3776 libio: Remove codecvt vtable.
3777 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
3778 __libio_codecvt.
3779 * libio/iofgetpos.c (_IO_new_fgetpos): Call
3780 __libio_codecvt_encoding.
3781 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
3782 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
3783 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
3784 * libio/iofwide.c (__libio_codecvt): Remove variable.
3785 (_IO_fwide): Do not copy __libio_codecvt.
3786 (__libio_codecvt_out): Rename from do_out and export.
3787 (do_unshift): Remove function.
3788 (__libio_codecvt_in): Rename from do_in and export.
3789 (__libio_codecvt_encoding): Rename from do_encoding and export.
3790 (do_always_noconv): Remove function.
3791 (__libio_codecvt_length): Rename from do_length and export.
3792 (do_max_length): Remove function.
3793 * libio/libio.h (enum __codecvt_result): Remove definition; moved
3794 to libioP.h.
3795 (struct _IO_codecvt): Remove fields __codecvt_destr,
3796 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
3797 __codecvt_do_encoding, __codecvt_do_always_noconv,
3798 __codecvt_do_length, __codecvt_do_max_length.
3799 * libio/libioP.h (enum __codecvt_result): Define; moved from
3800 libio.h.
3801 (__libio_codecvt_out, __libio_codecvt_in)
3802 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
3803 functions.
3804 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
3805 (_IO_wfile_underflow): Call __libio_codecvt_in.
3806 (_IO_wfile_underflow): Likewise.
3807 (_IO_wfile_underflow_mmap): Likewise.
3808 (_IO_wfile_sync): Call __libio_codecvt_encoding,
3809 __libio_codecvt_length.
3810 (adjust_wide_data): Call __libio_codecvt_encoding,
3811 __libio_codecvt_in.
3812 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
3813 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
3814 __libio_codecvt_length.
3815
3816 2019-05-20 Florian Weimer <fweimer@redhat.com>
3817
3818 * support/support.h (support_sbindir_prefix): Declare.
3819 (support_install_rootsbindir): Update comment.
3820 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
3821 * support/support_paths.c (support_sbindir_prefix): Define.
3822
3823 2019-05-20 Mike Crowe <mac@mcrowe.com>
3824
3825 * support/timespec.c: Add backslash to correct newline in failure
3826 message.
3827
3828 * support/timespec.h: Correct confusing comment.
3829
3830 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3831
3832 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
3833 define.
3834 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
3835 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
3836 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
3837 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
3838
3839 [BZ #24570]
3840 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
3841 usage.
3842
3843 2019-05-20 Joseph Myers <joseph@codesourcery.com>
3844
3845 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
3846 (NT_ARM_PACG_KEYS): Likewise.
3847
3848 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
3849
3850 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
3851 (tcache_put): Remove redundant assert.
3852 (tcache_get): Remove redundant asserts.
3853 (__libc_malloc): Check tcache count is not zero.
3854 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
3855
3856 2019-05-17 Florian Weimer <fweimer@redhat.com>
3857
3858 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
3859
3860 2019-05-16 Joseph Myers <joseph@codesourcery.com>
3861
3862 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3863 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
3864 0x050100].
3865 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
3866 Likewise.
3867 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3868 (__ASSUME_STATX): Likewise.
3869
3870 2019-05-16 Florian Weimer <fweimer@redhat.com>
3871
3872 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
3873 flags argument.
3874 (LINE_PARSER): Do not map IPv4 addresses.
3875 (internal_nis_gethostent_r): Remove flags argument. Adjust call
3876 to parse_line.
3877 (_nss_nis_gethostent_r): Always pass AF_INET to
3878 internal_nis_gethostent_r.
3879 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3880 to parse_line.
3881 (_nss_nis_gethostbyname2_r): Adjust call to
3882 internal_nis_gethostent_r.
3883 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
3884 call to internal_nis_gethostent_r.
3885 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
3886 from parse_line.
3887 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
3888 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
3889 Remove flags argument. Do not map IPv4 addresses.
3890 (internal_nisplus_gethostent_r): Adjust call to
3891 _nss_nisplus_parse_hostent.
3892 (internal_gethostbyname2_r): Remove flags argument. Adjust call
3893 to _nss_nisplus_parse_hostent.
3894 (_nss_nisplus_gethostbyname2_r): Adjust call to
3895 internal_gethostbyname2_r.
3896 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
3897 Adjust call to internal_gethostbyname2_r.
3898 (_nss_nisplus_gethostbyaddr_r): Adjust call to
3899 _nss_nisplus_parse_hostent.
3900 (_nss_nisplus_gethostbyname4_r): Adjust call to
3901 internal_gethostbyname2_r.
3902
3903 2019-05-16 Florian Weimer <fweimer@redhat.com>
3904
3905 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
3906 Remove flags.
3907 (LINE_PARSER): Remove address mapping.
3908 (EXTRA_ARGS_VALUE): Remove flags argument.
3909 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
3910 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
3911 gethostbyname3_multi.
3912 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
3913 _nss_files_gethostbyname3_r.
3914 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
3915
3916 2019-05-16 Florian Weimer <fweimer@redhat.com>
3917
3918 * support/support_test_compare_blob.c (report_blob): Report
3919 incorrect NULL blobs.
3920
3921 2019-05-15 Mark Wielaard <mark@klomp.org>
3922
3923 [BZ# 24476]
3924 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
3925 __libc_once_get (once) and static_buf == NULL.
3926 (__dlerror): Check we have a valid key, set result to static_buf
3927 otherwise.
3928
3929 2019-05-15 Andreas Schwab <schwab@suse.de>
3930
3931 [BZ #20568]
3932 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
3933 __codecvt_do_length.
3934 * libio/Makefile (tests): Add tst-wfile-sync.
3935 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
3936 * libio/tst-wfile-sync.c: New file.
3937 * libio/tst-wfile-sync.input: New file.
3938
3939 2019-05-15 Florian Weimer <fweimer@redhat.com>
3940
3941 nss: Turn __nss_database_lookup into a compatibility symbol.
3942 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
3943 __nss_database_lookup.
3944 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
3945 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
3946 __nss_database_lookup.
3947 (__nss_next): Move to …
3948 * nss/compat-lookup.c (nss_next): … here. Change it to fail
3949 unconditionally.
3950 (__nss_database_lookup): New function.
3951 * nss/Versions (GLIBC_2.0): Update comment.
3952 (GLIBC_PRIVATE): Export __nss_database_lookup2.
3953 * grp/initgroups.c (internal_getgrouplist): Call
3954 __nss_database_lookup2 instead of __nss_database_lookup.
3955 * nscd/aicache.c (addhstaiX): Likewise.
3956 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3957 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
3958 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
3959 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
3960 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
3961 Likewise.
3962 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
3963 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
3964 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3965
3966 2019-05-15 Alexandra Hájková <ahajkova@redhat.com>
3967
3968 * support/support.h (support_install_rootsbindir): New variable.
3969 * support/support_paths.c: Likewise.
3970 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
3971
3972 2019-05-15 Florian Weimer <fweimer@redhat.com>
3973
3974 * iconv/gconv.h (__gconv_transliterate): Move declaration …
3975 * iconv/gconv_int.h (__gconv_transliterate): … here.
3976 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
3977 * iconv/skeleton.c: Likewise.
3978
3979 2019-05-14 Florian Weimer <fweimer@redhat.com>
3980
3981 Linux: Add the tgkill function.
3982 * bits/signal_ext.h: New file.
3983 * manual/signal.texi (Signaling Another Process): Document tgkill.
3984 * signal/Makefile (headers): Add bits/signal_ext.h.
3985 * signal/signal.h: Include <bits/signal_ext.h>.
3986 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
3987 (tst-tgkill): Link with libpthread.
3988 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
3989 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
3990 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
3991 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3992 tgkill.
3993 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3994 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3995 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3996 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3997 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3998 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3999 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4000 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4001 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4002 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4003 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4004 Likewise.
4005 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4006 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4007 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4008 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4009 Likewise.
4010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4011 Likewise.
4012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4013 Likewise.
4014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4015 Likewise.
4016 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4017 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4018 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4019 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4020 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4021 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4022 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4023 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4024
4025 2019-05-14 Carlos O'Donell <carlos@redhat.com>
4026
4027 * manual/search.texi (Tree Search Function): Adjust twalk_r
4028 documentation.
4029
4030 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4031
4032 [BZ #24544]
4033 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4034 pre-defined value.
4035
4036 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4037 * support/support.h (support_bindir_prefix): New variable.
4038 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4039
4040 * config.make.in (bindir): New variable.
4041
4042 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4043 (lll_trylock): Call __lll_trylock.
4044 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4045 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4046 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4047 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4048 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4049 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4050 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4051 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4052 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4053 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4054 lowlevellock-futex.h.
4055
4056 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4057 initialization for LLL_LOCK_INITIALIZER different than 0.
4058 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4059 Assume LLL_LOCK_INITIALIZER being 0.
4060 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4061 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4062 Likewise.
4063 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4064 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4065
4066 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4067 Optimize futex call and add systemtap probe.
4068
4069 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4070 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4071 __libc_disable_asynccancel, __librt_enable_asynccancel,
4072 __libc_disable_asynccancel, __librt_enable_asynccancel,
4073 __librt_disable_asynccancel): Move to ...
4074 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4075 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4076 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4077 * sysdeps/generic/single-thread.h: New file.
4078 * sysdeps/unix/sysdep.h: Include single-thread.h.
4079 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4080 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4081
4082 2019-05-08 Mike FABIAN <mfabian@redhat.com>
4083
4084 [BZ #24535]
4085 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4086 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4087 Unicode 12.1.0.
4088 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4089 * localedata/unicode-gen/PropList.txt: Likewise.
4090 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4091 * localedata/charmaps/UTF-8: Regenerate.
4092 * localedata/locales/i18n_ctype: Likewise.
4093 * localedata/locales/tr_TR: Likewise.
4094 * localedata/locales/translit_circle: Likewise.
4095 * localedata/locales/translit_cjk_compat: Likewise.
4096 * localedata/locales/translit_combining: Likewise.
4097 * localedata/locales/translit_compat: Likewise.
4098 * localedata/locales/translit_font: Likewise.
4099 * localedata/locales/translit_fraction: Likewise.
4100
4101 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4102
4103 [BZ #24531]
4104 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4105 (do_set_tcache_count): Only update if count is small enough.
4106 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4107
4108 2019-05-10 Florian Weimer <fweimer@redhat.com>
4109
4110 * nptl/sem_close.c (struct walk_closure): Define.
4111 (walker): Adjust for __twalk_r.
4112 (sem_close): Call __twalk_r.
4113
4114 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4115
4116 * support/timespec.c (test_timespec_before_impl,
4117 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4118 insted of long int.
4119
4120 2019-05-09 Mike Crowe <mac@mcrowe.com>
4121
4122 * nptl/tst-abstime.c: Use libsupport.
4123
4124 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4125 small bug where only tv.tv_usec was checked which could cause an
4126 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4127 than a second.
4128
4129 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4130 libsupport.
4131
4132 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4133 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4134
4135 * nptl/tst-cond11.c: Use libsupport.
4136
4137 * support/timespec.h: New file. Provide timespec helper functions
4138 along with macros in the style of those in check.h.
4139 * support/timespec.c: New file. Implement check functions declared
4140 in support/timespec.h.
4141 * support/timespec-add.c: New file from gnulib containing
4142 timespec_add implementation that handles overflow.
4143 * support/timespec-sub.c: New file from gnulib containing
4144 timespec_sub implementation that handles overflow.
4145 * support/README: Mention timespec.h.
4146
4147 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4148
4149 [BZ #24537]
4150 * nptl/Makefile: Move tst-eintr1 to xtests.
4151
4152 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4153
4154 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4155 TRUNC handling.
4156 (round_mode): Add definition for TRUNC.
4157 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4158 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4159 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4160 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4161 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4162 Likewise.
4163 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4164 Likewise.
4165 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4166 Likewise.
4167 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4168 Likewise.
4169 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4170 file.
4171 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4172 Likewise.
4173 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4174 Likewise.
4175 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4176 Likewise.
4177 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4178 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4179 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4180 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4181 s_truncf-power5+, and s_truncf-ppc64.
4182 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4183 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4184 file.
4185 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4186 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4187 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4188 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4189 file.
4190 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4191 Likewise.
4192 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4193 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4194 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4195 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4196 s_truncf-power5+, and s_truncf-ppc64.
4197 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4198 file.
4199 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4200 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4201 Likewise.
4202 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4203 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4204 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4205 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4206 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4207
4208 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4209 ROUND handling.
4210 (round_mode): Add definition for ROUND.
4211 (round_to_integer_float): Likewise.
4212 * sysdeps/powerpc/fpu/s_round.c: New file.
4213 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4214 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4215 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4216 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4217 Likewise.
4218 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4219 Likewise.
4220 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4221 Likewise.
4222 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4223 Likewise.
4224 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4225 file.
4226 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4227 Likewise.
4228 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4229 Likewise.
4230 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4231 Likewise.
4232 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4233 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4234 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4235 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4236 s_roundf-power5+, and s_roundf-ppc64.
4237 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4238 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4239 file.
4240 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4242 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4243 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4244 file.
4245 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4246 Likewise.
4247 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4248 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4249 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4250 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4251 s_roundf-power5+, and s_roundf-ppc64.
4252 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4253 file.
4254 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4255 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4256 Likewise.
4257 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4258 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4259 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4260 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4261 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4262
4263 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4264 Add FLOOR option.
4265 (round_mode): Add definition for FLOOR.
4266 * sysdeps/powerpc/fpu/s_floor.c: New file.
4267 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4268 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4269 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4270 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4271 Remove file.
4272 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4273 Likewise
4274 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4275 Likewise.
4276 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4277 Likewise.
4278 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4279 New file.
4280 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4281 Likewise.
4282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4283 Likewise.
4284 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4285 Likewise.
4286 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4287 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4288 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4289 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4290 s_floorf-power5+, and s_floorf-ppc64.
4291 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4292 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4293 file.
4294 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4296 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4297 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4298 file.
4299 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4300 Likewise.
4301 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4302 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4303 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4304 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4305 s_floorf-power5+, and s_floorf-ppc64.
4306 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4307 file.
4308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4309 file.
4310 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4311 Likewise.
4312 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4313 Likewise.
4314 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4315 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4316 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4317 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4318
4319 2019-05-08 Mike Crowe <mac@mcrowe.com>
4320
4321 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4322 clock_gettime wrapper for use in tests that fails the test rather
4323 than returning failure.
4324
4325 * support/xtime.h: New file to declare xclock_gettime.
4326
4327 * support/Makefile: Add xclock_gettime.c.
4328
4329 * support/README: Mention xtime.h.
4330
4331 2019-05-08 Florian Weimer <fweimer@redhat.com>
4332
4333 malloc/tst-mallocfork2: Use process-shared barriers.
4334 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4335 (signal_count, sigusr1_sender_pid): Remove.
4336 (iterations): Define constant.
4337 (shared): New variable.
4338 (sigusr1_received): Update comment.
4339 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4340 (signal_sender): Optional use barriers to avoid sending signals
4341 during irrelevant times.
4342 (do_it): Initialize variable shared. Use xfork for error
4343 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4344 the iteration count, independent of signal delivery. Check for
4345 deadlocks in fork. Introduce barriers for reducing signal
4346 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4347 replaced by the barriers. Count signals during fork/free/malloc
4348 and report them.
4349 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4350
4351 2019-05-07 Joseph Myers <joseph@codesourcery.com>
4352
4353 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4354 version to 5.1.
4355 (clock_adjtime64) New syscall.
4356 (clock_getres_time64) Likewise.
4357 (clock_gettime64) Likewise.
4358 (clock_nanosleep_time64) Likewise.
4359 (clock_settime64) Likewise.
4360 (futex_time64) Likewise.
4361 (io_pgetevents_time64) Likewise.
4362 (io_uring_enter) Likewise.
4363 (io_uring_register) Likewise.
4364 (io_uring_setup) Likewise.
4365 (mq_timedreceive_time64) Likewise.
4366 (mq_timedsend_time64) Likewise.
4367 (pidfd_send_signal) Likewise.
4368 (ppoll_time64) Likewise.
4369 (pselect6_time64) Likewise.
4370 (recvmmsg_time64) Likewise.
4371 (rt_sigtimedwait_time64) Likewise.
4372 (sched_rr_get_interval_time64) Likewise.
4373 (semtimedop_time64) Likewise.
4374 (timer_gettime64) Likewise.
4375 (timer_settime64) Likewise.
4376 (timerfd_gettime64) Likewise.
4377 (timerfd_settime64) Likewise.
4378 (utimensat_time64) Likewise.
4379
4380 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4381 version to 9 branch.
4382
4383 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4384
4385 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4386 __memmove_thunderx2 to the list of implementations
4387 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4388 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4389 (__memmove_thunderx2): Rewritten using SIMD ld/st
4390 (__memcpy_thunderx2): Fixed handling overlapping cases.
4391 Used ldp/stp instead of ldr/str if possible. Made loops
4392 tails branchless.
4393
4394 2019-05-03 Florian Weimer <fweimer@redhat.com>
4395
4396 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4397
4398 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4399
4400 [BZ #24506]
4401 * elf/tst-pldd.c (in_str_list): New function.
4402 (do_test): Add default names for ld and libc as one option.
4403
4404 2019-05-02 Florian Weimer <fweimer@redhat.com>
4405
4406 misc: Add twalk_r function.
4407 * include/search.h (__twalk_r): Declare.
4408 * manual/examples/twalk.c: New file.
4409 * manual/search.texi (Tree Search Function): Document twalk_r.
4410 * misc/Versions (2.30): Export twalk_r.
4411 (GLIBC_PRIVATE): Export __twalk_r.
4412 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4413 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4414 (twalk_r): Add weak alias.
4415 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4416 (walk_trace): New variable.
4417 (struct twalk_with_twalk_r_closure): Define.
4418 (twalk_with_twalk_r_action): New function.
4419 (twalk_with_twalk_r): Likewise.
4420 (walk_action): Call walk_trace_add.
4421 (walk_tree_with): Rename from walk_tree. Add walk argument.
4422 (walk_tree): New function.
4423 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4424 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4425 Likewise.
4426 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4427 Likewise.
4428 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4429 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4430 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4431 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4432 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4433 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4434 Likewise.
4435 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4436 Likewise.
4437 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4438 Likewise.
4439 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4440 (GLIBC_2.30): Likewise.
4441 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4442 (GLIBC_2.30): Likewise.
4443 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4444 (GLIBC_2.30): Likewise.
4445 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4446 (GLIBC_2.30): Likewise.
4447 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4448 Likewise.
4449 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4450 (GLIBC_2.30): Likewise.
4451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4452 (GLIBC_2.30): Likewise.
4453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4454 (GLIBC_2.30): Likewise.
4455 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4456 (GLIBC_2.30): Likewise.
4457 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4458 Likewise.
4459 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4460 Likewise.
4461 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4462 Likewise.
4463 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4464 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4465 Likewise.
4466 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4467 Likewise.
4468 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4469 Likewise.
4470 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4471 Likewise.
4472
4473 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4474
4475 Make mktime etc. compatible with __time64_t
4476 Keep these functions compatible with Gnulib while adding
4477 __time64_t support. The basic idea is to move private API
4478 declarations from include/time.h to time/mktime-internal.h, since
4479 the former file cannot easily be shared with Gnulib whereas the
4480 latter can.
4481 Also, do some other minor cleanup while in the neighborhood.
4482 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4483 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4484 since Gnulib needs it.
4485 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4486 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4487 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4488 (in_time_t_range): New static function.
4489 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4490 so that glibc users are not tempted to use __time64_t.
4491 * time/mktime-internal.h: Rewrite so that it does both glibc
4492 and Gnulib work. Include time.h if not _LIBC.
4493 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4494 (__time64_t): New type or macro, moved here from
4495 posix/bits/types.h.
4496 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4497 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4498 from include/time.h.
4499 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4500 New macros, taken from GNulib.
4501 (__mktime_internal): New prototype, moved here from include/time.h.
4502 * time/mktime.c (mktime_min, mktime_max, convert_time)
4503 (ranged_convert, __mktime_internal, __mktime64):
4504 * time/timegm.c (__timegm64):
4505 Use __time64_t, not time_t.
4506 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4507 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4508 Rename from mktime.
4509 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4510 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4511 for libc_hidden_def.
4512 Include errno.h.
4513 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4514 Rename from timegm.
4515 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4516
4517 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
4518
4519 [BZ #19444]
4520 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4521 from `-Wmaybe-uninitialized'.
4522 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4523
4524 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4525
4526 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4527 function.
4528 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4529 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4530 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4531 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4532 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4534 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4535 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4536 Remove file.
4537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4538 Likewise.
4539 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4540 Likewise.
4541 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4542 Likewise.
4543 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4544 New file.
4545 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4546 Likewise.
4547 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4548 Likewise.
4549 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4550 Likewise.
4551 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4552 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4553 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4554 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4555 Likewise.
4556 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4557 Likewise.
4558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4559 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4560 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4561 file.
4562 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4563 Likewise.
4564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4565 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4566 * here.
4567 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4568 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4569 s_ceilf-power5+, and s_ceilf-ppc64.
4570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4571 file.
4572 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4573 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4574 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4575 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4576 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4577 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4578 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4579
4580 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4581 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4582 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4583
4584 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4585
4586 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4587 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4588 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4589 (sem_getvalue): Likewise.
4590
4591 2019-04-26 Florian Weimer <fweimer@redhat.com>
4592
4593 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4594 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4595
4596 2019-04-26 Florian Weimer <fweimer@redhat.com>
4597
4598 Makeconfig: Move -Wl,-rpath-link options before library references.
4599 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4600 (link-libc): Remove $(link-libc-rpath-link).
4601
4602 2019-04-25 Florian Weimer <fweimer@redhat.com>
4603
4604 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4605 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4606 (+link-static-before-libc): Remove $(CC).
4607 (+link-static, +link-static-tests): Add $(CC).
4608 (+link-before-libc): Remove $(CC).
4609 (+link, +link-pie, +link-pie-printers): Add $(CC).
4610
4611 2019-04-26 Florian Weimer <fweimer@redhat.com>
4612
4613 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4614 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4615 (+link-static-before-libc): Remove $(CC).
4616 (+link-static, +link-static-tests): Add $(CC).
4617 (+link-before-libc): Remove $(CC).
4618 (+link, +link-pie, +link-pie-printers): Add $(CC).
4619
4620 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4621
4622 [BZ#24484]
4623 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4624
4625 2019-04-25 Florian Weimer <fweimer@redhat.com>
4626
4627 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4628 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4629 (bench-link-targets): New variable.
4630 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4631
4632 2019-04-25 Florian Weimer <fweimer@redhat.com>
4633
4634 Also enable BIND_NOW for programs if --enable-bind-now.
4635 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4636 (+link-pie): Use $(link-extra-flags).
4637 (+link-static): Likewise.
4638 [! $(build-pie-default)] (+link): Likewise.
4639 * manual/install.texi (Configuring and compiling): Update
4640 --enable-bind-now description.
4641 * INSTALL: Regenerated.
4642
4643 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4644
4645 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4646 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4647
4648 2019-04-24 Mike Frysinger <vapier@gentoo.org>
4649
4650 [BZ #18465]
4651 * malloc/Makefile (others): Add memusagestat.
4652 ($(objpfx)memusagestat): Delete rule.
4653 (LDLIBS-memusagestat): New variable.
4654
4655 2019-04-24 Florian Weimer <fweimer@redhat.com>
4656
4657 * locale/Makefile (tests-special): Guard setting by
4658 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
4659 to run while cross-compiling.
4660
4661 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4662
4663 [BZ #18035]
4664 * elf/Makefile (tests-container): Add tst-pldd.
4665 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
4666 (E(find_maps)): Avoid use alloca, use default read file operations
4667 instead of explicit LFS names, and fix infinite loop.
4668 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
4669 (get_process_info): Use _Static_assert instead of assert, use default
4670 directory operations instead of explicit LFS names, and free some
4671 leadek pointers.
4672 * elf/tst-pldd.c: New file.
4673
4674 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
4675
4676 * malloc/arena.c (do_set_mallopt_check): Removed.
4677
4678 2019-04-23 Florian Weimer <fweimer@redhat.com>
4679
4680 locale: Add LOCPATH diagnostics to the locale program.
4681 * locale/programs/locale.c (setlocale_failed): New variable.
4682 (try_setlocale): New function.
4683 (quote_string): Likewise.
4684 (setlocale_diagnostics): Likewise.
4685 (main): Call try_setlocale instead of setlocale. Call
4686 setlocale_diagnostics.
4687 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
4688 (tst-locale-locpath.out): New target.
4689 * locale/tst-locale-locpath.sh: New file.
4690
4691 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4692
4693 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
4694 to 2.30 notes.
4695
4696 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4697
4698 [BZ #23741]
4699 * malloc/hooks.c (malloc_check, realloc_check): Use
4700 __builtin_add_overflow on overflow check and adapt to
4701 checked_request2size change.
4702 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
4703 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
4704 allocation size to PTRDIFF_MAX.
4705 (REQUEST_OUT_OF_RANGE): Remove macro.
4706 (checked_request2size): Change to inline function and limit maximum
4707 requested size to PTRDIFF_MAX.
4708 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
4709 maximum allocation size to PTRDIFF_MAX.
4710 (_mid_memalign): Use _int_memalign call for overflow check.
4711 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
4712 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
4713 limit maximum requested size to PTRDIFF_MAX.
4714 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
4715 valloc, pvalloc): Add __attribute_alloc_size__.
4716 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
4717 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
4718 larger than PTRDIFF_MAX.
4719 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
4720 around tests of malloc with negative sizes.
4721 * malloc/tst-posix_memalign.c (do_test): Likewise.
4722 * malloc/tst-pvalloc.c (do_test): Likewise.
4723 * malloc/tst-valloc.c (do_test): Likewise.
4724 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
4725 with resulting size allocation larger than PTRDIFF_MAX with
4726 reallocarray_nowarn.
4727 (reallocarray_nowarn): New function.
4728 * NEWS: Mention the malloc function semantic change.
4729
4730 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4731
4732 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
4733 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4734
4735 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
4736 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
4737 * sysdeps/powerpc/fpu/s_fma.c: New file.
4738 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
4739
4740 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
4741 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
4742
4743 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
4744 the magic flag store.
4745 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4746 Likewise.
4747 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
4748 Likewise.
4749 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
4750 Remove rt_sigreturn call.
4751
4752 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
4753 Remove rt_sigreturn call.
4754 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4755 Likewise.
4756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
4757 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
4758
4759 * support/Makefile (libsupport-routines): Add support_subprocess,
4760 xposix_spawn, xposix_spawn_file_actions_addclose, and
4761 xposix_spawn_file_actions_adddup2.
4762 (tst-support_capture_subprocess-ARGS): New rule.
4763 * support/capture_subprocess.h (support_capture_subprogram): New
4764 prototype.
4765 * support/support_capture_subprocess.c (support_capture_subprocess):
4766 Refactor to use support_subprocess and support_capture_poll.
4767 (support_capture_subprogram): New function.
4768 * support/tst-support_capture_subprocess.c (write_mode_to_str,
4769 str_to_write_mode, test_common, parse_int, handle_restart,
4770 do_subprocess, do_subprogram, do_multiple_tests): New functions.
4771 (do_test): Add support_capture_subprogram tests.
4772 * support/subprocess.h: New file.
4773 * support/support_subprocess.c: Likewise.
4774 * support/xposix_spawn.c: Likewise.
4775 * support/xposix_spawn_file_actions_addclose.c: Likewise.
4776 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
4777 * support/xspawn.h: Likewise.
4778
4779 2019-04-17 Mike Gerow <gerow@google.com>
4780
4781 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
4782 groups limit.
4783
4784 2019-04-11 Florian Weimer <fweimer@redhat.com>
4785
4786 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
4787 domain with empty string.
4788 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4789
4790 2019-04-11 Florian Weimer <fweimer@redhat.com>
4791
4792 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
4793 comment.
4794 (alloc_buffer_next): Change return type to non-const. Update
4795 comment.
4796
4797 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
4798
4799 * manual/time.texi (Formatting Calendar Time): Add missing percent
4800 sign to conversion specifier.
4801
4802 2019-04-09 Carlos O'Donell <carlos@redhat.com>
4803 Kwok Cheung Yeung <kcy@codesourcery.com>
4804
4805 [BZ #16573]
4806 * malloc/mtrace.c: Define prototypes for all hooks.
4807 (set_default_hooks): New function.
4808 (set_trace_hooks): Likewise.
4809 (save_default_hooks): Likewise.
4810 (tr_freehook): Use new s*_hooks functions.
4811 (tr_mallochook): Likewise.
4812 (tr_reallochook): Likewise.
4813 (tr_memalignhook): Likewise.
4814 (mtrace): Likewise.
4815 (muntrace): Likewise.
4816
4817 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4818
4819 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
4820 (generic_stpcpy): New function.
4821 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
4822 (generic_stpncpy): New function.
4823 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
4824 (generic_strcat): New function.
4825 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
4826 (generic_strcpy): New function.
4827 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
4828 (STUPID_STRNCAT): Remove function.
4829 (generic_strncat): New function.
4830 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
4831 (STUPID_STRNCPY): Remove function.
4832 (generic_strncpy): New function.
4833 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
4834 (generic_strnlen): New function.
4835 (memchr_strnlen): New function.
4836 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
4837 (memchr_strlen): Likewise.
4838
4839 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4840
4841 * benchtests/bench-strstr.c (input): Add realistic input text.
4842 (stupid_strstr): Remove function.
4843 (basic_strstr): Add function.
4844 (twoway_strstr): Add function.
4845 (do_one_test): Add result checking.
4846 (do_test): Use new input text. Remove accidental early matches.
4847 (test_main): Improve range of tests, reduce unaligned cases.
4848
4849 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4850
4851 * benchtests/bench-memmem.c (simple_memmem): Remove function.
4852 (basic_memmem): Add function.
4853 (twoway_memmem): Add function.
4854
4855 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
4856
4857 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
4858 * benchtests/bench-malloc-thread.c: Likewise.
4859 * benchtests/bench-skeleton.c: Likewise.
4860 * benchtests/bench-strtod.c: Likewise.
4861 * benchtests/bench-timing.h: Likewise.
4862
4863 2019-04-08 Florian Weimer <fweimer@redhat.com>
4864
4865 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
4866 definitions.
4867 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
4868 RES_INSECURE2 security checks.
4869 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
4870 RES_INSECURE2 handling.
4871
4872 2019-04-08 Florian Weimer <fweimer@redhat.com>
4873
4874 resolv: Remove support for RES_USE_INET6 and the inet6 option.
4875 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
4876 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
4877 GETHOSTBYNAME.
4878 * resolv/Makefile (tests): Remove tst-res_use_inet6.
4879 (tests-internal): Update justification for tst-resolv-res_init,
4880 tst-resolv-res_init-thread.
4881 (tst-res_use_inet6): Remove target.
4882 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
4883 * resolv/res_debug.c (p_option): Remove "inet6" support.
4884 * resolv/res_init.c (res_setoptions): Likewise.
4885 * resolv/res_use_inet6.h: Remove file.
4886 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
4887 definition.
4888 (res_use_inet6): Always return false.
4889 * resolv/resolv.h (RES_USE_INET6): Remove definition.
4890 * resolv/resolv_context.h: Adjust file comment.
4891 (struct resolv_context): Update comment on __next field.
4892 (__resolv_context_put): Update comment.
4893 * resolv/tst-res_use_inet6.c: Remove file.
4894 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
4895 "inet6" support.
4896 (test_cases): Adjust test case.
4897 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
4898 (thread_byname2_af_inet6): Use old byname_inet6 code.
4899 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
4900 (gai): Remove do_inet6 argument.
4901 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
4902 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
4903 (thread_gai_unspec_inet6): Remove functions.
4904 (do_test): Adjust thread_funcs.
4905 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
4906 RES_USE_INET6 flag.
4907 (gaih_inet): Do not disable RES_USE_INET6 flag.
4908
4909 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4910
4911 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
4912 and remove redundant code.
4913
4914 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4915
4916 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
4917 New rule.
4918 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
4919 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
4920 Likewise.
4921 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
4922 Likewise.
4923 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
4924 Likewise.
4925 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
4926 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
4927 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
4928 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
4929 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
4930 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
4931 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4932 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
4933 wcsrchr-power7.
4934 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
4935 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4936 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4937 Remove wcsrchr optimizations.
4938 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4939
4940 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
4941 the loop unroll.
4942
4943 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
4944 New rule.
4945 * sysdeps/powerpc/power6/wcschr.c: Remove file.
4946 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
4947 Likewise.
4948 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
4949 Likewise.
4950 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
4951 Likewise.
4952 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
4953 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
4954 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
4955 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
4956 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
4957 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
4958 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4959 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
4960 wcschr-power7.
4961 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
4962 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4963 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4964 Remove wcschr optimizations.
4965 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4966
4967 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
4968 the loop unroll.
4969
4970 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
4971 New rule.
4972 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
4973 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
4974 Likewise.
4975 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
4976 Likewise.
4977 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
4978 Likewise.
4979 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
4980 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
4981 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
4982 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
4983 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
4984 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
4985 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
4986 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
4987 wcscpy-power7.
4988 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
4989 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
4990 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
4991 Remove wcscpy optimizations.
4992 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
4993
4994 * include/loop_unroll.h: New file.
4995 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
4996 besides generic implementation.
4997
4998 2019-04-03 DJ Delorie <dj@redhat.com>
4999
5000 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5001 snprintf truncating output.
5002
5003 2019-04-02 DJ Delorie <dj@redhat.com>
5004
5005 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5006 warning.
5007
5008 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5009
5010 [BZ #22964]
5011 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5012 era.
5013 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5014 (mkreftable): Add rules for the new Japanese era and the new dates.
5015
5016 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5017 Rafał Lużyński <digitalfreak@lingonborough.com>
5018
5019 * time/tst-strftime2.c (date_t): Explicitly define the type.
5020 (dates): Use natural month and year numbers to express a date.
5021 (is_before): New function to compare dates.
5022 (mkreftable): Minor improvements to simplify maintenance.
5023 (do_test): Reflect the changes in dates array.
5024
5025 [BZ #24293]
5026 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5027 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5028 * time/tst-strftime2.c (locales): Likewise.
5029 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5030 2010-04-01, and 2011-04-01.
5031 (mkreftable): Add rules for the new locales and the new dates.
5032
5033 2019-04-01 Carlos O'Donell <carlos@redhat.com>
5034
5035 * localedata/locales/ja_JP: Add comments to era entries.
5036
5037 2019-04-01 DJ Delorie <dj@redhat.com>
5038
5039 [BZ #24394]
5040 * time/strptime_l.c (%Ey): Fix fencepost error.
5041 * time/tst-strftime3.c: New.
5042 * time/Makefile (tests): Add tst-strftime3.
5043
5044 2019-04-01 Uroš Bizjak <ubizjak@gmail.com>
5045
5046 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5047 conditional branch to DIVBYZERO. Fix unwind info.
5048 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5049 excb after conditional branch to $powerof2. Add missing unop
5050 instructions and .align directives and reorder instructions to
5051 match __divqu.
5052
5053 2019-04-01 Richard Henderson <rth@twiddle.net>
5054
5055 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5056 Do not redefine.
5057 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5058 Do not redefine.
5059
5060 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
5061
5062 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5063 $libc_cv_riscv_float_abi in `test' invocation.
5064 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5065
5066 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
5067
5068 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5069 asm with builtin.
5070 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5071 Likewise.
5072 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5073 (_GET_SI_FPSCR): Likewise.
5074 (_SET_SI_FPSCR): Likewise.
5075
5076 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5077
5078 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5079 clang 2.8.
5080 (signbit): Use builtin for clang 3.3.
5081 (isinf): Use builtin for clang 3.7.
5082
5083 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5084
5085 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5086
5087 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5088
5089 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5090 quote in printf.
5091
5092 2019-03-25 Mike Crowe <mac@mcrowe.com>
5093
5094 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5095 pthread_rwlock_timedrdlock with calls to
5096 pthread_rwlock_timedwrlock to ensure that the latter is tested
5097 too. Use new function name in diagnostic messages too.
5098
5099 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5100 (do_test) Use libsupport test macros rather than hand-coded
5101 conditionals and error messages. Ensure that sem_init returns zero
5102 rather than not -1. Use <support/test-driver.c> rather than
5103 test-skeleton.c.
5104
5105 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5106 test macros rather than hand-coded conditionals and error messages.
5107 Use <support/test-driver.c> rather than test-skeleton.c.
5108
5109 2019-03-25 Joseph Myers <joseph@codesourcery.com>
5110
5111 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5112
5113 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5114 (NT_MIPS_MSA): Likewise.
5115
5116 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5117
5118 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5119 * benchtests/README: Update description.
5120 * benchtests/bench-timing.h: Default to hp-timing.
5121 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5122 HP_TIMING_PRINT): Remove.
5123 (HP_TIMING_NOW): Add generic implementation.
5124 (hp_timing_t): Change to uint64_t.
5125
5126 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5127 HP_TIMING_INLINE.
5128 * nptl/descr.h: Likewise.
5129 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5130 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5131 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5132 Abstract hp-timing usage with RTLD_* macros.
5133 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5134 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5135 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5136 HP_TIMING_NONAVAIL): Likewise.
5137 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5138 Likewise.
5139 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5140 HP_SMALL_TIMING_AVAIL): Likewise.
5141 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5142 HP_SMALL_TIMING_AVAIL): Likewise.
5143 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5144 HP_SMALL_TIMING_AVAIL): Likewise.
5145 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5146 HP_SMALL_TIMING_AVAIL): Likewise.
5147 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5148 Likewise.
5149 * sysdeps/generic/hp-timing-common.h: Update comment with
5150 HP_TIMING_AVAIL removal.
5151
5152 * include/random-bits.h: New file.
5153 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5154 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5155 random_bits.
5156 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5157 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5158 Likewise.
5159
5160 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5161 * rt/Makefile (clock-routines): Remove get_clockfreq.
5162 * rt/get_clockfreq.c: Remove file.
5163 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5164 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5165 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5166 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5167 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5168
5169 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5170 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5171 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5172 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5173 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5174
5175 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5176 pthread_clock_settime.
5177 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5178 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5179 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5180 * elf/rtld.c (_dl_start_final): Likewise.
5181 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5182 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5183 Remove.
5184 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5185 (_dl_cpuclock_offset): Remove.
5186 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5187 cpuclock_offset_ununsed.
5188 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5189 cpuclock_offset set.
5190 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5191 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5192 * nptl/pthread_clock_gettime.c: Remove file.
5193 * nptl/pthread_clock_settime.c: Likewise.
5194 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5195 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5196 and CLOCK_PROCESS_CPUTIME_ID support.
5197 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5198 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5199 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5200 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5201 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5202 Likewise.
5203 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5204
5205 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5206
5207 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5208 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5209 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5210 New defines.
5211 * sysdeps/s390/memmem-arch13.S: New file.
5212 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5213 if it is only used as fallback.
5214 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5215 * sysdeps/s390/multiarch/ifunc-impl-list.c
5216 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5217
5218 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5219
5220 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5221 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5222 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5223 New defines.
5224 * sysdeps/s390/multiarch/ifunc-impl-list.c
5225 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5226 * sysdeps/s390/strstr-arch13.S: New file.
5227 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5228 if it is only used as fallback.
5229 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5230
5231 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5232
5233 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5234 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5235 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5236 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5237 ifunc selector.
5238 * sysdeps/s390/multiarch/ifunc-impl-list.c
5239 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5240 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5241 S390_IS_ARCH13_MIE3): New defines.
5242
5243 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5244
5245 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5246 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5247 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5248 * sysdeps/s390/configure: Regenerated.
5249
5250 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
5251
5252 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5253 Add vxe2, vxp, dflt, sort flags.
5254 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5255 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5256 capabilities.
5257 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5258 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5259 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5260 HWCAP_S390_DFLT): Define.
5261
5262 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5263
5264 [BZ #24372]
5265 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5266 of compiler warning.
5267 * locale/programs/ld-collate.c (collate_output): Likewise.
5268
5269 2019-03-21 DJ Delorie <dj@redhat.com>
5270
5271 [BZ #24372]
5272 * iconv/iconvconfig.c (write_output): Replace floating point math
5273 with integer math to avoid imprecise results.
5274 * locale/programs/ld-collate.c (collate_output): Likewise.
5275
5276 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
5277
5278 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5279 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5280
5281 2019-03-20 mansayk <6688000@gmail.com>
5282
5283 [BZ #24296]
5284 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5285 (abday): Likewise, but remove the trailing dots.
5286
5287 2019-03-19 Joseph Myers <joseph@codesourcery.com>
5288
5289 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5290 macro.
5291 (HWCAP_PACA): Likewise.
5292 (HWCAP_PACG): Likewise.
5293 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5294 Increase to 32.
5295 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5296
5297 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5298
5299 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5300 should be handled.
5301
5302 2019-03-15 Joseph Myers <joseph@codesourcery.com>
5303
5304 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5305 version to 5.0.
5306 (old_getpagesize): New syscall.
5307
5308 2019-03-15 Felix Yan <felixonmars@archlinux.org>
5309
5310 [BZ #24293]
5311 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5312 * localedata/locales/cmn_TW (era): Likewise.
5313 * localedata/locales/hak_TW (era): Likewise.
5314 * localedata/locales/lzh_TW (era): Likewise.
5315 * localedata/locales/nan_TW (era): Likewise.
5316
5317 2019-03-14 Adam Maris <amaris@redhat.com>
5318
5319 * malloc/malloc.c (_int_malloc): Check for large bin list
5320 corruption when inserting unsorted chunk.
5321
5322 2019-03-14 Florian Weimer <fweimer@redhat.com>
5323
5324 Remove obsolete, never-implemented XSI STREAMS declarations.
5325 * manual/terminal.texi (Allocation): Remove portability note and
5326 adjust example.
5327 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5328 _SC_STREAMS.
5329 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5330 * sysdeps/unix/inet/Subdirs (streams): Remove.
5331 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5332 (conformtest-headers-UNIX98): Likewise.
5333 (conformtest-headers-XOPEN2K): Likewise.
5334 (conformtest-headers-POSIX2008): Likewise.
5335 * posix/compat-streams.c: New file.
5336 * posix/Makefile (routines): Add it.
5337 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5338 getpmsg, isastream, putmsg, putpmsg.
5339 (GLIBC_2.30): New section.
5340 * bits/stropts.h: Remove file.
5341 * bits/xtitypes.h: Likewise.
5342 * conform/data/stropts.h-data: Likewise.
5343 * include/stropts.h: Likewise.
5344 * include/sys/stropts.h: Likewise.
5345 * include/xtitypes.h: Likewise.
5346 * streams/Makefile: Likewise.
5347 * streams/fattach.c: Likewise.
5348 * streams/fdetach.c: Likewise.
5349 * streams/getmsg.c: Likewise.
5350 * streams/getpmsg.c: Likewise.
5351 * streams/isastream.c: Likewise.
5352 * streams/putmsg.c: Likewise.
5353 * streams/putpmsg.c: Likewise.
5354 * streams/stropts.h: Likewise.
5355 * streams/sys/stropts.h: Likewise.
5356 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5357 * sysdeps/s390/bits/xtitypes.h: Likewise.
5358 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5359 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5360 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5361 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5362 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5363 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5364 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5365 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5366 * sysdeps/x86/bits/xtitypes.h: Likewise.
5367
5368 2019-03-14 Florian Weimer <fweimer@redhat.com>
5369
5370 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5371 libnss_files.
5372 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5373 but not with libnss_files.
5374 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5375
5376 2019-03-14 Zack Weinberg <zackw@panix.com>
5377
5378 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5379 Specify encoding="utf-8" when opening headers to check.
5380
5381 2019-03-13 Joseph Myers <joseph@codesourcery.com>
5382
5383 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5384 version to 5.0.
5385 (Context.checkout_tar): Handle variable major version for Linux
5386 kernel.
5387
5388 2019-03-13 Florian Weimer <fweimer@redhat.com>
5389
5390 [BZ #24047]
5391 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5392
5393 2019-03-13 Zack Weinberg <zackw@panix.com>
5394
5395 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5396 Move to stdlib.
5397 * include/inttypes.h: Adjust to match.
5398 * include/stdint.h: New wrapper.
5399
5400 2019-03-13 Zack Weinberg <zackw@panix.com>
5401
5402 * scripts/check-obsolete-constructs.py: New test script.
5403 * scripts/check-installed-headers.sh: Remove tests for
5404 obsolete typedefs, superseded by check-obsolete-constructs.py.
5405 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5406 as a special test. Update commentary.
5407 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5408 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5409 Update commentary.
5410 * posix/sys/types.h (__u_intN_t): Remove.
5411 (u_int8_t): Typedef using __uint8_t.
5412 (u_int16_t): Typedef using __uint16_t.
5413 (u_int32_t): Typedef using __uint32_t.
5414 (u_int64_t): Typedef using __uint64_t.
5415
5416 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
5417
5418 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5419 call _dl_procinfo.
5420 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5421 Ignore types other than AT_HWCAP.
5422 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5423 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5424 Likewise.
5425 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5426 in the case of falling back to generic output mechanism.
5427 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5428 Likewise.
5429
5430 2019-03-12 Florian Weimer <fweimer@redhat.com>
5431
5432 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5433
5434 2019-03-12 Florian Weimer <fweimer@redhat.com>
5435
5436 [BZ #24047]
5437 resolv: Enable full ICMP errors for UDP DNS sockets
5438 * resolv/res_enable_icmp.c: New file.
5439 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5440 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5441 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5442 socket.
5443
5444 2019-03-11 Mao Han <han_mao@c-sky.com>
5445
5446 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5447 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5448
5449 2019-03-11 Mao Han <han_mao@c-sky.com>
5450
5451 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5452 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5453 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5454
5455 2019-03-11 Mao Han <han_mao@c-sky.com>
5456
5457 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5458 directly.
5459 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5460 definition.
5461
5462 2019-03-11 Mao Han <han_mao@c-sky.com>
5463
5464 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5465 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5466 in mcontext_t
5467
5468 2019-03-08 Mike FABIAN <mfabian@redhat.com>
5469
5470 [BZ #24307]
5471 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5472 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5473 Unicode 12.0.0.
5474 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5475 * localedata/unicode-gen/PropList.txt: Likewise.
5476 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5477 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5478 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5479 * localedata/charmaps/UTF-8: Regenerate.
5480 * localedata/locales/i18n_ctype: Likewise.
5481 * localedata/locales/tr_TR: Likewise.
5482 * localedata/locales/translit_circle: Likewise.
5483 * localedata/locales/translit_cjk_compat: Likewise.
5484 * localedata/locales/translit_combining: Likewise.
5485 * localedata/locales/translit_compat: Likewise.
5486 * localedata/locales/translit_font: Likewise.
5487 * localedata/locales/translit_fraction: Likewise.
5488
5489 2019-03-07 Joseph Myers <joseph@codesourcery.com>
5490
5491 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5492 than after operators.
5493 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5494 (setitimer_locked): Likewise.
5495 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5496 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5497 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5498 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5499 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5500 (PPC_CPU_SUPPORTED): Likewise.
5501 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5502 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5503 (stat_overflow): Likewise.
5504 (statfs_overflow): Likewise.
5505 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5506 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5507 (eq_ttyname_r): Likewise.
5508 (run_chroot_tests): Likewise.
5509
5510 2019-03-07 Florian Weimer <fweimer@redhat.com>
5511
5512 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5513 header check.
5514
5515 2019-03-07 Martin Liska <mliska@suse.cz>
5516
5517 * math/Makefile: Change location where math-vector-fortran.h is
5518 installed.
5519 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5520 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5521 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5522 * scripts/check-installed-headers.sh: Skip Fortran header files.
5523 * scripts/check-wrapper-headers.py: Likewise.
5524
5525 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5526
5527 * nptl/nptl-init.c (__have_futex_clock_realtime,
5528 __have_futex_clock_realtime): Remove definition.
5529 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5530 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5531 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5532 __ASSUME_FUTEX_CLOCK_REALTIME support.
5533 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5534 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5535 * sysdeps/unix/sysv/linux/kernel-features.h
5536 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5537 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5538 Adjust comment.
5539
5540 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5541
5542 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5543 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5544 __GI___wcscpy and wcscpy.
5545
5546 2019-03-04 Florian Weimer <fweimer@redhat.com>
5547
5548 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5549 declaration.
5550 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5551 defined.
5552
5553 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
5554
5555 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5556 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5557
5558 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5559
5560 [BZ #24162]
5561 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5562 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5563
5564 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5565
5566 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5567 tests.
5568 (do_test): Likewise.
5569 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5570 (do_test_call_varg): Likewise.
5571 (do_test_call_rarg): Likewise.
5572 * sysdeps/ieee754/ldbl-opt/Makefile
5573 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5574 tst-nldbl-error.
5575 ($(objpfx)tst-nldbl-warn.c): New rule.
5576 ($(objpfx)tst-nldbl-error.c): Likewise.
5577 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5578 New variables.
5579
5580 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5581
5582 [BZ #23984]
5583 * include/bits/error-ldbl.h: New file.
5584 * include/error.h: Include stdarg.h. Declare internal functions
5585 __error_internal and __error_at_line_internal.
5586 * misc/Makefile (headers): Add bits/error-ldbl.h.
5587 * misc/bits/error-ldbl.h: New file.
5588 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5589 avoid the inclusion of bits/error.h.
5590 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5591 and __nldbl_error_at_line.
5592 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5593 (__nldbl_error, __ndlbl_error_at_line): New functions.
5594 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5595 Redirect error and error_at_line.
5596 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5598 Likewise.
5599 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5600 Likewise.
5601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5602 Likewise.
5603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5604 Likewise.
5605 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5606 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5607 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5608
5609 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5610
5611 [BZ #23984]
5612 * include/bits/err-ldbl.h: New file.
5613 * include/err.h: Add prototypes for the internal functions:
5614 __vwarnx_internal and __vwarn_internal.
5615 * misc/Makefile (headers): Add bits/err-ldbl.h.
5616 * misc/bits/err-ldbl.h: New file.
5617 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5618 defined, i.e.: when -mlong-double-64 is in use.
5619 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5620 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5621 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5622 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5623 (VA_CALL): New macro.
5624 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5625 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5626 functions.
5627 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5628 declare prototypes for the new functions.
5629 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5631 Likewise.
5632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5633 Likewise.
5634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5635 Likewise.
5636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5637 Likewise.
5638 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5639 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5640 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5641
5642 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5643
5644 * sysdeps/ieee754/ldbl-opt/Makefile
5645 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5646 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5647 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5648
5649 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5650
5651 [BZ #23983]
5652 * argp/Makefile (headers): Add bits/argp-ldbl.h.
5653 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
5654 * argp/bits/argp-ldbl.h: New file.
5655 * include/argp.h: Include stdarg.h. Add prototypes for internal
5656 functions: __argp_error_internal and __argp_failure_internal.
5657 * include/bits/argp-ldbl.h: New file.
5658 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
5659 __nldbl_argp_error and __nldbl_argp_failure.
5660 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
5661 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
5662 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
5663 Redirect argp_error and argp_failure calls.
5664 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5665 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5666 Likewise.
5667 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5668 Likewise.
5669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5670 Likewise.
5671 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5672 Likewise.
5673 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5674 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5675 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5676
5677 2019-03-01 Florian Weimer <fweimer@redhat.com>
5678
5679 [BZ #20419]
5680 * elf/tst-big-note-lib.S: Create a syntactically valid note.
5681 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
5682 code, to avoid creating an ABI tag note.
5683 (modules-names-nobuild): Add tst-big-note-lib.
5684
5685 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
5686
5687 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
5688 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
5689
5690 2019-03-01 Florian Weimer <fweimer@redhat.com>
5691
5692 [BZ #20271]
5693 * sysdeps/unix/sysv/linux/netlink_assert_response.c
5694 (__netlink_assert_response): Add additional missing newlines.
5695
5696 2019-02-28 Joseph Myers <joseph@codesourcery.com>
5697
5698 * sysdeps/powerpc/powerpc32/dl-machine.c
5699 (__elf_machine_fixup_plt): Use space before '('.
5700 (__process_machine_rela): Likewise.
5701 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
5702 Likewise.
5703 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
5704 Likewise.
5705 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
5706 Likewise.
5707 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
5708 (pattern): Likewise.
5709 (delta): Likewise.
5710 (check_result): Likewise.
5711 (check_excepts): Likewise.
5712 (check_op): Likewise.
5713 (fail_xr): Likewise.
5714 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
5715 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
5716 (SCNHSZ): Likewise.
5717 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
5718 Likewise.
5719 (ARGS): Likewise.
5720 (__makecontext): Likewise.
5721 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
5722 Likewise.
5723
5724 2019-02-28 Florian Weimer <fweimer@redhat.com>
5725
5726 [BZ #23937]
5727 elf: Add test with a local IFUNC resolver.
5728 * elf/ifuncmain9.c: New file.
5729 * elf/ifuncmain9pic.c: Likewise.
5730 * elf/ifuncmain9picstatic.c: Likewise.
5731 * elf/ifuncmain9pie.c: Likewise.
5732 * elf/ifuncmain9static.c: Likewise.
5733 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
5734 ifuncmain9static, ifuncmain9picstatic.
5735 * elf/Makefile [multi-arch && build-shared] (tests-internal):
5736 Add ifuncmain9, ifuncmain9pic.
5737 * elf/Makefile [multi-arch && build-shared && have-fpie]
5738 (ifunc-pie-tests): Add ifuncmain9pie.
5739 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
5740 (CFLAGS-ifuncmain9picstatic.c): Likewise.
5741 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
5742
5743 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
5744
5745 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
5746 * configure: Regenerated.
5747 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
5748
5749 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5750
5751 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
5752 symbol as __wcspcy instead of wcscpy.
5753
5754 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5755
5756 * include/stdio.h (__renameat2): New hidden prototype.
5757 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
5758 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
5759 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
5760 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
5761
5762 2019-02-27 Joseph Myers <joseph@codesourcery.com>
5763
5764 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
5765 if statement.
5766
5767 * benchtests/bench-strcpy.c (do_test): Use space before '('.
5768 * benchtests/bench-string.h (cmdline_process_function): Likewise.
5769 * benchtests/bench-strlen.c (do_test): Likewise.
5770 (test_main): Likewise.
5771 * catgets/gencat.c (read_old): Likewise.
5772 * elf/cache.c (load_aux_cache): Likewise.
5773 * iconvdata/bug-iconv8.c (do_test): Likewise.
5774 * math/test-tgmath-ret.c (do_test): Likewise.
5775 * nis/nis_call.c (rec_dirsearch): Likewise.
5776 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
5777 * nptl/tst-audit-threads.c (do_test): Likewise.
5778 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
5779 * nss/nss_test1.c (init): Likewise.
5780 * nss/test-netdb.c (test_hosts): Likewise.
5781 * posix/execvpe.c (maybe_script_execute): Likewise.
5782 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
5783 * stdio-common/tst-printf.c (do_test): Likewise.
5784 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
5785 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
5786 * stdlib/qsort.c (STACK_SIZE): Likewise.
5787 * stdlib/test-canon.c (do_test): Likewise.
5788 * stdlib/tst-swapcontext1.c (do_test): Likewise.
5789 * string/memcmp.c (OPSIZ): Likewise.
5790 * string/test-strcpy.c (do_test): Likewise.
5791 (do_random_tests): Likewise.
5792 * string/test-strlen.c (do_test): Likewise.
5793 (test_main): Likewise.
5794 * string/test-strrchr.c (do_test): Likewise.
5795 (do_random_tests): Likewise.
5796 * string/tester.c (test_memrchr): Likewise.
5797 (test_memchr): Likewise.
5798 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
5799 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
5800 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
5801 (read_encoded_value_with_base): Likewise.
5802 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
5803 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
5804 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
5805 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5806 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
5807 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
5808 Likewise.
5809 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
5810 Likewise.
5811 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
5812 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
5813 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
5814 Likewise.
5815 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
5816 Likewise.
5817 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
5818 Likewise.
5819 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
5820 Likewise.
5821 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
5822 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
5823 (FP_XSTATE_MAGIC2_SIZE): Likewise.
5824 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
5825 * time/test_time.c (main): Likewise.
5826
5827 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5828
5829 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
5830
5831 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
5832 wmemcpy.
5833
5834 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
5835 wmemcpy.
5836
5837 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5838
5839 * include/wchar.h (__wcscpy): New prototype.
5840 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
5841 (__wcscpy): Route internal symbol to generic implementation.
5842 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
5843 Add internal __wcscpy alias.
5844 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
5845 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
5846 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
5847 * wcsmbs/wcscpy.c (wcscpy): Add
5848 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
5849 use generic implementation.
5850 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
5851
5852 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
5853 wmemset.
5854
5855 * sysdeps/m68k/wcpcpy.c: Remove file.
5856 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
5857
5858 2019-02-26 Joseph Myers <joseph@codesourcery.com>
5859
5860 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
5861 than after operators.
5862 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
5863 * sysdeps/mach/hurd/getcwd.c
5864 (__hurd_canonicalize_directory_name_internal): Likewise.
5865 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
5866 (pthread_mutex_consistent): Likewise.
5867 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
5868 Likewise.
5869 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
5870 (__pthread_mutex_transfer_np): Likewise.
5871 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
5872 (__pthread_mutex_unlock): Likewise.
5873 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
5874 (mtx_owned_p): Likewise.
5875 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
5876 (pthread_mutexattr_getrobust): Likewise.
5877 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
5878 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5879 Likewise.
5880 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5881 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
5882 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
5883 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
5884 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5885 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
5886 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
5887 Likewise.
5888 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
5889 Likewise.
5890 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
5891 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
5892 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
5893 (____longjmp_chk): Likewise.
5894 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
5895 Likewise.
5896 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
5897 (INTERNAL_SYSCALL): Likewise.
5898 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
5899 (INTERNAL_SYSCALL): Likewise.
5900 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5901 (__get_clockfreq_via_cpuinfo): Likewise.
5902
5903 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
5904 comments.
5905 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
5906 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
5907 (WORD_COPY_BWD): Likewise.
5908 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5909 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
5910 Likewise.
5911 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
5912 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
5913 comment.
5914 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
5915
5916 2019-02-25 Joseph Myers <joseph@codesourcery.com>
5917
5918 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
5919 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
5920 rather than after operators.
5921 * elf/cache.c (print_cache): Likewise.
5922 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
5923 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
5924 * hurd/hurdinit.c (_hurd_setproc): Likewise.
5925 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
5926 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
5927 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
5928 (reauth_proc): Likewise.
5929 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
5930 (__file_name_split_at): Likewise.
5931 (__directory_name_split_at): Likewise.
5932 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
5933 * hurd/port2fd.c (_hurd_port2fd): Likewise.
5934 * iconv/gconv_dl.c (do_print): Likewise.
5935 * inet/netinet/in.h (struct sockaddr_in): Likewise.
5936 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
5937 * locale/setlocale.c (new_composite_name): Likewise.
5938 * malloc/memusagestat.c (main): Likewise.
5939 * misc/fstab.c (fstab_convert): Likewise.
5940 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
5941 Likewise.
5942 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
5943 (getgrent_next_file): Likewise.
5944 (internal_getgrnam_r): Likewise.
5945 (internal_getgrgid_r): Likewise.
5946 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
5947 Likewise.
5948 (internal_getgrent_r): Likewise.
5949 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
5950 (getpwent_next_nss): Likewise.
5951 (getpwent_next_file): Likewise.
5952 (internal_getpwnam_r): Likewise.
5953 (internal_getpwuid_r): Likewise.
5954 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
5955 Likewise.
5956 (getspent_next_nss): Likewise.
5957 (internal_getspnam_r): Likewise.
5958 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
5959 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
5960 * string/strchr.c (STRCHR): Likewise.
5961 * string/strchrnul.c (STRCHRNUL): Likewise.
5962 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
5963 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5964 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
5965 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
5966 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
5967 Likewise.
5968 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
5969 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5970 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
5971 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
5972 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
5973 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5974 (open_file): Likewise.
5975 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
5976 (pthread_mutexattr_setprotocol): Likewise.
5977 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
5978 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
5979 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
5980 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
5981 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
5982 Likewise.
5983 (elf_machine_rela): Likewise.
5984 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5985 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5986 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
5987 * sysdeps/posix/rename.c (rename): Likewise.
5988 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
5989 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
5990 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
5991 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
5992 * sysdeps/unix/grantpt.c (grantpt): Likewise.
5993 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
5994 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
5995 Likewise.
5996 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
5997 Likewise.
5998 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
5999 * time/tzfile.c (__tzfile_compute): Likewise.
6000
6001 2019-02-22 Joseph Myers <joseph@codesourcery.com>
6002
6003 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6004 rather than after operators.
6005 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6006 * crypt/md5.c (md5_finish_ctx): Likewise.
6007 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6008 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6009 * elf/cache.c (load_aux_cache): Likewise.
6010 * elf/dl-load.c (open_verify): Likewise.
6011 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6012 * elf/readelflib.c (process_elf_file): Likewise.
6013 * elf/rtld.c (dl_main): Likewise.
6014 * elf/sprof.c (generate_call_graph): Likewise.
6015 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6016 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6017 * hurd/dtable.c (reauth_dtable): Likewise.
6018 * hurd/getdport.c (__getdport): Likewise.
6019 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6020 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6021 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6022 Likewise.
6023 * hurd/hurdioctl.c (fioctl): Likewise.
6024 * hurd/hurdselect.c (_hurd_select): Likewise.
6025 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6026 (STOPSIGS): Likewise.
6027 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6028 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6029 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6030 * hurd/msgportdemux.c (msgport_server): Likewise.
6031 * hurd/setauth.c (_hurd_setauth): Likewise.
6032 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6033 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6034 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6035 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6036 * login/tst-utmp.c (do_check): Likewise.
6037 (simulate_login): Likewise.
6038 * mach/lowlevellock.h (lll_lock): Likewise.
6039 (lll_trylock): Likewise.
6040 * math/test-fenv.c (ALL_EXC): Likewise.
6041 * math/test-fenvinline.c (ALL_EXC): Likewise.
6042 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6043 * nis/nis_call.c (__do_niscall3): Likewise.
6044 * nis/nis_callback.c (cb_prog_1): Likewise.
6045 * nis/nis_defaults.c (searchaccess): Likewise.
6046 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6047 * nis/nis_ismember.c (internal_ismember): Likewise.
6048 * nis/nis_local_names.c (nis_local_principal): Likewise.
6049 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6050 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6051 Likewise.
6052 * nis/ypclnt.c (yp_match): Likewise.
6053 (yp_first): Likewise.
6054 (yp_next): Likewise.
6055 (yp_master): Likewise.
6056 (yp_order): Likewise.
6057 * nscd/hstcache.c (cache_addhst): Likewise.
6058 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6059 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6060 (internal_getpwuid_r): Likewise.
6061 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6062 * posix/glob.h (__GLOB_FLAGS): Likewise.
6063 * posix/regcomp.c (peek_token): Likewise.
6064 (peek_token_bracket): Likewise.
6065 (parse_expression): Likewise.
6066 * posix/regexec.c (sift_states_iter_mb): Likewise.
6067 (check_node_accept_bytes): Likewise.
6068 * posix/tst-spawn3.c (do_test): Likewise.
6069 * posix/wordexp-test.c (testit): Likewise.
6070 * posix/wordexp.c (parse_tilde): Likewise.
6071 (exec_comm): Likewise.
6072 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6073 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6074 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6075 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6076 * stdio-common/tst-fileno.c (do_test): Likewise.
6077 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6078 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6079 * stdlib/strtod_l.c (round_and_return): Likewise.
6080 (____STRTOF_INTERNAL): Likewise.
6081 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6082 * string/strcspn.c (STRCSPN): Likewise.
6083 * string/test-memmem.c (simple_memmem): Likewise.
6084 * termios/tcsetattr.c (tcsetattr): Likewise.
6085 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6086 * time/asctime.c (asctime_internal): Likewise.
6087 * time/strptime_l.c (__strptime_internal): Likewise.
6088 * time/sys/time.h (timercmp): Likewise.
6089 * time/tzfile.c (__tzfile_compute): Likewise.
6090
6091 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6092
6093 [BZ #21915]
6094 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
6095
6096 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6097
6098 * argp/argp-help.c (__argp_error_internal): New function,
6099 renamed from __argp_error, but that takes a 'mode_flags'
6100 parameter to control the format of long double parameters.
6101 (__argp_error): Converted into a call __argp_error_internal.
6102 (__argp_failure_internal): New function, renamed from
6103 __argp_failure, but that takes a 'mode_flags' parameter.
6104 (__argp_failure): Converted into a call __argp_failure_internal.
6105 * misc/err.c (__vwarnx_internal): New function, renamed from
6106 vwarnx, but that takes a 'mode_flags' parameter.
6107 (vwarnx): Converted into a call to __vwarnx_internal.
6108 (__vwarn_internal): New function, renamed from vwarn, but that
6109 takes a 'mode_flags' parameter.
6110 (vwarn): Converted into a call to __vwarn_internal.
6111 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6112 call to __vfxprintf with 'mode_flags'.
6113 (__error_internal): New function, renamed from error, but that
6114 takes a 'mode_flags' parameter.
6115 (error): Converted into a call to __error_internal.
6116 (__error_at_line_internal): New function, renamed from
6117 error_at_line, but that takes a 'mode_flags' parameter.
6118 (error_at_line): Converted into a call to
6119 __error_at_line_internal.
6120 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6121 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6122 Likewise.
6123
6124 2019-02-20 Martin Liska <mliska@suse.cz>
6125
6126 * math/Makefile: Install math-vector-fortran.h.
6127 * bits/math-vector-fortran.h: New file.
6128 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6129
6130 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6131
6132 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6133 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6134
6135 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
6136
6137 * nptl/pthread_mutex_trylock.c: Fix comment.
6138
6139 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6140
6141 * nptl/pthread_tryjoin.c: Fix comment.
6142
6143 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6144
6145 [BZ #24231]
6146 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6147 after R_SPARC_H34 case.
6148
6149 2019-02-18 Florian Weimer <fweimer@redhat.com>
6150
6151 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6152 (getanswer): Do not call Dprintf.
6153 (res_gethostbyname2_context): Likewise.
6154 (res_gethostbyaddr_context): Likewise.
6155
6156 2019-02-18 Florian Weimer <fweimer@redhat.com>
6157
6158 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6159 declaration.
6160 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6161 Remove definitions.
6162 * libio/stdfiles.c: Update comment.
6163 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6164 set _IO_stdin, _IO_stdout, _IO_stderr.
6165 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6166 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6167 inline function.
6168 (_IO_deallocate_file): New inline function.
6169 * libio/iolibio.h (_IO_vprintf): Remove definition.
6170 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6171 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6172 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6173 _IO_legacy_file.
6174 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6175 __builtin_expect. Use _IO_legacy_file.
6176
6177 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
6178
6179 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6180 Initialize ctid with a known value and remove update of ctid
6181 after clone.
6182 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6183 as assumed current value of ctid_ptr.
6184
6185 2019-02-16 Florian Weimer <fweimer@redhat.com>
6186
6187 Check that non-sysdeps headers have wrapper headers.
6188 * scripts/check-wrapper-headers.py: New file.
6189 * Makefile (tests-special): Add check-wrapper-headers.out.
6190 (check-wrapper-headers.out): New target.
6191 * Rules (tests-special): Add check-wrapper-headers.out.
6192 (check-wrapper-headers.out): New target.
6193
6194 2019-02-16 Florian Weimer <fweimer@redhat.com>
6195
6196 Add missing header wrappers under include/.
6197 * include/ar.h: New file.
6198 * include/bits/mqueue2.h: Likewise.
6199 * include/bits/stdio.h: Likewise.
6200 * include/bits/stdio2.h: Likewise.
6201 * include/fstab.h: Likewise.
6202 * include/fts.h: Likewise.
6203 * include/lastlog.h: Likewise.
6204 * include/netinet/icmp6.h: Likewise.
6205 * include/netinet/igmp.h: Likewise.
6206 * include/netinet/ip6.h: Likewise.
6207 * include/re_comp.h: Likewise.
6208 * include/regexp.h: Likewise.
6209 * include/rpcsvc/bootparam.h: Likewise.
6210 * include/rpcsvc/yp_prot.h: Likewise.
6211 * include/sys/random.h: Likewise.
6212 * include/sys/stropts.h: Likewise.
6213 * include/sys/ttychars.h: Likewise.
6214 * include/sys/vfs.h: Likewise.
6215 * include/wait.h: Likewise.
6216
6217 2019-02-16 Florian Weimer <fweimer@redhat.com>
6218
6219 * nptl_db/proc_service.h: Move to ...
6220 * sysdeps/nptl/proc_service.h: ... here.
6221 * nptl_db/thread_db.h: Move to ...
6222 * sysdeps/nptl/thread_db.h: ... here.
6223 * nptl/descr.h: Include <thread_db.h>.
6224
6225 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6226
6227 * io/Makefile (tests): Add tst-lockf.
6228 * io/lockf.c (lockf): Use __fcntl and only define for
6229 !__OFF_T_MATCHES_OFF64_T.
6230 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6231 __OFF_T_MATCHES_OFF64_T case.
6232 * io/tst-lockf.c: New file.
6233 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6234 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6235 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6236 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6237 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6238 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6239 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6240 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6241 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6242
6243 2019-02-15 Florian Weimer <fweimer@redhat.com>
6244
6245 [BZ #24211]
6246 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6247 pd->result after the thread descriptor has been freed.
6248
6249 2019-02-15 Joseph Myers <joseph@codesourcery.com>
6250
6251 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6252 from function return type.
6253
6254 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6255
6256 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6257
6258 * scripts/test_printers_common.py: Set TERM to a known harmless
6259 value.
6260
6261 2019-02-14 Joseph Myers <joseph@codesourcery.com>
6262
6263 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6264 (xdr_u_int): Likewise.
6265 (xdr_enum): Likewise.
6266 (xdr_bytes): Reword fall-through comment.
6267 (xdr_string): Likewise.
6268
6269 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6270
6271 [BZ #2421]
6272 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6273 (tests): Add tst-join8 tst-join9.
6274 * nptl/lll_timedwait_tid.c: Remove file.
6275 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6276 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6277 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6278 * nptl/pthread_join_common.c (timedwait_tid): New function.
6279 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6280 is set.
6281 * nptl/tst-join5.c (thread_join): New function.
6282 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6283 check.
6284 * nptl/tst-join8.c: New file.
6285 * nptl/tst-join9.c: Likewise.
6286 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6287 lll_futex_timed_wait_cancel): Add generic macros.
6288 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6289 Remove definitions.
6290 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6291 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6292 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6293 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6294 Remove function.
6295 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6296 Likewise.
6297 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6298 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6299 (lll_futex_timed_wait_cancel): New macro.
6300
6301 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6302
6303 * benchtests/Makefile: Add malloc-simple benchmark.
6304 * benchtests/bench-malloc-simple.c: New benchmark.
6305
6306 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6307
6308 * benchtests/bench-memmove.c (do_one_test): Remove unused
6309 ORIG_SRC.
6310 (do_test): Adjust.
6311 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6312 ORIG_SRC.
6313 (do_test): Adjust.
6314
6315 2019-01-13 Jim Wilson <jimw@sifive.com>
6316
6317 [BZ #24040]
6318 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6319 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6320 (func): New.
6321 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6322 call func directly.
6323 * nptl/Makefile (tests): Add tst-unwind-thread.
6324 (CFLAGS-tst-unwind-thread.c): Define.
6325 * nptl/tst-unwind-thread.c: New file.
6326 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6327 as undefined.
6328
6329 2019-02-13 Joseph Myers <joseph@codesourcery.com>
6330
6331 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6332 comment wording.
6333 * nis/nis_call.c (__do_niscall3): Likewise.
6334
6335 * catgets/gencat.c (normalize_line): Use braces around empty
6336 'else' body.
6337 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6338 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6339 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6340 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6341 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6342 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6343 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6344 definition.
6345
6346 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6347 execlp returns.
6348
6349 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6350
6351 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6352 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6353 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6354 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6355 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6356 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6357 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6358 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6359 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6360 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6361 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6362 * benchtests/bench-bcopy.c: Delete file.
6363 * benchtests/bench-bzero.c: Likewise.
6364 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6365 (simple_memccpy): Remove.
6366 (generic_memccpy): Add function.
6367 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6368 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6369 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6370 (generic_mempcpy): Add new function.
6371 * benchtests/bench-memset.c (simple_bzero): Remove.
6372 (builtin_bzero): Remove.
6373 (builtin_memset): Remove.
6374 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6375 (generic_rawmemchr): Add new function.
6376
6377 2019-02-12 Florian Weimer <fweimer@redhat.com>
6378
6379 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6380
6381 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6382
6383 [BZ #24122]
6384 * elf/Makefile (tests): Add tst-audit13.
6385 (modules-names): Add tst-audit13mod1.
6386 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6387 rule.
6388 * elf/tst-audit13.c: New file.
6389 * elf/tst-audit13mod1.c: Likewise.
6390
6391 2019-02-12 Florian Weimer <fweimer@redhat.com>
6392
6393 [BZ #24122]
6394 * elf/rtld.c (unload_audit_module): New function.
6395 (report_audit_module_load_error): Likewise.
6396 (load_audit_module): Likewise. Extracted from dl_main. Call
6397 _dl_close if the laversion symbol cannot be found. Use early
6398 returns for error handling. Add malloc error check. Check for a
6399 zero return value from la_version. Remove spurious comment about
6400 static TLS initialization. Remove useless casts.
6401 (notify_audit_modules_of_loaded_object): New function. Extracted
6402 from dl_main.
6403 (load_audit_module): Likewise.
6404 (dl_main): Call load_audit_modules.
6405
6406 2019-02-12 Joseph Myers <joseph@codesourcery.com>
6407
6408 * elf/dl-exception.c (_dl_exception_create_format): Add
6409 fall-through comments.
6410 * elf/ldconfig.c (parse_conf_include): Likewise.
6411 * elf/rtld.c (print_statistics): Likewise.
6412 * locale/programs/charmap.c (parse_charmap): Likewise.
6413 * misc/mntent_r.c (__getmntent_r): Likewise.
6414 * posix/wordexp.c (parse_arith): Likewise.
6415 (parse_backtick): Likewise.
6416 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6417 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6418 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6419
6420 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
6421
6422 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6423 Use float instead of double.
6424
6425 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6426
6427 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6428
6429 2019-02-08 Joseph Myers <joseph@codesourcery.com>
6430
6431 * sysdeps/powerpc/bits/mathinline.h: Remove.
6432
6433 2019-02-08 Florian Weimer <fweimer@redhat.com>
6434
6435 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6436 * math/bits/math-finite.h: Move to ...
6437 * bits/math-finite.h: ... here.
6438
6439 2019-02-08 Florian Weimer <fweimer@redhat.com>
6440
6441 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6442 * bits/unistd_ext.h: here.
6443
6444 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6445
6446 [BZ #21915]
6447 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6448 * nss/tst-nss-files-hosts-long.c: New file.
6449 * nss/tst-nss-files-hosts-long.root: New directory.
6450 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6451 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6452
6453 2019-02-08 Florian Weimer <fweimer@redhat.com>
6454
6455 * include/bits/unistd_ext.h: Remove file.
6456 * posix/bits/unistd_ext.h: Move to ...
6457 * sysdeps/generic/bits/unistd_ext.h: ... here.
6458
6459 2019-02-08 Florian Weimer <fweimer@redhat.com>
6460
6461 * include/bits/unistd_ext.h: New file.
6462
6463 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6464
6465 * time/tst-strftime2.c: Use array_length macros instead of magic
6466 numbers.
6467
6468 2019-02-08 Florian Weimer <fweimer@redhat.com>
6469
6470 [BZ #24161]
6471 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6472 argument.
6473 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6474 locking if the new do_locking argument is true.
6475 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6476 __run_fork_handlers.
6477
6478 2019-02-08 Florian Weimer <fweimer@redhat.com>
6479
6480 [BZ #6399]
6481 Linux: Add gettid system call wrapper.
6482 * posix/Makefile (headers): Add bits/unistd_ext.h.
6483 * posix/bits/unistd_ext.h: New file.
6484 * posix/unistd.h: Include it.
6485 * manual/process.texi (Process Identification): Document gettid.
6486 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6487 tst-gettid, tst-gettid-kill.
6488 (tst-gettid): Link with $(shared-thread-library).
6489 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6490 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6491 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6492 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6493 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6494 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6495 Add gettid.
6496 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6497 Likewise.
6498 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6499 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6500 Likewise.
6501 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6502 Likewise.
6503 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6504 Likewise.
6505 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6506 Likewise.
6507 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6508 Likewise.
6509 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6510 Likewise.
6511 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6512 Likewise.
6513 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6514 (GLIBC_2.30): Likewise.
6515 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6516 (GLIBC_2.30): Likewise.
6517 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6518 (GLIBC_2.30): Likewise.
6519 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6520 (GLIBC_2.30): Likewise.
6521 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6522 Likewise.
6523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6524 (GLIBC_2.30): Likewise.
6525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6526 (GLIBC_2.30): Likewise.
6527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6528 (GLIBC_2.30): Likewise.
6529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6530 (GLIBC_2.30): Likewise.
6531 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6532 Likewise.
6533 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6534 Likewise.
6535 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6536 Likewise.
6537 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6538 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6539 Likewise.
6540 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6541 Likewise.
6542 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6543 Likewise.
6544 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6545 Likewise.
6546 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6547
6548 2019-02-08 Florian Weimer <fweimer@redhat.com>
6549
6550 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6551 compatibility symbols.
6552
6553 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
6554
6555 [BZ #24180]
6556 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6557 Add compiler barriers and comments.
6558
6559 2019-02-07 Florian Weimer <fweimer@redhat.com>
6560
6561 * include/array_length.h (array_length): Do not use a statement
6562 expression and _Static_assert, so that array_length can be used at
6563 file scope and as a constant expression.
6564
6565 2019-02-07 Florian Weimer <fweimer@redhat.com>
6566
6567 * support/xdlfcn.h (xdlmopen): Declare.
6568 * support/xdlmopen.c: New file.
6569 * support/Makefile (libsupport-routines): Add xdlmopen.
6570
6571 2019-02-06 Joseph Myers <joseph@codesourcery.com>
6572
6573 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6574 before return type, without separate inline.
6575 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6576 * elf/dl-tunables.h (tunable_is_name): Likewise.
6577 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6578 (do_set_top_pad): Likewise.
6579 (do_set_mmap_threshold): Likewise.
6580 (do_set_mmaps_max): Likewise.
6581 (do_set_mallopt_check): Likewise.
6582 (do_set_perturb_byte): Likewise.
6583 (do_set_arena_test): Likewise.
6584 (do_set_arena_max): Likewise.
6585 (do_set_tcache_max): Likewise.
6586 (do_set_tcache_count): Likewise.
6587 (do_set_tcache_unsorted_limit): Likewise.
6588 * nis/nis_subr.c (count_dots): Likewise.
6589 * nptl/allocatestack.c (advise_stack_range): Likewise.
6590 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6591 (do_sin): Likewise.
6592 (reduce_sincos): Likewise.
6593 (do_sincos): Likewise.
6594 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6595 (do_set_elision_enable): Likewise.
6596 (TUNABLE_CALLBACK_FNDECL): Likewise.
6597
6598 2019-02-06 Florian Weimer <fweimer@redhat.com>
6599
6600 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6601 (xdlsym): Use dlerror to detect a NULL symbol.
6602
6603 2019-02-06 Florian Weimer <fweimer@redhat.com>
6604
6605 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6606 <stap-probe.h>.
6607 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6608
6609 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6610
6611 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6612
6613 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6614
6615 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6616 __wmemcmp and weak alias to wmemcmp.
6617
6618 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
6619
6620 [BZ #23403]
6621 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6622 TLS_TCB_AT_TP tls variant.
6623 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6624 Add alignment checks.
6625 * support/Makefile (libsupport-routines): Add xposix_memalign and
6626 xpthread_setstack.
6627 * support/support.h: Add xposix_memalign.
6628 * support/xthread.h: Add xpthread_attr_setstack.
6629 * support/xposix_memalign.c: New File.
6630 * support/xpthread_attr_setstack.c: Likewise.
6631
6632 2019-02-05 Florian Weimer <fweimer@redhat.com>
6633
6634 [BZ #24164]
6635 arm: Use "nr" constraint for Systemtap probes, to avoid the
6636 compiler using memory operands for constants, due to the "o"
6637 alternative in the default "nor" constraint.
6638 * include/stap-probe.h [USE_STAP_PROBE]: Include
6639 <stap-probe-machine.h>
6640 * sysdeps/generic/stap-probe-machine.h: New file.
6641 * sysdeps/arm/stap-probe-machine.h: Likewise.
6642
6643 2019-02-04 Joseph Myers <joseph@codesourcery.com>
6644
6645 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6646 with 0, not tcache->entries[tc_idx].
6647
6648 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6649 once.
6650
6651 2019-02-04 Andreas Schwab <schwab@suse.de>
6652
6653 [BZ #16976]
6654 [BZ #17396]
6655 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
6656 looking up collating elements match against (wide) character
6657 sequence instead of name. Correct alignment adjustment.
6658 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
6659 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
6660 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
6661 (LOCALES): Add cs_CZ.ISO-8859-2.
6662 * posix/tst-fnmatch4.c: New file.
6663 * posix/tst-fnmatch5.c: New file.
6664 * include/wchar.h (__wmemcmp): Declare.
6665 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
6666 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
6667 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
6668 * sysdeps/s390/wmemcmp.c: Likewise.
6669
6670 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
6671
6672 [BZ #24155]
6673 CVE-2019-7309
6674 * NEWS: Updated for CVE-2019-7309.
6675 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
6676 upper 32 bits of RDX register for x32. Use unsigned Jcc
6677 instructions, instead of signed.
6678 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
6679 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
6680
6681 2019-02-04 Florian Weimer <fweimer@redhat.com>
6682
6683 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
6684 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
6685 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
6686 Likewise.
6687 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
6688 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
6689 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
6690 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
6691 Likewise.
6692 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
6693 Likewise.
6694 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
6695 Likewise.
6696 (posix_spawn_file_actions_addopen): Likewise.
6697 (posix_spawn_file_actions_addclose): Likewise.
6698 (posix_spawn_file_actions_adddup2): Likewise.
6699 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
6700 qualifiers.
6701 (posix_spawn_file_actions_addfchdir_np): Likewise.
6702
6703 2019-02-04 David Newall <glibc@davidnewall.com>
6704
6705 elf: Implement --preload option for the dynamic linker.
6706 * elf/rtld.c (preloadarg): New variable.
6707 (handle_preload_list): Pass through “where” argument to
6708 do_preload.
6709 (dl_main): Handle "--preload" and add second call to
6710 handle_preload_list.
6711 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
6712 (tst-rtld-preload-OBJS): Set variable.
6713 (tst-rtld-preload.out): New target.
6714 * elf/tst-rtld-preload.sh: New file.
6715
6716 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
6717
6718 * Makefile (testrun.sh): Exit in case of incorrect argument.
6719
6720 2019-02-04 Florian Weimer <fweimer@redhat.com>
6721
6722 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
6723 alignment gaps.
6724
6725 2019-02-03 Florian Weimer <fweimer@redhat.com>
6726
6727 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
6728 implicit overflow checks.
6729
6730 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
6731
6732 * stdlib/isomac.c: Include <unistd.h>.
6733
6734 2019-02-03 Florian Weimer <fweimer@redhat.com>
6735
6736 * include/time.h (__tzfile_default): Use int, not long int, for
6737 the GMT offsets.
6738 * time/tzfile.c (struct ttinfo): Change type of the offset member
6739 to int.
6740 (__tzfile_read): Remove useless cast.
6741 (__tzfile_default): Adjust prototype.
6742 * time/tzset.c (tz_rule): Change type of the offset member to int.
6743 (parse_offset): Change the type of the sign variable to int.
6744
6745 2019-02-03 Florian Weimer <fweimer@redhat.com>
6746
6747 [BZ #24153]
6748 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
6749 * libio/getchar.c (getchar): Likewise.
6750 * libio/getchar_u.c (getchar_unlocked): Likewise.
6751 * libio/getwchar.c (getwchar): Likewise.
6752 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
6753 * libio/iogets.c (_IO_gets): Likewise.
6754 * libio/vscanf.c (_IO_vscanf): Likewise.
6755 * libio/vwscanf.c (__vwscanf): Likewise.
6756 * libio/tst-bz24153.c: New file.
6757 * libio/Makefile (tests): Add it.
6758
6759 2019-02-02 Florian Weimer <fweimer@redhat.com>
6760
6761 [BZ #14829]
6762 * manual/resource.texi (Basic Scheduling Functions): Add
6763 portability note. Change process to task throughout the section.
6764 Remove incorrect comment about sched_yield as it affects
6765 tasks/threads, not entire processes.
6766 * sysdeps/unix/sysv/linux/bits/posix_opt.h
6767 (_POSIX_PRIORITY_SCHEDULING): Update comment.
6768
6769 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6770
6771 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
6772 * configure: Regenerated.
6773 * manual/install.texi (Tools for Compilation): Update minimum GCC
6774 version.
6775 * INSTALL: Regenerated.
6776
6777 2019-02-01 Florian Weimer <fweimer@redhat.com>
6778
6779 * support/support_test_compare_string.c
6780 (support_test_compare_string): Use "string" in error message.
6781 * support/tst-test_compare_string.c (do_test): Adjust.
6782
6783 2019-02-01 Florian Weimer <fweimer@redhat.com>
6784
6785 * support/support_format_address_family.c
6786 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
6787
6788 2019-02-01 Florian Weimer <fweimer@redhat.com>
6789
6790 * manual/socket.texi (Internet Address Formats): Clarify the byte
6791 order of struct sockaddr_in, struct sockaddr_in6. Document
6792 sin6_flowinfo and sin6_scope_id.
6793
6794 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
6795
6796 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
6797 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
6798 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
6799 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
6800 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
6801 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
6802
6803 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6804
6805 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
6806 [!MEMCHR](MEMCHR): Set to __memchr.
6807 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6808 Add memchr_generic and memchr_nosimd.
6809 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6810 (__libc_ifunc_impl_list): Add memchr ifuncs.
6811 * sysdeps/aarch64/multiarch/memchr.c: New file.
6812 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
6813 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
6814
6815 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6816
6817 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
6818 Add memset_emag.
6819 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
6820 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
6821 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
6822 Add IS_EMAG check for ifunc dispatch.
6823 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
6824 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
6825
6826 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
6827
6828 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
6829 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
6830 Add emag.
6831 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
6832 New macro.
6833
6834 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
6835
6836 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
6837
6838 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
6839
6840 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
6841 syscall-template file.
6842
6843 2019-01-31 Carlos O'Donell <carlos@redhat.com>
6844 Torvald Riegel <triegel@redhat.com>
6845 Rik Prohaska <prohaska7@gmail.com>
6846
6847 [BZ# 23844]
6848 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
6849 tst-rwlock-trywrlock-stall.
6850 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
6851 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
6852 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
6853 Set __wrphase_fute to 1 only if we started the write phase.
6854 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
6855 * nptl/tst-rwlock-trywrlock-stall.c: New file.
6856 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
6857 * support/xpthread_rwlock_destroy.c: New file.
6858 * support/xthread.h: Declare xpthread_rwlock_destroy.
6859
6860 2019-02-01 Joseph Myers <joseph@codesourcery.com>
6861
6862 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
6863 version to 4.0.2.
6864
6865 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
6866
6867 [BZ #24051]
6868 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
6869 * libio/fileops.c (_IO_new_file_underflow): Likewise
6870 * libio/wfileops.c (_IO_wfile_underflow): Likewise
6871 * libio/putchar.c (putchar): Likewise.
6872 * libio/putchar_u.c (putchar_unlocked): Likewise.
6873 * libio/putwchar.c (putchar): Likewise.
6874 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
6875 * libio/tst-bz24051.c: New test.
6876 * libio/Makefile (tests): Add tst-bz24051
6877
6878 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
6879
6880 CVE-2019-9169
6881 regex: fix read overrun [BZ #24114]
6882 Problem found by AddressSanitizer, reported by Hongxu Chen in:
6883 https://debbugs.gnu.org/34140
6884 * posix/regexec.c (proceed_next_node):
6885 Do not read past end of input buffer.
6886
6887 2019-01-31 Florian Weimer <fweimer@redhat.com>
6888
6889 [BZ #24059]
6890 * nss/nss_files/files-alias.c (get_next_alias): Handle
6891 continuation line without newline at the end.
6892 * nss/tst-nss-files-alias-truncated.c: New file.
6893 * nss/Makefile [$(build-shared)] (tests): Add
6894 tst-nss-files-alias-truncated.
6895 (tst-nss-files-alias-truncated): Link with libnss_files.so.
6896 * support/namespace.h (struct support_chroot_configuration): Add
6897 aliases member.
6898 (struct support_chroot): Add path_aliases member.
6899 * support/support_chroot.c (support_chroot_create): Handle
6900 aliases.
6901 (support_chroot_free): Free path_aliases.
6902
6903 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
6904
6905 * version.h (RELEASE): Set to "development".
6906 (VERSION): Set to "2.29.9000".
6907 * NEWS: Add section for 2.30.
6908
6909 * version.h (RELEASE): Set to "stable".
6910 (VERSION): Set to "2.29".
6911 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
6912
6913 * NEWS: Add the list of bugs fixed in 2.29.
6914 * manual/contrib.texi: Update contributors list with some more
6915 names.
6916 * manual/install.texi: Update latest versions of packages
6917 tested.
6918 * INSTALL: Regenerated.
6919
6920 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
6921
6922 * po/be.po: Update translations.
6923 * po/bg.po: Likewise.
6924 * po/ca.po: Likewise.
6925 * po/cs.po: Likewise.
6926 * po/da.po: Likewise.
6927 * po/de.po: Likewise.
6928 * po/el.po: Likewise.
6929 * po/eo.po: Likewise.
6930 * po/es.po: Likewise.
6931 * po/fi.po: Likewise.
6932 * po/fr.po: Likewise.
6933 * po/gl.po: Likewise.
6934 * po/hr.po: Likewise.
6935 * po/hu.po: Likewise.
6936 * po/ia.po: Likewise.
6937 * po/id.po: Likewise.
6938 * po/it.po: Likewise.
6939 * po/ja.po: Likewise.
6940 * po/ko.po: Likewise.
6941 * po/lt.po: Likewise.
6942 * po/nb.po: Likewise.
6943 * po/nl.po: Likewise.
6944 * po/pl.po: Likewise.
6945 * po/pt_BR.po: Likewise.
6946 * po/ru.po: Likewise.
6947 * po/rw.po: Likewise.
6948 * po/sk.po: Likewise.
6949 * po/sl.po: Likewise.
6950 * po/sv.po: Likewise.
6951 * po/tr.po: Likewise.
6952 * po/uk.po: Likewise.
6953 * po/vi.po: Likewise.
6954 * po/zh_CN.po: Likewise.
6955 * po/zh_TW.po: Likewise.
6956
6957 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6958
6959 [BZ #24130]
6960 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
6961 of $f3 register on $y_is_neg path.
6962
6963 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
6964
6965 [BZ #24110]
6966 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
6967 sigaltstack.ss_flags.
6968
6969 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
6970
6971 [BZ #23758]
6972 * manual/time.texi (strftime): Document "%Ey".
6973 * time/strftime_l.c (__strftime_internal): Set the default width
6974 padding with zero of "%Ey" to 2.
6975
6976 [BZ #24096]
6977 * manual/time.texi (strftime): Document "%EC" and "%EY".
6978 * time/Makefile (tests): Add tst-strftime2.
6979 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
6980 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
6981 override padding for "%Ey".
6982 If an optional flag ('_' or '-') is specified to "%EY", interpret the
6983 "%Ey" in the subformat as if decorated with that flag.
6984 * time/tst-strftime2.c: New file.
6985
6986 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6987
6988 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
6989 are not defined.
6990
6991 [BZ #24122]
6992 * elf/Makefile (tests): Add tst-audit13.
6993 (modules-names): Add tst-audit13mod1.
6994 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6995 rule.
6996 * elf/rtld.c (dl_main): Handle invalid audit module version.
6997 * elf/tst-audit13.c: New file.
6998 * elf/tst-audit13mod1.c: Likewise.
6999
7000 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7001
7002 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7003 returned by __hurd_at_flags.
7004 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7005 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7006 directly instead of __hurd_file_name_lookup.
7007
7008 2019-01-21 Joseph Myers <joseph@codesourcery.com>
7009
7010 * scripts/build-many-glibcs.py (Context.checkout): Default
7011 binutils version to 2.32 branch.
7012
7013 2019-01-21 Florian Weimer <fweimer@redhat.com>
7014
7015 [BZ #20018]
7016 CVE-2016-10739
7017 resolv: Reject trailing characters in host names
7018 * include/arpa/inet.h (__inet_aton_exact): Declare.
7019 (inet_aton): Remove hidden prototype. No longer used internally.
7020 * nscd/gai.c (__inet_aton): Do not define.
7021 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7022 * nss/digits_dots.c (__inet_aton): Likewise.
7023 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7024 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7025 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7026 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7027 (tst-resolv-trailing): Likewise.
7028 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7029 libc.
7030 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7031 Make static. Add endp parameter.
7032 (__inet_aton_exact): New function.
7033 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7034 (__inet_addr): Call inet_aton_end.
7035 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7036 not just IPv6. Call __inet_aton_exact.
7037 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7038 (tests): Make const. Add additional test cases with trailing
7039 characters.
7040 (do_test): Use array_length.
7041 * resolv/tst-inet_aton_exact.c: New file.
7042 * resolv/tst-resolv-trailing.c: Likewise.
7043 * resolv/tst-resolv-nondecimal.c: Likewise.
7044 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7045
7046 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7047
7048 [BZ# 24097]
7049 CVE-2019-6488
7050 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7051 Clear the upper 32 bits of RSI register.
7052 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7053 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7054 and tst-size_t-wcsnlen.
7055 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7056 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7057
7058 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7059
7060 [BZ# 24097]
7061 CVE-2019-6488
7062 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7063 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7064 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7065 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7066 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7067
7068 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7069
7070 [BZ# 24097]
7071 CVE-2019-6488
7072 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7073 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7074 * sysdeps/x86_64/strcmp.S: Likewise.
7075 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7076 tst-size_t-strncmp and tst-size_t-wcsncmp.
7077 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7078 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7079 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7080
7081 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7082
7083 [BZ# 24097]
7084 CVE-2019-6488
7085 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7086 RDX_LP for length. Clear the upper 32 bits of RDX register.
7087 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7088 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7089 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7090 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7091
7092 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7093
7094 [BZ# 24097]
7095 CVE-2019-6488
7096 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7097 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7098 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7099 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7100
7101 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7102
7103 [BZ# 24097]
7104 CVE-2019-6488
7105 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7106 length. Clear the upper 32 bits of RDX register.
7107 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7108 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7109 Likewise.
7110 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7111 Likewise.
7112 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7113 tst-size_t-wmemchr.
7114 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7115
7116 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7117
7118 [BZ# 24097]
7119 CVE-2019-6488
7120 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7121 length. Clear the upper 32 bits of RDX register.
7122 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7123 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7124 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7125 tst-size_t-wmemcmp.
7126 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7127 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7128
7129 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7130
7131 [BZ# 24097]
7132 CVE-2019-6488
7133 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7134 upper 32 bits of RDX register.
7135 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7136 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7137 tst-size_t-wmemchr.
7138 * sysdeps/x86_64/x32/test-size_t.h: New file.
7139 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7140 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7141
7142 2019-01-18 Florian Weimer <fweimer@redhat.com>
7143
7144 [BZ #24112]
7145 resolv: Do not send queries for non-host-names in nss_dns.
7146 * resolv/nss_dns/dns-host.c (check_name): New function.
7147 (_nss_dns_gethostbyname2_r): Use it.
7148 (_nss_dns_gethostbyname_r): Likewise.
7149 (_nss_dns_gethostbyname4_r): Likewise.
7150
7151 2019-01-21 Florian Weimer <fweimer@redhat.com>
7152
7153 * resolv/inet_addr.c: Reformat to GNU style.
7154 (__inet_addr, __inet_aton): Update comment.
7155
7156 2019-01-18 Florian Weimer <fweimer@redhat.com>
7157
7158 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7159 ("malloc: Use current (C11-style) atomics for fastbin access").
7160 This commit introduces a substantial performance regression on
7161 POWER and Aarch64.
7162 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7163 (REMOVE_FB): Define.
7164 (_int_malloc): Use it and reindent.
7165 (_int_free): Use CAS loop with
7166 catomic_compare_and_exchange_val_rel.
7167 (malloc_consolidate): Use atomic_exchange_acq.
7168
7169
7170 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7171
7172 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7173 -Wl,-z,now.
7174 (LDFLAGS-tst-minsigstksz-2): Likewise.
7175 (LDFLAGS-tst-minsigstksz-3): Likewise.
7176 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7177 (LDFLAGS-tst-minsigstksz-4): Likewise.
7178
7179 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7180
7181 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7182 than "alternate".
7183
7184 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
7185
7186 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7187
7188 2019-01-16 Zack Weinberg <zackw@panix.com>
7189
7190 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7191 (xget_sigstack_location): New test support functions.
7192 * support/xsigstack.c: New file, implementing them.
7193 * support/tst-xsigstack.c: New test for them.
7194 * support/Makefile: Update.
7195
7196 * signal/tst-minsigstksz-1.c
7197 * signal/tst-minsigstksz-2.c
7198 * signal/tst-minsigstksz-3.c
7199 * signal/tst-minsigstksz-3a.c
7200 * signal/tst-minsigstksz-4.c: New tests.
7201 * signal/Makefile: Run them.
7202
7203 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7204
7205 * po/libc.pot: Regenerate.
7206
7207 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7208
7209 * math/libm-test-fma.inc (fma_test_data): Set
7210 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7211
7212 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7213
7214 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7215 (do_test): Changed __vector __int128_t to __vector unsigned int.
7216
7217 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7218
7219 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7220 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7221 stpcpy-avx2 and stpncpy-avx2.
7222 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7223 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7224 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7225 and __stpncpy_avx2.
7226 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7227 ifunc-strcpy.h}: rename header for a more generic name.
7228 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7229 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7230 AVX unaligned load is fast and vzeroupper is preferred.
7231 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7232 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7233 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7234 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7235 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7236 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7237
7238 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7239
7240 * argp/argp-help.c: Fix typo in comment.
7241 * misc/sys/cdefs.h: Likewise.
7242 * posix/regexec.c (sift_states_iter_mb): Likewise.
7243 * socket/sockatmark.c: Likewise.
7244 * socket/sys/socket.h: Likewise.
7245 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7246 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7247 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7248 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7249 * sysdeps/unix/sockatmark.c: Likewise.
7250 * time/strptime_l.c: Likewise.
7251
7252 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7253
7254 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7255 missing space after the cast of "_NL_CURRENT".
7256
7257 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7258
7259 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7260 ifdef to fix read of VSCR.
7261 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7262 tst-ucontext-ppc64-vscr.c to test list.
7263 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7264
7265 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7266
7267 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7268 fall-through.
7269
7270 2019-01-09 Jim Wilson <jimw@sifive.com>
7271
7272 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7273
7274 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7275
7276 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7277 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7278 __memcpy_falkor for ares.
7279 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7280 Add new define.
7281 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7282 Add ares cpu.
7283
7284 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7285
7286 [BZ #24066]
7287 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7288 4_FP_W_TYPEs are used for IEEE quad precision.
7289 * soft-fp/extendhftf2.c: Likewise.
7290 * soft-fp/extendsftf2.c: Likewise.
7291 * soft-fp/extendxftf2.c: Likewise.
7292 * soft-fp/trunctfdf2.c: Likewise.
7293 * soft-fp/trunctfhf2.c: Likewise.
7294 * soft-fp/trunctfsf2.c: Likewise.
7295 * soft-fp/trunctfxf2.c: Likewise.
7296 * sysdeps/alpha/ots_cvttx.c: Likewise.
7297 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7298 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7299 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7300 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7301 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7302 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7303 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7304 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7305 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7306 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7307 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7308 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7309 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7310 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7311 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7312 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7313 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7314
7315 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7316
7317 [BZ #24024]
7318 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7319 code with -fmath-errno.
7320 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7321 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7322 * string/test-strerror-errno.c: New file.
7323
7324 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7325
7326 [BZ #24046]
7327 * localedata/locales/en_US (date_fmt): Add, set to
7328 "%a %d %b %Y %r %Z".
7329
7330 2019-01-07 Florian Weimer <fweimer@redhat.com>
7331
7332 [BZ #24063]
7333 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7334 instead of @var{errno}.
7335 (Parsing of Integers): Likewise.
7336 (Parsing of Floats): Likewise.
7337 * manual/filesys.texi (Working with Directory Trees): Likewise.
7338 (Temporary Files): Likewise.
7339 * manual/job.texi (Terminal Access Functions): Likewise.
7340 * manual/llio.texi (Synchronizing I/O): Likewise.
7341 * manual/math.texi (SVID Random): Likewise.
7342 * manual/message.texi (The catgets Functions): Likewise.
7343 (Translation with gettext): Likewise.
7344 (Locating gettext catalog): Likewise.
7345 (Charset conversion in gettext): Likewise.
7346 * manual/nss.texi (NSS Module Function Internals): Likewise.
7347 * manual/search.texi (Hash Search Function): Likewise.
7348 * manual/setjmp.texi (System V contexts): Likewise.
7349 * manual/time.texi (Sleeping): Likewise.
7350 * manual/users.texi (Lookup User): Likewise.
7351 (Lookup Group): Likewise.
7352
7353 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7354
7355 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7356 fix typo.
7357
7358 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
7359
7360 [BZ #19444]
7361 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7362 __builtin_unreachable for default case in switch.
7363 (__ieee754_yn): Likewise.
7364 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7365 (__ieee754_ynl): Likewise.
7366 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7367 (__ieee754_ynl): Likewise.
7368 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7369 (__ieee754_ynl): Likewise.
7370
7371 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7372
7373 * manual/maint.texi: Use @{ and @}.
7374
7375 2019-01-04 Florian Weimer <fweimer@redhat.com>
7376
7377 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7378 function.
7379 (do_in_chroot_1): Call it.
7380 (run_chroot_tests):
7381 Improve error reporting in case it is not possible to create a
7382 collision for the PTY name required by the test.
7383
7384 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7385
7386 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7387 lll_wait_tid with timeout.
7388 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7389 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7390 futex_reltimed_wait_cancelable for cancelabla mode.
7391 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7392 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7393 macros.
7394 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7395 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7396 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7397 SYSCALL_CANCEL_NCS): New macro.
7398 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7399 (lll_timedwait_tid): Remove macro.
7400 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7401 Likewise.
7402 (lll_timedwait_tid): Likewise.
7403 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7404 Likewise.
7405 (lll_timedwait_tid): Likewise.
7406 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7407 Likewise.
7408 (lll_timedwait_tid): Likewise.
7409 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7410 Use INTERNAL_SYSCALL_CANCEL.
7411 * sysdeps/unix/sysv/linux/futex-internal.h
7412 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7413 instead of __pthread_{enable,disable}_asynccancel.
7414 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7415 (lll_futex_wait_cancel): New macro.
7416
7417 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7418 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7419
7420 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7421 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7422
7423 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7424 in backtrace analysis.
7425 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7426 side-effects.
7427 (tf_send): Likewise.
7428
7429 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7430 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7431 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7432 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7433 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7434 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7435 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7436 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7437 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7438 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7439 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7440 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7441 Likewise.
7442 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7443 tst-cancel-wrappers.sh.
7444 (generated): Remove tst-cancel-wrappers.out.
7445 (tst-cancel-wrappers.out): Remove rule.
7446 * nptl/tst-cancel-wrappers.sh: Remove file.
7447
7448 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7449
7450 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7451 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7452 Update.
7453
7454 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7455
7456 [BZ #23640]
7457 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7458 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7459 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7460 close-on-exec reset for adddup2 file action.
7461 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7462
7463 2019-01-03 Zack Weinberg <zackw@panix.com>
7464
7465 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7466 parameter. Only use deprecated scanf when __USE_GNU is defined
7467 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7468 than 201103L, whichever is relevant for the language being compiled.
7469
7470 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7471 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7472 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7473 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7474 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7475
7476 * libio/iovsscanf.c
7477 * libio/fwscanf.c
7478 * libio/iovswscanf.c
7479 * libio/swscanf.c
7480 * libio/vscanf.c
7481 * libio/vwscanf.c
7482 * libio/wscanf.c
7483 * stdio-common/fscanf.c
7484 * stdio-common/scanf.c
7485 * stdio-common/vfscanf.c
7486 * stdio-common/vfwscanf.c
7487 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7488 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7489 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7490 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7491 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7492 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7493 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7494 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7495 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7496 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7497 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7498 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7499 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7500 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7501 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7502
7503 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7504 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7505 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7506 not sscanf.
7507 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7508 with a preprocessor macro.
7509
7510 * stdio-common/bug21.c, stdio-common/scanf14.c:
7511 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7512 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7513 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7514 to xscanf, xfscanf, xsscanf.
7515
7516 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7517 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7518 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7519 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7520 xfscanf, xsscanf.
7521 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7522 override feature selection macros or provide definitions of u_char etc.
7523 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7524 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7525 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7526 with -std=gnu89.
7527
7528 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7529
7530 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7531 bits/termios-misc.h.
7532 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7533 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7534 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7535 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7536 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7537 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7538
7539 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7540 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7541 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7542 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7543 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7544 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7545 termios-misc.h.
7546 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7547 (sysdep_headers): Add termios-misc.h.
7548
7549 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7550 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7551 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7552
7553 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7554 termios-tcflow.h.
7555 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7556 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7557 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7558 TCSAFLUSH): Move to termios-tcflow.h.
7559 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7560 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7561 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7562 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7563
7564 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7565 termios-c_lflag.h.
7566 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7567 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7568 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7569 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7570 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7571 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7572 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7573 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7574 Likewise.
7575 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7576 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7577 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7578 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7579
7580 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7581 termios-c_cflag.h.
7582 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7583 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7584 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7585 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7586 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7587 termios-c_cflag.h.
7588 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7589 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7590 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7591 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7592
7593 [BZ #23783]
7594 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7595 termios-baud.h.
7596 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7597 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7598 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7599 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7600 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7601 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7602 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7603 __MAX_BAUD): Move to termios-baud.h.
7604 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7605 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7606 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7607 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7608 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7609
7610 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7611 termios-c_oflag.h.
7612 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7613 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7614 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7615 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7616 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7617 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7618 termios-c_oflag.h.
7619 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7620 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7621 FFR1): Likewise.
7622 [USE_MISC] (XTABS): Likewise.
7623 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7624 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7625 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7626 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7627
7628 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7629 termios-c_iflag.h.
7630 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7631 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7632 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7633 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7634 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7635 IUTF8): Move to termios-c_iflag.h.
7636 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7637 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7638 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7639 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7640
7641 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7642 termios-cc.h.
7643 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7644 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7645 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7646 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7647 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7648 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7649 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7650 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7651 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7652 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7653 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7654 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7655
7656 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
7657 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
7658 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
7659 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
7660 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7661 termios-struct.h.
7662 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
7663 termios-struct.h.
7664 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
7665 Likewise.
7666 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
7667 Likewise.
7668 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
7669 Likewise.
7670 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
7671 Likewise.
7672 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
7673 _HAVE_C_OSPEED): Define.
7674 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
7675 _HAVE_C_OSPEED): Likewise.
7676 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
7677 _HAVE_C_OSPEED): Likewise.
7678 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
7679 (cfsetospeed): Check for define value instead of existence.
7680 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
7681 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7682 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
7683 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
7684 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
7685
7686 [BZ #17783]
7687 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
7688 Define.
7689 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7690 (TIOCSER_TEMT): Likewise.
7691 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
7692 (TEOCSER_TEMT): Likewise.
7693
7694 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
7695
7696 [BZ #24011]
7697 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
7698
7699 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7700
7701 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
7702
7703 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7704
7705 * sysdeps/htl/pt-barrierattr-setpshared.c
7706 (pthread_barrierattr_setpshared): Add stub warning.
7707 * sysdeps/htl/pt-condattr-setpshared.c
7708 (pthread_condattr_setpshared): Likewise.
7709 * sysdeps/htl/pt-mutexattr-setpshared.c
7710 (pthread_mutexattr_setpshared): Likewise.
7711 * sysdeps/htl/pt-rwlockattr-setpshared.c
7712 (pthread_rwlockattr_setpshared): Likewise.
7713 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
7714 (pthread_mutexattr_setpshared): Likewise.
7715
7716 2019-01-02 Joseph Myers <joseph@codesourcery.com>
7717
7718 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
7719 constants to match with Linux 4.20.
7720
7721 * sysdeps/mips/mips32/libm-test-ulps: Update.
7722 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7723
7724 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
7725
7726 [BZ #24034]
7727 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
7728 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
7729 than __typeof (...) for the a_ptr variable.
7730
7731 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7732
7733 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
7734 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
7735 * libio/Makefile (tests): Add tst-sprintf-ub and
7736 tst-sprintf-chk-ub.
7737 (CFLAGS-tst-sprintf-ub.c): New variable.
7738 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
7739 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
7740 destination buffer and check for overflows in fortified mode.
7741 * libio/libioP.h (PRINTF_CHK): New macro.
7742 * libio/tst-sprintf-chk-ub.c: New file.
7743 * libio/tst-sprintf-ub.c: Likewise.
7744
7745 2019-01-02 Florian Weimer <fweimer@redhat.com>
7746
7747 [BZ #24018]
7748 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
7749 failure.
7750
7751 2019-01-02 Florian Weimer <fweimer@redhat.com>
7752
7753 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
7754
7755 2019-01-01 Joseph Myers <joseph@codesourcery.com>
7756
7757 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
7758 macro.
7759
7760 * sysdeps/unix/sysv/linux/netpacket/packet.h
7761 (PACKET_IGNORE_OUTGOING): New macro.
7762
7763 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
7764 macro.
7765
7766 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7767 version to 4.20.
7768 (riscv_flush_icache): New syscall.
7769
7770 * manual/texinfo.tex: Update to version 2018-12-28.17 with
7771 trailing whitespace removed.
7772 * scripts/config.guess: Update to version 2019-01-01.
7773 * scripts/config.sub: Update to version 2019-01-01.
7774 * scripts/move-if-change: Update from gnulib.
7775
7776 * NEWS: Update copyright dates.
7777 * catgets/gencat.c (print_version): Likewise.
7778 * csu/version.c (banner): Likewise.
7779 * debug/catchsegv.sh: Likewise.
7780 * debug/pcprofiledump.c (print_version): Likewise.
7781 * debug/xtrace.sh (do_version): Likewise.
7782 * elf/ldconfig.c (print_version): Likewise.
7783 * elf/ldd.bash.in: Likewise.
7784 * elf/pldd.c (print_version): Likewise.
7785 * elf/sotruss.sh: Likewise.
7786 * elf/sprof.c (print_version): Likewise.
7787 * iconv/iconv_prog.c (print_version): Likewise.
7788 * iconv/iconvconfig.c (print_version): Likewise.
7789 * locale/programs/locale.c (print_version): Likewise.
7790 * locale/programs/localedef.c (print_version): Likewise.
7791 * login/programs/pt_chown.c (print_version): Likewise.
7792 * malloc/memusage.sh (do_version): Likewise.
7793 * malloc/memusagestat.c (print_version): Likewise.
7794 * malloc/mtrace.pl: Likewise.
7795 * manual/libc.texinfo: Likewise.
7796 * nptl/version.c (banner): Likewise.
7797 * nscd/nscd.c (print_version): Likewise.
7798 * nss/getent.c (print_version): Likewise.
7799 * nss/makedb.c (print_version): Likewise.
7800 * posix/getconf.c (main): Likewise.
7801 * scripts/test-installation.pl: Likewise.
7802 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
7803
7804 * All files with FSF copyright notices: Update copyright dates
7805 using scripts/update-copyrights.
7806 * locale/programs/charmap-kw.h: Regenerated.
7807 * locale/programs/locfile-kw.h: Likewise.
7808
7809 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7810
7811 * timezone/zdump.c: Update from tzcode 2018i.
7812 * timezone/zic.c: Likewise.
7813
7814 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
7815
7816 regex: improve Gnulib port to AIX
7817 From the glibc point of view, this removes duplicate macro
7818 definitions and is obviously safe.
7819 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
7820 * posix/regex_internal.h:
7821 (__attribute__, __attribute_warn_unused_result__):
7822 Remove; already defined elsewhere.
7823
7824 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
7825
7826 [BZ #24027]
7827 * malloc/malloc.c (_int_realloc): Always call memcpy for the
7828 copying operation. (ncopies had the wrong type, resulting in an
7829 integer wraparound and too few elements being copied.)
7830
7831 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
7832
7833 [BZ #24022]
7834 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
7835 <asm/syscalls.h> exists with __has_include__ before including it.
7836
7837 2018-12-31 Joseph Myers <joseph@codesourcery.com>
7838
7839 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7840 version to 4.20.
7841
7842 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
7843
7844 * hurd/lookup-retry: Include <unistd.h>.
7845 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
7846 Release it on return. Handle "pid" magical lookup retry.
7847
7848 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7849
7850 [BZ #10496]
7851 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
7852 (t_fmt_ampm): Likewise.
7853 * localedata/locales/aa_ER (t_fmt): Likewise.
7854 (t_fmt_ampm): Likewise.
7855 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
7856 (t_fmt_ampm): Likewise.
7857 * localedata/locales/aa_ET (t_fmt): Likewise.
7858 (t_fmt_ampm): Likewise.
7859 * localedata/locales/am_ET (t_fmt): Likewise.
7860 (t_fmt_ampm): Likewise.
7861 * localedata/locales/byn_ER (t_fmt): Likewise.
7862 (t_fmt_ampm): Likewise.
7863 * localedata/locales/om_ET (t_fmt): Likewise.
7864 (t_fmt_ampm): Likewise.
7865 * localedata/locales/sid_ET (t_fmt): Likewise.
7866 (t_fmt_ampm): Likewise.
7867 * localedata/locales/so_DJ (t_fmt): Likewise.
7868 (t_fmt_ampm): Likewise.
7869 * localedata/locales/so_ET (t_fmt): Likewise.
7870 (t_fmt_ampm): Likewise.
7871 * localedata/locales/so_SO (t_fmt): Likewise.
7872 (t_fmt_ampm): Likewise.
7873 * localedata/locales/ti_ER (t_fmt): Likewise.
7874 (t_fmt_ampm): Likewise.
7875 * localedata/locales/ti_ET (t_fmt): Likewise.
7876 (t_fmt_ampm): Likewise.
7877 * localedata/locales/tig_ER (t_fmt): Likewise.
7878 (t_fmt_ampm): Likewise.
7879 * localedata/locales/wal_ET (t_fmt): Likewise.
7880 (t_fmt_ampm): Likewise.
7881
7882 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
7883 * localedata/locales/ar_IN (t_fmt): Likewise.
7884 * localedata/locales/bhb_IN (t_fmt): Likewise.
7885 * localedata/locales/bho_IN (t_fmt): Likewise.
7886 * localedata/locales/bi_VU (t_fmt): Likewise.
7887 * localedata/locales/bn_BD (t_fmt): Likewise.
7888 * localedata/locales/bn_IN (t_fmt): Likewise.
7889 * localedata/locales/brx_IN (t_fmt): Likewise.
7890 * localedata/locales/doi_IN (t_fmt): Likewise.
7891 * localedata/locales/en_HK (t_fmt): Likewise.
7892 (t_fmt_ampm): Likewise.
7893 * localedata/locales/en_IN (t_fmt): Likewise.
7894 * localedata/locales/en_PH (t_fmt): Likewise.
7895 * localedata/locales/gu_IN (t_fmt): Likewise.
7896 * localedata/locales/hi_IN (t_fmt): Likewise.
7897 * localedata/locales/hif_FJ (t_fmt): Likewise.
7898 * localedata/locales/hne_IN (t_fmt): Likewise.
7899 * localedata/locales/kn_IN (t_fmt): Likewise.
7900 * localedata/locales/kok_IN (t_fmt): Likewise.
7901 * localedata/locales/ks_IN (t_fmt): Likewise.
7902 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
7903 * localedata/locales/mag_IN (t_fmt): Likewise.
7904 * localedata/locales/mai_IN (t_fmt): Likewise.
7905 * localedata/locales/mjw_IN (t_fmt): Likewise.
7906 * localedata/locales/ml_IN (t_fmt): Likewise.
7907 * localedata/locales/mni_IN (t_fmt): Likewise.
7908 * localedata/locales/mr_IN (t_fmt): Likewise.
7909 * localedata/locales/ms_MY (t_fmt): Likewise.
7910 * localedata/locales/pa_IN (t_fmt): Likewise.
7911 * localedata/locales/raj_IN (t_fmt): Likewise.
7912 * localedata/locales/sa_IN (t_fmt): Likewise.
7913 * localedata/locales/sat_IN (t_fmt): Likewise.
7914 * localedata/locales/sd_IN (t_fmt): Likewise.
7915 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
7916 * localedata/locales/tcy_IN (t_fmt): Likewise.
7917 * localedata/locales/the_NP (t_fmt): Likewise.
7918 * localedata/locales/to_TO (t_fmt): Likewise.
7919 * localedata/locales/ur_IN (t_fmt): Likewise.
7920
7921 * localedata/locales/hif_FJ (d_t_fmt): Set to
7922 "%A %d %b %Y %I:%M:%S %p".
7923 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
7924
7925 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
7926 * localedata/locales/ar_BH (t_fmt): Likewise.
7927 * localedata/locales/ar_DZ (t_fmt): Likewise.
7928 * localedata/locales/ar_EG (t_fmt): Likewise.
7929 * localedata/locales/ar_IQ (t_fmt): Likewise.
7930 * localedata/locales/ar_JO (t_fmt): Likewise.
7931 * localedata/locales/ar_KW (t_fmt): Likewise.
7932 * localedata/locales/ar_LB (t_fmt): Likewise.
7933 * localedata/locales/ar_LY (t_fmt): Likewise.
7934 * localedata/locales/ar_OM (t_fmt): Likewise.
7935 * localedata/locales/ar_QA (t_fmt): Likewise.
7936 * localedata/locales/ar_SD (t_fmt): Likewise.
7937 * localedata/locales/ar_SS (t_fmt): Likewise.
7938 * localedata/locales/ar_SY (t_fmt): Likewise.
7939 * localedata/locales/ar_TN (t_fmt): Likewise.
7940 * localedata/locales/ar_YE (t_fmt): Likewise.
7941
7942 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
7943 (t_fmt_ampm): Likewise.
7944 * localedata/locales/gez_ET (t_fmt): Likewise.
7945 (t_fmt_ampm): Likewise.
7946
7947 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
7948 (t_fmt_ampm): Likewise.
7949 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
7950
7951 * localedata/locales/zh_HK (t_fmt):
7952 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
7953
7954 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
7955 because this locale does not use the 12-hour clock.
7956 (t_fmt): Set to "%Z %H:%M:%S".
7957 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
7958
7959 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
7960 because this locale does not use the 12-hour clock.
7961 (t_fmt): Set to "%H:%M:%S %Z".
7962 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
7963
7964 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
7965 because this locale does not use the 12-hour clock.
7966 (t_fmt): Set to "%T".
7967 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
7968 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
7969
7970 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
7971 because this locale does not use the 12-hour clock.
7972 (t_fmt): Set to "%H:%M:%S %Z".
7973 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
7974
7975 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
7976 because this locale does not use the 12-hour clock.
7977 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
7978 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
7979
7980 2018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
7981
7982 [BZ #10496]
7983 [BZ #23724]
7984 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
7985 (t_fmt_ampm): Likewise.
7986 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
7987 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
7988 (d_fmt): Set to "%-d.%-m.%y".
7989
7990 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7991
7992 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
7993 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
7994 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
7995 Likewise.
7996 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
7997 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
7998 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
7999 function.
8000 * support/blob_repeat.c (check_mul_overflow_size_t,
8001 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8002
8003 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8004
8005 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8006
8007 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8008
8009 regex: simplify Gnulib port
8010 This simplifies the code, by removing stuff intended for porting
8011 to Gnulib but no longer needed there.
8012 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8013 uses of libc_hidden_def, weak_alias.
8014 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8015 _Restrict_ except for public-facing headers.
8016 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8017 Remove; already defined elsewhere.
8018 * posix/regex.c, posix/regex_internal.h:
8019 Use __GNUC_PREREQ instead of rolling our own.
8020 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8021
8022 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8023
8024 * benchtests/bench-strlen.c (generic_strlen): New function.
8025 (memchr_strlen): New function.
8026
8027 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8028
8029 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8030 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8031 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8032
8033 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8034
8035 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8036
8037 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8038
8039 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8040 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8041 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8042 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8043 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8044 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8045 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8046
8047 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8048
8049 [BZ #24023]
8050 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8051 PLT reference in libc.so.
8052 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8053 _Q_lltoq and _Q_qtod PLT references in libc.so.
8054
8055 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8056
8057 * benchtests/bench-memchr.c: Cleanup defines.
8058 * benchtests/bench-memcmp.c: Likewise.
8059 * benchtests/bench-memset.c: Likewise.
8060 * benchtests/bench-memset-large.c: Likewise.
8061 * benchtests/bench-memset-walk.c: Likewise.
8062 * benchtests/bench-stpcpy.c: Likewise.
8063 * benchtests/bench-stpncpy.c: Likewise.
8064 * benchtests/bench-strcat.c: Likewise.
8065 * benchtests/bench-strchr.c: Likewise.
8066 * benchtests/bench-strcmp.c: Likewise.
8067 * benchtests/bench-strcpy.c: Likewise.
8068 * benchtests/bench-strcspn.c: Likewise.
8069 * benchtests/bench-string.h: Likewise.
8070 * benchtests/bench-strlen.c: Likewise.
8071 * benchtests/bench-strncat.c: Likewise.
8072 * benchtests/bench-strncmp.c: Likewise.
8073 * benchtests/bench-strncpy.c: Likewise.
8074 * benchtests/bench-strnlen.c: Likewise.
8075 * benchtests/bench-strpbrk.c: Likewise.
8076 * benchtests/bench-strrchr.c: Likewise.
8077 * benchtests/bench-strspn.c: Likewise.
8078
8079 2018-12-21 Joseph Myers <joseph@codesourcery.com>
8080
8081 * stdlib/longlong.h: Update from GCC.
8082
8083 [BZ #23993]
8084 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8085 * configure: Regenerated.
8086 * manual/install.texi (Tools for Compilation): Update minimum GCC
8087 version.
8088 * INSTALL: Regenerated.
8089
8090 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
8091
8092 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8093
8094 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
8095
8096 * malloc/malloc.c (mremap_chunk): Additional checks.
8097
8098 2018-12-21 Mao Han <han_mao@c-sky.com>
8099
8100 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8101 * scripts/build-many-glibcs.py: Add C-SKY targets.
8102 * sysdeps/csky/Implies: New file.
8103 * sysdeps/csky/Makefile: Likewise.
8104 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8105 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8106 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8107 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8108 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8109 * sysdeps/csky/abiv2/memmove.S: Likewise.
8110 * sysdeps/csky/abiv2/memset.S: Likewise.
8111 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8112 * sysdeps/csky/abiv2/start.S: Likewise.
8113 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8114 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8115 * sysdeps/csky/abiv2/strlen.S: Likewise.
8116 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8117 * sysdeps/csky/abort-instr.h: Likewise.
8118 * sysdeps/csky/atomic-machine.h: Likewise.
8119 * sysdeps/csky/bits/endian.h: Likewise.
8120 * sysdeps/csky/bits/fenv.h: Likewise.
8121 * sysdeps/csky/bits/link.h: Likewise.
8122 * sysdeps/csky/bits/setjmp.h: Likewise.
8123 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8124 * sysdeps/csky/bsd-setjmp.S: Likewise.
8125 * sysdeps/csky/configure: Likewise.
8126 * sysdeps/csky/configure.ac: Likewise.
8127 * sysdeps/csky/dl-machine.h: Likewise.
8128 * sysdeps/csky/dl-procinfo.c: Likewise.
8129 * sysdeps/csky/dl-procinfo.h: Likewise.
8130 * sysdeps/csky/dl-sysdep.h: Likewise.
8131 * sysdeps/csky/dl-tls.h: Likewise.
8132 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8133 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8134 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8135 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8136 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8137 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8138 * sysdeps/csky/fpu/fegetround.c: Likewise.
8139 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8140 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8141 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8142 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8143 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8144 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8145 * sysdeps/csky/fpu/fesetround.c: Likewise.
8146 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8147 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8148 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8149 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8150 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8151 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8152 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8153 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8154 * sysdeps/csky/fpu_control.h: Likewise.
8155 * sysdeps/csky/gccframe.h: Likewise.
8156 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8157 * sysdeps/csky/ldsodefs.h: Likewise.
8158 * sysdeps/csky/libc-tls.c: Likewise.
8159 * sysdeps/csky/linkmap.h: Likewise.
8160 * sysdeps/csky/machine-gmon.h: Likewise.
8161 * sysdeps/csky/memusage.h: Likewise.
8162 * sysdeps/csky/nofpu/Implies: Likewise.
8163 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8164 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8165 * sysdeps/csky/nptl/Makefile: Likewise.
8166 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8167 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8168 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8169 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8170 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8171 * sysdeps/csky/nptl/tls.h: Likewise.
8172 * sysdeps/csky/preconfigure: Likewise.
8173 * sysdeps/csky/sfp-machine.h: Likewise.
8174 * sysdeps/csky/sotruss-lib.c: Likewise.
8175 * sysdeps/csky/stackinfo.h: Likewise.
8176 * sysdeps/csky/sysdep.h: Likewise.
8177 * sysdeps/csky/tininess.h: Likewise.
8178 * sysdeps/csky/tst-audit.h: Likewise.
8179 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8180 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8181 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8182 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8183 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8184 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8185 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8186 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8187 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8188 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8189 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8190 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8191 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8192 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8193 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8194 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8195 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8196 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8197 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8198 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8199 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8200 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8201 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8202 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8203 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8204 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8205 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8206 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8207 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8208 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8209 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8210 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8211 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8212 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8213 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8214 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8215 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8216 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8217 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8218 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8219 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8220 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8221 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8222 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8223
8224 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8225
8226 * include/time.h (__difftime64): Add.
8227 * time/difftime.c (subtract): convert to 64-bit time.
8228 * time/difftime.c (__difftime64): Add.
8229 * time/difftime.c (__difftime): Wrap around __difftime64.
8230
8231 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8232
8233 * manual/examples/add.c: Remove redundant "if not".
8234 * manual/examples/argp-ex1.c: Likewise.
8235 * manual/examples/argp-ex2.c: Likewise.
8236 * manual/examples/argp-ex3.c: Likewise.
8237 * manual/examples/argp-ex4.c: Likewise.
8238 * manual/examples/atexit.c: Likewise.
8239 * manual/examples/db.c: Likewise.
8240 * manual/examples/dir.c: Likewise.
8241 * manual/examples/dir2.c: Likewise.
8242 * manual/examples/execinfo.c: Likewise.
8243 * manual/examples/filecli.c: Likewise.
8244 * manual/examples/filesrv.c: Likewise.
8245 * manual/examples/fmtmsgexpl.c: Likewise.
8246 * manual/examples/genpass.c: Likewise.
8247 * manual/examples/inetcli.c: Likewise.
8248 * manual/examples/inetsrv.c: Likewise.
8249 * manual/examples/isockad.c: Likewise.
8250 * manual/examples/longopt.c: Likewise.
8251 * manual/examples/memopen.c: Likewise.
8252 * manual/examples/memstrm.c: Likewise.
8253 * manual/examples/mkdirent.c: Likewise.
8254 * manual/examples/mkfsock.c: Likewise.
8255 * manual/examples/mkisock.c: Likewise.
8256 * manual/examples/mygetpass.c: Likewise.
8257 * manual/examples/pipe.c: Likewise.
8258 * manual/examples/popen.c: Likewise.
8259 * manual/examples/rprintf.c: Likewise.
8260 * manual/examples/search.c: Likewise.
8261 * manual/examples/select.c: Likewise.
8262 * manual/examples/setjmp.c: Likewise.
8263 * manual/examples/sigh1.c: Likewise.
8264 * manual/examples/sigusr.c: Likewise.
8265 * manual/examples/stpcpy.c: Likewise.
8266 * manual/examples/strdupa.c: Likewise.
8267 * manual/examples/strftim.c: Likewise.
8268 * manual/examples/subopt.c: Likewise.
8269 * manual/examples/swapcontext.c: Likewise.
8270 * manual/examples/termios.c: Likewise.
8271 * manual/examples/testopt.c: Likewise.
8272 * manual/examples/testpass.c: Likewise.
8273 * manual/examples/timeval_subtract.c: Likewise.
8274
8275 2018-12-19 Joseph Myers <joseph@codesourcery.com>
8276
8277 * sysdeps/x86/fpu/math_private.h: New file.
8278 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8279
8280 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8281 definition.
8282 (cosh): Likewise.
8283 (tanh): Likewise.
8284
8285 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8286
8287 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8288 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8289 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8290 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8291 fields.
8292 (_dl_show_auxv): Give a special treatment to
8293 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8294 and AT_L3_CACHEGEOMETRY.
8295 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8296 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8297 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8298 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8299
8300 2018-12-19 Andreas Schwab <schwab@suse.de>
8301
8302 * nscd/connections.c (check_use): Don't abort on invalid len.
8303
8304 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8305
8306 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8307 values in the 64bit value cases.
8308
8309 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
8310
8311 * include/time.h
8312 (__ctime64_r): Add.
8313 * time/ctime_r.c
8314 (__ctime64_r): Add.
8315 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8316
8317 * include/time.h
8318 (__ctime64): Add.
8319 * time/gmtime.c
8320 (__ctime64): Add.
8321 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8322
8323 * include/time.h
8324 (__gmtime64_r): Add.
8325 * time/gmtime.c
8326 (__gmtime64_r): Add.
8327 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8328
8329 * include/time.h
8330 (__gmtime64): Add.
8331 * time/gmtime.c
8332 (__gmtime64): Add.
8333 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8334
8335 * include/time.h
8336 (__localtime64_r): Add.
8337 * time/localtime.c
8338 (__localtime64_r): Add.
8339 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8340
8341 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8342
8343 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8344 kernel_sigction definition.
8345
8346 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8347
8348 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8349
8350 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8351 __syscall_rt_sigaction.
8352 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8353 (kernel_sigaction): Use Linux generic defintion.
8354 (STUB): Define.
8355 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8356 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8357 (__syscall_rt_sigaction): Remove implementation.
8358 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8359 hidden.
8360 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8361 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8362 INTERNAL_SYSCALL): Remove definitions.
8363 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8364 action and signal set size.
8365 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8366 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8367
8368 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8369 James Clarke <jrtc27@jrtc27.com>
8370
8371 [BZ #23967]
8372 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8373 Define if SA_RESTORER is defined.
8374 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8375 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8376 already defined.
8377 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8378 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8379 definitions.
8380 (HAS_SA_RESTORER): Define.
8381 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8382 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8383 (HAS_SA_RESTORER): Define.
8384 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8385 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8386 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8387 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8388 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8389
8390 2018-12-18 Joseph Myers <joseph@codesourcery.com>
8391
8392 * sysdeps/unix/sysv/linux/kernel-features.h
8393 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8394 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8395 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8396 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8397 (__ASSUME_ST_INO_64_BIT): Likewise.
8398 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8399 <kernel-features.h>.
8400 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8401 Remove conditional code.
8402 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8403 <kernel-features.h>.
8404 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8405 Remove conditional code.
8406 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8407 <kernel-features.h>.
8408 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8409 Remove conditional code.
8410 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8411 <kernel-features.h>.
8412 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8413 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8414
8415 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8416
8417 * sysdeps/s390/multiarch/ifunc-resolve.h
8418 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8419 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8420 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8421 Delete macro definition.
8422 (s390_libc_ifunc_init): Rename to
8423 s390_libc_ifunc_expr_stfle_init.
8424 * sysdeps/s390/bzero: Use
8425 s390_libc_ifunc_expr_stfle_init instead of
8426 s390_libc_ifunc_init.
8427 * sysdeps/s390/memcmp.c: Likewise.
8428 * sysdeps/s390/memcpy.c: Likewise.
8429 * sysdeps/s390/mempcpy.c: Likewise.
8430 * sysdeps/s390/memset.c: Likewise.
8431
8432 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8433
8434 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8435 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8436
8437 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8438
8439 * sysdeps/s390/multiarch/Makefile
8440 (sysdep_routines): Remove wmemcmp variants.
8441 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8442 * sysdeps/s390/multiarch/ifunc-impl-list.c
8443 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8444 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8445 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8446 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8447 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8448 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8449 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8450 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8451
8452 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8453
8454 * sysdeps/s390/multiarch/Makefile
8455 (sysdep_routines): Remove wmemset variants.
8456 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8457 * sysdeps/s390/multiarch/ifunc-impl-list.c
8458 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8459 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8460 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8461 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8462 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8463 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8464 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8465 * sysdeps/s390/ifunc-wmemset.h: New file.
8466
8467 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8468
8469 * sysdeps/s390/multiarch/Makefile
8470 (sysdep_routines): Remove wmemchr variants.
8471 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8472 * sysdeps/s390/multiarch/ifunc-impl-list.c
8473 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8474 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8475 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8476 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8477 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8478 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8479 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8480 * sysdeps/s390/ifunc-wmemchr.h: New file.
8481
8482 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8483
8484 * sysdeps/s390/multiarch/Makefile
8485 (sysdep_routines): Remove wcscspn variants.
8486 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8487 * sysdeps/s390/multiarch/ifunc-impl-list.c
8488 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8489 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8490 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8491 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8492 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8493 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8494 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8495 * sysdeps/s390/ifunc-wcscspn.h: New file.
8496
8497 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8498
8499 * sysdeps/s390/multiarch/Makefile
8500 (sysdep_routines): Remove wcspbrk variants.
8501 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8502 * sysdeps/s390/multiarch/ifunc-impl-list.c
8503 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8504 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8505 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8506 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8507 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8508 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8509 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8510 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8511
8512 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8513
8514 * sysdeps/s390/multiarch/Makefile
8515 (sysdep_routines): Remove wcsspn variants.
8516 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8517 * sysdeps/s390/multiarch/ifunc-impl-list.c
8518 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8519 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8520 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8521 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8522 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8523 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8524 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8525 * sysdeps/s390/ifunc-wcsspn.h: New file.
8526
8527 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8528
8529 * sysdeps/s390/multiarch/Makefile
8530 (sysdep_routines): Remove wcsrchr variants.
8531 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8532 * sysdeps/s390/multiarch/ifunc-impl-list.c
8533 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8534 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8535 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8536 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8537 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8538 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8539 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8540 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8541
8542 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8543
8544 * sysdeps/s390/multiarch/Makefile
8545 (sysdep_routines): Remove wcschrnul variants.
8546 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8547 * sysdeps/s390/multiarch/ifunc-impl-list.c
8548 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8549 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8550 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8551 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8552 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8553 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8554 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8555 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8556
8557 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8558
8559 * sysdeps/s390/multiarch/Makefile
8560 (sysdep_routines): Remove wcschr variants.
8561 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8562 * sysdeps/s390/multiarch/ifunc-impl-list.c
8563 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8564 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8565 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8566 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8567 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8568 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8569 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8570 * sysdeps/s390/ifunc-wcschr.h: New file.
8571
8572 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8573
8574 * sysdeps/s390/multiarch/Makefile
8575 (sysdep_routines): Remove wcsncmp variants.
8576 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8577 * sysdeps/s390/multiarch/ifunc-impl-list.c
8578 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8579 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8580 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8581 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8582 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8583 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8584 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8585 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8586
8587 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8588
8589 * sysdeps/s390/multiarch/Makefile
8590 (sysdep_routines): Remove wcscmp variants.
8591 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8592 * sysdeps/s390/multiarch/ifunc-impl-list.c
8593 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8594 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8595 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8596 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8597 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8598 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8599 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8600 * sysdeps/s390/ifunc-wcscmp.h: New file.
8601
8602 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8603
8604 * sysdeps/s390/multiarch/Makefile
8605 (sysdep_routines): Remove wcsncat variants.
8606 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8607 * sysdeps/s390/multiarch/ifunc-impl-list.c
8608 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8609 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8610 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8611 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8612 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8613 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8614 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8615 * sysdeps/s390/ifunc-wcsncat.h: New file.
8616
8617 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8618
8619 * sysdeps/s390/multiarch/Makefile
8620 (sysdep_routines): Remove wcscat variants.
8621 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8622 * sysdeps/s390/multiarch/ifunc-impl-list.c
8623 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8624 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8625 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8626 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8627 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8628 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8629 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8630 * sysdeps/s390/ifunc-wcscat.h: New file.
8631
8632 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8633
8634 * sysdeps/s390/multiarch/Makefile
8635 (sysdep_routines): Remove wcpncpy variants.
8636 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8637 * sysdeps/s390/multiarch/ifunc-impl-list.c
8638 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8639 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8640 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8641 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8642 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8643 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8644 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8645 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8646
8647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8648
8649 * sysdeps/s390/multiarch/Makefile
8650 (sysdep_routines): Remove wcsncpy variants.
8651 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
8652 * sysdeps/s390/multiarch/ifunc-impl-list.c
8653 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
8654 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
8655 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
8656 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
8657 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
8658 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
8659 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
8660 * sysdeps/s390/ifunc-wcsncpy.h: New file.
8661
8662 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8663
8664 * sysdeps/s390/multiarch/Makefile
8665 (sysdep_routines): Remove wcpcpy variants.
8666 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
8667 * sysdeps/s390/multiarch/ifunc-impl-list.c
8668 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
8669 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
8670 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
8671 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
8672 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
8673 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
8674 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
8675 * sysdeps/s390/ifunc-wcpcpy.h: New file.
8676
8677 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8678
8679 * sysdeps/s390/multiarch/Makefile
8680 (sysdep_routines): Remove wcscpy variants.
8681 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
8682 * sysdeps/s390/multiarch/ifunc-impl-list.c
8683 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
8684 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
8685 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
8686 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
8687 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
8688 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
8689 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
8690 * sysdeps/s390/ifunc-wcscpy.h: New file.
8691
8692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8693
8694 * sysdeps/s390/multiarch/Makefile
8695 (sysdep_routines): Remove wcsnlen variants.
8696 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
8697 * sysdeps/s390/multiarch/ifunc-impl-list.c
8698 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
8699 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
8700 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
8701 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
8702 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
8703 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
8704 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
8705 * sysdeps/s390/ifunc-wcsnlen.h: New file.
8706
8707 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8708
8709 * sysdeps/s390/multiarch/Makefile
8710 (sysdep_routines): Remove wcslen variants.
8711 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
8712 * sysdeps/s390/multiarch/ifunc-impl-list.c
8713 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
8714 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
8715 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
8716 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
8717 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
8718 * sysdeps/s390/multiarch/wcslen.c: Move to ...
8719 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
8720 * sysdeps/s390/ifunc-wcslen.h: New file.
8721
8722 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8723
8724 * sysdeps/s390/multiarch/Makefile
8725 (sysdep_routines): Remove memrchr variants.
8726 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
8727 * sysdeps/s390/multiarch/ifunc-impl-list.c
8728 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
8729 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
8730 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
8731 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
8732 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
8733 * sysdeps/s390/multiarch/memrchr.c: Move to ...
8734 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
8735 * sysdeps/s390/ifunc-memrchr.h: New file.
8736
8737 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8738
8739 * sysdeps/s390/multiarch/Makefile
8740 (sysdep_routines): Remove memccpy variants.
8741 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
8742 * sysdeps/s390/multiarch/ifunc-impl-list.c
8743 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
8744 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
8745 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
8746 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
8747 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
8748 * sysdeps/s390/multiarch/memccpy.c: Move to ...
8749 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
8750 * sysdeps/s390/ifunc-memccpy.h: New file.
8751
8752 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8753
8754 * sysdeps/s390/multiarch/Makefile
8755 (sysdep_routines): Remove rawmemchr variants.
8756 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
8757 * sysdeps/s390/multiarch/ifunc-impl-list.c
8758 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
8759 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
8760 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
8761 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
8762 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
8763 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
8764 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
8765 * sysdeps/s390/ifunc-rawmemchr.h: New file.
8766
8767 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8768
8769 * sysdeps/s390/multiarch/Makefile
8770 (sysdep_routines): Remove memchr variants.
8771 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
8772 * sysdeps/s390/multiarch/ifunc-impl-list.c
8773 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
8774 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
8775 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
8776 * sysdeps/s390/multiarch/memchr.c: Move to ...
8777 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
8778 * sysdeps/s390/ifunc-memchr.h: New file.
8779 * sysdeps/s390/s390-64/memchr.S: Move to ...
8780 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
8781 for 31/64bit and ifunc handling.
8782 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
8783 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
8784 * sysdeps/s390/s390-32/memchr.S: Likewise.
8785
8786 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8787
8788 * sysdeps/s390/multiarch/Makefile
8789 (sysdep_routines): Remove strcspn variants.
8790 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
8791 * sysdeps/s390/multiarch/ifunc-impl-list.c
8792 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
8793 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
8794 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
8795 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
8796 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
8797 * sysdeps/s390/multiarch/strcspn.c: Move to ...
8798 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
8799 * sysdeps/s390/ifunc-strcspn.h: New file.
8800
8801 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8802
8803 * sysdeps/s390/multiarch/Makefile
8804 (sysdep_routines): Remove strpbrk variants.
8805 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
8806 * sysdeps/s390/multiarch/ifunc-impl-list.c
8807 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
8808 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
8809 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
8810 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
8811 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
8812 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
8813 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
8814 * sysdeps/s390/ifunc-strpbrk.h: New file.
8815
8816 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8817
8818 * sysdeps/s390/multiarch/Makefile
8819 (sysdep_routines): Remove strspn variants.
8820 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
8821 * sysdeps/s390/multiarch/ifunc-impl-list.c
8822 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
8823 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
8824 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
8825 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
8826 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
8827 * sysdeps/s390/multiarch/strspn.c: Move to ...
8828 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
8829 * sysdeps/s390/ifunc-strspn.h: New file.
8830
8831 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8832
8833 * sysdeps/s390/multiarch/Makefile
8834 (sysdep_routines): Remove strrchr variants.
8835 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
8836 * sysdeps/s390/multiarch/ifunc-impl-list.c
8837 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
8838 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
8839 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
8840 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
8841 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
8842 * sysdeps/s390/multiarch/strrchr.c: Move to ...
8843 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
8844 * sysdeps/s390/ifunc-strrchr.h: New file.
8845
8846 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8847
8848 * sysdeps/s390/multiarch/Makefile
8849 (sysdep_routines): Remove strchrnul variants.
8850 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
8851 * sysdeps/s390/multiarch/ifunc-impl-list.c
8852 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
8853 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
8854 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
8855 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
8856 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
8857 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
8858 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
8859 * sysdeps/s390/ifunc-strchrnul.h: New file.
8860
8861 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8862
8863 * sysdeps/s390/multiarch/Makefile
8864 (sysdep_routines): Remove strchr variants.
8865 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
8866 * sysdeps/s390/multiarch/ifunc-impl-list.c
8867 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
8868 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
8869 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
8870 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
8871 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
8872 * sysdeps/s390/multiarch/strchr.c: Move to ...
8873 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
8874 * sysdeps/s390/ifunc-strchr.h: New file.
8875
8876 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8877
8878 * sysdeps/s390/multiarch/Makefile
8879 (sysdep_routines): Remove strncmp variants.
8880 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
8881 * sysdeps/s390/multiarch/ifunc-impl-list.c
8882 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
8883 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
8884 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
8885 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
8886 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
8887 * sysdeps/s390/multiarch/strncmp.c: Move to ...
8888 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
8889 * sysdeps/s390/ifunc-strncmp.h: New file.
8890
8891 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8892
8893 * sysdeps/s390/multiarch/Makefile
8894 (sysdep_routines): Remove strcmp variants.
8895 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
8896 * sysdeps/s390/multiarch/ifunc-impl-list.c
8897 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
8898 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
8899 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
8900 * sysdeps/s390/multiarch/strcmp.c: Move to ...
8901 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
8902 * sysdeps/s390/ifunc-strcmp.h: New file.
8903 * sysdeps/s390/s390-64/strcmp.S: Move to ...
8904 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
8905 for 31/64bit and ifunc handling.
8906 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
8907 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
8908 * sysdeps/s390/s390-32/strcmp.S: Likewise.
8909
8910 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8911
8912 * sysdeps/s390/multiarch/Makefile
8913 (sysdep_routines): Remove strncat variants.
8914 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
8915 * sysdeps/s390/multiarch/ifunc-impl-list.c
8916 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
8917 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
8918 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
8919 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
8920 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
8921 * sysdeps/s390/multiarch/strncat.c: Move to ...
8922 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
8923 * sysdeps/s390/ifunc-strncat.h: New file.
8924
8925 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8926
8927 * sysdeps/s390/multiarch/Makefile
8928 (sysdep_routines): Remove strcat variants.
8929 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
8930 * sysdeps/s390/multiarch/ifunc-impl-list.c
8931 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
8932 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
8933 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
8934 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
8935 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
8936 * sysdeps/s390/multiarch/strcat.c: Move to ...
8937 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
8938 * sysdeps/s390/ifunc-strcat.h: New file.
8939
8940 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8941
8942 * sysdeps/s390/multiarch/Makefile
8943 (sysdep_routines): Remove stpncpy variants.
8944 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
8945 * sysdeps/s390/multiarch/ifunc-impl-list.c
8946 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
8947 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
8948 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
8949 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
8950 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
8951 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
8952 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
8953 * sysdeps/s390/ifunc-stpncpy.h: New file.
8954
8955 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8956
8957 * sysdeps/s390/multiarch/Makefile
8958 (sysdep_routines): Remove strncpy variants.
8959 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
8960 * sysdeps/s390/multiarch/ifunc-impl-list.c
8961 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
8962 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
8963 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
8964 * sysdeps/s390/multiarch/strncpy.c: Move to ...
8965 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
8966 * sysdeps/s390/ifunc-strncpy.h: New file.
8967 * sysdeps/s390/s390-64/strncpy.S: Move to ...
8968 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
8969 and adjust ifunc handling.
8970 * sysdeps/s390/s390-32/strncpy.S: Move to ...
8971 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
8972 and adjust ifunc handling.
8973 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
8974 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
8975
8976 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8977
8978 * sysdeps/s390/multiarch/Makefile
8979 (sysdep_routines): Remove stpcpy variants.
8980 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
8981 * sysdeps/s390/multiarch/ifunc-impl-list.c
8982 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
8983 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
8984 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
8985 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
8986 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
8987 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
8988 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
8989 * sysdeps/s390/ifunc-stpcpy.h: New file.
8990
8991 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
8992
8993 * sysdeps/s390/multiarch/Makefile
8994 (sysdep_routines): Remove strcpy variants.
8995 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
8996 * sysdeps/s390/multiarch/ifunc-impl-list.c
8997 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
8998 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
8999 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9000 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9001 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9002 * sysdeps/s390/ifunc-strcpy.h: New file.
9003 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9004 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9005 for 31/64bit and ifunc handling.
9006 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9007 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9008 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9009
9010 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9011
9012 * sysdeps/s390/multiarch/Makefile
9013 (sysdep_routines): Remove strnlen variants.
9014 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9015 * sysdeps/s390/multiarch/ifunc-impl-list.c
9016 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9017 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9018 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9019 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9020 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9021 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9022 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9023 * sysdeps/s390/ifunc-strnlen.h: New file.
9024
9025 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9026
9027 * sysdeps/s390/multiarch/Makefile
9028 (sysdep_routines): Remove strlen variants.
9029 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9030 * sysdeps/s390/multiarch/ifunc-impl-list.c
9031 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9032 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9033 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9034 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9035 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9036 * sysdeps/s390/multiarch/strlen.c: Move to ...
9037 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9038 * sysdeps/s390/ifunc-strlen.h: New file.
9039
9040 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9041
9042 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9043 * sysdeps/s390/multiarch/ifunc-impl-list.c
9044 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9045 * sysdeps/s390/ifunc-memmem.h: New file.
9046 * sysdeps/s390/memmem.c: Likewise.
9047 * sysdeps/s390/memmem-c.c: Likewise.
9048 * sysdeps/s390/memmem-vx.c: Likewise.
9049
9050 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9051
9052 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9053 * sysdeps/s390/multiarch/ifunc-impl-list.c
9054 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9055 * sysdeps/s390/ifunc-strstr.h: New file.
9056 * sysdeps/s390/strstr.c: Likewise.
9057 * sysdeps/s390/strstr-c.c: Likewise.
9058 * sysdeps/s390/strstr-vx.c: Likewise.
9059
9060 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9061
9062 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9063 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9064 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9065 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9066 New defines.
9067 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9068 * sysdeps/s390/memmove-c.c: New file.
9069 * sysdeps/s390/memmove.c: Likewise.
9070 * sysdeps/s390/multiarch/ifunc-impl-list.c
9071 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9072
9073 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9074
9075 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9076 * sysdeps/s390/configure.ac: Add check for z13 support.
9077 * sysdeps/s390/configure: Regenerated.
9078
9079 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9080
9081 * sysdeps/s390/memcopy.h: New file.
9082
9083 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9084
9085 * sysdeps/s390/s390-32/bcopy.S: Remove.
9086 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9087
9088 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9089
9090 * sysdeps/s390/ifunc-memcpy.h: New File.
9091 * sysdeps/s390/memcpy.S: Move to ...
9092 * sysdeps/s390/memcpy-z900.S ... here.
9093 Move implementations from memcpy-s390x.s to here.
9094 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9095 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9096 Remove memcpy/mempcpy variants.
9097 * sysdeps/s390/Makefile (sysdep_routines):
9098 Add memcpy/mempcpy variants.
9099 * sysdeps/s390/multiarch/ifunc-impl-list.c
9100 (__libc_ifunc_impl_list): Adjust ifunc variants for
9101 memcpy and mempcpy.
9102 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9103 to ...
9104 * sysdeps/s390/memcpy.c: ... here.
9105 Adjust ifunc variants for memcpy.
9106 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9107 * sysdeps/s390/mempcpy.c: ... here.
9108 Adjust ifunc variants for mempcpy.
9109 * sysdeps/s390/mempcpy.S: Delete file.
9110
9111 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9112
9113 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9114 * sysdeps/s390/memcpy.S: ... here.
9115 Adjust to be usable for 31/64bit.
9116 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9117 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9118 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9119 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9120 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9121 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9122 Adjust to be usable for 31/64bit.
9123 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9124 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9125 * sysdeps/s390/multiarch/memcpy.c: ... here.
9126 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9127
9128 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9129
9130 * sysdeps/s390/ifunc-memcmp.h: New File.
9131 * sysdeps/s390/memcmp.S: Move to ...
9132 * sysdeps/s390/memcmp-z900.S ... here.
9133 Move implementations from memcmp-s390x.s to here.
9134 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9135 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9136 Remove memcmp variants.
9137 * sysdeps/s390/Makefile (sysdep_routines):
9138 Add memcmp variants.
9139 * sysdeps/s390/multiarch/ifunc-impl-list.c
9140 (__libc_ifunc_impl_list): Adjust ifunc variants for
9141 memcmp.
9142 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9143 to ...
9144 * sysdeps/s390/memcmp.c: ... here.
9145 Adjust ifunc variants for memcmp.
9146
9147 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9148
9149 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9150 * sysdeps/s390/memcmp.S: ... here.
9151 Adjust to be usable for 31/64bit.
9152 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9153 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9154 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9155 Remove memcmp.
9156 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9157 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9158 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9159 Adjust to be usable for 31/64bit.
9160 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9161 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9162 * sysdeps/s390/multiarch/memcmp.c: ... here.
9163 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9164
9165 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9166
9167 * sysdeps/s390/s390-32/bzero.S: Delete file.
9168 * sysdeps/s390/s390-64/bzero.S: Likewise.
9169 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9170 * sysdeps/s390/bzero.c: New file.
9171 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9172 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9173 * sysdeps/s390/multiarch/ifunc-impl-list.c
9174 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9175
9176 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9177
9178 * sysdeps/s390/ifunc-memset.h: New File.
9179 * sysdeps/s390/memset.S: Move to ...
9180 * sysdeps/s390/memset-z900.S ... here.
9181 Move implementations from memset-s390x.s to here.
9182 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9183 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9184 Remove memset variants.
9185 * sysdeps/s390/Makefile (sysdep_routines):
9186 Add memset variants.
9187 * sysdeps/s390/multiarch/ifunc-impl-list.c
9188 (__libc_ifunc_impl_list): Adjust ifunc variants for
9189 memset.
9190 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9191 to ...
9192 * sysdeps/s390/memset.c: ... here.
9193 Adjust ifunc variants for memset.
9194
9195 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9196
9197 * sysdeps/s390/s390-64/memset.S: Move to ...
9198 * sysdeps/s390/memset.S: ... here.
9199 Adjust to be usable for 31/64bit.
9200 * sysdeps/s390/s390-32/memset.S: Delete File.
9201 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9202 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9203 Remove memset.
9204 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9205 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9206 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9207 Adjust to be usable for 31/64bit.
9208 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9209 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9210 * sysdeps/s390/multiarch/memset.c: ... here.
9211 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9212
9213 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9214
9215 * sysdeps/s390/multiarch/ifunc-resolve.h
9216 (s390_libc_ifunc_init, s390_libc_ifunc,
9217 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9218
9219 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
9220
9221 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9222 * sysdeps/s390/configure.ac: Add check for z10 support.
9223 * sysdeps/s390/configure: Regenerated.
9224
9225 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9226
9227 * sysdeps/i386/atomic-machine.h: Merged with ...
9228 * sysdeps/x86_64/atomic-machine.h: To ...
9229 * sysdeps/x86/atomic-machine.h: This. New file.
9230
9231 2018-12-18 Florian Weimer <fweimer@redhat.com>
9232
9233 Rewrite locale/gen-translit.pl in Python.
9234 * locale/Makefile (generated): Add C-translit.h.
9235 (before-compile): Add $(objpfx)C-translit.h.
9236 (C-translit.h): Move to $(objpfx). Create target directory.
9237 Build using Python script.
9238 * locale/gen-translit.py: New file.
9239 * locale/gen-translit.pl: Remove file.
9240 * locale/C-translit.h.in: Change comment character to '#' for
9241 easier parsing without a C preprocessor.
9242 * locale/C-translit.h: Remove generated file.
9243 * manual/install.texi (Tools for Compilation): Do not mention
9244 C-translit.h.
9245 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9246 Remove locale/C-translit.h.
9247 * scripts/update-copyrights: Likewise.
9248 * INSTALL: Regenerate.
9249
9250 2018-12-18 Florian Weimer <fweimer@redhat.com>
9251
9252 [BZ #23995]
9253 * localedata/locales/bi_VU: Remove executable bit from file.
9254
9255 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
9256
9257 * include/time.h
9258 (__localtime64): Add.
9259 * manual/maint.texi: Document Y2038 symbol handling.
9260 * time/localtime.c
9261 (__localtime64): Add.
9262 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
9263
9264 2018-12-17 Joseph Myers <joseph@codesourcery.com>
9265
9266 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9267 Do not clobber r12.
9268
9269 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9270 to allow extra macros from first or second sources.
9271 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9272 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9273 (tests-special): Add $(objpfx)tst-mman-consts.out.
9274 ($(objpfx)tst-mman-consts.out): New makefile target.
9275
9276 2018-12-17 Mao Han <han_mao@c-sky.com>
9277
9278 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9279 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9280 without stat64 system call support.
9281 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9282 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9283 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9284 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9285 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9286 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9287 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9288 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9289 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9290 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9291 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9292
9293 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9294
9295 regex: fix storage-exhaustion error
9296 [BZ #18040]
9297 * posix/regexec.c (get_subexp):
9298 Do not continue if storage is exhausted.
9299
9300 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
9301
9302 regex: fix heap-use-after-free error
9303 [BZ #18040]
9304 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9305 https://debbugs.gnu.org/32592
9306 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9307 call extend_buffers which reallocates the re_string_t internal buffer.
9308 Local variable 'buf' was not updated in such case, resulting in
9309 use-after-free.
9310 * posix/regexec.c (get_subexp): Update 'buf' after call to
9311 get_subexp_sub.
9312
9313 2018-12-15 Florian Weimer <fweimer@redhat.com>
9314
9315 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9316 (minimum_stride_size): Use it.
9317 (support_blob_repeat_allocate): Likewise.
9318
9319 2018-12-14 Joseph Myers <joseph@codesourcery.com>
9320
9321 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9322 definition.
9323 (acosh): Likewise.
9324 (atanh): Likewise.
9325
9326 2018-12-14 Florian Weimer <fweimer@redhat.com>
9327
9328 * manual/process.texi (Process Creation Concepts): Remove
9329 documentation of process (ID) lifetime. List more process
9330 creation functions. Reference Process Identification section.
9331 (Process Identification): Add information about process ID
9332 lifetime. Describe Linux thread/task IDs.
9333 * manual/signal.texi (Signaling Another Process): Mention that the
9334 signal is always sent to the process.
9335
9336 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9337
9338 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9339 and tst-ldbl-efgcvt.
9340 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9341 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9342 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9343 (fcvt_tests, output_error, output_r_error, do_test): Use the
9344 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9345 select the type of floating-point variables and arguments; to
9346 produce extra tests for double and conversion specifiers for
9347 printf; and to set the names of called functions.
9348 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9349 in tst-efgcvt-template.c.
9350 * misc/tst-ldbl-efgcvt.c: Likewise.
9351
9352 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
9353
9354 * nss/Makefile (tst-nss-test3.out): New rule.
9355
9356 2018-12-13 Joseph Myers <joseph@codesourcery.com>
9357
9358 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9359 clobber sp.
9360
9361 2018-12-13 fanjinke <fanjinke@hygon.cn>
9362
9363 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9364 "HygonGenuine".
9365
9366 2018-12-13 Andreas Schwab <schwab@suse.de>
9367
9368 [BZ #23861]
9369 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
9370 (__pthread_rwlock_rdlock_full): Update expected value for
9371 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9372 * nptl/tst-rwlock-pwn.c: New file.
9373 * nptl/Makefile (tests): Add tst-rwlock-pwn.
9374
9375 2018-12-12 Joseph Myers <joseph@codesourcery.com>
9376
9377 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9378 definition.
9379
9380 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9381
9382 * benchtests/scripts/compare_bench.py (do_compare): write to
9383 stderr in casestat is not present.
9384 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9385 stderr in case timings field is not present. Also string showing
9386 the output filename goes into the stderr.
9387
9388 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9389
9390 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9391 and ZeroDivisorError exceptions.
9392 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9393 argument to loop through user provided statistics.
9394 * benchtests/scripts/compare_bench.py (main): Include the --stats
9395 argument.
9396
9397 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9398
9399 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9400 instead of return.
9401
9402 2018-12-12 Florian Weimer <fweimer@redhat.com>
9403
9404 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9405 clause to copyright header.
9406
9407 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9408
9409 [BZ #23614]
9410 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9411 registers saved in the stack frame.
9412 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9413 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9414
9415 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9416
9417 * include/bits/monetary-ldbl.h: New file.
9418 * include/bits/printf-ldbl.h: Likewise.
9419 * include/bits/stdio-ldbl.h: Likewise.
9420 * include/bits/stdlib-ldbl.h: Likewise.
9421 * include/bits/syslog-ldbl.h: Likewise.
9422 * include/bits/wchar-ldbl.h: Likewise.
9423
9424 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9425
9426 * libio/libio.h: Remove redirection for _IO_vfprintf.
9427
9428 2018-12-11 Andreas Schwab <schwab@suse.de>
9429
9430 * Makerules: Remove all references to abilist-pattern.
9431 (update-all-abi): Simplify find expression.
9432
9433 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9434
9435 [BZ #23961]
9436 * math/auto-libm-test-in: Add new test case.
9437 * math/auto-libm-test-out-pow: Regenerated.
9438 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9439
9440 2018-12-10 DJ Delorie <dj@redhat.com>
9441
9442 [BZ #23948]
9443 * support/test-container.c: Move postclean step to before we
9444 change namespaces.
9445
9446 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9447
9448 * scripts/gen-as-const.py (main): Handle --python option.
9449 * scripts/gen-py-const.awk: Remove.
9450 * Makerules (py-const-script): Use gen-as-const.py.
9451 ($(py-const)): Likewise.
9452 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9453 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9454 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9455 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9456 ~PTHREAD_MUTEX_NO_ELISION_NP.
9457 * manual/README.pretty-printers: Update reference to
9458 gen-py-const.awk.
9459
9460 * scripts/glibcextract.py: New file.
9461 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9462 or tempfile. Import glibcexctract.
9463 (compute_c_consts): Remove. Moved to glibcextract.py.
9464 (gen_test): Update reference to compute_c_consts.
9465 (main): Likewise.
9466 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9467 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9468 * sysdeps/unix/sysv/linux/Makefile
9469 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9470 Redirect stderr as well as stdout.
9471
9472 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9473
9474 [BZ #19767]
9475 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
9476 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9477 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
9478 ALWAYS_USE_VSYSCALL.
9479 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
9480 ALWAYS_USE_VSYSCALL.
9481 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9482 ALWAYS_USE_VSYSCALL.
9483
9484 2018-12-10 Florian Weimer <fweimer@redhat.com>
9485
9486 [BZ #23972]
9487 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9488 offset instead of count for clarity. Fix typo in comment.
9489 (__old_getdents64): Keep track of previous offset. Use it to call
9490 handle_overflow.
9491 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9492 that d_off is never zero.
9493
9494 2018-12-10 Andreas Schwab <schwab@suse.de>
9495
9496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9497 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9498 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9499 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9500 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9501
9502 2018-12-10 Joseph Myers <joseph@codesourcery.com>
9503
9504 * timezone/private.h: Update from tzcode 2018g.
9505 * timezone/tzfile.h: Likewise.
9506 * timezone/tzselect.ksh: Likewise.
9507 * timezone/zdump.c: Likewise.
9508 * timezone/zic.c: Likewise.
9509
9510 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9511
9512 [BZ #23490]
9513 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9514 (do_test): Adjust buffer size and fix format.
9515
9516 2018-12-07 DJ Delorie <dj@redhat.com>
9517
9518 [BZ #23907]
9519 * malloc/tst-tcfree3.c: New.
9520 * malloc/Makefile: Add it.
9521
9522 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9523
9524 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9525
9526 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9527
9528 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9529 used as a mask for the mode argument of __vfscanf_internal and
9530 __vfwscanf_internal.
9531 * stdio-common/vfscanf-internal.c
9532 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9533 (__strtof128_internal): Define to __wcstof128_internal.
9534 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9535 __strtof128_internal or __wcstof128_internal when the format of
9536 long double is the same as _Float128.
9537
9538 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9539
9540 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9541 * posix/confstr.c (confstr): Rename to __confstr.
9542 (__confstr): Add hidden def.
9543 (confstr): Add weak alias for __confstr.
9544 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9545 confstr.
9546
9547 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9548
9549 * NEWS: Mention getcpu.
9550 * include/sched.h (__getcpu): New libc_hidden_proto.
9551 * manual/resource.texi: Document getcpu.
9552 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9553 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9554 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9555 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9556 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9557 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9558 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9559 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9560 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9561 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9562 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9563 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9564 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9565 Likewise.
9566 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9567 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9568 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9569 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9570 Likewise.
9571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9572 Likewise.
9573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9574 Likewise.
9575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9576 Likewise.
9577 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9578 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9579 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9580 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9581 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9582 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9583 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9584 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9585 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9586 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9587 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9588 Also check getcpu.
9589
9590 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9591
9592 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9593 functions.
9594 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9595
9596 2018-12-07 Florian Weimer <fweimer@redhat.com>
9597
9598 [BZ #17405]
9599 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9600 * posix/Versions (GLIBC_2.29): Export
9601 posix_spawn_file_actions_addfchdir_np.
9602 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9603 * posix/spawn_faction_destroy.c
9604 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9605 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9606 and the field action.fchdir_action.
9607 * posix/tst-spawn-chdir.c (add_chdir): New function.
9608 (do_test): Add do_fchdir loop. Call add_chdir.
9609 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9610 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9611 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9612 posix_spawn_file_actions_addfchdir_np.
9613 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9614 Likewise.
9615 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9616 Likewise.
9617 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9618 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9619 Likewise.
9620 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9621 Likewise.
9622 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9623 Likewise.
9624 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9625 Likewise.
9626 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9627 Likewise.
9628 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9629 Likewise.
9630 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9631 (GLIBC_2.29): Likewise.
9632 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9633 (GLIBC_2.29): Likewise.
9634 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9635 (GLIBC_2.29): Likewise.
9636 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9637 (GLIBC_2.29): Likewise.
9638 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9639 Likewise.
9640 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9641 (GLIBC_2.29): Likewise.
9642 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9643 (GLIBC_2.29): Likewise.
9644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9645 (GLIBC_2.29): Likewise.
9646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9647 (GLIBC_2.29): Likewise.
9648 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9649 Likewise.
9650 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9651 Likewise.
9652 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
9653 Likewise.
9654 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
9655 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
9656 Likewise.
9657 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
9658 Likewise.
9659 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
9660 Likewise.
9661 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
9662 Likewise.
9663
9664 2018-12-06 Joseph Myers <joseph@codesourcery.com>
9665
9666 * manual/texinfo.tex: Update to version 2018-09-21.20 with
9667 trailing whitespace removed.
9668 * scripts/config.guess: Update to version 2018-11-28.
9669 * scripts/config.sub: Update to version 2018-11-28.
9670 * scripts/install-sh: Update to version 2018-03-11.20.
9671 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
9672 * scripts/move-if-change: Update to version 2018-03-07 03:47.
9673
9674 2018-12-07 Florian Weimer <fweimer@redhat.com>
9675
9676 [BZ #23927]
9677 CVE-2018-19591
9678 * inet/tst-if_index-long.c: New file.
9679 * inet/Makefile (tests): Add tst-if_index-long.
9680
9681 2018-12-07 Florian Weimer <fweimer@redhat.com>
9682
9683 * support/check.h (support_record_failure_is_failed): Declare.
9684 * support/descriptors.h: New file.
9685 * support/support_descriptors.c: Likewise.
9686 * support/tst-support_descriptors.c: Likewise.
9687 * support/support_record_failure.c
9688 (support_record_failure_is_failed): New function.
9689 * support/Makefile (libsupport-routines): Add support_descriptors.
9690 (tests): Add tst-support_descriptors.
9691
9692 2018-12-05 Zack Weinberg <zackw@panix.com>
9693 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9694
9695 * stdio-common/vfprintf-internal.c
9696 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
9697 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
9698 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
9699 and __no_long_double.
9700 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
9701 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
9702 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
9703 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
9704 and __nldbl_*syslog* functions.
9705 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
9706 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
9707 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
9708 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
9709 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
9710 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
9711 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
9712 (__nldbl_vwprintf, __nldbl_wprintf):
9713 Directly call the appropriate __v*printf_internal routine, passing
9714 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
9715 variable names.
9716 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
9717 (__nldbl___printf_chk, __nldbl___snprintf_chk)
9718 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
9719 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
9720 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
9721 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9722 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
9723 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
9724 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
9725 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
9726 Likewise, and also pass PRINTF_FORTIFY when appropriate.
9727 (__nldbl_syslog, __nldbl_vsyslog):
9728 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
9729 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9730 appropriate.
9731 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
9732 appropriate.
9733
9734 2018-12-05 Zack Weinberg <zackw@panix.com>
9735 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9736
9737 [BZ #11319]
9738 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
9739 Moved here from debug/vsprintf_chk.c.
9740 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
9741 and completion logic for the strfile to match exactly what
9742 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
9743 _IO_str_init_static_internal instead of maxlen-1.
9744 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9745 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
9746 __vsprintf_internal.
9747
9748 * debug/vsprintf_chk.c (__vsprintf_chk)
9749 * debug/sprintf_chk.c (__sprintf_chk):
9750 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
9751 'flags' argument is positive, and slen as maxlen. No need to lock
9752 the FILE and/or construct a temporary FILE. Minimize and normalize
9753 header inclusions and variable names. Do not libc_hidden_def anything.
9754
9755 * debug/asprintf_chk.c (__asprintf_chk)
9756 * debug/dprintf_chk.c (__dprintf_chk)
9757 * debug/fprintf_chk.c (__fprintf_chk)
9758 * debug/fwprintf_chk.c (__fwprintf_chk)
9759 * debug/printf_chk.c (__printf_chk)
9760 * debug/snprintf_chk.c (__snprintf_chk)
9761 * debug/swprintf_chk.c (__swprintf_chk)
9762 * debug/vasprintf_chk.c (__vasprintf_chk)
9763 * debug/vdprintf_chk.c (__vdprintf_chk)
9764 * debug/vfprintf_chk.c (__vfprintf_chk)
9765 * debug/vfwprintf_chk.c (__vfwprintf_chk)
9766 * debug/vprintf_chk.c (__vprintf_chk)
9767 * debug/vsnprintf_chk.c (__vsnprintf_chk)
9768 * debug/vswprintf_chk.c (__vswprintf_chk)
9769 * debug/vwprintf_chk.c (__vwprintf_chk)
9770 * debug/wprintf_chk.c (__wprintf_chk):
9771 Directly call the corresponding vxxprintf_internal function, passing
9772 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
9773 the FILE and/or construct a temporary FILE. Minimize and normalize
9774 header inclusions and variable names. Do not libc_hidden_def anything.
9775
9776 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
9777 __obstack_vprintf_internal.
9778 (__obstack_vprintf_chk): Convert into a wrapper that calls
9779 __obstack_vprintf_internal (these two functions already had the
9780 same code) and move to new file...
9781 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
9782 file.
9783 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
9784 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
9785 * debug/Makefile (routines): Add vobprintf_chk.
9786
9787 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
9788 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
9789 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
9790 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
9791 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
9792 (__nldbl___obstack_vfprintf_chk):
9793 Directly call the corresponding vxxprintf_internal function,
9794 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
9795 duplicate comparison of slen with 0 or maxlen from the corresponding
9796 non-__nldbl function.
9797
9798 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
9799 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
9800 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
9801 Remove libc_hidden_proto.
9802
9803 * stdio-common/vfprintf-internal.c
9804 (__vfprintf_internal, __vfwprintf_internal):
9805 Do not check _IO_FLAGS2_FORTIFY.
9806 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
9807 * libio/libioP.h: Update prototype of __vsprintf_internal and add
9808 a comment explaining why it has the maxlen argument.
9809 (_IO_acquire_lock_clear_flags2_fct): Remove.
9810 (_IO_acquire_lock_clear_flags2): Remove.
9811 (_IO_release_lock): Remove conditional statement which will
9812 now never execute.
9813 (_IO_acquire_lock): Remove variable which is now unused.
9814 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9815 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
9816
9817 * stdio-common/Makefile (tests): Add tst-bz11319 and
9818 tst-bz11319-fortify2.
9819 (CFLAGS-tst-bz11319-fortify2.c): New macro.
9820 * stdio-common/tst-bz11319-fortify2.c: New file.
9821 * stdio-common/tst-bz11319.c: Likewise.
9822
9823 2018-12-05 Zack Weinberg <zackw@panix.com>
9824 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9825
9826 * misc/syslog.c: Include libioP.h, not iolibio.h.
9827 (__vsyslog_internal): New function with the former body of
9828 __vsyslog_chk; takes mode_flags argument same as
9829 __v*printf_internal. Call __vfprintf_internal directly.
9830
9831 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
9832 Remove libc_hidden_def.
9833 (__syslog, __syslog_chk): Use __vsyslog_internal.
9834 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
9835
9836 * include/sys/syslog.h: Add multiple inclusion guard.
9837 Add prototype for __vsyslog_internal.
9838 Remove declaration and libc_hidden_proto for __vsyslog_chk.
9839
9840 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
9841 Use __vsyslog_internal.
9842
9843 2018-12-05 Zack Weinberg <zackw@panix.com>
9844 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9845
9846 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
9847 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
9848 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
9849 New functions.
9850 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
9851 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
9852
9853 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
9854 Include wctype.h here if COMPILE_WPRINTF is defined.
9855 Define __vfprintf_internal or __vfwprintf_internal, depending
9856 on COMPILE_WPRINTF.
9857 Temporarily, on entry to this function, update mode_flags
9858 according to the environmental settings corresponding to
9859 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
9860 Throughout, check mode_flags instead of __ldbl_is_dbl and
9861 _IO_FLAGS2_FORTIFY on the destination FILE.
9862 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
9863 Include vfprintf-internal.c. Don't include wctype.h.
9864 * stdio-common/vfprintf.c: New file. Just define __vfprintf
9865 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
9866 and vfprintf.
9867 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
9868 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
9869 and vfwprintf.
9870 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
9871
9872 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
9873 and add mode_flags argument; use __vfprintf_internal.
9874 (__vdprintf): New function. Alias vdprintf to this.
9875 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
9876 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
9877 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
9878 (__obstack_printf): Use __obstack_printf_internal.
9879 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
9880 public aliases __vsnprintf and vsnprintf.
9881 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
9882 called internally.
9883 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
9884 public aliases _IO_vsprintf and vsprintf.
9885 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
9886 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
9887 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
9888 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
9889 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
9890
9891 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
9892 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
9893 * stdio-common/fprintf.c, stdio-common/fxprintf.c
9894 * stdio-common/printf.c: Use __vfprintf_internal.
9895
9896 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
9897 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
9898 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
9899
9900 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
9901 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
9902 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
9903 __vfwprintf_internal.
9904
9905 * libio/libio.h: Remove libc_hidden_proto and declaration for
9906 _IO_vfprintf.
9907 Remove declaration of _IO_vfwprintf.
9908 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
9909 _IO_vsprintf.
9910 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
9911 _IO_obstack_printf.
9912 * include/stdio.h: Add prototype for __vasprintf.
9913 (__vsnprintf): Remove declaration, because there are no more
9914 internal calls.
9915 * include/wchar.h (__vfwprintf, __vswprintf): Remove
9916 declaration, because there are no more internal calls.
9917
9918 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
9919 __vsnprintf_internal, instead of _IO_vsnprintf.
9920 * argp/argp-help.c (__argp_error, __argp_failure): Use
9921 __vasprintf_internal, instead of _IO_vasprintf.
9922 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
9923 redefine, because there are no more internal calls.
9924
9925 2018-12-05 Zack Weinberg <zackw@panix.com>
9926 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9927
9928 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
9929 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
9930 Include libio/strfile.h instead of libioP.h.
9931 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
9932 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
9933 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
9934 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
9935 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
9936 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
9937 necessary. Do not set __no_long_double. Normalize variable names.
9938 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
9939 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
9940 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
9941 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
9942 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
9943 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
9944 Call __vfscanf_internal / __vfwscanf_internal directly, passing
9945 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
9946 Do not set __no_long_double. Normalize variable names.
9947
9948 2018-12-05 Zack Weinberg <zackw@panix.com>
9949 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9950
9951 * stdio-common/isoc99_scanf.c
9952 * stdio-common/isoc99_fscanf.c
9953 * stdio-common/isoc99_sscanf.c
9954 * stdio-common/isoc99_vscanf.c
9955 * stdio-common/isoc99_vfscanf.c
9956 * stdio-common/isoc99_vsscanf.c
9957 * wcsmbs/isoc99_wscanf.c
9958 * wcsmbs/isoc99_fwscanf.c
9959 * wcsmbs/isoc99_swscanf.c
9960 * wcsmbs/isoc99_vwscanf.c
9961 * wcsmbs/isoc99_vfwscanf.c
9962 * wcsmbs/isoc99_vswscanf.c:
9963 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
9964 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
9965 No need to lock and unlock the FILE passed to that function.
9966
9967 * stdio-common/vfscanf-internal.c
9968 (__vfscanf_internal, __vfwscanf_internal):
9969 Don't look at _IO_FLAGS2_SCANF_STD.
9970 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
9971 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
9972 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
9973
9974 2018-12-05 Zack Weinberg <zackw@panix.com>
9975 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9976
9977 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
9978 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
9979 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
9980 * libio/strfile.h: Add multiple inclusion guard.
9981 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
9982
9983 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
9984 consistency with the other version of this file.
9985 (ldbl_compat_symbol): New macro.
9986 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
9987 New macro.
9988
9989 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
9990 Define __vfscanf_internal or __vfwscanf_internal, depending on
9991 COMPILE_WSCANF; don't define any other public symbols.
9992 Remove errval and code to set errp.
9993 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
9994 as the mode_flags argument.
9995 (encode_error, conv_error, input_error): Don't set errval.
9996 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
9997 Include vfscanf-internal.c.
9998 * stdio-common/vfscanf.c: New file defining the public entry
9999 point vfscanf, which calls __vfscanf_internal.
10000 * stdio-common/vfwscanf.c: New file defining the public entry
10001 point vfwscanf, which calls __vfwscanf_internal.
10002
10003 * stdio-common/iovfscanf.c: New file.
10004 * stdio-common/iovfwscanf.c: Likewise.
10005
10006 * stdio-common/Makefile (routines): Add vfscanf-internal,
10007 vfwscanf-internal, iovfscanf, iovfwscanf.
10008 * stdio-common/Versions: Mention GLIBC_2.29, so that
10009 it can be used in SHLIB_COMPAT expressions.
10010 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10011 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10012 Call __vfscanf_internal, instead of _IO_vfscanf.
10013 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10014 _IO_vfscanf.
10015 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10016 _IO_vfwscanf.
10017
10018 * libio/iovsscanf.c: Clean up includes, when possible. Use
10019 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10020 __vfscanf_internal or __vfwscanf_internal directly.
10021 * libio/iovswscanf.c: Likewise.
10022 * libio/swscanf.c: Likewise.
10023 * libio/vscanf.c: Likewise.
10024 * libio/vwscanf.c: Likewise.
10025 * libio/wscanf.c: Likewise.
10026 * stdio-common/isoc99_fscanf.c: Likewise.
10027 * stdio-common/isoc99_scanf.c: Likewise.
10028 * stdio-common/isoc99_sscanf.c: Likewise.
10029 * stdio-common/isoc99_vfscanf.c: Likewise.
10030 * stdio-common/isoc99_vscanf.c: Likewise.
10031 * stdio-common/isoc99_vsscanf.c: Likewise.
10032 * stdio-common/scanf.c: Likewise.
10033 * stdio-common/sscanf.c: Likewise.
10034 * wcsmbs/isoc99_fwscanf.c: Likewise.
10035 * wcsmbs/isoc99_swscanf.c: Likewise.
10036 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10037 * wcsmbs/isoc99_vswscanf.c: Likewise.
10038 * wcsmbs/isoc99_vwscanf.c: Likewise.
10039 * wcsmbs/isoc99_wscanf.c: Likewise.
10040
10041 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
10042
10043 * include/time.h
10044 (__tz_compute): Replace time_t with __time64_t.
10045 (__tz_convert): Replace time_t* with __time64_t.
10046 (__offtime): Replace time_t* with __time64_t.
10047 * time/gmtime.c
10048 (__gmtime_r): Adjust call to __tz_convert.
10049 (gmtime): Likewise.
10050 * time/localtime.c
10051 (__localtime_r): Likewise.
10052 (localtime): Likewise.
10053 * time/offtime.c: Replace time_t with __time64_t.
10054 * time/tzset.c: Likewise.
10055
10056 2018-12-04 Joseph Myers <joseph@codesourcery.com>
10057
10058 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10059 dynamic linker unless [$(run-built-tests) = yes].
10060
10061 2018-12-03 DJ Delorie <dj@delorie.com>
10062
10063 * support/test-container.c (check_for_unshare_hints): New.
10064 (main): Call it if unshare fails. Add support for "su" scriptlet
10065 command.
10066
10067 2018-12-03 Joseph Myers <joseph@codesourcery.com>
10068
10069 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10070 'START' to indicate that start text should be output.
10071 (gen_test): Likewise.
10072 (main): Generate 'START' for first symbol or '--' line, or at end
10073 of input if not previously generated.
10074
10075 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10076
10077 [BZ #19767]
10078 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10079 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10080 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10081 ALWAYS_USE_VSYSCALL.
10082
10083 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10084
10085 [BZ #23913]
10086 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10087 new_argv by one.
10088
10089 2018-12-03 Carlos O'Donell <carlos@redhat.com>
10090
10091 [BZ #23923]
10092 * locale/programs/localedef.c: Declare boolean hard_links default true.
10093 (options): Add --no-hard-links option.
10094 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10095 * locale/programs/localedef.h: Declare prototype for hard_links.
10096 * locale/programs/locfile.c (write_locale_data): Don't use hard
10097 links if hard_links is false.
10098
10099 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10100
10101 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10102 cpu_features_basic.
10103 (__cache_sysconf): Likewise.
10104 (init_cacheinfo): Likewise.
10105 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10106 populate COMMON_CPUID_INDEX_80000007 and
10107 COMMON_CPUID_INDEX_80000008.
10108 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10109 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10110 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10111 (init_cpu_features): Use _Static_assert on
10112 index_arch_Fast_Unaligned_Load.
10113 __get_cpuid_registers and __get_arch_feature. Updated for
10114 cpu_features_basic. Set stepping in cpu_features.
10115 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10116 (FEATURE_INDEX_2): New.
10117 (FEATURE_INDEX_MAX): Changed to enum.
10118 (COMMON_CPUID_INDEX_D_ECX_1): New.
10119 (COMMON_CPUID_INDEX_80000007): Likewise.
10120 (COMMON_CPUID_INDEX_80000008): Likewise.
10121 (cpuid_registers): Likewise.
10122 (cpu_features_basic): Likewise.
10123 (CPU_FEATURE_USABLE): Likewise.
10124 (bit_arch_XXX_Usable): Likewise.
10125 (cpu_features): Use cpuid_registers and cpu_features_basic.
10126 (bit_arch_XXX): Reweritten.
10127 (bit_cpu_XXX): Likewise.
10128 (index_cpu_XXX): Likewise.
10129 (reg_XXX): Likewise.
10130 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10131 <support/check.h>.
10132 (CHECK_CPU_FEATURE): New.
10133 (CHECK_CPU_FEATURE_USABLE): Likewise.
10134 (cpu_kinds): Likewise.
10135 (do_test): Print vendor, family, model and stepping. Check
10136 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10137 (TEST_FUNCTION): Removed.
10138 Include <support/test-driver.c> instead of
10139 "../../test-skeleton.c".
10140 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10141 Check POPCNT instead of POPCOUNT.
10142 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10143
10144 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10145
10146 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10147 there is no element in `consts'.
10148
10149 2018-12-01 Florian Weimer <fweimer@redhat.com>
10150
10151 * support/support_capture_subprocess.c
10152 (support_capture_subprocess): Check that pipe descriptors have
10153 expected values. Close original pipe descriptors in subprocess.
10154
10155 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10156
10157 [BZ #23032]
10158 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10159 attr with __pthread_default_barrierattr.
10160 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10161 attr with __pthread_default_condattr.
10162 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10163 attr with __pthread_default_mutexattr.
10164 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10165 attr with __pthread_default_rwlockattr.
10166
10167 2018-12-01 Kemi Wang <kemi.wang@intel.com>
10168
10169 * manual/tunables.texi (POSIX Thread Tunables): New node.
10170 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10171 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10172 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10173 __pthread_tunables_init.
10174 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10175 (max_adaptive_count): Define.
10176 * nptl/pthread_mutex_conf.c: New file.
10177 * nptl/pthread_mutex_conf.h: New file.
10178 * sysdeps/generic/adaptive_spin_count.h: New file.
10179 * sysdeps/nptl/dl-tunables.list: New file.
10180 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10181 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10182 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10183 Likewise.
10184
10185 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10186
10187 [BZ #20544]
10188 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10189 * stdlib/on_exit.c (__on_exit): Likewise.
10190 * stdlib/Makefile (tests): Add tst-bz20544.
10191 * stdlib/tst-bz20544.c: New test.
10192
10193 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10194
10195 [BZ #19767]
10196 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10197 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10198 New.
10199
10200 2018-11-30 Florian Weimer <fweimer@redhat.com>
10201
10202 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10203 Extend error logging.
10204 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10205 symbol.
10206
10207 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10208
10209 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10210 __sigismember instead of sigismember.
10211 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10212 cancel_handler): New definitions.
10213 (do_system): Use posix_spawn instead of fork and execl and remove
10214 reentracy code.
10215 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10216 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10217 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10218 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10219 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10220 * sysdeps/unix/sysv/linux/system.c: Likewise.
10221
10222 [BZ #22834]
10223 [BZ #17490]
10224 * NEWS: Add new semantic for atfork with popen and system.
10225 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10226 fork and execl.
10227
10228 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10229
10230 [BZ #23690]
10231 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10232 modification order when accessing reloc_result->addr.
10233 * include/link.h (reloc_result): Add field init.
10234 * nptl/Makefile (tests): Add tst-audit-threads.
10235 (modules-names): Add tst-audit-threads-mod1 and
10236 tst-audit-threads-mod2.
10237 Add rules to build tst-audit-threads.
10238 * nptl/tst-audit-threads-mod1.c: New file.
10239 * nptl/tst-audit-threads-mod2.c: Likewise.
10240 * nptl/tst-audit-threads.c: Likewise.
10241 * nptl/tst-audit-threads.h: Likewise.
10242
10243 2018-11-30 Joseph Myers <joseph@codesourcery.com>
10244
10245 * scripts/gen-as-const.py: New file.
10246 * scripts/gen-as-const.awk: Remove.
10247 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10248 gen-as-const.py.
10249 ($(objpfx)test-as-const-%.c): Likewise.
10250
10251 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10252
10253 * elf/dl-exception.c: Include <_itoa.h>.
10254
10255 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10256
10257 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10258 returned by __f_setlk.
10259
10260 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10261 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10262
10263 * elf/Makefile (tests-internal): Add tst-create_format1.
10264 * elf/dl-exception.c (_dl_exception_create_format): Support
10265 %x, %lx and %zx.
10266 * elf/tst-create_format1.c: New file.
10267
10268 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10269
10270 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10271 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10272 gnulib.)
10273 * argp/argp-help.c (__argp_failure): Likewise.
10274
10275 2018-11-29 Mao Han <han_mao@c-sky.com>
10276
10277 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10278 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10279 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10280 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10281 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10282 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10283 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10284 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10285 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10286 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10287 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10288 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10289 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10290 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10291 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10292 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10293 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10294 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10295 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10296 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10297 (R_CKCORE_TLS_TPOFF32): New defines.
10298
10299 2018-11-29 Florian Weimer <fweimer@redhat.com>
10300
10301 * posix/Makefile (before-compile): Remove testcases.h and
10302 ptestcases.h.
10303 (generated): Add testcases.h and ptestcases.h.
10304 (testcases.h, ptestcases.h): Move to $(objpfx).
10305 (runtests.o): Add dependency on testcases.h.
10306 (runptests.o): Add dependency on ptestcases.h.
10307 * posix/testcases.h, posix/ptestcases.h: Remove files.
10308 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10309 not touch posix/testcases.h and posix/ptestcases.h.
10310
10311 2018-11-28 Florian Weimer <fweimer@redhat.com>
10312
10313 support: Add signal support to support_capture_subprocess_check.
10314 * support/capture_subprocess.h (support_capture_subprocess_check):
10315 Adjust comment and rename parameter.
10316 * support/support_capture_subprocess_check.c
10317 (print_actual_status): New function.
10318 (support_capture_subprocess_check): Support negative
10319 status_or_signal. Call print_actual_status.
10320 * support/tst-support_capture_subprocess.c (do_test): Call
10321 support_capture_subprocess_check.
10322 * libio/tst-vtables-common.c (termination_status)
10323 (init_termination_status): Remove.
10324 (check_for_termination): Adjust support_capture_subprocess_check
10325 call.
10326 (do_test): Remove call to init_termination_status.
10327
10328 2018-11-28 Joseph Myers <joseph@codesourcery.com>
10329
10330 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10331 source directory instead of a copy.
10332 (CommandList.create_copy_dir): Remove.
10333
10334 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
10335
10336 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10337
10338 2018-11-28 Florian Weimer <fweimer@redhat.com>
10339
10340 * support/support.h (support_quote_string): Do not use str
10341 parameter name.
10342
10343 2018-11-27 Joseph Myers <joseph@codesourcery.com>
10344
10345 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10346 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10347
10348 2018-11-27 Florian Weimer <fweimer@redhat.com>
10349
10350 * support/support.h (support_quote_string): Declare.
10351 * support/support_quote_string.c: New file.
10352 * support/tst-support_quote_string.c: Likewise.
10353 * support/Makefile (libsupport-routines): Add
10354 support_quote_string.
10355 (tests): Add tst-support_quote_string.
10356
10357 2018-11-27 Florian Weimer <fweimer@redhat.com>
10358
10359 [BZ #23927]
10360 CVE-2018-19591
10361 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10362 descriptor leak in case of ENODEV error.
10363
10364 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10365
10366 [BZ #19767]
10367 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10368 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10369 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10370
10371 2018-11-26 Carlos O'Donell <carlos@redhat.com>
10372
10373 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10374 Error for unknown lines.
10375
10376 2018-11-26 Joseph Myers <joseph@codesourcery.com>
10377
10378 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10379 Touch additional files.
10380
10381 2018-11-26 Florian Weimer <fweimer@redhat.com>
10382
10383 [BZ #23907]
10384 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10385 double-frees.
10386
10387 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10388
10389 [BZ #19767]
10390 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10391 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10392 SHARED. Include sysdep.h.
10393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10394 ALWAYS_USE_VSYSCALL.
10395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10396 ALWAYS_USE_VSYSCALL.
10397
10398 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10399
10400 [BZ #19767]
10401 * nptl/Makefile (tests-static): Add tst-cond11-static.
10402 (tests): Likewise.
10403 * nptl/tst-cond11-static.c: New File.
10404 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10405 tst-affinity-static.
10406 (tests): Likewise.
10407 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10408 instead of SHARED.
10409 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10410 (USE_VSYSCALL): Likewise.
10411 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10412 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10413 instead of SHARED.
10414 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10415 SHARED.
10416 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10417 New.
10418
10419 2018-11-23 Joseph Myers <joseph@codesourcery.com>
10420
10421 [BZ #23915]
10422 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10423 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10424 Undefine.
10425
10426 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10427
10428 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10429 (tst-cet-legacy-1a-ARGS): New.
10430 ($(objpfx)tst-cet-legacy-1a): New target.
10431 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10432
10433 2018-11-22 Joseph Myers <joseph@codesourcery.com>
10434
10435 * conform/conformtest.py (CompileSubTest.__init__): Set
10436 self.run_early to False.
10437 (ExecuteSubTest.__init__): Likewise.
10438 (HeaderTests.run): Try running all non-optional, non-XFAILed
10439 compilation tests in a single execution of the compiler.
10440
10441 * conform/conformtest.py (CompileSubTest): New class.
10442 (ExecuteSubTest): Likewise.
10443 (ElementTest.run): Rename to gen_subtests. Append tests to
10444 self.subtests instead of running them.
10445 (ConstantTest.run): Likewise.
10446 (SymbolTest.run): Likewise.
10447 (TypeTest.run): Likewise.
10448 (TagTest.run): Likewise.
10449 (FunctionTest.run): Likewise.
10450 (VariableTest.run): Likewise.
10451 (MacroFunctionTest.run): Likewise.
10452 (MacroStrTest.run): Likewise.
10453 (HeaderTests.handle_test_line): Generate subtests for tests.
10454 (HeaderTests.run): Run subtests for tests.
10455
10456 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10457
10458 * math/Versions (GLIBC_2.29): Add pow.
10459 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10460 symbol.
10461 * math/w_pow.c: New file.
10462 * sysdeps/i386/fpu/w_pow.c: New file.
10463 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10464 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10465 and add necessary aliases.
10466 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10467 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10468 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10469 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10470 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10471 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10472 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10473 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10474 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10475 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10476 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10477 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10478 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10479 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10480 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10485 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10486 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10487 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10488 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10489 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10490 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10491 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10492 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10493 __pow.
10494 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10495 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10496 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10497
10498 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10499
10500 * math/Versions (GLIBC_2.29): Add log2.
10501 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10502 symbol.
10503 * math/w_log2.c: New file.
10504 * sysdeps/i386/fpu/w_log2.c: New file.
10505 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10506 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10507 and add necessary aliases.
10508 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10509 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10510 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10511 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10512 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10513 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10514 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10515 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10516 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10517 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10518 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10519 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10520 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10521 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10522 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10525 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10527 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10528 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10529 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10530 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10531 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10532 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10533 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10534
10535 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10536
10537 * math/Versions (GLIBC_2.29): Add log.
10538 * math/w_log_compat.c (__log_compat): Change to versioned compat
10539 symbol.
10540 * math/w_log.c: New file.
10541 * sysdeps/i386/fpu/w_log.c: New file.
10542 * sysdeps/ia64/fpu/e_log.S: Update.
10543 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10544 and add necessary aliases.
10545 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10546 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10547 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10548 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10549 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10550 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10551 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10552 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10553 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10554 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10555 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10556 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10557 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10558 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10559 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10562 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10564 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10565 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10566 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10567 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10568 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10569 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10570 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10571 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10572 __log.
10573 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10574 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10575 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10576 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10577
10578 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10579
10580 * math/Versions (GLIBC_2.29): Add exp and exp2.
10581 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10582 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10583 * math/w_exp_compat.c (__exp_compat): Likewise.
10584 * math/w_exp.c: New file.
10585 * math/w_exp2.c: New file.
10586 * sysdeps/i386/fpu/w_exp.c: New file.
10587 * sysdeps/i386/fpu/w_exp2.c: New file.
10588 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10589 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10590 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10591 and add necessary aliases.
10592 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10593 and add necessary aliases.
10594 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10595 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10596 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10597 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10598 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10599 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10600 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10601 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10602 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10603 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10604 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10605 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10606 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10607 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10608 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10609 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10610 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10615 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10616 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10617 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10618 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10619 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10620 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10621 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10622 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10623 (__ieee754_exp): Rename to __exp.
10624 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10625 (__ieee754_exp): Rename to __exp.
10626 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10627 (__ieee754_exp): Rename to __exp.
10628 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10629 __exp.
10630 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10631
10632 2018-11-20 DJ Delorie <dj@redhat.com>
10633
10634 * malloc/malloc.c (tcache_entry): Add key field.
10635 (tcache_put): Set it.
10636 (tcache_get): Likewise.
10637 (_int_free): Check for double free in tcache.
10638 * malloc/tst-tcfree1.c: New.
10639 * malloc/tst-tcfree2.c: New.
10640 * malloc/Makefile: Run the new tests.
10641 * manual/probes.texi: Document memory_tcache_double_free probe.
10642
10643 * dlfcn/dlerror.c (check_free): Prevent double frees.
10644
10645 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10646
10647 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10648
10649 2018-11-20 Joseph Myers <joseph@codesourcery.com>
10650
10651 * conform/conformtest.py (ElementTest.run): Use unique identifiers
10652 in tests. Use names for format arguments.
10653 (ConstantTest.run): Likewise.
10654 (SymbolTest.run): Likewise.
10655 (TypeTest.run): Likewise.
10656 (TagTest.run): Likewise.
10657 (FunctionTest.run): Likewise.
10658 (VariableTest.run): Likewise.
10659 (MacroFunctionTest.run): Likewise.
10660 (MacroStrTest.run): Likewise.
10661 (HeaderTests.__init__): Set self.num_tests.
10662 (HeaderTests.handle_test_line): Set test.num. Increment
10663 self.num_tests.
10664
10665 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10666
10667 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
10668 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
10669 SEEK_SET.
10670
10671 2018-11-19 Mao Han <han_mao@c-sky.com>
10672
10673 * scripts/config.guess: Update to version 2018-08-29.
10674 * scripts/config.sub: Update to version 2018-08-29.
10675
10676 2018-11-19 Florian Weimer <fweimer@redhat.com>
10677
10678 support: Print timestamps in timeout handler.
10679 * support/support_test_main.c (print_timestamp): New function.
10680 (signal_handler): Use it to print the termination time and the
10681 time of the last write to standard output.
10682
10683 2018-11-16 Zack Weinberg <zackw@panix.com>
10684 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10685
10686 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
10687 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
10688 argument.
10689 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
10690 and add flags argument. Check flags instead of __ldbl_is_dbl when
10691 deciding whether to set is_long_double.
10692 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
10693 passing zero for flags argument.
10694 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
10695
10696 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10697 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
10698 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
10699 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
10700 variable names. Remove libc_hidden_def/libc_hidden_proto from
10701 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
10702 longer called from within the library.
10703 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
10704 for __nldbl___vstrfmon_l, declare it explicitly.
10705
10706 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
10707
10708 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10709
10710 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
10711 macros
10712 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
10713 F_SETLK64, F_SETLKW64, respectively.
10714 * sysdeps/mach/hurd/f_setlk.c: New file.
10715 * sysdeps/mach/hurd/f_setlk.h: New file.
10716 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
10717 f_setlk.
10718 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
10719 (__libc_fcntl): Move non-flock operations to...
10720 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
10721 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
10722
10723 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
10724
10725 mktime: DEBUG_MKTIME cleanup
10726 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
10727 And it’s no longer needed now that glibc and Gnulib both have
10728 their own testing mechanisms for mktime.
10729 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
10730
10731 mktime: fix non-EOVERFLOW errno handling
10732 [BZ#23789]
10733 mktime was not properly reporting failures when the underlying
10734 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
10735 them like EOVERFLOW failures, and set errno to EOVERFLOW.
10736 The problem could happen on non-glibc platforms, with Gnulib.
10737 * time/mktime.c (guess_time_tm): Remove, replacing with ...
10738 (tm_diff): ... this simpler function, which does not change errno.
10739 All callers changed to deal with errno themselves.
10740 (ranged_convert, __mktime_internal): Return failure immediately if
10741 the underlying function reports any failure other than EOVERFLOW.
10742 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
10743 gap code fails.
10744
10745 mktime: fix bug with Y2038 DST transition
10746 [BZ#23789]
10747 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
10748 mishandle a DST transition that jumps over the Y2038 boundary.
10749 No such DST transitions are known so this is only a theoretical
10750 bug, but we might as well do things right.
10751
10752 mktime: make more room for overflow
10753 [BZ#23789]
10754 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
10755 This is so that we can add tm_diff results to a previous guess,
10756 which will be useful in a later patch.
10757
10758 mktime: simplify offset guess
10759 [BZ#23789]
10760 * time/mktime.c (__mktime_internal): Omit excess precision.
10761
10762 mktime: new test for mktime failure
10763 [BZ#23789]
10764 Based on a test suggested by Albert Aribaud in:
10765 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
10766 * time/Makefile (tests): Add bug-mktime4.
10767 * time/bug-mktime4.c: New file.
10768
10769 mktime: fix EOVERFLOW bug
10770 [BZ#23789]
10771 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
10772 Include libc-config.h, not config.h, for __set_errno.
10773 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
10774
10775 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10776
10777 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
10778 __attribute_copy__ to copy attributes from name. Drop static qualifier
10779 to avoid warnings about leaf attribute not having effect on static
10780 functions.
10781
10782 2018-11-13 Florian Weimer <fweimer@redhat.com>
10783
10784 * malloc/malloc.c (fastbin_push_entry): New function.
10785 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
10786 (REMOVE_FB): Remove macro.
10787 (_int_malloc): Use fastbin_pop_entry and reindent.
10788 (_int_free): Use fastbin_push_entry.
10789 (malloc_consolidate): Use atomic_exchange_acquire.
10790
10791 2018-11-13 Joseph Myers <joseph@codesourcery.com>
10792
10793 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
10794 alias attribute, not with strong_alias.
10795
10796 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
10797 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
10798 with additional parameter thread.
10799 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
10800 in terms of __hidden_ver2.
10801 (hidden_tls_def): New macro.
10802 (libc_hidden_tls_def): Likewise.
10803 (rtld_hidden_tls_def): Likewise.
10804 (libm_hidden_tls_def): Likewise.
10805 (libmvec_hidden_tls_def): Likewise.
10806 (libresolv_hidden_tls_def): Likewise.
10807 (librt_hidden_tls_def): Likewise.
10808 (libdl_hidden_tls_def): Likewise.
10809 (libnss_files_hidden_tls_def): Likewise.
10810 (libnsl_hidden_tls_def): Likewise.
10811 (libnss_nisplus_hidden_tls_def): Likewise.
10812 (libutil_hidden_tls_def): Likewise.
10813 (libutil_hidden_tls_def): Likweise.
10814 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
10815 libc_hidden_tls_def.
10816 (__sim_disabled_exceptions_thread): Likewise.
10817 (__sim_round_mode_thread): Likewise.
10818
10819 * sysdeps/sparc/sparc-ifunc.h [SHARED]
10820 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
10821 copy attributes from name.
10822
10823 2018-11-12 Joseph Myers <joseph@codesourcery.com>
10824
10825 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
10826 Use __attribute_copy__ to copy attributes from name.
10827
10828 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
10829 with __hidden_ver1 call.
10830 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
10831 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
10832 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
10833 (__cosf): Do not declare here.
10834 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
10835 (__sincosf): Do not declare here.
10836 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
10837 (__sinf): Do not declare here.
10838
10839 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
10840 (__BIG_ENDIAN): Likewise.
10841 (__BYTE_ORDER): Likewise.
10842 (strong_alias): Likewise.
10843 (_strong_alias): Likewise.
10844
10845 2018-11-12 Florian Weimer <fweimer@redhat.com>
10846
10847 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
10848 function. Move after the definition of in_smallbin_range. Do not
10849 use __builtin_expect for paths that lead to a noreturn function.
10850 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
10851 because it is unclear whether this is in fact an unlikely
10852 condition.
10853 (_int_malloc, _int_free): Adjust.
10854 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
10855 variables.
10856 * malloc/arena.c (heap_trim): Likewise.
10857
10858 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
10859
10860 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
10861 it, free it if needed.
10862 (reauthenticate): Test and use ccwdir.
10863 (child_init_port): In non-resetids case, test and use ccwdir.
10864 (child_chdir): New nested function to set ccwdir.
10865 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
10866 * hurd/hurd/port.h (_hurd_port_move): New function.
10867 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
10868 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
10869 * hurd/Versions (_hurd_port_move): Export function.
10870 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
10871 symbol.
10872 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
10873 of dtablesize for allocating dtable_cloexec.
10874
10875 2018-11-09 Martin Sebor <msebor@redhat.com>
10876
10877 * include/libc-symbols.h (__attribute_copy__): Define macro unless
10878 it's already defined.
10879 (_strong_alias): Use __attribute_copy__.
10880 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
10881 * misc/sys/cdefs.h (__attribute_copy__): New macro.
10882 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
10883 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10884 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
10885 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
10886 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
10887 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
10888 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
10889 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
10890 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
10891 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
10892 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
10893 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
10894 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
10895 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
10896 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
10897 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
10898 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
10899
10900 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10901
10902 * misc/tst-efgcvt.c: Include support/check.h and
10903 support/test-driver.c. Do not include test-skeleton.c.
10904 (error_count): Remove.
10905 (output_error): Replace increments to error_count with calls to
10906 support_record_failure.
10907 (output_r_error): Likewise.
10908 (special): Likewise.
10909 (do_test): Unconditionally return zero.
10910 (TEST_FUNCTION): Remove.
10911
10912 2018-11-09 Joseph Myers <joseph@codesourcery.com>
10913
10914 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
10915 not $(@D)/scratch.
10916 ($(linknamespace-header-tests)): Likewise.
10917
10918 * conform/conformtest.py: New file.
10919 * conform/conformtest.pl: Remove.
10920 * conform/GlibcConform.pm: Likewise.
10921 * conform/glibcconform.py (KEYWORDS_C90): New constant.
10922 (KEYWORDS_C99): Likewise.
10923 (KEYWORDS): Likewise.
10924 * conform/Makefile ($(conformtest-header-tests)): Use
10925 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
10926 option. Use --header instead of --headers.
10927 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
10928 function entries.
10929 * conform/data/spawn.h-data: Likewise.
10930 * conform/data/fcntl.h-data (openat): Add space after function
10931 name.
10932 * conform/data/wchar.h-data (wcscasecmp): Likewise.
10933 (wcscasecmp_l): Likewise.
10934 * conform/data/termios.h-data (c_cc): Add space after element
10935 name.
10936
10937 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10938
10939 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
10940 instead of manually comparing and reporting mismatching strings.
10941 * misc/tst-ldbl-error.c (do_one_test): Likewise.
10942 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
10943
10944 2018-11-08 Joseph Myers <joseph@codesourcery.com>
10945
10946 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
10947 __ASSUME_SOCKETCALL.
10948 * sysdeps/unix/sysv/linux/i386/kernel-features.h
10949 (__ASSUME_SOCKETCALL): Remove.
10950 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10951 (__ASSUME_SOCKETCALL): Likewise.
10952 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10953 (__ASSUME_SOCKETCALL): Likewise.
10954 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10955 (__ASSUME_SOCKETCALL): Likewise.
10956 * sysdeps/unix/sysv/linux/s390/kernel-features.h
10957 (__ASSUME_SOCKETCALL): Likewise.
10958 * sysdeps/unix/sysv/linux/sh/kernel-features.h
10959 (__ASSUME_SOCKETCALL): Likewise.
10960 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10961 (__ASSUME_SOCKETCALL): Likewise.
10962
10963 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
10964
10965 [BZ #23509]
10966 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
10967 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
10968 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
10969 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
10970 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
10971 lc_unknown.
10972
10973 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
10974
10975 [BZ #17630]
10976 * resolv/tst-resolv-network.c: Add test for getnetbyname.
10977
10978 2018-11-07 Joseph Myers <joseph@codesourcery.com>
10979
10980 [BZ #23867]
10981 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10982 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10983 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10984 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
10985
10986 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10987
10988 * support/support_test_compare_string.c
10989 (support_test_compare_string): Fix printf format.
10990
10991 2018-11-07 Florian Weimer <fweimer@redhat.com>
10992
10993 Implement TEST_COMPARE_STRING.
10994 * support/check.h (TEST_COMPARE_STRING): Define.
10995 (support_test_compare_string): Declare.
10996 * support/Makefile (libsupport-routines): Add
10997 support_test_compare_string.
10998 (tests): Add tst-test_compare_string.
10999 * support/support_test_compare_string.c: New file.
11000 * support/tst-test_compare_string.c: Likewise.
11001
11002 2018-11-07 Andreas Schwab <schwab@suse.de>
11003
11004 [BZ #23864]
11005 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11006 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11007 Undef.
11008
11009 2018-11-06 Joseph Myers <joseph@codesourcery.com>
11010
11011 [BZ #23862]
11012 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11013 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11014 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11015 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11016 Likewise.
11017
11018 2018-11-06 Florian Weimer <fweimer@redhat.com>
11019
11020 [BZ #17405]
11021 * posix/Makefile (routines): Add spawn_faction_addchdir.
11022 (tests): Add tst-spawn-chdir.
11023 * posix/Versions (GLIBC_2.29): Add
11024 posix_spawn_file_actions_addchdir_np.
11025 * posix/spawn_faction_addchdir.c: New file.
11026 * posix/spawn_faction_destroy.c
11027 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11028 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11029 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11030 chdir_action.
11031 * posix/tst-spawn-chdir.c: New file.
11032 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11033 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11034 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11035 posix_spawn_file_actions_addchdir_np.
11036 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11037 Likewise.
11038 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11039 Likewise.
11040 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11041 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11042 Likewise.
11043 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11044 Likewise.
11045 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11046 Likewise.
11047 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11048 Likewise.
11049 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11050 Likewise.
11051 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11052 Likewise.
11053 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11054 (GLIBC_2.29): Likewise.
11055 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11056 (GLIBC_2.29): Likewise.
11057 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11058 (GLIBC_2.29): Likewise.
11059 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11060 (GLIBC_2.29): Likewise.
11061 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11062 Likewise.
11063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11064 (GLIBC_2.29): Likewise.
11065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11066 (GLIBC_2.29): Likewise.
11067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11068 (GLIBC_2.29): Likewise.
11069 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11070 (GLIBC_2.29): Likewise.
11071 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11072 Likewise.
11073 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11074 Likewise.
11075 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11076 Likewise.
11077 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11078 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11079 Likewise.
11080 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11081 Likewise.
11082 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11083 Likewise.
11084 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11085 Likewise.
11086
11087 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11088
11089 * misc/Makefile (tests): Add tst-ldbl-error.
11090 * misc/tst-ldbl-error.c: New file.
11091
11092 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11093
11094 * misc/Makefile (tests): Add tst-ldbl-warn.
11095 * misc/tst-ldbl-warn.c: New file.
11096
11097 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11098
11099 * argp/Makefile (tests): Add tst-ldbl-argp.
11100 * argp/tst-ldbl-argp.c: New file.
11101
11102 2018-11-05 Arjun Shankar <arjun@redhat.com>
11103
11104 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11105 __gconv_path_elem and call __gconv_get_path unconditionally.
11106
11107 2018-11-05 Andreas Schwab <schwab@suse.de>
11108
11109 [BZ #22927]
11110 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11111 creating the first helper thread failed.
11112
11113 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11114
11115 * sysdeps/mach/hurd/msync.c: New file.
11116
11117 2018-11-02 Florian Weimer <fweimer@redhat.com>
11118
11119 * support/shell-container.c (copy_func): Call
11120 support_copy_file_range instead of copy_file_range to support
11121 cross-device copies.
11122
11123 2018-11-02 Florian Weimer <fweimer@redhat.com>
11124
11125 * support/test-container.c: Include <libc-pointer-arith.h> for
11126 ALIGN_UP.
11127
11128 2018-11-01 Zong Li <zong@andestech.com>
11129
11130 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11131 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11132 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11133 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11134
11135 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11136 variable to avoid overlap arguments.
11137
11138 2018-11-01 Joseph Myers <joseph@codesourcery.com>
11139
11140 * posix/bug-regex22.c (main): Use puts with distinct error
11141 messages for unexpected success of re_compile_pattern, not printf
11142 with NULL argument to %s.
11143
11144 * stdio-common/bug22.c: Include <libc-diag.h>.
11145 (do_test): Disable -Wformat-overflow= warnings around fprintf
11146 calls outputting more than INT_MAX characters.
11147 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11148 around printf call with NULL %s argument.
11149
11150 [BZ #23848]
11151 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11152 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11153 Undefine.
11154 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11155 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11156 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11157 (__ASSUME_SENDTO_SYSCALL): Likewise.
11158 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11159 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11160 [!__arch64__].
11161 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11162 (__ASSUME_CONNECT_SYSCALL): Likewise.
11163 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11164 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11165 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11166 Define.
11167 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11168 Likewise.
11169 [__LINUX_KERNEL_VERSION >= 0x040400]
11170 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11171 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11172 Remove.
11173 (listen): Likewise.
11174 (setsockopt): Likewise.
11175
11176 2018-11-01 Fredrik Noring <noring@nocrew.org>
11177
11178 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11179 with the ISA override.
11180
11181 2018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
11182
11183 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11184 #endif.
11185
11186 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11187
11188 * manual/errno.texi (EIEIO): Document how translators should
11189 translate the error message.
11190 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11191 printing trailing whitespaces refused by git.
11192 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11193 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11194 * hurd/Makefile (user-interfaces): Add pci.
11195
11196 2018-10-30 Joseph Myers <joseph@codesourcery.com>
11197
11198 * conform/linknamespace.py: New file.
11199 * conform/linknamespace.pl: Remove file.
11200 * conform/Makefile ($(linknamespace-header-tests)): Use
11201 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11202 option.
11203
11204 2018-10-30 Florian Weimer <fweimer@redhat.com>
11205
11206 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11207 memory leaks.
11208
11209 2018-10-30 Florian Weimer <fweimer@redhat.com>
11210
11211 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11212
11213 2018-10-30 Florian Weimer <fweimer@redhat.com>
11214
11215 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11216 support_blob_repeat.
11217
11218 2018-10-30 Florian Weimer <fweimer@redhat.com>
11219
11220 Avoid spurious test failures in stdlib/test-bz22786.
11221 * support/Makefile (libsupport-routines): Add blob_repeat.
11222 (tests): Add tst-support_blob_repeat.
11223 * support/blob_repeat.h: New file.
11224 * support/blob_repeat.c: Likewise.
11225 * support/tst-support_blob_repeat.c: Likewise.
11226 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11227 support_blob_repeat_allocate.
11228
11229 2018-10-30 Andreas Schwab <schwab@suse.de>
11230
11231 [BZ #23125]
11232 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11233 Don't use tail call.
11234 * elf/tst-unwind-main.c: New file.
11235 * elf/Makefile (tests): Add tst-unwind-main.
11236 (CFLAGS-tst-unwind-main.c): Define.
11237
11238 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
11239
11240 [BZ #23791]
11241 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11242 n_cs_precedes to 0.
11243 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11244
11245 2018-10-29 Joseph Myers <joseph@codesourcery.com>
11246
11247 * conform/glibcconform.py: Do not import shutil.
11248 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11249 of mkdtemp.
11250
11251 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11252 critic_missing for versions before 3.4.
11253 * configure: Regenerated.
11254 * manual/install.texi (Tools for Compilation): Document
11255 requirement for Python to build glibc.
11256 * INSTALL: Regenerated.
11257 * Rules [PYTHON]: Make code unconditional.
11258 * benchtests/Makefile [PYTHON]: Likewise.
11259 * conform/Makefile [PYTHON]: Likewise.
11260 * manual/Makefile [PYTHON]: Likewise.
11261 * math/Makefile [PYTHON]: Likewise.
11262
11263 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11264
11265 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
11266 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
11267 answer to interrupt_operation, return EIEIO instead of EINTR.
11268 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11269 _hurd_intr_rpc_msg_about_to global point to start of controlled
11270 assembly snippet. Make it check canceled flag.
11271 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11272 the _hurd_intr_rpc_msg_about_to point.
11273 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11274 issue, remove cancel flag check.
11275
11276 2018-10-26 Joseph Myers <joseph@codesourcery.com>
11277
11278 * scripts/build-many-glibcs.py: Remove compatibility for missing
11279 os.cpu_count and re.fullmatch.
11280
11281 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11282
11283 [BZ #23822]
11284 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11285 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11286 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11287
11288 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11289
11290 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11291 macro.
11292
11293 2018-10-25 Florian Weimer <fweimer@redhat.com>
11294
11295 [BZ #23562]
11296 [BZ #23821]
11297 XFAIL siginfo_t si_band conform test on sparc64.
11298 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11299 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11300 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11301 (conformtest-xfail-conds): Add sparc64-linux.
11302 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11303 sparc64.
11304 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11305
11306 2018-10-25 Joseph Myers <joseph@codesourcery.com>
11307
11308 * elf/elf.h (NT_MIPS_DSP): New macro.
11309 (NT_MIPS_FP_MODE): Likewise.
11310
11311 2018-10-25 Zong Li <zong@andestech.com>
11312
11313 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11314 name by adding the file extension (.so).
11315
11316 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11317
11318 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11319 (test-xfail-ISO11/threads.h/linknamespace,
11320 test-xfail-ISO11/threads.h/conform): Add.
11321
11322 2018-10-24 Joseph Myers <joseph@codesourcery.com>
11323
11324 * math/gen-libm-test.py: Import os.
11325 (ALL_FLOATS_MANUAL): New constant.
11326 (ALL_FLOATS_SUFFIX): Likewise.
11327 (Ulps.all_functions): New function.
11328 (real_all_ulps): Likewise.
11329 (generate_err_table_sub): Likewise.
11330 (generate_err_table): Likewise.
11331 (main): Handle -s and -m options.
11332 * manual/libm-err-tab.pl: Remove.
11333 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11334 instead of libm-err-tab.pl.
11335 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11336 != no].
11337 * manual/install.texi (Tools for Compilation): Document
11338 requirement for Python to build manual.
11339 * INSTALL: Regenerated.
11340
11341 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11342
11343 * bits/time64.h: New file.
11344 * include/time.h: Replace internal_time_t with __time64_t.
11345 * posix/bits/types (__time64_t): Add.
11346 * stdlib/Makefile: Add bits/time64.h to includes.
11347 * time/tzfile.c: Replace internal_time_t with __time64_t.
11348
11349 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11350
11351 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11352 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11353 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11354 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11355 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11356 prototype.
11357 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11358 * posix/spawn_faction_addclose.c
11359 (__posix_spawn_file_actions_addclose): Add hidden definition.
11360 * posix/spawn_faction_adddup2.c
11361 (__posix_spawn_file_actions_adddup2): Likewise.
11362 * posix/spawn_faction_destroy.c
11363 (__posix_spawn_file_actions_destroy): Likewise.
11364 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11365 Likewise.
11366 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11367 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11368 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11369 Likewise.
11370 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11371 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11372 Likewise.
11373
11374 2018-10-24 Andreas Schwab <schwab@suse.de>
11375
11376 [BZ #18093]
11377 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11378 format cache.
11379 * elf/cache.c (print_cache): Likewise.
11380
11381 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
11382
11383 * bits/timesize.h: New file.
11384 * stdlib/Makefile (headers): Add bits/timesize.h.
11385 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11386 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11387 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11388 (__SEM_PAD_AFTER_TIME): Likewise.
11389 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11390 (__SHM_PAD_AFTER_TIME): Likewise.
11391 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11392 (__MSQ_PAD_BEFORE_TIME): Likewise.
11393 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11394 (__SEM_PAD_BEFORE_TIME): Likewise.
11395 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11396 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11397 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
11398 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11399 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11400 (__MSQ_PAD_BEFORE_TIME): Likewise.
11401 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11402 (__SEM_PAD_BEFORE_TIME): Likewise.
11403 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11404 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11405 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11406 (__MSQ_PAD_BEFORE_TIME): Likewise.
11407 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11408 (__SEM_PAD_BEFORE_TIME): Likewise.
11409 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11410 (__SHM_PAD_BEFORE_TIME): Likewise.
11411 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11412 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11413 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11414
11415 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11416
11417 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11418 USE_RDTSCP is defined.
11419 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11420 USE_RDTSCP is defined.
11421
11422 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11423
11424 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11425 defined.
11426
11427 [BZ #23709]
11428 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11429 independently of other flags.
11430
11431 2018-10-23 Florian Weimer <fweimer@redhat.com>
11432
11433 * time/tst-mktime2.c (N_STRINGS): Remove.
11434 (set_timezone): New function.
11435 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11436 (mktime_test1): Report localtime failure and check errno value.
11437 Use TEST_COMPARE.
11438 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11439 (do_test): Remove alarm call. Use set_timezone and array_length.
11440
11441 2018-10-23 Andreas Schwab <schwab@suse.de>
11442
11443 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11444 (__start_context): Use END instead of PSEUDO_END.
11445
11446 2018-10-22 Joseph Myers <joseph@codesourcery.com>
11447
11448 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11449 version to 4.19.
11450
11451 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11452 version to 4.19.
11453
11454 [BZ #23793]
11455 * wcsmbs/c32rtomb.c: New file.
11456 * wcsmbs/mbrtoc32.c: Likewise.
11457 * wcsmbs/tst-c32-state.c: Likewise.
11458 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11459 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11460 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11461 (tests): Add tst-c32-state.
11462 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11463 $(gen-locales).
11464
11465 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11466
11467 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11468 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11469
11470 2018-10-19 Joseph Myers <joseph@codesourcery.com>
11471
11472 [BZ #23794]
11473 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11474 pair and return 0 in that case, and use saved character to
11475 interpret following character.
11476 * wcsmbs/tst-c16-surrogate.c: New file.
11477 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11478 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11479 Depend on $(gen-locales)
11480
11481 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11482
11483 [BZ #23562]
11484 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11485 (struct siginfo_t): Use correct type for si_band.
11486
11487 2018-10-19 Florian Weimer <fweimer@redhat.com>
11488
11489 [BZ #23689]
11490 * resource/bits/types/struct_rusage.h (struct rusage): Update
11491 comment on struct. Remove extraneous field comment.
11492
11493 2018-10-18 David S. Miller <davem@davemloft.net>
11494
11495 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11496 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11497 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11498 sysdep_routines in subdir elf.
11499 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11500 version for __vdso_clock_gettime.
11501 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11502 Define.
11503 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11504 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11505
11506 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11507
11508 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11509
11510 * sysdeps/i386/init-arch.h: Removed.
11511 * sysdeps/i386/i586/init-arch.h: Likewise.
11512 * sysdeps/i386/i686/init-arch.h: Likewise.
11513 * sysdeps/i386/i686/hp-timing.h: Likewise.
11514 * sysdeps/x86_64/hp-timing.h: Likewise.
11515 * sysdeps/i386/isa.h: New file.
11516 * sysdeps/i386/i586/isa.h: Likewise.
11517 * sysdeps/i386/i686/isa.h: Likewise.
11518 * sysdeps/x86_64/isa.h: Likewise.
11519 * sysdeps/x86/hp-timing.h: New file.
11520 * sysdeps/x86/init-arch.h: Include <isa.h>.
11521
11522 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11523
11524 * math/libm-test-pow.inc (pow_test_data): Do not allow
11525 divide-by-zero exception for pow(+/- 0, -Inf).
11526
11527 2018-10-17 Zack Weinberg <zackw@panix.com>
11528
11529 * manual/job.texi (Job Control is Optional): Remove node, as
11530 job control has not been optional in quite some time.
11531 (Job Control): Mention briefly that systems older than
11532 POSIX.1-2001 might not support job control.
11533 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11534 defined on systems conforming to POSIX.1-2001.
11535
11536 2018-10-17 Arjun Shankar <arjun@redhat.com>
11537
11538 [BZ #22062]
11539 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11540 indentation.
11541 * (__gconv_read_conf): Mark function static.
11542 * (once): New static variable.
11543 * (__gconv_load_conf): New function.
11544 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11545 * iconv/gconv_db.c (once): Remove static variable.
11546 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11547 __gconv_read_conf.
11548 * (__gconv_find_transform): Likewise.
11549 * iconv/tst-iconv-mt.c: New test.
11550 * iconv/Makefile: Add tst-iconv_mt.
11551
11552 2018-10-17 Joseph Myers <joseph@codesourcery.com>
11553
11554 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11555 bits/shm-pad.h.
11556 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11557 (shmatt_t): Define as __syscall_ulong_t.
11558 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11559 and [__SHM_PAD_AFTER_TIME].
11560 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11561 Define shm_segsz and associated padding based on
11562 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11563 Use __syscall_ulong_t instead of unsigned long int.
11564 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11565 unsigned long int.
11566 [__USE_MISC] (struct shm_info): Likewise.
11567 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11568 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11569 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11570 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11571 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11572 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11573 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11574 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11575 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11576 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11577 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11578
11579 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11580 bits/shmlba.h.
11581 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11582 (SHMLBA): Remove macro.
11583 (__getpagesize): Remove function declaration.
11584 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11585 <bits/shmlba.h>.
11586 (SHMLBA): Remove macro.
11587 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11588 <bits/shmlba.h>.
11589 (SHMLBA): Remove macro.
11590 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11591 <bits/shmlba.h>.
11592 (SHMLBA): Remove macro.
11593 (__getpagesize): Remove function declaration.
11594 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11595 <bits/shmlba.h>.
11596 (SHMLBA): Remove macro.
11597 (__getshmlba): Remove function declaration.
11598 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11599 (SHMLBA): Remove macro.
11600 (__getpagesize): Remove function declaration.
11601 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11602 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11603 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11604 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11605 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11606 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11607 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11608 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11609 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11610 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11611
11612 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
11613
11614 [BZ #23275]
11615 * nptl/tst-mutex10.c: New File.
11616 * nptl/Makefile (tests): Add tst-mutex10.
11617 (tst-mutex10-ENV): New variable.
11618 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11619 Ensure that elision path is used if elision is available.
11620 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11621 Likewise.
11622 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11623 Likewise.
11624 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11625 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11626 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11627 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11628 Likewise.
11629 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11630 (__pthread_mutex_cond_lock_adjust): Likewise.
11631 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11632 Likewise.
11633 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11634 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11635 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11636 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11637 Add comments.
11638 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11639 Use atomic_load_relaxed and atomic_store_relaxed.
11640 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11641 Use atomic_store_relaxed.
11642
11643 2018-10-17 Andreas Schwab <schwab@suse.de>
11644
11645 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11646 * crypt/badsalttest.c (TIMEOUT): Likewise.
11647 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11648 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11649 * io/test-lfs.c (TIMEOUT): Likewise.
11650 * libio/tst-atime.c (TIMEOUT): Likewise.
11651 * localedata/tst-leaks.c (TIMEOUT): Likewise.
11652 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
11653 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
11654 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
11655 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
11656 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
11657 * nptl/tst-cond11.c (TIMEOUT): Likewise.
11658 * nptl/tst-cond14.c (TIMEOUT): Likewise.
11659 * nptl/tst-cond15.c (TIMEOUT): Likewise.
11660 * nptl/tst-cond24.c (TIMEOUT): Likewise.
11661 * nptl/tst-cond25.c (TIMEOUT): Likewise.
11662 * nptl/tst-kill2.c (TIMEOUT): Likewise.
11663 * nptl/tst-kill3.c (TIMEOUT): Likewise.
11664 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
11665 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
11666 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
11667 * nptl/tst-once2.c (TIMEOUT): Likewise.
11668 * nptl/tst-once3.c (TIMEOUT): Likewise.
11669 * nptl/tst-once4.c (TIMEOUT): Likewise.
11670 * nptl/tst-robust8.c (TIMEOUT): Likewise.
11671 * nptl/tst-robust9.c (TIMEOUT): Likewise.
11672 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
11673 * nptl/tst-sem14.c (TIMEOUT): Likewise.
11674 * nptl/tst-sem6.c (TIMEOUT): Likewise.
11675 * nptl/tst-signal3.c (TIMEOUT): Likewise.
11676 * nptl/tst-spin4.c (TIMEOUT): Likewise.
11677 * nptl/tst-tls3.c (TIMEOUT): Likewise.
11678 * nptl/tst-tls4.c (TIMEOUT): Likewise.
11679 * posix/tst-chmod.c (TIMEOUT): Likewise.
11680 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
11681 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
11682 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
11683 * posix/tst-regex2.c (TIMEOUT): Likewise.
11684 * posix/tst-waitid.c (TIMEOUT): Likewise.
11685 * rt/tst-aio.c (TIMEOUT): Likewise.
11686 * rt/tst-aio10.c (TIMEOUT): Likewise.
11687 * rt/tst-aio4.c (TIMEOUT): Likewise.
11688 * rt/tst-aio5.c (TIMEOUT): Likewise.
11689 * rt/tst-aio6.c (TIMEOUT): Likewise.
11690 * rt/tst-aio64.c (TIMEOUT): Likewise.
11691 * rt/tst-aio7.c (TIMEOUT): Likewise.
11692 * rt/tst-aio9.c (TIMEOUT): Likewise.
11693 * rt/tst-clock.c (TIMEOUT): Likewise.
11694 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
11695 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
11696 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
11697 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
11698 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
11699 * rt/tst-timer4.c (TIMEOUT): Likewise.
11700 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
11701 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
11702 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
11703 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
11704 * time/tst-ftime.c (TIMEOUT): Likewise.
11705 * timezone/tst-tzset.c (TIMEOUT): Likewise.
11706
11707 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
11708
11709 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
11710 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
11711 for thunderX2.
11712
11713 2018-10-15 Joseph Myers <joseph@codesourcery.com>
11714
11715 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11716 bits/sem-pad.h.
11717 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
11718 instead of <bits/wordsize.h>.
11719 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
11720 and [__SEM_PAD_AFTER_TIME].
11721 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
11722 __syscall_ulong_t instead of unsigned long int.
11723 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
11724 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
11725 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
11726 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
11727 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
11728 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
11729 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
11730 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
11731 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11732 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11733 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11734
11735 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
11736
11737 regex: simplify by using intprops.h
11738 [BZ#23744]
11739 * posix/regex_internal.h [_LIBC]: Include intprops.h.
11740 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
11741 intprops.h defines them.
11742
11743 regex: __builtin_expect → __glibc_unlikely
11744 [BZ#23744]
11745 This refactoring was prompted by a problem when the regex code is
11746 used as part of Gnulib and when the builder’s compiler does not grok
11747 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
11748 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
11749 Although this refactoring does not fix the problem directly,
11750 we might as well have Gawk use the now-preferred glibc style for when
11751 __builtin_expect is unavailable.
11752 * posix/regex_internal.h (BE): Remove.
11753 All uses replaced by __glibc_unlikely or __glibc_likely.
11754
11755 2018-10-11 Joseph Myers <joseph@codesourcery.com>
11756
11757 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11758 bits/msq-pad.h.
11759 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
11760 instead of <bits/wordsize.h>.
11761 (msgqnum_t): Define as __syscall_ulong_t.
11762 (msglen_t): Likewise.
11763 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
11764 and [__MSQ_PAD_AFTER_TIME].
11765 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
11766 __syscall_ulong_t instead of unsigned long int.
11767 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
11768 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
11769 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
11770 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
11771 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
11772 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
11773 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
11774 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
11775 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11776 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11777 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11778
11779 2018-10-10 Joseph Myers <joseph@codesourcery.com>
11780
11781 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
11782 (struct shmid_ds): Condition padding after time fields on
11783 [__WORDSIZE == 32].
11784 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
11785 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
11786 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11787
11788 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
11789 (struct semid_ds): Condition padding after time fields on
11790 [__WORDSIZE == 32].
11791 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
11792 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
11793 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
11794 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11795
11796 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
11797 (struct msqid_ds): Condition padding after time fields on
11798 [__WORDSIZE == 32].
11799 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
11800 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
11801 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
11802 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11803
11804 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11805
11806 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
11807
11808 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11809
11810 * libio/tst-readline.c (TIMEOUT): Define.
11811
11812 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
11813
11814 mktime fix for Gnulib + coreutils
11815 [BZ#23745]
11816 This fix affects only Gnulib. Problem discovered when
11817 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
11818 * time/mktime.c:
11819 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
11820 Do not define since it is not used. Defining an unused static
11821 function prompts a warning from GCC when Coreutils is configured
11822 with --enable-gcc-warnings.
11823
11824 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11825
11826 * benchtests/scripts/compare_bench.py (main): set float type on
11827 threshold argument.
11828
11829 2018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
11830
11831 [BZ #23740]
11832 * localedata/locales/kl_GL (mon): Update, the relative case.
11833 (alt_mon): Add, fill with month names in the nominative case.
11834 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
11835 (d_fmt): Set to "%b %d %Y".
11836
11837 2018-10-04 Joseph Myers <joseph@codesourcery.com>
11838
11839 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
11840 <bits/mman-linux.h>.
11841 (PROT_READ): Don't define here.
11842 (PROT_WRITE): Likewise.
11843 (PROT_EXEC): Likewise.
11844 (PROT_NONE): Likewise.
11845 (PROT_GROWSDOWN): Likewise.
11846 (PROT_GROWSUP): Likewise.
11847 (MAP_SHARED): Likewise.
11848 (MAP_PRIVATE): Likewise.
11849 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
11850 [__USE_MISC] (MAP_FILE): Likewise.
11851 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
11852 [__USE_MISC] (MAP_ANON): Likewise.
11853 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
11854 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
11855 (MCL_CURRENT): Likewise.
11856 (MCL_FUTURE): Likewise.
11857 (MCL_ONFAULT): Likewise.
11858 [__USE_MISC] (MADV_NORMAL): Likewise.
11859 [__USE_MISC] (MADV_RANDOM): Likewise.
11860 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
11861 [__USE_MISC] (MADV_WILLNEED): Likewise.
11862 [__USE_MISC] (MADV_DONTNEED): Likewise.
11863 [__USE_MISC] (MADV_FREE): Likewise.
11864 [__USE_MISC] (MADV_REMOVE): Likewise.
11865 [__USE_MISC] (MADV_DONTFORK): Likewise.
11866 [__USE_MISC] (MADV_DOFORK): Likewise.
11867 [__USE_MISC] (MADV_HWPOISON): Likewise.
11868 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
11869 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
11870 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
11871 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
11872 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
11873 (__MAP_ANONYMOUS): New macro.
11874 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
11875 <bits/mman-linux.h> inclusion.
11876 (MAP_FIXED): Likewise.
11877 (MS_SYNC): Likewise.
11878 (MS_ASYNC): Likewise.
11879 (MS_INVALIDATE): Likewise.
11880 [__USE_MISC] (MADV_MERGEABLE): Likewise.
11881 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
11882 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
11883 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
11884 [__USE_MISC] (MADV_DONTDUMP): Likewise.
11885 [__USE_MISC] (MADV_DODUMP): Likewise.
11886 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
11887 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
11888
11889 [BZ #23735]
11890 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
11891 Define.
11892 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
11893 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
11894 Add test-nldbl-redirect.
11895 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
11896 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
11897 $(objpfx)libnldbl_nonshared.a.
11898
11899 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
11900
11901 * support/support.h (support_objdir_elf_ldso): New variable.
11902 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
11903 * support/Makefile (CFLAGS-support_paths.c): Add definition
11904 for OBJDIR_ELF_LDSO_PATH.
11905 * support/test-container.c (main): Search for the ld.so
11906 which is also used by the testsuite.
11907
11908 2018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
11909
11910 [BZ #20209]
11911 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
11912 should be "sap" rather than "sab".
11913 (day): Fix spelling of Sunday, should be "sapaat" rather than
11914 "sabaat".
11915
11916 2018-10-02 Joseph Myers <joseph@codesourcery.com>
11917
11918 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11919
11920 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
11921
11922 [BZ #19444]
11923 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
11924 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
11925 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
11926
11927 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11928
11929 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
11930
11931 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
11932
11933 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
11934 Add -mrtm.
11935 (CFLAGS-elision-unlock.c): Likewise.
11936 (CFLAGS-elision-timed.c): Likewise.
11937 (CFLAGS-elision-trylock.c): Likewise.
11938 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
11939
11940 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11941
11942 [BZ #21037]
11943 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
11944 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
11945 new fd_to_filename interface.
11946 * libio/freopen64.c (freopen64): Likewise.
11947 * libio/tst-memstream.h: New file.
11948 * libio/tst-memstream4.c: Likewise.
11949 * libio/tst-wmemstream4.c: Likewise.
11950 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
11951 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
11952 and remove internal dynamic allocation.
11953
11954 2018-10-01 Joseph Myers <joseph@codesourcery.com>
11955
11956 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
11957 (MREMAP_MAYMOVE): Do not define here.
11958 [__USE_GNU] (MREMAP_FIXED): Likewise.
11959 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
11960 (MREMAP_MAYMOVE): Define here instead.
11961 [__USE_GNU] (MREMAP_FIXED): Likewise.
11962 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
11963 (MREMAP_MAYMOVE): Remove.
11964 [__USE_GNU] (MREMAP_FIXED): Likewise.
11965
11966 2018-09-28 Joseph Myers <joseph@codesourcery.com>
11967
11968 * math/fromfp.h: Do not include <math_private.h>.
11969 * math/s_cacosh_template.c: Likewise.
11970 * math/s_casin_template.c: Likewise.
11971 * math/s_casinh_template.c: Likewise.
11972 * math/s_ccos_template.c: Likewise.
11973 * math/s_cproj_template.c: Likewise.
11974 * math/s_fdim_template.c: Likewise.
11975 * math/s_fmaxmag_template.c: Likewise.
11976 * math/s_fminmag_template.c: Likewise.
11977 * math/s_iseqsig_template.c: Likewise.
11978 * math/s_ldexp_template.c: Likewise.
11979 * math/s_nextdown_template.c: Likewise.
11980 * math/w_log1p_template.c: Likewise.
11981 * math/w_scalbln_template.c: Likewise.
11982 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
11983 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
11984 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
11985 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
11986 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11987 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11988 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11989 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11990 * sysdeps/i386/fpu/s_atanl.c: Likewise.
11991 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11992 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11993 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11994 * sysdeps/i386/fpu/s_logbl.c: Likewise.
11995 * sysdeps/i386/fpu/s_rintl.c: Likewise.
11996 * sysdeps/i386/fpu/s_significandl.c: Likewise.
11997 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
11998 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
11999 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12000 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12001 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12002 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12003 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12004 * sysdeps/ieee754/k_standardf.c: Likewise.
12005 * sysdeps/ieee754/k_standardl.c: Likewise.
12006 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12007 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12008 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12009 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12010 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12011 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12012 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12013 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12014 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12015 * sysdeps/ieee754/s_signgam.c: Likewise.
12016 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12017 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12018 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12019 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12020 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12021 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12022 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12023 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12024 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12025 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12026 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12027 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12028 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12029 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12030 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12031 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12032 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12033 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12034 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12035 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12036 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12037 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12038 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12039 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12040 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12041 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12042 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12043 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12044 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12045 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12046 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12047 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12048 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12049 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12050 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12051 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12052 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12053 <math_private.h>.
12054 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12055
12056 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12057
12058 [BZ #23716]
12059 * sysdeps/i386/dl-cet.c: Removed.
12060 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12061 prototype.
12062 (_dl_runtime_profile_shstk): Likewise.
12063 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12064 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12065
12066 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12067
12068 [BZ #23579]
12069 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12070 do_test_with_invalid_iov): New tests.
12071 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12072 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12073 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12074 errno is ENOSYS.
12075 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12076 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12077 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12078
12079 2018-09-27 Joseph Myers <joseph@codesourcery.com>
12080
12081 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12082 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12083 (MATH_REDIRECT_BINARY_ARGS): New macro.
12084 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12085 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12086 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12087 header inclusion.
12088 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12089 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12090 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12091 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12092 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12093 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12094 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12096 Likewise.
12097 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12098 Likewise.
12099 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12101 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12102 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12103 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12104 Likewise.
12105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12106 Likewise.
12107 * sysdeps/generic/math_private_calls.h
12108 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12109 Do not declare and define as an inline function.
12110 * math/divtc3.c (__divtc3): Use copysign functions instead of
12111 __copysign variants.
12112 * math/multc3.c (__multc3): Likewise.
12113 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12114 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12115 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12116 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12117 Likewise.
12118 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12119 (__ieee754_yn): Likewise.
12120 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12121 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12122 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12123 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12124 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12125 (__sin): Likewise.
12126 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12127 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12128 Likewise.
12129 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12130 Likewise.
12131 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12132 Likewise.
12133 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12134 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12135 Likewise.
12136 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12137 (__ieee754_ynf): Likewise.
12138 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12139 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12140 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12141 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12142 Likewise.
12143 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12144 (__ieee754_ynl): Likewise.
12145 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12146 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12147 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12148 Likewise.
12149 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12150 (__ieee754_ynl): Likewise.
12151 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12152 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12153 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12154 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12155 Likewise.
12156 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12157 (__ieee754_ynl)
12158 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12159 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12160 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12161 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12162 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12163
12164 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12165 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12166 using MATH_REDIRECT.
12167 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12168 header inclusion.
12169 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12170 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12171 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12172 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12173 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12174 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12175 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12176 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12177 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12180 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12181 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12182 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12183 (round): Redirect to __round.
12184 (__roundl): Call round instead of __round.
12185 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12186 Remove macro.
12187 [_ARCH_PWR5X] (__roundf): Likewise.
12188 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12189 functions instead of __round variants.
12190 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12191 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12192 Likewise.
12193 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12194 Likewise.
12195 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12196 Likewise.
12197 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12198 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12199 __lroundl.
12200 (__ieee754_expl): Call roundl instead of __roundl.
12201
12202 2018-09-27 Andreas Schwab <schwab@suse.de>
12203
12204 [BZ #23717]
12205 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12206 (do_test): Make st1 static.
12207
12208 2018-09-26 Andreas Schwab <schwab@suse.de>
12209
12210 [BZ #23707]
12211 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12212 * elf/Makefile (tests): Add tst-unwind-ctor.
12213 (modules-names): Add tst-unwind-ctor-lib.
12214 ($(objpfx)tst-unwind-ctor): Depend on
12215 $(objpfx)tst-unwind-ctor-lib.so.
12216
12217 2018-09-26 Joseph Myers <joseph@codesourcery.com>
12218
12219 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12220 file. Most contents moved from ....
12221 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12222 and include <bits/mman-map-flags-generic.h>.
12223 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12224 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12225 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12226 <bits/mman-map-flags-generic.h>.
12227 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12228 macros defined in <bits/mman-map-flags-generic.h>.
12229 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12230 <bits/mman-map-flags-generic.h>.
12231 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12232 defined in <bits/mman-map-flags-generic.h>.
12233
12234 2018-09-26 Andreas Schwab <schwab@suse.de>
12235
12236 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12237 output.
12238
12239 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12240 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12241 Fangrui Song <maskray@google.com>
12242
12243 [BZ #20480]
12244 * config.make.in (have-textrel_ifunc): New define.
12245 * configure.ac: Add check if linker supports textrel relocation with
12246 ifunc.
12247 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12248 tst-ifunc-textrel.
12249 (CFLAGS-tst-ifunc-textrel.c): New rule.
12250 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12251 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12252 * elf/tst-ifunc-textrel.c: New file.
12253
12254 2018-09-25 Joseph Myers <joseph@codesourcery.com>
12255
12256 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12257 <bits/procfs-prregset.h>.
12258 (prgregset_t): Define using __prgregset_t.
12259 (prfpregset_t): Define using __prfpregset_t.
12260 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12261 (sysdep_headers): Add bits/procfs-prregset.h.
12262 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12263 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12264 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12265 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12266
12267 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12268 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12269 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12270 pr_uid and pr_gid.
12271 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12272 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12273 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12274 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12275 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12276 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12277 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12278 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12279 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12280 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12281 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12282 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12283 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12284 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12285 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12286 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12287 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12288 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12289 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12290 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12291 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12292 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12293 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12294 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12295
12296 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12297 AArch64 version. Include <bits/procfs.h>.
12298 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12299 (sysdep_headers): Add bits/procfs.h.
12300 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12301 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12302 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12303 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12304 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12305 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12306 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12307 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12308 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12309 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12310 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12311 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12312 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12313 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12314 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12315 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12316 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12317
12318 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12319
12320 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12321 Use libsupport.
12322
12323 2018-09-25 Arjun Shankar <arjun@redhat.com>
12324
12325 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12326 (__gconv_max_path_elem_len): Likewise.
12327 (__gconv_nmodules): Likewise.
12328 (__gconv_get_path): Likewise.
12329 (path_elem): Move to ...
12330 * iconv/gconv_conf.c: ... here.
12331 (__gconv_get_path): Mark function static.
12332 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12333 * iconv/gconv_open.c: ... here.
12334
12335 2018-09-24 Andreas Schwab <schwab@suse.de>
12336
12337 * scripts/haveversions.awk: New file.
12338 * Makerules ($(common-objpfx)Versions.def)
12339 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12340 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12341 Move rules ...
12342 * Makeconfig ($(common-objpfx)Versions.def)
12343 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12344 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12345 ... here.
12346 ($(common-objpfx)Versions.mk): New rule. Include it.
12347 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12348 Emit error if build-obsolete-nsl = yes.
12349 * manual/install.texi (Configuring and compiling): Describe
12350 --enable-obsolete-nsl as unavaiable after version 2.28.
12351 * INSTALL: Regenerate.
12352
12353 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12354
12355 * NEWS: Add note about new TLE support on powerpc64le.
12356 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12357 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12358 __ununsed1.
12359 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12360 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12361 * sysdeps/powerpc/powerpc32/sysdep.h,
12362 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12363 ABORT_TRANSACTION): Remove macros.
12364 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12365 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12366 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12368 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12369 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12370 usage.
12371 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12372
12373 2018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
12374
12375 [BZ #10425]
12376 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12377 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12378 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12379 which is the same as in it_IT.
12380 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12381 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12382
12383 2018-09-20 Joseph Myers <joseph@codesourcery.com>
12384
12385 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12386 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12387 using MATH_REDIRECT.
12388 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12389 header inclusion.
12390 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12391 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12392 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12393 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12394 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12395 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12396 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12397 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12399 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12400 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12401 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12402 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12403 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12404 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12405 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12406 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12407 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12408 (ceil): Redirect to __ceil.
12409 (floor): Redirect to __floor.
12410 (trunc): Redirect to __trunc.
12411 (__truncl): Call trunc instead of __trunc.
12412 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12413 Remove macro.
12414 [_ARCH_PWR5X] (__truncf): Likewise.
12415 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12416 trunc functions instead of __trunc variants.
12417 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12418 Likewise.
12419 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12420 Likewise.
12421 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12422 Likewise.
12423 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12424 Likewise.
12425
12426 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12427 [__i586__ || __pentium__].
12428 [__i486__]: Handle explicitly.
12429 (HAS_CPUID): Define to 1 if above macros are undefined.
12430 (HAS_I586): Likewise.
12431 (HAS_I686): Likewise.
12432
12433 2018-09-20 Florian Weimer <fweimer@redhat.com>
12434
12435 * misc/tst-gethostid.c: New file.
12436 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12437 (tst-gethostid): Link with -ldl.
12438
12439 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12440
12441 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12442 value from gethostbyname_r.
12443
12444 2018-09-19 Carlos O'Donell <carlos@redhat.com>
12445
12446 * stdlib/tst-setcontext9.c (f1): Rename to...
12447 (f1a): ... this.
12448 (f1b): New function implementing lower half of f1 in alternate stack.
12449
12450 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12451
12452 Fix mktime localtime offset confusion
12453 [BZ #23603]
12454 * include/time.h (__mktime_internal): The localtime offset is now
12455 of type long int instead of time_t. This is the longstanding type
12456 in glibc, and it is more than enough to represent difference
12457 between localtime and gmtime even if it is 32 bits and time_t is
12458 64. Changing it now will let us avoid an unnecessary change when
12459 time_t is widened to 64 bits on 32-bit platforms.
12460 * time/mktime-internal.h (mktime_offset_t): Now long int.
12461
12462 Merge mktime, timegm from upstream Gnulib
12463 [BZ #23603][BZ #16346]
12464 This fixes some obscure problems with integer overflow.
12465 Although it looks scary, it is almost all a byte-for-byte copy
12466 from Gnulib, and the Gnulib code has been tested reasonably well.
12467 * include/intprops.h: New file, copied from Gnulib.
12468 * include/verify.h, time/mktime-internal.h:
12469 New tiny files, simplified from Gnulib.
12470 * time/mktime.c: Copy from Gnulib. This has the following changes:
12471 Do not include config.h if DEBUG_MKTIME is nonzero.
12472 Include stdbool.h, intprops.h, verify.h.
12473 Include string.h only if needed.
12474 Include stdlib.h on MS-Windows.
12475 Include mktime-internal.h.
12476 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12477 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12478 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12479 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12480 simplify later conditionals; default the others to zero. Use
12481 these conditionals to express only the code needed on the current
12482 platform. In uses of these conditionals, explicitly spell out how
12483 _LIBC affects things, so it’s easier to review from a glibc
12484 viewpoint.
12485 (WRAPV): Remove; no longer needed now that we have
12486 systematic overflow checking.
12487 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12488 compartmentalize tzset issues. Move system-dependent tzsettish
12489 code here from mktime.
12490 (verify): Remove; now done by verify.h. All uses changed.
12491 (long_int): Use a more-conservative definition, to avoid
12492 integer overflow.
12493 (SHR): Remove, replacing with ...
12494 (shr): New function, which means we needn’t worry about side
12495 effects in args, and conversion analysis is simpler.
12496 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12497 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12498 (time_t_avg, time_t_add_ok): Remove.
12499 (mktime_min, mktime_max): New constants.
12500 (leapyear, isdst_differ): Use bool for booleans.
12501 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12502 Use long_int, not time_t, for mktime differences.
12503 (long_int_avg): New function, replacing time_t_avg.
12504 INT_ADD_WRAPV replaces time_t_add_ok.
12505 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12506 All uses changed.
12507 (convert_time): New function.
12508 (ranged_convert): Use it.
12509 (__mktime_internal): Last arg now points to mktime_offset_t, not
12510 time_t. All uses changed. This is a no-op on glibc, where
12511 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12512 offset guess. Directly check for integer overflow instead of
12513 using a heuristic that works only 99.9...% of the time.
12514 Access *OFFSET only once, to avoid an unlikely race if the
12515 compiler delays a load and if this cascades into a signed integer
12516 overflow.
12517 (mktime): Move tzsettish code to my_tzset, and move
12518 localtime_offset to within mktime so that it doesn’t
12519 need a separate ifdef.
12520 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12521 instead of localtime.
12522 * time/timegm.c: Copy from Gnulib. This has the following changes:
12523 Include mktime-internal.h.
12524 [!_LIBC]: Include config.h and time.h. Do not include
12525 timegm.h or time_r.h. Make __mktime_internal a macro,
12526 and include mktime-internal.h to get its declaration.
12527 (timegm): Temporary is now mktime_offset_t, not time_t.
12528 This affects only Gnulib.
12529
12530 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12531
12532 [BZ #23637]
12533 * string/test-strstr.c (pr23637): New function.
12534 (test_main): Add tests with longer needles.
12535 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12536 * string/strstr.c (AVAILABLE): Likewise.
12537
12538 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12539
12540 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12541
12542 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12543
12544 * NEWS: Mention pow improvements.
12545 * math/Makefile (type-double-routines): Add e_pow_log_data.
12546 * sysdeps/generic/math_private.h (__exp1): Remove.
12547 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12548 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12549 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12550 contraction.
12551 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12552 (exp_inline): Remove.
12553 (__ieee754_exp): Only single double input is handled.
12554 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12555 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12556 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12557 (__pow_log_data): Define.
12558 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12559 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12560 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12561 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12562 contraction.
12563 (CFLAGS-e_pow-fma4.c): Likewise.
12564
12565 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12566
12567 Simplify tzfile fstat failure code
12568 [BZ #21716]
12569 * time/tzfile.c (__tzfile_read): Simplify slightly.
12570
12571 Fix tzfile low-memory assertion failure
12572 [BZ #21716]
12573 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12574 when registering time zone abbreviations.
12575
12576 2018-09-18 Joseph Myers <joseph@codesourcery.com>
12577
12578 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12579 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12580 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12581 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12582 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12583 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12584 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12585 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12586 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12587
12588 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12589 __ceil.
12590 (__ceill): Call ceil instead of __ceil.
12591 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12592 __floor.
12593 (__floorl): Call floor instead of __floor.
12594
12595 2018-09-17 Joseph Myers <joseph@codesourcery.com>
12596
12597 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12598 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12599 using MATH_REDIRECT.
12600 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12601 header inclusion.
12602 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12603 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12604 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12605 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12606 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12607 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12608 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12609 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12613 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12614 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12615 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12616 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12617 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12618 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12619 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12620 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12621 Remove macro.
12622 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12623 functions instead of __ceil variants.
12624 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12625 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12626 Likewise.
12627 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12628 Likewise.
12629 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12630 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12631 Likewise.
12632 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12633 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12634
12635 [BZ #21286]
12636 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12637 constant.
12638 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12639 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12640 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12641 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12642 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12643 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12644 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12645 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12646 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12647 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12648 (ILL_BADIADDR): Remove constant.
12649 (TRAP_BRANCH): Likewise.
12650 (TRAP_HWBKPT): Likewise.
12651
12652 2018-09-14 Joseph Myers <joseph@codesourcery.com>
12653
12654 [BZ #23656]
12655 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
12656 Remove [_MIPS_SIM = _ABIN32] conditional case.
12657 (struct elf_prpsinfo): Likewise.
12658
12659 [BZ #23649]
12660 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
12661 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
12662 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
12663 Likewise.
12664 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
12665 elf_prpsinfo): Likewise.
12666 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
12667 elf_prpsinfo): Likewise.
12668 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
12669 Likewise.
12670
12671 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12672 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
12673 using MATH_REDIRECT.
12674 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
12675 header inclusion.
12676 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
12677 * sysdeps/alpha/fpu/s_rint.c: Likewise.
12678 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
12679 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12680 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12681 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12682 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
12683 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12684 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12685 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12686 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
12687 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
12688 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
12689 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
12690 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
12691 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
12692 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
12693 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
12694 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12695 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
12696 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
12697 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
12698 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
12699 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
12700 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
12701 * sysdeps/x86_64/fpu/math_private.h: Remove file.
12702 * math/e_scalb.c (invalid_fn): Use rint functions instead of
12703 __rint variants.
12704 * math/e_scalbf.c (invalid_fn): Likewise.
12705 * math/e_scalbl.c (invalid_fn): Likewise.
12706 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12707 Likewise.
12708 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12709 Likewise.
12710 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12711 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
12712 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12713 Likewise.
12714 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12715 Likewise.
12716 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12717 Likewise.
12718 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
12719 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
12720
12721 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12722 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
12723 New macro.
12724 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12725 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
12726 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12727 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
12728 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12729 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
12730 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12731 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
12732 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12733 && !NO_MATH_REDIRECT] (floor): Likewise.
12734 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
12735 header inclusion.
12736 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
12737 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12738 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12739 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
12740 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12741 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12742 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
12743 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
12744 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
12745 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
12746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
12747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
12748 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12749 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12750 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
12751 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
12752 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
12753 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
12754 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
12755 Remove macro.
12756 [_ARCH_PWR5X] (__floorf): Likewise.
12757 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
12758 inline function.
12759 [__SSE4_1__] (__floorf): Likewise.
12760 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
12761 instead of __floor variants.
12762 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
12763 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
12764 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
12765 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
12766 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
12767 * math/w_tgamma_compat.c (__tgamma): Likewise.
12768 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
12769 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
12770 * math/w_tgammal_compat.c (__tgammal): Likewise.
12771 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
12772 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12773 Likewise.
12774 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
12775 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
12776 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
12777 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12778 Likewise.
12779 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
12780 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
12781 Likewise.
12782 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
12783 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
12784 Likewise.
12785 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12786 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
12787 Likewise.
12788 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12789 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12790 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
12791 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
12792 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12793 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12794
12795 2018-09-12 Joseph Myers <joseph@codesourcery.com>
12796
12797 * elf/Makefile (modules-names-tests): New variable.
12798
12799 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12800
12801 * NEWS: Mention log2 improvements.
12802 * math/Makefile (type-double-routines): Add e_log2_data.
12803 * sysdeps/i386/fpu/e_log2_data.c: New file.
12804 * sysdeps/ia64/fpu/e_log2_data.c: New file.
12805 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
12806 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
12807 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
12808 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
12809 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
12810
12811 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12812
12813 * NEWS: Mention log improvement.
12814 * math/Makefile (type-double-routines): Add e_log_data.
12815 * sysdeps/i386/fpu/e_log_data.c: New file.
12816 * sysdeps/ia64/fpu/e_log_data.c: New file.
12817 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
12818 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
12819 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
12820 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
12821 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
12822 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
12823
12824 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
12825 Xuepeng Guo <xuepeng.guo@intel.com>
12826
12827 [BZ #23606]
12828 * sysdeps/i386/start.S: Include <sysdep.h>
12829 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
12830 enabled. Add cfi_undefined (eip).
12831
12832 2018-09-11 Joseph Myers <joseph@codesourcery.com>
12833
12834 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
12835 (MOVQ): Likewise.
12836 (EXTRACT_WORDS64): Likewise.
12837 (INSERT_WORDS64): Likewise.
12838 (GET_FLOAT_WORD): Likewise.
12839 (SET_FLOAT_WORD): Likewise.
12840
12841 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
12842 argument.
12843 (Config.build_gcc): Use --disable-libsanitizer for first GCC
12844 build, but not for second build if --full-gcc. Use
12845 --enable-languages=all for second build if --full-gcc.
12846 (get_parser): Add --full-gcc option.
12847 (main): Update call to Context.
12848
12849 2018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
12850
12851 [BZ #10797]
12852 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
12853 Single Quotation Mark).
12854 (thousands_sep): Likewise.
12855 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
12856 * localedata/locales/it_IT (thousands_sep): Use ".".
12857 (grouping): Use "3;3".
12858
12859 2018-09-10 Joseph Myers <joseph@codesourcery.com>
12860
12861 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12862 x86_64 and i686 configs using --enable-obsolete-rpc
12863 --enable-obsolete-nsl.
12864
12865 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12866
12867 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12868
12869 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
12870
12871 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
12872 Increment size of new_argv by one.
12873
12874 2018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
12875
12876 [BZ #17426]
12877 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
12878 * localedata/locales/ar_IN (d_fmt): Likewise.
12879 * localedata/locales/bhb_IN (d_fmt): Likewise.
12880 * localedata/locales/bho_IN (d_fmt): Likewise.
12881 * localedata/locales/bn_BD (d_fmt): Likewise.
12882 * localedata/locales/bn_IN (d_fmt): Likewise.
12883 * localedata/locales/doi_IN (d_fmt): Likewise.
12884 * localedata/locales/gu_IN (d_fmt): Likewise.
12885 * localedata/locales/hi_IN (d_fmt): Likewise.
12886 * localedata/locales/hne_IN (d_fmt): Likewise.
12887 * localedata/locales/kn_IN (d_fmt): Likewise.
12888 * localedata/locales/mag_IN (d_fmt): Likewise.
12889 * localedata/locales/mai_IN (d_fmt): Likewise.
12890 * localedata/locales/mjw_IN (d_fmt): Likewise.
12891 * localedata/locales/ml_IN (d_fmt): Likewise.
12892 * localedata/locales/mni_IN (d_fmt): Likewise.
12893 * localedata/locales/mr_IN (d_fmt): Likewise.
12894 * localedata/locales/pa_IN (d_fmt): Likewise.
12895 * localedata/locales/raj_IN (d_fmt): Likewise.
12896 * localedata/locales/sat_IN (d_fmt): Likewise.
12897 * localedata/locales/sd_IN (d_fmt): Likewise.
12898 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
12899 * localedata/locales/ta_IN (d_fmt): Likewise.
12900 * localedata/locales/ta_LK (d_fmt): Likewise.
12901 * localedata/locales/tcy_IN (d_fmt): Likewise.
12902 * localedata/locales/ur_IN (d_fmt): Likewise.
12903
12904 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
12905 * localedata/locales/ks_IN (d_fmt): Likewise.
12906 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
12907
12908 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
12909 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
12910 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
12911 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
12912
12913 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
12914
12915 * NEWS: Mention exp and exp2 improvements.
12916 * math/Makefile (libm-support): Remove t_exp.
12917 (type-double-routines): Add math_err and e_exp_data.
12918 * sysdeps/aarch64/libm-test-ulps: Update.
12919 * sysdeps/arm/libm-test-ulps: Update.
12920 * sysdeps/i386/fpu/e_exp_data.c: New file.
12921 * sysdeps/i386/fpu/math_err.c: New file.
12922 * sysdeps/i386/fpu/t_exp.c: Remove.
12923 * sysdeps/ia64/fpu/e_exp_data.c: New file.
12924 * sysdeps/ia64/fpu/math_err.c: New file.
12925 * sysdeps/ia64/fpu/t_exp.c: Remove.
12926 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
12927 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
12928 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
12929 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
12930 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
12931 * sysdeps/ieee754/dbl-64/math_config.h: New file.
12932 * sysdeps/ieee754/dbl-64/math_err.c: New file.
12933 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
12934 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
12935 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
12936 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
12937 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
12938 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
12939 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
12940 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12941 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12942
12943 2018-09-05 Joseph Myers <joseph@codesourcery.com>
12944
12945 * sysdeps/alpha/fpu/math_private.h: Remove.
12946
12947 * sysdeps/generic/math_private.h
12948 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
12949 Move this inline function ....
12950 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
12951 * include/math.h [!_ISOMAC]: To here....
12952
12953 2018-09-04 Joseph Myers <joseph@codesourcery.com>
12954
12955 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
12956 code ....
12957 [!FE_HAVE_ROUNDING_MODES]: And this code ....
12958 * include/fenv.h [!_ISOMAC]: ... to here.
12959 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
12960 (feraiseexcept): Likewise.
12961 * math/fromfp.h: Do not include <fenv_private.h>.
12962 * math/s_cexp_template.c: Likewise.
12963 * math/s_csin_template.c: Likewise.
12964 * math/s_csinh_template.c: Likewise.
12965 * math/s_ctan_template.c: Likewise.
12966 * math/s_ctanh_template.c: Likewise.
12967 * math/s_iseqsig_template.c: Likewise.
12968 * math/w_acos_compat.c: Likewise.
12969 * math/w_acosf_compat.c: Likewise.
12970 * math/w_acosl_compat.c: Likewise.
12971 * math/w_asin_compat.c: Likewise.
12972 * math/w_asinf_compat.c: Likewise.
12973 * math/w_asinl_compat.c: Likewise.
12974 * math/w_j0_compat.c: Likewise.
12975 * math/w_j0f_compat.c: Likewise.
12976 * math/w_j0l_compat.c: Likewise.
12977 * math/w_j1_compat.c: Likewise.
12978 * math/w_j1f_compat.c: Likewise.
12979 * math/w_j1l_compat.c: Likewise.
12980 * math/w_jn_compat.c: Likewise.
12981 * math/w_jnf_compat.c: Likewise.
12982 * math/w_log10_compat.c: Likewise.
12983 * math/w_log10f_compat.c: Likewise.
12984 * math/w_log10l_compat.c: Likewise.
12985 * math/w_log2_compat.c: Likewise.
12986 * math/w_log2f_compat.c: Likewise.
12987 * math/w_log2l_compat.c: Likewise.
12988 * math/w_log_compat.c: Likewise.
12989 * math/w_logf_compat.c: Likewise.
12990 * math/w_logl_compat.c: Likewise.
12991 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12992 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12993 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12994 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12995 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12996 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12997 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12998 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12999 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13000 * sysdeps/ieee754/k_standardl.c: Likewise.
13001 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13002 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13003 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13004 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13005 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13006 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13007 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13008 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13009 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13010 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13011 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13012 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13013 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13014 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13015 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13016 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13017 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13018 * math/w_ilogb_template.c: Include <fenv.h> instead of
13019 <fenv_private.h>.
13020 * math/w_llogb_template.c: Likewise.
13021 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13022 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13023
13024 2018-09-03 Joseph Myers <joseph@codesourcery.com>
13025
13026 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13027 * math/fromfp.h: Include <fenv_private.h>.
13028 * math/math-narrow.h: Likewise.
13029 * math/s_cexp_template.c: Likewise.
13030 * math/s_csin_template.c: Likewise.
13031 * math/s_csinh_template.c: Likewise.
13032 * math/s_ctan_template.c: Likewise.
13033 * math/s_ctanh_template.c: Likewise.
13034 * math/s_iseqsig_template.c: Likewise.
13035 * math/w_acos_compat.c: Likewise.
13036 * math/w_acosf_compat.c: Likewise.
13037 * math/w_acosl_compat.c: Likewise.
13038 * math/w_asin_compat.c: Likewise.
13039 * math/w_asinf_compat.c: Likewise.
13040 * math/w_asinl_compat.c: Likewise.
13041 * math/w_ilogb_template.c: Likewise.
13042 * math/w_j0_compat.c: Likewise.
13043 * math/w_j0f_compat.c: Likewise.
13044 * math/w_j0l_compat.c: Likewise.
13045 * math/w_j1_compat.c: Likewise.
13046 * math/w_j1f_compat.c: Likewise.
13047 * math/w_j1l_compat.c: Likewise.
13048 * math/w_jn_compat.c: Likewise.
13049 * math/w_jnf_compat.c: Likewise.
13050 * math/w_llogb_template.c: Likewise.
13051 * math/w_log10_compat.c: Likewise.
13052 * math/w_log10f_compat.c: Likewise.
13053 * math/w_log10l_compat.c: Likewise.
13054 * math/w_log2_compat.c: Likewise.
13055 * math/w_log2f_compat.c: Likewise.
13056 * math/w_log2l_compat.c: Likewise.
13057 * math/w_log_compat.c: Likewise.
13058 * math/w_logf_compat.c: Likewise.
13059 * math/w_logl_compat.c: Likewise.
13060 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13061 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13062 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13063 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13064 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13065 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13066 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13067 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13068 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13069 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13070 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13071 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13072 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13073 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13074 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13075 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13076 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13077 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13078 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13079 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13080 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13081 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13082 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13083 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13084 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13085 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13086 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13087 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13088 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13089 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13090 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13091 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13092 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13093 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13094 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13095 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13096 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13097 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13098 * sysdeps/ieee754/k_standardl.c: Likewise.
13099 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13100 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13101 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13102 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13103 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13104 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13105 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13106 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13107 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13108 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13109 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13110 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13111 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13112 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13113 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13114 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13115 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13116 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13117 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13118 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13119 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13120 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13121 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13122 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13123 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13124 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13125 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13126 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13127 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13128 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13129 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13130 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13131 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13132 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13133 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13134 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13135 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13136 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13137 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13138 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13139 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13140 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13141 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13142 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13143 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13144 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13145 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13146 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13147 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13148 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13149 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13150 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13151 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13152 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13153 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13154 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13155 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13156 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13157 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13158 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13159 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13160 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13161 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13162 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13163 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13164 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13165 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13166 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13167 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13168 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13169 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13170
13171 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13172
13173 [BZ #20271]
13174 * include/stdio.h (__libc_fatal): Mention newline in comment.
13175 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13176 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13177 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13178 * nss/nsswitch.c (__nss_next2): Likewise.
13179 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13180 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13181 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13182 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13183 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13184 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13185 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13186 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13187 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13188 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13189 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13190 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13191 (__netlink_assert_response): Likewise.
13192
13193 2018-08-31 Joseph Myers <joseph@codesourcery.com>
13194
13195 * conform/glibcconform.py: New file.
13196 * conform/list-header-symbols.py: Likewise.
13197 * conform/list-header-symbols.pl: Remove.
13198 * conform/Makefile (tests-special): Only add linknamespace tests
13199 if [PYTHON].
13200 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13201
13202 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13203
13204 [BZ #23597]
13205 * support/Makefile (libsupport-routines): Add
13206 support_copy_file_range and xcopy_file_range.
13207 * support/support.h: Include <sys/types.h>.
13208 (support_copy_file_range): New prototype.
13209 * support/support_copy_file_range.c: New file. Copied and
13210 modified from io/copy_file_range-compat.c.
13211 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13212 instead of copy_file_range.
13213 * support/xcopy_file_range.c: New file.
13214 * support/xunistd.h (xcopy_file_range): New prototype.
13215
13216 2018-08-30 Carlos O'Donell <carlos@redhat.com>
13217
13218 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13219 xpthread_create and xpthread_join.
13220
13221 2018-08-30 Florian Weimer <fweimer@redhat.com>
13222
13223 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13224
13225 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
13226
13227 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13228 if malloc fails.
13229
13230 2018-08-29 Joseph Myers <joseph@codesourcery.com>
13231
13232 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13233 and minus_oflow as non-finite.
13234
13235 2018-08-28 Joseph Myers <joseph@codesourcery.com>
13236
13237 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13238 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13239 moved to fenv_private.h except for ...
13240 (TOINT_INTRINSICS): Kept in math_private.h.
13241 (roundtoint): Likewise.
13242 (converttoint): Likewise.
13243 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13244 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13245 * sysdeps/arm/math_private.h: Remove.
13246 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13247 ....
13248 * sysdeps/generic/math_private.h: ... this file. Include
13249 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13250 Include <fenv_private.h>. Remove functions and macros moved to
13251 fenv_private.h.
13252 * sysdeps/i386/fpu/math_private.h: Remove.
13253 * sysdeps/mips/math_private.h: Move to ....
13254 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13255 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13256 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13257 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13258 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13259 * sysdeps/powerpc/fpu/math_private.h: Do not include
13260 <fenv_private.h>.
13261 * sysdeps/riscv/rvf/math_private.h: Move to ....
13262 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13263 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13264 <fenv_private.h>.
13265 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13266 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13267 * sysdeps/sparc/fpu/math_private.h: Remove.
13268 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13269 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13270 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13271 <fenv_private.h>.
13272 * sysdeps/x86_64/fpu/math_private.h: Do not include
13273 <sysdeps/i386/fpu/fenv_private.h>.
13274
13275 2018-08-28 Florian Weimer <fweimer@redhat.com>
13276
13277 [BZ #23578]
13278 * posix/tst-regcomp-truncated.c: New file.
13279 * posix/Makefile (tests): Add it.
13280 (tst-regcomp-truncated.out): Depend on generated locales.
13281
13282 2018-08-28 Florian Weimer <fweimer@redhat.com>
13283
13284 * support/test-container.c (main): Treat unshare failure with
13285 EPERM as an unsupported test.
13286
13287 2018-08-28 Florian Weimer <fweimer@redhat.com>
13288
13289 [BZ #23520]
13290 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13291 * nscd/netgroupcache.c
13292 (addgetnetgrentX): Add tofreep parameter. Do not free
13293 heap-allocated buffer.
13294 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13295 (addgetnetgrentX_ignore): New function.
13296 (addgetnetgrent): Call it.
13297 (readdgetnetgrent): Likewise.
13298
13299 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13300
13301 * string/memmem.c: Use memcmp for first match.
13302
13303 2018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
13304
13305 [BZ #17426]
13306 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13307
13308 2018-08-27 DJ Delorie <dj@redhat.com>
13309
13310 * support/Makefile (others): Don't list programs explicitly as a
13311 dependency of "others".
13312
13313 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13314
13315 * sysdeps/generic/math-tests-trap-force.h: New file.
13316 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13317 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13318 * sysdeps/powerpc/math-tests.h: Remove file.
13319 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13320
13321 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13322 Torvald Riegel <triegel@redhat.com>
13323
13324 [BZ #23538]
13325 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13326 Update r to include the set wake-request flag if waiters are
13327 remaining after spinning.
13328
13329 2018-08-27 Joseph Myers <joseph@codesourcery.com>
13330
13331 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13332
13333 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13334
13335 [BZ #23578]
13336 regex: fix uninitialized memory access
13337 I introduced this bug into gnulib in commit
13338 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13339 eventually it was merged into glibc. The bug was found by
13340 project-repo <bugs@feusi.co> and reported here:
13341 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13342 Diagnosis and draft fix reported by Assaf Gordon here:
13343 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13344 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13345 * posix/regex_internal.c (build_wcs_upper_buffer):
13346 Fix bug when mbrtowc returns 0.
13347
13348 2018-08-24 Carlos O'Donell <carlos@redhat.com>
13349
13350 * po/be.po: Update translation.
13351
13352 2018-08-24 DJ Delorie <dj@delorie.com>
13353
13354 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13355 $(libunwind).
13356
13357 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13358
13359 [BZ #23400]
13360 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13361 create temporary files in source tree.
13362
13363 2018-08-24 Joseph Myers <joseph@codesourcery.com>
13364
13365 * sysdeps/generic/math-tests-trap.h: New file.
13366 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13367 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13368 * sysdeps/aarch64/math-tests.h: Remove file.
13369 * sysdeps/arm/math-tests.h: Likewise.
13370 * sysdeps/riscv/math-tests.h: Likewise.
13371 * sysdeps/aarch64/math-tests-trap.h: New file.
13372 * sysdeps/arm/math-tests-trap.h: Likewise.
13373 * sysdeps/riscv/math-tests-trap.h: Likewise.
13374
13375 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13376
13377 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13378 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13379 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13380 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13381 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13382 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13383 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13384 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13385 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13386 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13387 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13388 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13389 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13390 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13391 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13392 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13393 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13394 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13395
13396 2018-08-23 Joseph Myers <joseph@codesourcery.com>
13397
13398 * sysdeps/generic/math-tests-exceptions.h: New file.
13399 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13400 (EXCEPTION_TESTS_float): Do not define here.
13401 (EXCEPTION_TESTS_double): Likewise.
13402 (EXCEPTION_TESTS_long_double): Likewise.
13403 (EXCEPTION_TESTS_float128): Likewise.
13404 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13405 Likewise.
13406 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13407 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13408 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13409 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13410 * sysdeps/mips/math-tests.h: Likewise.
13411 * sysdeps/nios2/math-tests.h: Likewise.
13412 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13413 (EXCEPTION_TESTS_float): Do not define here.
13414 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13415 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13416 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13417
13418 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13419
13420 * NEWS: Move optimized sinf entry to 2.29.
13421
13422 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13423
13424 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13425
13426 2018-08-22 DJ Delorie <dj@redhat.com>
13427
13428 * Makefile (testroot.pristine): New rules to initialize the
13429 test-in-container "testroot".
13430 * Makerules (all-testsuite): Add tests-container.
13431 * Rules (tests-expected): Add tests-container.
13432 (binaries-all-tests): Likewise.
13433 (tests-container): New, run these tests in the testroot container.
13434 * support/Makefile (others): Add *-container, support_paths.c,
13435 xmkdirp, and links-dso-program.
13436 * support/links-dso-program-c.c: New.
13437 * support/links-dso-program.cc: New.
13438 * support/test-container.c: New.
13439 * support/shell-container.c: New.
13440 * support/echo-container.c: New.
13441 * support/true-container.c: New.
13442 * support/xmkdirp.c: New.
13443 * support/xsymlink.c: New.
13444 * support/support_paths.c: New.
13445 * support/support.h: Add support paths prototypes.
13446 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13447
13448 * nss/tst-nss-test3.c: Convert to test-in-container.
13449 * nss/tst-nss-test3.root/: New.
13450
13451 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13452
13453 regex: port Gnulib code to z/OS POSIX environment
13454 Problem reported by Arnold Robbins in:
13455 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13456 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13457 Undef.
13458
13459 2018-08-22 Joseph Myers <joseph@codesourcery.com>
13460
13461 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13462 (ROUNDING_TESTS_double): Remove.
13463 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13464 (ROUNDING_TESTS_double): Remove.
13465 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13466 (ROUNDING_TESTS_double): Remove.
13467 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13468 (ROUNDING_TESTS_float): Remove.
13469 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13470 (ROUNDING_TESTS_float): Remove.
13471 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13472 (ROUNDING_TESTS_float): Remove.
13473 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13474 !TEST_MATHVEC here.
13475 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13476 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13477
13478 * sysdeps/generic/math-tests-rounding.h: New file.
13479 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13480 (ROUNDING_TESTS_float): Do not define here.
13481 (ROUNDING_TESTS_double): Likewise.
13482 (ROUNDING_TESTS_long_double): Likewise.
13483 (ROUNDING_TESTS_float128): Likewise.
13484 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13485 (ROUNDING_TESTS_double): Undefine before defining.
13486 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13487 (ROUNDING_TESTS_double): Undefine before defining.
13488 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13489 (ROUNDING_TESTS_double): Undefine before defining.
13490 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13491 (ROUNDING_TESTS_float): Undefine before defining.
13492 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13493 (ROUNDING_TESTS_float): Undefine before defining.
13494 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13495 (ROUNDING_TESTS_float): Undefine before defining.
13496 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13497 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13498 not define here.
13499 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13500 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13501 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13502 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13503 (ROUNDING_TESTS_float): Do not define here.
13504 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13505 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13506 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13507 (ROUNDING_TESTS_float): Likewise.
13508 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13509 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13510 * sysdeps/mips/math-tests.h [__mips_soft_float]
13511 (ROUNDING_TESTS_float): Likewise.
13512 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13513 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13514 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13515 (ROUNDING_TESTS_double): Likewise.
13516 (ROUNDING_TESTS_long_double): Likewise.
13517
13518 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
13519
13520 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13521 (PF_XDP): New macro.
13522 (AF_XDP): New macro.
13523 (SOL_XDP): New macro.
13524
13525 2018-08-21 Joseph Myers <joseph@codesourcery.com>
13526
13527 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13528 (TCP_INQ): Likewise.
13529 (TCP_CM_INQ): Likewise.
13530 (TCP_REPAIR_ON): Likewise.
13531 (TCP_REPAIR_OFF): Likewise.
13532 (TCP_REPAIR_OFF_NO_WP): Likewise.
13533 (struct tcp_zerocopy_receive): New type.
13534
13535 2018-08-21 Florian Weimer <fweimer@redhat.com>
13536
13537 * support/support.h (support_descriptor_supports_holes): Declare.
13538 * support/Makefile (libsupport-routines): Add
13539 support_descriptor_supports_holes.
13540 * support/support_descriptor_supports_holes.c: New file.
13541 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13542 and stop testing if holes are not supported.
13543 * io/test-lfs.c (do_prepare): Likewise.
13544 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13545 Likewise.
13546 * timezone/tst-tzset.c (create_tz_file): Likewise.
13547 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13548 variable.
13549 (do_prepare): Set it.
13550 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13551
13552 2018-08-21 Florian Weimer <fweimer@redhat.com>
13553
13554 [BZ #17248]
13555 * Makeconfig (+cflags): Do not sort (and deduplicate).
13556
13557 2018-08-21 Florian Weimer <fweimer@redhat.com>
13558
13559 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13560 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13561
13562 2018-08-20 Florian Weimer <fweimer@redhat.com>
13563
13564 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13565 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13566
13567 2018-08-20 Joseph Myers <joseph@codesourcery.com>
13568
13569 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13570 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13571 and ssi_arch members.
13572
13573 * elf/elf.c (NT_VMCOREDD): New macro.
13574 (AT_MINSIGSTKSZ): Likewise.
13575
13576 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13577
13578 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13579 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13580 s_cosf-ppc64 and s_cosf-power8.
13581 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13582 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13583 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13584 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13585 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13586 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13587 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13588 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13589 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13591 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13592 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13593
13594 2018-08-17 Florian Weimer <fweimer@redhat.com>
13595
13596 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13597
13598 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13599
13600 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13601
13602 2018-08-16 Florian Weimer <fweimer@redhat.com>
13603
13604 * configure.ac: Add --with-nonshared-cflags option.
13605 * config.make.in (extra-nonshared-cflags): Set variable.
13606 * Makeconfig (CFLAGS-.oS): Use it.
13607 * manual/install.texi (Configuring and compiling): Document
13608 --with-nonshared-cflags.
13609 * configure: Regenerate.
13610 * INSTALL: Likewise.
13611
13612 2018-08-16 Florian Weimer <fweimer@redhat.com>
13613
13614 * Makeconfig (ASFLAGS): Always append required assembler flags.
13615
13616 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
13617
13618 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13619 (malloc_consolidate): Likewise.
13620
13621 2018-08-16 Pochang Chen <johnchen902@gmail.com>
13622
13623 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13624
13625 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13626
13627 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13628 every strlen call.
13629
13630 * benchtests/bench-strlen.c: Print performance numbers in json.
13631
13632 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13633
13634 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13635 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13636 only for little endian.
13637 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13638 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13639 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13640 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13641 Add check for little endian.
13642 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13643 (__strcmp_power9): Add check for little endian.
13644 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13645 Add check for little endian.
13646 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13647 (__strncmp_power9): Add check for little endian.
13648 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13649 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13650 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13651 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
13652 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
13653
13654 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13655
13656 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
13657 [!STRLEN](STRLEN): Set to __strlen.
13658 * sysdeps/aarch64/multiarch/strlen.c: New file.
13659 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
13660 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
13661 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
13662 (__libc_ifunc_impl_list): Add strlen.
13663 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
13664 strlen_generic and strlen_asimd.
13665
13666 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13667
13668 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
13669 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
13670 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
13671
13672 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
13673
13674 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
13675
13676 2018-08-14 Florian Weimer <fweimer@redhat.com>
13677
13678 [BZ #23519]
13679 * include/stdio.h (__vfxprintf): Declare.
13680 * stdio-common/fxprintf.c (__vfxprintf): New function.
13681 (__fxprintf): Call it.
13682 * misc/err.c (convert_and_print): Remove function.
13683 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
13684 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
13685 * misc/Makefile (tests): Add tst-warn-wide.
13686 * misc/tst-warn-wide.c: New file.
13687
13688 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
13689 Szabolcs Nagy <szabolcs.nagy@arm.com>
13690
13691 * NEWS: Mention sinf, cosf, sincosf.
13692 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
13693 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
13694 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
13695 constants rather than including generic sincosf.h.
13696 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
13697 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
13698 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
13699 (reduced_cos): Remove.
13700 (sinf_poly): New function.
13701 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
13702
13703 2018-08-14 Florian Weimer <fweimer@redhat.com>
13704
13705 [BZ #23521]
13706 [BZ #23522]
13707 * nss/nss_files/files-alias.c (get_next_alias): During :include:
13708 processing, bail out if no room, and close the stream before
13709 returning ERANGE.
13710 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
13711 (tst-nss-files-alias-leak): Link with libdl.
13712 (tst-nss-files-alias-leak.out): Depend on nss_files.
13713
13714 * nss/tst-nss-files-alias-leak.c: New file.
13715
13716 2018-08-14 Florian Weimer <fweimer@redhat.com>
13717
13718 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
13719 server_user, stat_user.
13720
13721 2018-08-13 Joseph Myers <joseph@codesourcery.com>
13722
13723 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13724 version to 4.18.
13725 (io_pgetevents): New syscall.
13726 (rseq): Likewise.
13727
13728 * manual/install.texi (Configuring and compiling): Do not list
13729 tools used for testing pretty printers here.
13730 (Tools for Compilation): List Python, PExpect and GDB here.
13731 Update descriptions of uses of Perl and Python.
13732 * INSTALL: Regenerate.
13733
13734 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13735 version to 4.18.
13736
13737 2018-08-13 Florian Weimer <fweimer@redhat.com>
13738
13739 * misc/error.c (error): Add missing va_end call.
13740 (error_at_line): Likewise.
13741
13742 2018-08-13 Florian Weimer <fweimer@redhat.com>
13743
13744 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
13745
13746 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
13747
13748 * benchtests/scripts/benchout.schema.json (properties): Add
13749 new properties.
13750
13751 * benchtests/bench-skeleton.c (main): Add duration and
13752 iterations attributes.
13753
13754 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
13755
13756 regex: Gnulib unibyte RRI uses bytes not chars
13757 Adjust the non-glibc code to agree with what Gawk needs for
13758 rational range interpretation (RRI) for regular expression ranges.
13759 In unibyte locales, Gawk wants ranges to use the underlying byte
13760 rather than the character code point. This change does not affect
13761 glibc proper.
13762 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
13763 In unibyte locales, use the byte value rather than
13764 running it through btowc.
13765
13766 2018-08-10 Joseph Myers <joseph@codesourcery.com>
13767
13768 * sysdeps/generic/math-tests-snan.h: New file.
13769 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
13770 (SNAN_TESTS_float): Do not define here.
13771 (SNAN_TESTS_double): Likewise.
13772 (SNAN_TESTS_long_double): Likewise.
13773 (SNAN_TESTS_float128): Likewise.
13774 * sysdeps/i386/fpu/math-tests-snan.h: New file.
13775 * sysdeps/i386/fpu/math-tests.h: Remove file.
13776 * sysdeps/ia64/math-tests-snan.h: New file.
13777 * sysdeps/ia64/math-tests.h: Remove file.
13778 * sysdeps/x86/math-tests.h: Likewise.
13779 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
13780
13781 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13782 Szabolcs Nagy <szabolcs.nagy@arm.com>
13783
13784 * math/Makefile: Add s_sincosf_data.c.
13785 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
13786 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
13787 (sincosf_poly): Likewise.
13788 (reduce_small): Likewise.
13789 (reduce_large): Likewise.
13790 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
13791 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
13792 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
13793 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
13794
13795 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
13796 Szabolcs Nagy <szabolcs.nagy@arm.com>
13797
13798 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
13799 (converttoint): Use lround.
13800 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
13801 document the semantics when TOINT_INTRINSICS is set.
13802 (converttoint): Likewise.
13803 (TOINT_RINT): Remove.
13804 (TOINT_SHIFT): Remove.
13805 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
13806 path.
13807
13808 2018-08-10 Florian Weimer <fweimer@redhat.com>
13809
13810 [BZ #23497]
13811 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
13812 function.
13813 (__old_getdents64): Use getdents64. Convert entries without
13814 moving them.
13815 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
13816 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
13817 tst-readdir64-compat.
13818
13819 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13820
13821 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
13822 Fix unwind.
13823
13824 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13825
13826 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
13827 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
13828 code to s390x-mcount.h and #include it.
13829 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
13830 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13831 (__fentry__): Add.
13832
13833 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13834
13835 * stdlib/Versions: Remove __fentry__.
13836 * sysdeps/i386/Versions: Add __fentry__.
13837 * sysdeps/x86_64/Versions: Add __fentry__.
13838
13839 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13840
13841 * sysdeps/s390/Makefile: Register the new tests.
13842 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
13843 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
13844 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
13845 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
13846 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
13847 * sysdeps/s390/tst-dl-runtime.c: New file.
13848
13849 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13850
13851 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13852 Do not clobber R0.
13853
13854 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13855
13856 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13857 Do not clobber R0.
13858
13859 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13860
13861 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13862 Do not clobber R0.
13863
13864 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13865
13866 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13867 Do not clobber R0.
13868
13869 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13870
13871 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
13872 Use symbolic offsets for stack variables.
13873
13874 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13875
13876 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
13877 Use symbolic offsets for stack variables.
13878
13879 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13880
13881 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
13882 Use symbolic offsets for stack variables.
13883
13884 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
13885
13886 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
13887 Use symbolic offsets for stack variables.
13888
13889 2018-08-09 Joseph Myers <joseph@codesourcery.com>
13890
13891 * math/gen-libm-test.py: New file.
13892 * math/gen-libm-test.pl: Remove.
13893 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
13894 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
13895 gen-libm-test.pl.
13896 ($(libm-test-c-noauto-obj)): Likewise.
13897 ($(libm-test-c-auto-obj)): Likewise.
13898 ($(libm-test-c-narrow-obj)): Likewise.
13899 (regen-ulps): Likewise.
13900 * math/README.libm-test: Update references to gen-libm-test.pl.
13901 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
13902 referencing gen-libm-test.pl.
13903 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
13904 * math/libm-test-support.c: Likewise.
13905 * math/libm-test-support.h: Likewise.
13906 * sysdeps/generic/libm-test-ulps: Likewise.
13907
13908 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
13909
13910 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
13911 Fix value.
13912
13913 2018-08-08 Joseph Myers <joseph@codesourcery.com>
13914
13915 * math/libm-test-nextdown.inc (do_test): Move comment to ....
13916 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
13917
13918 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13919
13920 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
13921 symbols.
13922 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
13923 __pthread_setspecific): Add hidden proto.
13924 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
13925 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
13926
13927 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
13928
13929 * benchtests/bench-string.h (buf1_size, buf2_size): New
13930 variables.
13931 (init_sizes): New function.
13932 (test_init): Use it.
13933 (alloc_buf, exit_error): New functions.
13934 (alloc_bufs): Use ALLOC_BUF.
13935 (realloc_bufs): Remove.
13936 * benchtests/bench-memcmp.c (do_test): Adjust.
13937 * benchtests/bench-memset-large.c (do_test): Likewise.
13938 * benchtests/bench-memset-walk.c (do_test): Likewise.
13939 * benchtests/bench-memset.c (do_test): Likewise.
13940 * benchtests/bench-strncmp.c (do_test): Likewise.
13941
13942 2018-08-06 Andreas Schwab <schwab@suse.de>
13943
13944 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
13945 of CONST_THREAD_AREA.
13946
13947 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
13948
13949 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
13950 (STATE_SAVE_MASK): Likewise.
13951 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
13952 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
13953 (STATE_SAVE_MASK): Likewise.
13954 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
13955 instead of <cpu-features.h>.
13956
13957 2018-08-03 DJ Delorie <dj@redhat.com>
13958
13959 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
13960 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
13961
13962 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
13963
13964 2018-08-03 Joseph Myers <joseph@codesourcery.com>
13965
13966 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
13967 after TEST_* calls.
13968 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
13969 * math/libm-test-logb.inc (logb_test_data): Likewise.
13970
13971 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
13972
13973 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
13974 * string/strstr.c (AVAILABLE): Likewise.
13975
13976 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13977
13978 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
13979 <init-arch.h>.
13980 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
13981 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
13982 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
13983
13984 2018-08-03 Carlos O'Donell <carlos@redhat.com>
13985
13986 * po/be.po: Update translation.
13987
13988 * po/be.po: Update translation.
13989
13990 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
13991
13992 * sysdeps/x86/cpu-features-offsets.sym
13993 (rtld_global_ro_offsetof): Removed.
13994 (CPU_FEATURES_SIZE): Likewise.
13995 (CPUID_OFFSET): Likewise.
13996 (CPUID_SIZE): Likewise.
13997 (CPUID_EAX_OFFSET): Likewise.
13998 (CPUID_EBX_OFFSET): Likewise.
13999 (CPUID_ECX_OFFSET): Likewise.
14000 (CPUID_EDX_OFFSET): Likewise.
14001 (FAMILY_OFFSET): Likewise.
14002 (MODEL_OFFSET): Likewise.
14003 (FEATURE_OFFSET): Likewise.
14004 (FEATURE_SIZ): Likewise.
14005 (COMMON_CPUID_INDEX_1): Likewise.
14006 (COMMON_CPUID_INDEX_7): Likewise.
14007 (FEATURE_INDEX_1): Likewise.
14008 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14009
14010 2018-08-02 Carlos O'Donell <carlos@redhat.com>
14011
14012 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14013 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14014 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14015 (install-locales): Depend on install-locale-archive.
14016 (install-locale-archive): Define.
14017 (install-locale-files): Define.
14018 (build-one-locale): Define macro.
14019 * manual/install.texi (Running make install): Document.
14020 * manual/INSTALL: Regenerate.
14021
14022 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14023
14024 * benchtests/scripts/compare_strings.py: Import traceback.
14025 (parse_file): Pretty-print error.
14026
14027 * NEWS: Mention the change.
14028 * elf/dl-tunables.list: Rename tune namespace to cpu.
14029 * sysdeps/powerpc/dl-tunables.list: Likewise.
14030 * sysdeps/x86/dl-tunables.list: Likewise.
14031 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14032 cpu.name.
14033 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14034 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14035 * manual/README.tunables: Likewise.
14036 * manual/tunables.texi: Likewise.
14037 * sysdeps/powerpc/cpu-features.c: Likewise.
14038 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14039 (init_cpu_features): Likewise.
14040 * sysdeps/x86/cpu-features.c: Likewise.
14041 * sysdeps/x86/cpu-features.h: Likewise.
14042 * sysdeps/x86/cpu-tunables.c: Likewise.
14043 * sysdeps/x86_64/Makefile: Likewise.
14044 * sysdeps/x86/dl-cet.c: Likewise.
14045
14046 2018-08-02 Joseph Myers <joseph@codesourcery.com>
14047
14048 [BZ #23479]
14049 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14050 [__mips_hard_float].
14051 (FE_UNDERFLOW): Likewise.
14052 (FE_OVERFLOW): Likewise.
14053 (FE_DIVBYZERO): Likewise.
14054 (FE_INVALID): Likewise.
14055 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14056 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14057 (FE_UPWARD): Likewise.
14058 (FE_DOWNWARD): Likewise.
14059 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14060 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14061 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14062 [__mips_hard_float].
14063 (FP_ROUNDMODE): Likewise.
14064 (FP_RND_NEAREST): Likewise.
14065 (FP_RND_ZERO): Likewise.
14066 (FP_RND_PINF): Likewise.
14067 (FP_RND_MINF): Likewise.
14068 (FP_EX_INVALID): Likewise.
14069 (FP_EX_OVERFLOW): Likewise.
14070 (FP_EX_UNDERFLOW): Likewise.
14071 (FP_EX_DIVZERO): Likewise.
14072 (FP_EX_INEXACT): Likewise.
14073 (FP_INIT_ROUNDMODE): Likewise.
14074 * sysdeps/mips/nofpu/fesetenv.c: New file.
14075 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14076
14077 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14078
14079 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14080 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14081 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14082 conditional on [FE_UPWARD].
14083
14084 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14085
14086 regex: fix memory leak in Gnulib
14087 Problem and fix reported by Assaf Gordon in:
14088 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14089 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14090 range_ends members too, as they are defined in 'struct
14091 re_charset_t' even if not _LIBC. This affects only Gnulib.
14092
14093 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14094
14095 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14096 ...
14097 (get_common_indices): This.
14098 (init_cpu_features): Updated.
14099
14100 2018-08-01 Joseph Myers <joseph@codesourcery.com>
14101
14102 * sysdeps/generic/math-tests-snan-payload.h: New file.
14103 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14104 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14105 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14106 * sysdeps/generic/math-tests.h: Include
14107 <math-tests-snan-payload.h>.
14108 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14109 * sysdeps/hppa/math-tests.h: Remove file.
14110 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14111 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14112 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14113 Likewise.
14114
14115 * sysdeps/generic/math-tests-snan-cast.h: New file.
14116 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14117 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14118 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14119 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14120
14121 2018-08-01 Carlos O'Donell <carlos@redhat.com>
14122
14123 * version.h (RELEASE): Set to "development".
14124 (VERSION): Set to "2.28.9000".
14125 * NEWS (2.29): New section.
14126
14127 * version.h (RELEASE): Set to "stable".
14128 (VERSION): Set to "2.28".
14129 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14130 * NEWS: Add the list of bugs fixed in 2.28.
14131
14132 * po/ca.po: Update to latest version.
14133 * po/cs.po: Likewise
14134 * po/da.po: Likewise
14135 * po/el.po: Likewise
14136 * po/eo.po: Likewise
14137 * po/es.po: Likewise
14138 * po/fi.po: Likewise
14139 * po/fr.po: Likewise
14140 * po/gl.po: Likewise
14141 * po/hu.po: Likewise
14142 * po/ia.po: Likewise
14143 * po/id.po: Likewise
14144 * po/it.po: Likewise
14145 * po/ja.po: Likewise
14146 * po/ko.po: Likewise
14147 * po/lt.po: Likewise
14148 * po/nb.po: Likewise
14149 * po/nl.po: Likewise
14150 * po/pt_BR.po: Likewise
14151 * po/ru.po: Likewise
14152 * po/rw.po: Likewise
14153 * po/sk.po: Likewise
14154 * po/sl.po: Likewise
14155 * po/tr.po: Likewise
14156 * po/zh_CN.po: Likewise
14157 * po/zh_TW.po: Likewise
14158
14159 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14160
14161 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14162 initialization...
14163 (init): ... before initializing libpthread.
14164
14165 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14166 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14167 (__mach_setup_tls): ... new function.
14168 (mach_setup_tls): New alias.
14169 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14170 __mach_setup_thread.
14171 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14172 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14173 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14174 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14175
14176 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14177
14178 * manual/install.texi: Update versions.
14179 * INSTALL: Regenerate.
14180
14181 * manual/contrib.texi (Contributors): Update contributions.
14182
14183 2018-07-31 Carlos O'Donell <carlos@redhat.com>
14184
14185 * po/be.po: Update translations.
14186
14187 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14188
14189 * sysdeps/sh/libm-test-ulps: Update.
14190
14191 2018-07-30 Carlos O'Donell <carlos@redhat.com>
14192
14193 * po/bg.po: Update translations.
14194 * po/de.po: Likewise.
14195 * po/hr.po: Likewise.
14196 * po/pt_BR.po: Likewise.
14197 * po/sv.po: Likewise.
14198 * po/vi.po: Likewise.
14199
14200 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14201
14202 [BZ #23467]
14203 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14204 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14205 (CFLAGS-tst-cet-property-1.o): New.
14206 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14207 ($(objpfx)tst-cet-property-2): Likewise.
14208 ($(objpfx)tst-cet-property-2.out): Likewise.
14209 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14210 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14211 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14212 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14213 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14214
14215 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14216
14217 [BZ #23458]
14218 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14219
14220 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14221
14222 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14223 __sbrk): Do not set attribute_hidden.
14224 * sysdeps/mach/hurd/not-errno.h: New file.
14225 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14226 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14227
14228 2018-07-27 Carlos O'Donell <carlos@redhat.com>
14229
14230 * po/uk.po: Update translations.
14231 * po/cs.po: Likewise.
14232 * po/pl.po: Likewise.
14233
14234 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14235
14236 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14237 parse beyond the note end.
14238
14239 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14240
14241 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14242 kernel does not support OFD locks.
14243 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14244
14245 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14246
14247 * sysdeps/mach/hurd/Versions (libc): Make __access and
14248 __access_noerrno external so they can override the ld symbols.
14249 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14250 __writev, __open64, __access_noerrno extern so they can be overrided.
14251 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14252 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14253
14254 2018-07-26 Carlos O'Donell <carlos@redhat.com>
14255
14256 * po/libc.pot: Regenerate.
14257
14258 2018-07-26 Joseph Myers <joseph@codesourcery.com>
14259
14260 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14261
14262 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14263
14264 [BZ #23459]
14265 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14266 function.
14267 (init_cpu_features): Call get_extended_indices for both Intel
14268 and AMD CPUs.
14269 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14270 Remove "for AMD" comment.
14271
14272 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14273
14274 [BZ # 23456]
14275 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14276 COMMON_CPUID_INDEX_80000001.
14277
14278 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
14279
14280 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14281 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14282
14283 2018-07-26 Florian Weimer <fweimer@redhat.com>
14284
14285 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14286 aliases for symbols not in the implementation namespace.
14287
14288 2018-07-25 Carlos O'Donell <carlos@redhat.com>
14289
14290 [BZ #23393]
14291 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14292 lowercase in LATIN script.
14293 * localedata/Makefile (test-input): Add en_US.UTF-8.
14294 * localedata/en_US.UTF-8.in: New file.
14295 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14296 and restore old tests.
14297 * posix/tst-regexloc.c (do_test): Add back range expression test.
14298
14299 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14300
14301 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14302
14303 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14304
14305 * nptl/threads.h: Move to ...
14306 * sysdeps/nptl/threads.h: ... here.
14307 * sysdeps/hurd/stdc-predef.h: New file.
14308
14309 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14310
14311 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14312 tst-cet-setcontext-1 if CET is enabled.
14313 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14314 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14315
14316 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14317
14318 * include/threads.h: Move to ...
14319 * sysdeps/nptl/threads.h: ... here.
14320 * sysdeps/htl/threads.h: New file.
14321 * conform/Makefile (linknamespace-libs-ISO11): Use
14322 static-thread-library instead of linking libpthread.
14323 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14324
14325 2018-07-25 Florian Weimer <fweimer@redhat.com>
14326
14327 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14328 nanoseconds into seconds.
14329 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14330 (do_test): Likewise.
14331 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14332 (do_test): Likewise. Avoid nanosecond overflow and spurious
14333 timeouts due to system load.
14334 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14335 (child_wait): Increment it.
14336 (do_test): Wait as long as necessary until all expected threads
14337 have arrived.
14338
14339 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14340 H.J. Lu <hongjiu.lu@intel.com>
14341
14342 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14343 __ssp.
14344 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14345 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14346 (__push___start_context): New.
14347 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14348 <asm/prctl.h>.
14349 (__getcontext): Record the current shadow stack base. Save the
14350 caller's shadow stack pointer and base.
14351 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14352 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14353 (__push___start_context): New prototype.
14354 (__makecontext): Call __push___start_context to allocate a new
14355 shadow stack, push __start_context onto the new stack as well
14356 as the new shadow stack.
14357 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14358 <asm/prctl.h>.
14359 (__setcontext): Restore the target shadow stack.
14360 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14361 <asm/prctl.h>.
14362 (__swapcontext): Record the current shadow stack base. Save
14363 the caller's shadow stack pointer and base. Restore the target
14364 shadow stack.
14365 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14366 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14367 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14368
14369 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14370
14371 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14372 tst-setcontext8 and tst-setcontext9.
14373 * stdlib/tst-setcontext6.c: New file.
14374 * stdlib/tst-setcontext7.c: Likewise.
14375 * stdlib/tst-setcontext8.c: Likewise.
14376 * stdlib/tst-setcontext9.c: Likewise.
14377
14378 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14379
14380 * stdlib/Makefile ((tests): Add tst-setcontext5.
14381 * stdlib/tst-setcontext5.c: New file.
14382
14383 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14384
14385 * stdlib/Makefile (tests): Add tst-setcontext4.
14386 * stdlib/tst-setcontext4.c: New file.
14387
14388 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14389
14390 * stdlib/Makefile (tests): Add tst-swapcontext1.
14391 * stdlib/tst-swapcontext1.c: New test.
14392
14393 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14394
14395 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14396 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14397 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14398 and tst-cet-legacy-4c.
14399 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14400 and tst-cet-legacy-mod-4.
14401 (CFLAGS-tst-cet-legacy-2.c): New.
14402 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14403 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14404 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14405 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14406 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14407 ($(objpfx)tst-cet-legacy-1): Likewise.
14408 ($(objpfx)tst-cet-legacy-2): Likewise.
14409 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14410 ($(objpfx)tst-cet-legacy-2a): Likewise.
14411 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14412 ($(objpfx)tst-cet-legacy-4): Likewise.
14413 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14414 ($(objpfx)tst-cet-legacy-4a): Likewise.
14415 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14416 (tst-cet-legacy-4a-ENV): Likewise.
14417 ($(objpfx)tst-cet-legacy-4b): Likewise.
14418 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14419 (tst-cet-legacy-4b-ENV): Likewise.
14420 ($(objpfx)tst-cet-legacy-4c): Likewise.
14421 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14422 (tst-cet-legacy-4c-ENV): Likewise.
14423 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14424 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14425 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14426 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14427 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14428 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14429 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14430 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14431 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14432 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14433 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14434
14435 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14436
14437 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14438 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14439 with ssp_base.
14440 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14441 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14442 with ssp_base.
14443
14444 2018-07-25 Andreas Schwab <schwab@suse.de>
14445
14446 [BZ #23442]
14447 * locale/weightwc.h (findidx): Handle the case where usrc is a
14448 prefix of cp but one character too short.
14449
14450 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14451
14452 * NEWS: Add ISO C threads addition.
14453
14454 2018-07-24 Florian Weimer <fweimer@redhat.com>
14455
14456 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14457 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14458 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14459 4.13.
14460
14461 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14462
14463 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14464 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14465 <sys/prctl.h> and <asm/prctl.h>.
14466 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14467 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14468 and <asm/prctl.h>.
14469 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14470 ARCH_CET_LEGACY_BITMAP.
14471 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14472 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14473 * sysdeps/x86/libc-start.c: Include <startup.h>.
14474
14475 2018-07-24 Florian Weimer <fweimer@redhat.com>
14476
14477 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14478 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14479
14480 2018-07-24 Rical Jasan <rj@2c3t.io>
14481 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14482 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14483
14484 [BZ #14092]
14485 * manual/debug.texi: Update adjacent chapter name.
14486 * manual/probes.texi: Likewise.
14487 * manual/threads.texi (ISO C Threads): New section.
14488 (POSIX Threads): Convert to a section.
14489
14490 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14491 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14492
14493 [BZ# 14092]
14494 * nptl/Makefile (tests): Add new test files.
14495 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14496 * nptl/tst-cnd-basic.c: Likewise.
14497 * nptl/tst-cnd-broadcast.c: Likewise.
14498 * nptl/tst-cnd-timedwait.c: Likewise.
14499 * nptl/tst-mtx-basic.c: Likewise.
14500 * nptl/tst-mtx-recursive.c: Likewise.
14501 * nptl/tst-mtx-timedlock.c: Likewise.
14502 * nptl/tst-mtx-trylock.c: Likewise.
14503 * nptl/tst-thrd-basic.c: Likewise.
14504 * nptl/tst-thrd-detach.c: Likewise.
14505 * nptl/tst-thrd-sleep.c: Likewise.
14506 * nptl/tst-tss-basic.c: Likewise.
14507
14508 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14509
14510 [BZ #14092]
14511 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14512 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14513 symbols.
14514 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14515 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14516 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14517 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14518 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14519 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14520 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14521 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14522 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14523 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14524 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14525 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14527 Likewise.
14528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14529 Likewise.
14530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14531 Likewise.
14532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14533 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14534 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14535 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14536 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14537 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14538 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14539 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14540 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14541 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14542 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14543 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14544 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14545 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14546 Likewise.
14547 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14548 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14549 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14550 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14551 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14552 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14553 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14554 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14555 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14556 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14557 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14559 ikewise.
14560 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14562 Likewise.
14563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14564 Likewise.
14565 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14569 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14570 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14571 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14572 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14573
14574 [BZ #14092]
14575 * conform/data/threads.h-data (thread_local): New macro.
14576 (TSS_DTOR_ITERATIONS): Likewise.
14577 (tss_t): New type.
14578 (tss_dtor_t): Likewise.
14579 (tss_create): New function.
14580 (tss_get): Likewise.
14581 (tss_set): Likewise.
14582 (tss_delete): Likewise.
14583 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14584 tss_get, and tss_set objects.
14585 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14586 * nptl/tss_create.c: New file.
14587 * nptl/tss_delete.c: Likewise.
14588 * nptl/tss_get.c: Likewise.
14589 * nptl/tss_set.c: Likewise.
14590 * sysdeps/nptl/threads.h (thread_local): New define.
14591 (TSS_DTOR_ITERATIONS): Likewise.
14592 (tss_t): New typedef.
14593 (tss_dtor_t): Likewise.
14594 (tss_create): New prototype.
14595 (tss_get): Likewise.
14596 (tss_set): Likewise.
14597 (tss_delete): Likewise.
14598
14599 [BZ #14092]
14600 * conform/data/threads.h-data (cnd_t): New type.
14601 (cnd_init): New function.
14602 (cnd_signal): Likewise.
14603 (cnd_broadcast): Likewise.
14604 (cnd_wait): Likewise.
14605 (cnd_timedwait): Likewise.
14606 (cnd_destroy): Likewise.
14607 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14608 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14609 object.
14610 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14611 * nptl/cnd_broadcast.c: New file.
14612 * nptl/cnd_destroy.c: Likewise.
14613 * nptl/cnd_init.c: Likewise.
14614 * nptl/cnd_signal.c: Likewise.
14615 * nptl/cnd_timedwait.c: Likewise.
14616 * nptl/cnd_wait.c: Likewise.
14617 * sysdeps/nptl/threads.h (cnd_t): New type.
14618 (cnd_init): New prototype.
14619 (cnd_signa): Likewise.
14620 (cnd_broadcast): Likewise.
14621 (cnd_wait): Likewise.
14622 (cnd_timedwait): Likewise.
14623 (cnd_destroy): Likewise.
14624
14625 [BZ #14092]
14626 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14627 (once_flag): New type.
14628 (call_once): New function.
14629 * nptl/Makefile (libpthread-routines): Add call_once object.
14630 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14631 * nptl/call_once.c: New file.
14632 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14633 (once_flag): New type.
14634 (call_once): New prototype.
14635
14636 [BZ #14092]
14637 * conform/data/threads.h-data (mtx_plain): New constant.
14638 (mtx_recursive): Likewise.
14639 (mtx_timed): Likewise.
14640 (mtx_t): New type.
14641 (mtx_init): New function.
14642 (mtx_lock): Likewise.
14643 (mtx_timedlock): Likewise.
14644 (mtx_trylock): Likewise.
14645 (mtx_unlock): Likewise.
14646 (mtx_destroy): Likewise.
14647 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14648 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14649 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14650 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14651 * nptl/mtx_destroy.c: New file.
14652 * nptl/mtx_init.c: Likewise.
14653 * nptl/mtx_lock.c: Likewise.
14654 * nptl/mtx_timedlock.c: Likewise.
14655 * nptl/mtx_trylock.c: Likewise.
14656 * nptl/mtx_unlock.c: Likewise.
14657 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
14658 (mtx_recursive): Likewise.
14659 (mtx_timed): Likewise.
14660 (mtx_t): New type.
14661 (mtx_init): New prototype.
14662 (mtx_lock): Likewise.
14663 (mtx_timedlock): Likewise.
14664 (mtx_trylock): Likewise.
14665 (mtx_unlock): Likewise.
14666 (mtx_destroy): Likewise.
14667
14668 [BZ #14092]
14669 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
14670 (linknamespace-libs-ISO11): Add libpthread.a.
14671 * conform/data/threads.h-data: New file: add C11 thrd_* types and
14672 functions.
14673 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
14674 * nptl/Makefile (headers): Add threads.h.
14675 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
14676 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
14677 thrd_yield.
14678 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
14679 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
14680 thrd_join, thrd_sleep, and thrd_yield symbols.
14681 * nptl/descr.h (struct pthread): Add c11 field.
14682 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
14683 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
14684 routine with expected function prototype.
14685 (__pthread_create_2_1): Add C11 threads check based on attribute
14686 value.
14687 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
14688 * nptl/thrd_create.c: New file.
14689 * nptl/thrd_current.c: Likewise.
14690 * nptl/thrd_detach.c: Likewise.
14691 * nptl/thrd_equal.c: Likewise.
14692 * nptl/thrd_exit.c: Likewise.
14693 * nptl/thrd_join.c: Likewise.
14694 * nptl/thrd_priv.h: Likewise.
14695 * nptl/thrd_sleep.c: Likewise.
14696 * nptl/thrd_yield.c: Likewise.
14697 * include/threads.h: Likewise.
14698
14699 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14700
14701 * bits/indirect-return.h: New file.
14702 * misc/sys/cdefs.h (__glibc_has_attribute): New.
14703 * sysdeps/x86/bits/indirect-return.h: Likewise.
14704 * stdlib/Makefile (headers): Add bits/indirect-return.h.
14705 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
14706 (swapcontext): Add __INDIRECT_RETURN.
14707 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
14708 (prepare_test_buffer): Use it.
14709
14710 2018-07-24 Andreas Schwab <schwab@suse.de>
14711
14712 [BZ #23448]
14713 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
14714 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
14715
14716 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14717
14718 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
14719 Redefine if shadow stack is enabled.
14720 (SYSCALL_ERROR_LABEL): Likewise.
14721 (__vfork): Pop shadow stack and jump back to to caller directly
14722 when shadow stack is in use.
14723 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
14724 Redefine if shadow stack is enabled.
14725 (SYSCALL_ERROR_LABEL): Likewise.
14726 (__vfork): Pop shadow stack and jump back to to caller directly
14727 when shadow stack is in use.
14728
14729 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14730
14731 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
14732 enabled.
14733 (foo): Likewise.
14734 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
14735 (foo): Likewise.
14736
14737 2018-07-20 Joseph Myers <joseph@codesourcery.com>
14738
14739 * scripts/build-many-glibcs.py (Context.checkout): Default
14740 binutils version to 2.31 branch.
14741
14742 2018-07-20 Zong Li <zong@andestech.com>
14743
14744 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
14745 URL of gcc's tarball.
14746
14747 2018-07-20 Florian Weimer <fweimer@redhat.com>
14748
14749 [BZ #23396]
14750 * posix/regcomp.c (build_equiv_class): When comparing weights, do
14751 not compare an extra byte after the end of the weights.
14752
14753 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14754
14755 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
14756 to 1.
14757 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
14758 hidden prototypes.
14759 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
14760 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
14761 * scripts/check-execstack.awk: Consider `xfail' variable containing a
14762 list of libraries whose stack executability is expected.
14763 * elf/Makefile ($(objpfx)check-execstack.out): Pass
14764 $(check-execstack-xfail) to check-execstack.awk through `xfail'
14765 variable.
14766 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
14767 libc.so libpthread.so.
14768
14769 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
14770
14771 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
14772 SOCK_NONBLOCK.
14773 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
14774 and SOCK_NONBLOCK.
14775 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
14776 implement __pipe2.
14777 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
14778
14779 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14780
14781 * benchtests/scripts/compare_bench.py (__main__): use the argparse
14782 library to improve command line parsing.
14783 (__main__): make schema file as optional parameter (--schema),
14784 defaulting to benchtests/scripts/benchout.schema.json.
14785 (main): move out of the parsing stuff to __main_  and leave it
14786 only as caller of main comparison functions.
14787
14788 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
14789
14790 * NEWS: Add a note for Intel CET status.
14791 * manual/install.texi: Likewise.
14792 * INSTALL: Regenerated.
14793
14794 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
14795
14796 [BZ #23140]
14797 * localedata/locales/oc_FR (mon): Rename to...
14798 (alt_mon): This, then update October (typo fix).
14799 (mon): New content (genitive case, month names preceded by
14800 "de" or "d’").
14801
14802 [BZ #23422]
14803 * localedata/locales/oc_FR (abday): Update all items.
14804 (day): Update Wednesday and Saturday (typo fixes).
14805 (abmon): Update all items, except May.
14806 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
14807 (LC_IDENTIFICATION): Bump the revision number and date.
14808 Keep the "category" entries in alphabetic order.
14809 (LC_ADDRESS): Remove no longer needed comment.
14810 (LC_COLLATE): Use “copy "ca_ES"”.
14811 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
14812 "name_mrs".
14813
14814 2018-07-18 Joseph Myers <joseph@codesourcery.com>
14815
14816 * grp/tst_fgetgrent.c: Include <unistd.h>.
14817 (main): Use mkstemp instead of tmpnam.
14818 * io/test-utime.c (main): Likewise.
14819 * posix/annexc.c (macrofile): Change to modifiable array.
14820 (main): Remove macrofile here.
14821 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14822 macrofile here.
14823 (check_header): Do not remove macrofile here.
14824 * posix/bug-getopt1.c: Include <stdlib.h>.
14825 (do_test): Use mkstemp instead of tmpnam.
14826 * posix/bug-getopt2.c: Include <stdlib.h>.
14827 (do_test): Use mkstemp instead of tmpnam.
14828 * posix/bug-getopt3.c: Include <stdlib.h>.
14829 (do_test): Use mkstemp instead of tmpnam.
14830 * posix/bug-getopt4.c: Include <stdlib.h>.
14831 (do_test): Use mkstemp instead of tmpnam.
14832 * posix/bug-getopt5.c: Include <stdlib.h>.
14833 (do_test): Use mkstemp instead of tmpnam.
14834 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
14835 (main): Use mkstemp instead of tmpnam.
14836 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
14837 (main): Use mkstemp instead of tmpnam.
14838 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
14839 (main): use mkstemp instead of tmpnam.
14840 * stdlib/isomac.c (macrofile): Change to modifiable array.
14841 (main): Remove macrofile here.
14842 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
14843 macrofile here.
14844 (check_header): Do not remove macrofile here.
14845
14846 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14847
14848 * manual/tunables.texi: Document glibc.tune.x86_ibt and
14849 glibc.tune.x86_shstk.
14850
14851 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14852
14853 * NEWS: Mention --enable-cet.
14854 * manual/install.texi: Document --enable-cet.
14855 * INSTALL: Regenerated.
14856
14857 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14858
14859 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
14860 Add _CET_NOTRACK before indirect jump to jump table.
14861
14862 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14863
14864 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
14865 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14866 to jump table.
14867
14868 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14869
14870 * sysdeps/i386/i686/multiarch/strcat-sse2.S
14871 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14872 to jump table.
14873
14874 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14875
14876 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
14877 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14878 to jump table.
14879
14880 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14881
14882 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
14883 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14884 to jump table.
14885
14886 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14887
14888 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
14889 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14890 to jump table.
14891 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
14892
14893 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14894
14895 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
14896 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14897 to jump table.
14898
14899 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14900
14901 * sysdeps/i386/i686/multiarch/memset-sse2.S
14902 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14903 to jump table.
14904
14905 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14906
14907 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
14908 indirect jump to jump table.
14909
14910 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14911
14912 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
14913 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14914 to jump table.
14915 (MEMCPY): Likewise.
14916
14917 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14918
14919 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
14920 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14921 to jump table.
14922 (MEMCPY): Likewise.
14923
14924 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14925
14926 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14927 _CET_NOTRACK before indirect jump to jump table.
14928
14929 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14930
14931 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
14932 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
14933 to jump table.
14934
14935 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
14936
14937 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
14938 indirect jump to jump table.
14939
14940 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
14941
14942 [BZ #22241]
14943 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
14944 (LOCALES): Likewise.
14945 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
14946 * localedata/locales/sah_RU: New file.
14947 * localedata/sah_RU.UTF-8.in: New file.
14948
14949 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14950
14951 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
14952 "sysdep.h".
14953 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14954 _CET_ENDBR to indirect jump targets and adjust jump destination
14955 for _CET_ENDBR.
14956 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
14957 "sysdep.h".
14958 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
14959 _CET_ENDBR to indirect jump targets and adjust jump destination
14960 for _CET_ENDBR.
14961 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
14962 "sysdep.h".
14963 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
14964 _CET_ENDBR to indirect jump targets and adjust jump destination
14965 for _CET_ENDBR.
14966
14967 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14968
14969 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
14970 _CET_ENDBR.
14971
14972 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14973
14974 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
14975 _CET_ENDBR.
14976 (_dl_tlsdesc_undefweak): Likewise.
14977 (_dl_tlsdesc_dynamic): Likewise.
14978 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
14979 (_dl_tlsdesc_resolve_rel): Likewise.
14980 (_dl_tlsdesc_resolve_rela): Likewise.
14981 (_dl_tlsdesc_resolve_hold): Likewise.
14982 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
14983 (_dl_tlsdesc_undefweak): Likewise.
14984 (_dl_tlsdesc_dynamic): Likewise.
14985 (_dl_tlsdesc_resolve_rela): Likewise.
14986 (_dl_tlsdesc_resolve_hold): Likewise.
14987
14988 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
14989
14990 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
14991 (_fini): Likewise.
14992 * sysdeps/x86_64/crti.S (_init): Likewise.
14993 (_fini): Likewise.
14994
14995 2018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
14996
14997 [BZ #23140]
14998 * localedata/locales/os_RU (mon): Rename to...
14999 (alt_mon): This.
15000 (mon): Import from CLDR (genitive case).
15001
15002 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15003
15004 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15005 cet-tunables.h> when CET is enabled.
15006
15007 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15008
15009 [BZ #21598]
15010 * configure.ac: Add --enable-cet.
15011 * configure: Regenerated.
15012 * elf/Makefille (all-built-dso): Add a comment.
15013 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15014 Include <dl-prop.h>.
15015 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15016 segment.
15017 * elf/dl-open.c: Include <dl-prop.h>.
15018 (dl_open_worker): Call _dl_open_check.
15019 * elf/rtld.c: Include <dl-prop.h>.
15020 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15021 _rtld_main_check.
15022 * sysdeps/generic/dl-prop.h: New file.
15023 * sysdeps/i386/dl-cet.c: Likewise.
15024 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15025 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15026 * sysdeps/x86/cet-tunables.h: Likewise.
15027 * sysdeps/x86/check-cet.awk: Likewise.
15028 * sysdeps/x86/configure: Likewise.
15029 * sysdeps/x86/configure.ac: Likewise.
15030 * sysdeps/x86/dl-cet.c: Likewise.
15031 * sysdeps/x86/dl-procruntime.c: Likewise.
15032 * sysdeps/x86/dl-prop.h: Likewise.
15033 * sysdeps/x86/libc-start.h: Likewise.
15034 * sysdeps/x86/link_map.h: Likewise.
15035 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15036 _CET_ENDBR.
15037 (_dl_runtime_profile): Likewise.
15038 (_dl_runtime_resolve_shstk): New.
15039 (_dl_runtime_profile_shstk): Likewise.
15040 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15041 if CET is enabled.
15042 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15043 (CFLAGS-.os): Likewise.
15044 (CFLAGS-.op): Likewise.
15045 (CFLAGS-.oS): Likewise.
15046 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15047 is enabled.
15048 (tests-special): Add $(objpfx)check-cet.out.
15049 (cet-built-dso): New.
15050 (+$(cet-built-dso:=.note)): Likewise.
15051 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15052 ($(objpfx)check-cet.out): New.
15053 (generated): Add check-cet.out.
15054 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15055 <cet-tunables.h>.
15056 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15057 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15058 (init_cpu_features): Call get_cet_status to check CET status
15059 and update dl_x86_feature_1 with CET status. Call
15060 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15061 (set_x86_shstk). Disable and lock CET in libc.a.
15062 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15063 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15064 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15065 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15066 (_CET_ENDBR): Define if not defined.
15067 (ENTRY): Add _CET_ENDBR.
15068 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15069 x86_shstk.
15070 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15071 _CET_ENDBR.
15072 (_dl_runtime_profile): Likewise.
15073
15074 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15075
15076 [BZ #21895]
15077 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15078 restore r2 on longjmp.
15079 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15080 test list.
15081 Added rules to build test tst-setjmp-bug21895-static.
15082 Added module setjmp-bug21895 and rules to build a shared object from it.
15083 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15084 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15085
15086 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15087
15088 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15089 * benchtests/bench-strstr.c: Likewise.
15090 * string/memmem.c (FASTSEARCH): Define.
15091 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15092 Add support for FASTSEARCH.
15093 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15094 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15095 (FASTSEARCH): Define.
15096 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15097 * string/test-strstr.c: Likewise.
15098
15099 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15100
15101 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15102 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15103
15104 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15105 H.J. Lu <hongjiu.lu@intel.com>
15106
15107 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15108 (__longjmp): Restore shadow stack pointer if shadow stack is
15109 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15110 isn't defined for __longjmp_cancel.
15111 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15112 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15113 and SHADOW_STACK_POINTER_OFFSET is defined.
15114 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15115 (setjmp): Save shadow stack pointer if shadow stack is enabled
15116 and SHADOW_STACK_POINTER_OFFSET is defined.
15117 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15118 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15119 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15120 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15121 <jmp_buf-ssp.h>.
15122 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15123 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15124 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15125 Remove jmp_buf-ssp.sym.
15126 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15127 <jmp_buf-ssp.h>.
15128 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15129 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15130 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15131 jmp_buf-ssp.sym.
15132 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15133 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15134 (__longjmp): Restore shadow stack pointer if shadow stack is
15135 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15136 isn't defined for __longjmp_cancel.
15137 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15138 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15139 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15140
15141 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15142
15143 [BZ #22563]
15144 * nptl/pthread_create.c: Include <tls-setup.h>.
15145 (__pthread_create_2_1): Call tls_setup_tcbhead.
15146 * sysdeps/generic/tls-setup.h: New file.
15147 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15148 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15149 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15150 Likewise.
15151 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15152 to feature_1.
15153 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15154 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15155 (X86_FEATURE_1_SHSTK): Likewise.
15156 (CET_ENABLED): Likewise.
15157 (IBT_ENABLED): Likewise.
15158 (SHSTK_ENABLED): Likewise.
15159
15160 2018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
15161
15162 [BZ #23208]
15163 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15164 (LOCALES): Likewise.
15165 * localedata/dsb_DE.UTF-8.in: New file.
15166 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15167
15168 2018-07-12 Florian Weimer <fweimer@redhat.com>
15169
15170 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15171 __mprotect, not mprotect.
15172
15173 2018-07-11 Florian Weimer <fweimer@redhat.com>
15174
15175 * io/Makefile (headers): Add bits/statx.h.
15176
15177 2018-07-10 Mike FABIAN <mfabian@redhat.com>
15178
15179 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15180 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15181 and headers.
15182 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15183 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15184 for utf8_gen.py
15185
15186 2018-07-10 Florian Weimer <fweimer@redhat.com>
15187
15188 * io/Makefile (routines): Add statx.
15189 (tests-internal): Add tst-statx.
15190 * io/Versions (GLIBC_2.28): Export statx.
15191 * io/bits/statx.h: New file.
15192 * io/sys/stat.h [__USE_GNU]: Include it.
15193 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15194 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15195 Define.
15196 * io/statx.c: New file.
15197 * io/statx_generic.: Likewise.
15198 * io/tst-statx.: Likewise.
15199 * include/bits/statx.h: Likewise.
15200 * sysdeps/unix/sysv/linux/kernel-features.h
15201 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15202 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15203 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15204 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15205 Undefine.
15206 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15207 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15208 * sysdeps/unix/sysv/linux/statx.c: New file.
15209 * manual/filesys.texi: Note that statx is undocumented.
15210 * sysdeps/**/libc*.abilist: Update.
15211
15212 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15213
15214 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15215 a kernel issue which lead to test failure in some cases.
15216
15217 2018-07-10 Florian Weimer <fweimer@redhat.com>
15218
15219 [BZ #23036]
15220 * posix/regexec.c (check_node_accept_bytes): When comparing
15221 weights, do not compare an extra byte after the end of the
15222 weights.
15223
15224 2018-07-10 Florian Weimer <fweimer@redhat.com>
15225
15226 * libio/readline.c: Fix copyright year.
15227 * libio/tst-readline.c Likewise.
15228 * nss/tst-nss-files-hosts-getent.c: Likewise.
15229
15230 2018-07-06 Florian Weimer <fweimer@redhat.com>
15231
15232 [BZ #18991]
15233 * nss/nss_files/files-XXX.c (internal_getent): Use
15234 __libc_readline_unlocked. Seek back to the start of the line if
15235 parsing failes with ERANGE.
15236 (get_contents_ret, get_contents): Remove.
15237 * nss/tst-nss-files-hosts-getent.c: New file.
15238 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15239 (tst-nss-files-hosts-getent): Link with -ldl.
15240
15241 2018-07-06 Florian Weimer <fweimer@redhat.com>
15242
15243 * include/stdio.h (__libc_readline_unlocked): Declare.
15244 (__ftello64, __fseeko64): Declare aliases.
15245 * libio/readline.c: New file.
15246 * libio/tst-readline.c: Likewise.
15247 (routines): Add readline.
15248 (tests-internal): Add tst-readlime.
15249 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15250 __libc_readline_unlocked.
15251 * libio/fseeko.c (__fseeko): Rename from fseeko.
15252 (fseeko): Add alias.
15253 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15254 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15255 (fseeko64): Add alias.
15256 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15257 * libio/ftello64.c (__ftello64): Rename from ftello64.
15258 (ftello64): Add alias.
15259
15260 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15261
15262 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15263 HWCAP_ATOMICS.
15264
15265 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15266
15267 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15268 Use dl_hwcap without masking.
15269 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15270 Remove HWCAP_CPUID.
15271
15272 2018-07-06 Florian Weimer <fweimer@redhat.com>
15273
15274 * conform/conformtest.pl (checknamespace): Escape literal braces
15275 in regular expressions.
15276
15277 2018-07-06 Amit Pawar <amit.pawar@amd.com>
15278
15279 * sysdeps/x86/cpu-features.c (get_common_indeces):
15280 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15281 * sysdeps/x86/cpu-features.c (init_cpu_features):
15282 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15283
15284 2018-07-05 Florian Weimer <fweimer@redhat.com>
15285
15286 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15287 protector.
15288 (CFLAGS-elf-init.oS): Likewise.
15289
15290 2018-07-05 Florian Weimer <fweimer@redhat.com>
15291 Carlos O'Donell <carlos@redhat.com>
15292
15293 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15294 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15295 with stack protector enabled because there is no risk of infinite
15296 recursion.
15297
15298 2018-07-05 Maciej W. Rozycki <macro@mips.com>
15299
15300 [BZ #19818]
15301 [BZ #23307]
15302 * libc-abis (ABSOLUTE): New ABI.
15303 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15304 * NEWS: Mention the new ABI.
15305
15306 2018-07-05 Florian Weimer <fweimer@redhat.com>
15307
15308 [BZ # 17662]
15309 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15310 (RENAME_WHITEOUT): Define.
15311 [__USE_GNU] (renameat2): Declare.
15312 * stdio-common/Makefile (routines): Add renameat2.
15313 (tests): Add tst-renameat2.
15314 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15315 * stdio-common/renameat2.c: New file.
15316 * stdio-common/tst-renameat2.c: Likewise.
15317 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15318 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15319 undocumented.
15320 * sysdeps/unix/sysv/linux/kernel-features.h
15321 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15322 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15323 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15324 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15325 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15326 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15327 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15328 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15329 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15330 * include/stdio.h (__renameat): Add alias for renameat.
15331 * stdio-common/renameat.c (__renameat): Rename from renameat.
15332 Add hidden definition and alias.
15333 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15334 * sysdeps/mach/hurd/renameat.c: Likewise.
15335 * sysdeps/**/libc*.abilist: Add renameat2.
15336
15337 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15338
15339 * posix/bug-regex33.c: Fix build after regex sync.
15340
15341 2018-07-04 Carlos O'Donell <carlos@redhat.com>
15342
15343 [BZ #23164]
15344 * localedata/tst-langinfo-setlocale.c: New file.
15345 * localedata/tst-langinfo-setlocale-static.c: New file.
15346 * localedata/tst-langinfo-newlocale.c: New file.
15347 * localedata/tst-langinfo-newlocale-static.c: New file.
15348 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15349 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15350 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15351 (tests-static): Remove tst-langinfo-static. Add
15352 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15353 (tests-special): Remove $(objpfx)tst-langinfo.out,
15354 $(objpfx)tst-langinfo-static.out. Add
15355 $(objpfx)tst-langinfo-setlocale.out,
15356 $(objpfx)tst-langinfo-newlocale.out,
15357 $(objpfx)tst-langinfo-setlocale-static.out,
15358 $(objpfx)tst-langinfo-newlocale-static.out.
15359 ($(objpfx)tst-langinfo.out): Remove.
15360 ($(objpfx)tst-langinfo-static.out): Remove.
15361 ($(objpfx)tst-langinfo-newlocale.out): New target.
15362 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15363 (test-xfail-tst-langinfo-newlocale-static): Add.
15364 ($(objpfx)tst-langinfo-setlocale.out): New target.
15365 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15366 * localedata/tst-langinfo.c: Call test_locale.
15367 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15368 data.
15369
15370 2018-07-04 Florian Weimer <fweimer@redhat.com>
15371
15372 testrun.sh: Implement --tool=strace, --tool=valgrind
15373 * Makefile (testrun-script): Define variable.
15374 (testrun.sh): Use variable.
15375 * manual/install.texi (Tools for Compilation): make 4.0 or later
15376 is required.
15377 * configure.ac: Check for make 4.0 or later.
15378 * INSTALL: Regenerate.
15379 * configure: Likewise.
15380
15381 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15382
15383 [BZ #23233]
15384 [BZ #21163]
15385 [BZ #18986]
15386 [BZ #13762]
15387 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15388 * posix/PCRE.tests: Remove invalid test.
15389 * posix/bug-regex28.c: Fix expected values for used syntax.
15390 * posix/bug-regex37.c: New file.
15391 * posix/bug-regex38.c: Likewise.
15392 * posix/regcomp.c: Sync with gnulib.
15393 * posix/regex.c: Likewise.
15394 * posix/regex.h: Likewise.
15395 * posix/regex_internal.c: Likewise.
15396 * posix/regex_internal.h: Likewise.
15397 * posix/regexec.c: Likewise.
15398
15399 2018-06-26 Mike FABIAN <mfabian@redhat.com>
15400
15401 [BZ #23308]
15402 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15403 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15404 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15405 * localedata/unicode-gen/PropList.txt: likewise.
15406 * localedata/unicode-gen/UnicodeData.txt: likewise.
15407 * localedata/charmaps/UTF-8: Regenerate.
15408 * localedata/locales/i18n_ctype: likewise.
15409 * localedata/locales/tr_TR: likewise.
15410 * localedata/locales/translit_circle: likewise.
15411 * localedata/locales/translit_cjk_compat: likewise.
15412 * localedata/locales/translit_combining: likewise.
15413 * localedata/locales/translit_compat: likewise.
15414 * localedata/locales/translit_font: likewise.
15415 * localedata/locales/translit_fraction: likewise.
15416
15417 2018-07-03 Florian Weimer <fweimer@redhat.com>
15418
15419 [BZ #23363]
15420 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15421 * stdio-common/tst-printf.sh: Adjust expected output.
15422 * LICENSES: Update.
15423
15424 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15425
15426 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15427 symbol.
15428
15429 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15430
15431 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15432 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15433 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15434 * stdio-common/tst-printfsz-islongdouble.c: New file.
15435 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15436 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15437 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15438 [subdir == stdio-common] (tests-internal): Add
15439 test-printf-size-ieee128, and test-printf-size-ibm128.
15440 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15441 (CFLAGS-test-printf-size-ibm128.c): New variables.
15442 [subdir == stdio-common] (tests-special): Add
15443 $(objpfx)test-printf-size-ieee128.out and
15444 $(objpfx)test-printf-size-ibm128.out.
15445 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15446 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15447 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15448 __printf_sizeieee128.
15449 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15450 New file.
15451 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15452 Likewise.
15453 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15454 Likewise.
15455
15456 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15457
15458 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15459 (exp2f_inline): Likewise.
15460 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15461 (__math_uflowf): Likewise.
15462 (__math_may_uflowf): Likewise.
15463 (__math_divzerof): Likewise.
15464 (__math_invalidf): Likewise.
15465 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15466 (__math_oflowf): Likewise.
15467 (__math_uflowf): Likewise.
15468 (__math_may_uflowf): Likewise.
15469 (__math_divzerof): Likewise.
15470 (__math_invalidf): Likewise.
15471
15472 2018-06-29 DJ Delorie <dj@redhat.com>
15473 Carlos O'Donell <carlos@redhat.com>
15474
15475 [BZ #23329]
15476 * include/libc-symbols.h: Comment the freeres framework.
15477 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15478 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15479 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15480 * dlfcn/dlerror.c: Include libc-symbols.h
15481 (__dlerror_main_freeres): New function.
15482 * dlfcn/dlfreeres.c: New file.
15483 * dlfcn/sdlfreeres.c: New file.
15484 * include/dlfcn.h: Declare __dlerror_main_freeres.
15485 * malloc/set-freeres.c: Declare __libdl_freeres, and
15486 __libpthread_freeres.
15487 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15488 the releavant libraries are loaded.
15489 * malloc/thread-freeres.c: Add comments.
15490 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15491 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15492 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15493 (__free_stacks): Rename to...
15494 (free_stacks): ...this. Mark static.
15495 (queue_stack): Call free_stacks.
15496 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15497 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15498 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15499 ptr_freeres element from struct.
15500 (pthread_functions): Remove .ptr_freeres from struct initializer.
15501 [SHARED] (nptl_freeres): Remove.
15502 * nptl/nptlfreeres.c: New file.
15503 * nptl/pthreadP.h
15504 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15505 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15506 attribute_hidden.
15507 (__free_stacks): Rename to...
15508 (__nptl_stacks_freeres): ...this.
15509 (__shm_directory_freeres): Declare.
15510 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15511 (__nptl_unwind_freeres): ...this.
15512 * resolv/res-close.c: Add comment.
15513 * resolv/resolv_conf.c: Include libc-symbols.h.
15514 * string/strerror_l.c: Include libc-symbols.h.
15515 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15516 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15517 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15518 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15519
15520 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15521
15522 * stdlib/tst-strfmon_l.c: Add tests for long double.
15523
15524 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
15525
15526 [BZ #23208]
15527 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15528 * localedata/locales/dsb_DE: New file.
15529
15530 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15531
15532 [BZ #23140]
15533 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15534 genitive case).
15535 (alt_mon): New entry, import from CLDR (nominative case).
15536
15537 2018-06-29 Sylvain Lesage <severo@rednegra.net>
15538
15539 [BZ #22996]
15540 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15541
15542 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15543
15544 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15545 Use vector registers.
15546
15547 * sysdeps/aarch64/multiarch/memmove_falkor.S
15548 (__memcpy_falkor): Use vector registers.
15549
15550 2018-06-29 Martin Sebor <msebor@redhat.com>
15551
15552 * manual/stdio.texi (Customizing Printf): Mention interaction
15553 with GCC built-ins.
15554
15555 2018-06-29 Maciej W. Rozycki <macro@mips.com>
15556
15557 [BZ #23307]
15558 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15559 `st_value' is 0 if `st_shndx' is SHN_ABS.
15560 * elf/tst-absolute-zero.c: New file.
15561 * elf/tst-absolute-zero-lib.c: New file.
15562 * elf/tst-absolute-zero-lib.lds: New file.
15563 * elf/Makefile (tests): Add `tst-absolute-zero'.
15564 (modules-names): Add `tst-absolute-zero-lib'.
15565 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15566 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15567 ($(objpfx)tst-absolute-zero: New dependency.
15568
15569 2018-06-29 Zack Weinberg <zackw@panix.com>
15570
15571 * configure.ac: New command-line option --disable-crypt.
15572 Force --disable-nss-crypt when --disable-crypt is given, with a
15573 warning if it was explicitly enabled.
15574 * configure: Regenerate.
15575 * config.make.in: New boolean substitution variable $(build-crypt).
15576 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15577 when $(build-crypt).
15578 * manual/install.texi: Document --disable-crypt.
15579 * INSTALL: Regenerate.
15580
15581 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15582 which is never set.
15583 * conform/Makefile: Only include libcrypt.a in
15584 linknamespace-libs-xsi and linknamespace-libs-XPG4
15585 when $(build-crypt).
15586 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15587 USE_CRYPT to 1 when $(build-crypt).
15588 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15589 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15590 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15591
15592 2018-06-29 Zack Weinberg <zackw@panix.com>
15593
15594 * crypt/crypt.h, posix/unistd.h: Update comments and
15595 prototypes for crypt and crypt_r.
15596
15597 * manual/crypt.texi (Cryptographic Functions): New initial
15598 exposition.
15599 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15600 (Unpredictable Bytes): Improve initial exposition. Clarify error
15601 behavior of getentropy and getrandom.
15602 * manual/examples/genpass.c: Generate a salt using getentropy
15603 instead of the current time. Use hash $5$ (SHA-2-256).
15604 * manual/examples/testpass.c: Demonstrate validation against
15605 hashes generated with three different one-way functions.
15606
15607 * manual/intro.texi: crypt.texi does not need an overview
15608 anymore.
15609
15610 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15611 * manual/terminal.texi: Consistently refer to "passphrases"
15612 * instead of "passwords", and to the "user database" instead
15613 * of the "password database".
15614 * manual/users.texi: Similarly. Add notes about how actual
15615 passphrase hashes are now stored in the shadow database.
15616 Remove 20-year-old junk todo note.
15617
15618 2018-06-29 Zack Weinberg <zackw@panix.com>
15619
15620 * manual/crypt.texi: Use a normal top-level @node declaration.
15621 Move most of the introductory text to the 'crypt' section.
15622 Move the example programs below the @deftypefun for 'crypt_r'.
15623 Move the 'getpass' section...
15624 * manual/terminal.texi: ...here.
15625
15626 2018-06-29 Zack Weinberg <zackw@panix.com>
15627 Florian Weimer <fweimer@redhat.com>
15628
15629 * posix/unistd.h: Do not declare encrypt.
15630 (_XOPEN_CRYPT): Remove macro definition.
15631 (crypt): Declare only for _USE_MISC.
15632 * stdlib/stdlib.h: Do not declare setkey.
15633 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15634 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15635
15636 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15637 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15638 into compat symbols. Don't define initial_perm if it's not
15639 going to be used.
15640 * crypt/cert.c: Link explicitly with the expected versions for
15641 setkey and encrypt. If they are not available at all, mark
15642 the test as unsupported.
15643
15644 * sunrpc/des_crypt.c: Unconditionally block linkage with
15645 cbc_crypt and ecb_crypt for new binaries.
15646 * sunrpc/des_soft.c: Unconditionally block linkage with
15647 des_setparity for new binaries.
15648
15649 * manual/crypt.texi: Remove the entire "DES Encryption"
15650 section. Also remove the paragraph talking about FIPS 140-2
15651 from the introduction.
15652 * manual/string.texi (strfry, memfrob): Revise. Recommend use
15653 of libgcrypt for "real" encryption, not DES.
15654 * manual/conf.texi (Constants for Sysconf): Mention that
15655 _XOPEN_CRYPT is no longer impelemented.
15656
15657 * conform/data/unistd.h-data: Remove crypt function declaration.
15658
15659 2018-06-29 Florian Weimer <fweimer@redhat.com>
15660
15661 [BZ #23351]
15662 * malloc/hooks.c: Update comments on restoring of dumped heaps.
15663 (disallow_malloc_check): Remove variable.
15664 (__malloc_check_init): Adjust.
15665 (malloc_set_state): Update comment.
15666 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
15667 declarations.
15668
15669 2018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
15670
15671 [BZ #23140]
15672 * localedata/locales/ast_ES (mon): Rename to...
15673 (alt_mon): This.
15674 (mon): Import from CLDR (genitive case).
15675
15676 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
15677 Jakub Sitnicki <jkbs@redhat.com>
15678
15679 [BZ #21812]
15680 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
15681 on NLM_F_DUMP_INTR.
15682
15683 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
15684
15685 * manual/llio.texi: Remove spurious space.
15686
15687 2018-06-28 Florian Weimer <fweimer@redhat.com>
15688
15689 [BZ #23349]
15690 * time/bits/types/struct_timespec.h: Change header inclusion guard to
15691 _STRUCT_TIMESPEC.
15692
15693 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15694
15695 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
15696 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
15697 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
15698 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
15699 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
15700 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
15701 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
15702
15703 2018-06-27 Maciej W. Rozycki <macro@mips.com>
15704
15705 [BZ #23266]
15706 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
15707 Copy and null-terminate entries that are not terminated, in
15708 addition to empty ones.
15709
15710 2018-06-27 Florian Weimer <fweimer@redhat.com>
15711
15712 [BZ #18023]
15713 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
15714 (extend_alloca_account): Remove.
15715 * manual/stdio.texi (Variable Arguments Output): Update comment.
15716
15717 2018-06-27 Joseph Myers <joseph@codesourcery.com>
15718
15719 * nptl/sockperf.c: Remove file.
15720
15721 2018-06-27 Florian Weimer <fweimer@redhat.com>
15722
15723 [BZ #18023]
15724 * elf/dl-deps.c (_dl_map_object_deps): Use struct
15725 scratch_buffer instead of extend_alloca.
15726
15727 2018-06-27 Florian Weimer <fweimer@redhat.com>
15728
15729 [BZ #18023]
15730 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
15731 scratch_buffer instead of extend_alloca. Update comments.
15732
15733 2018-06-27 Florian Weimer <fweimer@redhat.com>
15734
15735 [BZ #18023]
15736 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
15737 instead of extend_alloca.
15738
15739 2018-06-26 Joseph Myers <joseph@codesourcery.com>
15740
15741 [BZ #13888]
15742 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
15743 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
15744 /tmp.
15745 * scripts/test-installation.pl: Put temporary files in build
15746 directory, not /tmp.
15747 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
15748 (CFLAGS-bug4.c): Likewise.
15749 (CFLAGS-bug5.c): Likewise.
15750 (CFLAGS-test-fseek.c): Likewise.
15751 (CFLAGS-test-popen.c): Likewise.
15752 (CFLAGS-test_rdwr.c): Likewise.
15753 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
15754 /tmp.
15755 * stdio-common/bug4.c (main): Likewise.
15756 * stdio-common/bug5.c (main): Likewise.
15757 * stdio-common/test-fseek.c (TESTFILE): Likewise.
15758 * stdio-common/test-popen.c (do_test): Likewise.
15759 * stdio-common/test_rdwr.c (main): Likewise.
15760
15761 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
15762
15763 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
15764 (sem_open): Set sem.newsem.pad to zero for valgrind.
15765
15766 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15767
15768 [BZ #20251]
15769 * NEWS: Mention fcntl64 addition.
15770 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
15771 * login/utmp_file.c: Likewise.
15772 * sysdeps/posix/fdopendir.c: Likewise.
15773 * sysdeps/posix/opendir.c: Likewise.
15774 * sysdeps/unix/pt-fcntl.c: Likewise.
15775 * include/fcntl.h (__libc_fcntl64, __fcntl64,
15776 __fcntl64_nocancel_adjusted): New prototype.
15777 (__fcntl_nocancel_adjusted): Remove prototype.
15778 * io/Makefile (routines): Add fcntl64.
15779 (CFLAGS-fcntl64.c): New rule.
15780 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
15781 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
15782 * io/fcntl.h (fcntl64): Add prototype and redirect if
15783 __USE_FILE_OFFSET64 is defined.
15784 * io/fcntl64.c: New file.
15785 * manual/llio.text: Add a note for which commands fcntl acts a
15786 cancellation point.
15787 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
15788 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
15789 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
15790 New symbols.
15791 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
15792 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
15793 non-LFS case.
15794 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
15795 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
15796 to __fcntl64_nocancel.
15797 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
15798 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
15799 to __fcntl64_nocancel.
15800 * sysdeps/generic/not-cancel.h: Likewise.
15801 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
15802 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
15803 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
15804 (fcntl64): New symbol.
15805 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15806 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15807 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15808 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15810 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
15811 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15812 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15813 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15814 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15815 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
15816 fcntl64): Likewise.
15817 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15818 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
15819 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15820 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15821 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15822 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15823 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15824 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15825 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
15826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15827 Likewise.
15828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
15829 Likewise.
15830 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15831 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15832 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15833
15834 2018-06-26 Florian Weimer <fweimer@redhat.com>
15835
15836 Run thread shutdown functions in an explicit order.
15837 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
15838 definition.
15839 (__libc_thread_freeres): Call thread shutdown functions
15840 explicitly.
15841 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
15842 * include/string.h (__strerror_thread_freeres): Declare.
15843 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
15844 arena_thread_freeres. No longer static. Remove thread shutdown
15845 hook registration.
15846 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
15847 Declare.
15848 * resolv/res-close.c (__res_thread_freeres): Renamed from
15849 res_thread_freeres. No longer static. Remove thread shutdown
15850 hook registration.
15851 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
15852 * resolv/resolv_conf.c (freeres): Remove incorrect section
15853 attribute and use libc_freeres_fn.
15854 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
15855 strerror_thread_freeres. No longer static. Remove thread
15856 shutdown hook registration.
15857 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
15858 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
15859 shutdown hook registration.
15860 * Makerules (shlib.lds): Do not provide section boundary symbols
15861 for __libc_thread_subfreeres.
15862 * manual/memory.texi (Basic Allocation): Update comment.
15863
15864 2018-06-26 Florian Weimer <fweimer@redhat.com>
15865
15866 Remove always-defined _RPC_THREAD_SAFE_ macro.
15867 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
15868 Do not define _RPC_THREAD_SAFE_.
15869 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
15870 conditional.
15871 * sunrpc/clnt_perr.c: Likewise.
15872 * sunrpc/clnt_raw.c: Likewise.
15873 * sunrpc/clnt_simp.c: Likewise.
15874 * sunrpc/key_call.c: Likewise.
15875 * sunrpc/rpc_common.c: Likewise.
15876 * sunrpc/rpc_main.c: Likewise.
15877 * sunrpc/rpc_thread.c: Likewise.
15878 * sunrpc/svc.c: Likewise.
15879 * sunrpc/svc_raw.c: Likewise.
15880 * sunrpc/svc_simple.c: Likewise.
15881 * sumrpc/svcauth_des.c: Likewise.
15882
15883 2018-06-26 Florian Weimer <fweimer@redhat.com>
15884
15885 * libio/Makefile (tests-internal): Add tst-vtables,
15886 tst-vtables-interposed.
15887 * libio/tst-vtables.c: New file.
15888 * libio/tst-vtables-common.c: Likewise.
15889 * libio/tst-vtables-interposed.c: Likewise.
15890
15891 2018-06-26 Florian Weimer <fweimer@redhat.com>
15892
15893 * support/support_test_main.c (support_test_main): Only call
15894 setvbuf if not disables.
15895 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
15896 * support/test-driver.h (struct test_config): Add no_setvbuf member.
15897
15898 2018-06-26 Florian Weimer <fweimer@redhat.com>
15899
15900 [BZ #23313]
15901 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
15902
15903 2018-06-25 Florian Weimer <fweimer@redhat.com>
15904
15905 [BZ #18023]
15906 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15907 Use struct scratch_buffer instead of extend_alloca.
15908
15909 2018-06-25 Florian Weimer <fweimer@redhat.com>
15910
15911 [BZ #18023]
15912 * nss/getent.c (initgroups_keys): Use dynarray instead of
15913 extend_alloca.
15914
15915 2018-06-25 Florian Weimer <fweimer@redhat.com>
15916
15917 [BZ #18023]
15918 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
15919 Use struct scratch_buffer instead of extend_alloca.
15920
15921 2018-06-25 Florian Weimer <fweimer@redhat.com>
15922
15923 [BZ #18023]
15924 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
15925 back to malloc directly, without stack allocations.
15926
15927 2018-06-25 Florian Weimer <fweimer@redhat.com>
15928
15929 [BZ #18023]
15930 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
15931 of extend_alloca.
15932
15933 2018-06-25 Florian Weimer <fweimer@redhat.com>
15934
15935 [BZ #18023]
15936 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
15937 of extend_alloca.
15938 * nscd/hstcache.c (addhstbyX): Likewise.
15939 * nscd/pwdcache.c (addpwbyX): Likewise.
15940 * nscd/servicescache.c (addservbyX): Likewise.
15941
15942 2018-06-25 Florian Weimer <fweimer@redhat.com>
15943
15944 [BZ #18023]
15945 * nscd/connections.c (read_cmdline): New function.
15946 (restart): Use it. Update comment.
15947
15948 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15949
15950 [BZ #23140]
15951 * localedata/locales/csb_PL (mon): Rename to...
15952 (alt_mon): This.
15953 (abmon): Rename to...
15954 (ab_alt_mon): This.
15955 (mon): Add with proper genitive forms, copy from Wikipedia.
15956 (abmon): Likewise.
15957
15958 2018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
15959
15960 [BZ #19485]
15961 * localedata/locales/csb_PL (mon): Fix typos:
15962 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
15963 (yesstr): Add, value is "jo".
15964 (nostr): Add, value is "nié".
15965
15966 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15967
15968 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
15969 all log1p and significand functions on m680x0.
15970 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
15971 of s_significand.c..
15972 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
15973 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
15974 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
15975 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
15976 s_log1p.c and include it..
15977
15978 2018-06-21 Vincent Chen <vincentc@andestech.com>
15979
15980 * elf/elf.h (R_NDS32_NONE): New define.
15981 (R_NDS32_32_RELA): Likewise.
15982 (R_NDS32_COPY): Likewise.
15983 (R_NDS32_GLOB_DAT): Likewise.
15984 (R_NDS32_JUMP_SLOT): Likewise.
15985 (R_NDS32_RELATIVE): Likewise.
15986 (R_NDS32_TLS_TPOFF): Likewise.
15987 (R_NDS32_TLS_DESC): Likewise.
15988
15989 2018-06-21 Mark Wielaard <mark@klomp.org>
15990
15991 * elf/elf.h (R_BPF_MAP_FD): Removed.
15992 (R_BPF_64_64, R_BPF_64_32): New.
15993
15994 2018-06-21 Florian Weimer <fweimer@redhat.com>
15995
15996 [BZ #23253]
15997 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
15998 Renamed from libc_feholdsetround_ctx.
15999 (default_libc_feresetround_ctx): Renamed from
16000 libc_feresetround_ctx.
16001 (default_libc_feholdsetround_noex_ctx): Renamed from
16002 libc_feholdsetround_noex_ctx.
16003 (default_libc_feresetround_noex_ctx): Renamed from
16004 libc_feresetround_noex_ctx.
16005 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16006 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16007 forwardning to the old implementations under the new names.
16008 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16009 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16010 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16011 (libc_feresetround_ctx): Forward to default implements for i386
16012 and MATH_SET_BOTH_ROUNDING_MODES.
16013 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16014 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16015
16016 2018-06-20 Joseph Myers <joseph@codesourcery.com>
16017
16018 * string/tst-cmp.c: Include <libc-diag.h>.
16019 (strncmp_max): Disable -Wstringop-overflow= around call to
16020 strncmp.
16021 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16022 strncasecmp.
16023
16024 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16025 (main): Disable -Wunused-value around call to strpbrk.
16026 * string/bug-strspn1.c: Include <libc-diag.h>.
16027 (main): Disable -Wunused-value around call to strspn.
16028
16029 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16030 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16031
16032 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16033 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16034
16035 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16036
16037 * math/Makefile (libm-calls): Move s_significandF to...
16038 (gen-libm-calls): ... here.
16039 * math/s_significand_template.c: New file.
16040 * math/s_significand.c: Removed.
16041 * math/s_significandf.c: Removed.
16042 * math/s_significandl.c: Removed.
16043 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16044 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16045
16046 * math/e_exp2_template.c (declare_mgen_finite_alias,
16047 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16048 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16049 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16050
16051 2018-06-20 Florian Weimer <fweimer@redhat.com>
16052
16053 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16054
16055 2018-06-19 Joseph Myers <joseph@codesourcery.com>
16056
16057 [BZ #23280]
16058 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16059 floating-point number to strtod functions rather than possibly
16060 negating result of those functions.
16061 * stdio-common/tst-scanf-round.c: New file.
16062 * stdio-common/Makefile (tests): Add tst-scanf-round.
16063 ($(objpfx)tst-scanf-round): Depend on $(libm).
16064
16065 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16066
16067 * sysdeps/mach/hurd/localplt.data: Move to...
16068 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16069 R_386_GLOB_DAT like on Linux i386.
16070
16071 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16072
16073 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16074 (SHM_STAT_ANY): New macro.
16075 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16076 (SHM_STAT_ANY): Likewise.
16077 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16078 (SHM_STAT_ANY): Likewise.
16079 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16080 (SHM_STAT_ANY): Likewise.
16081 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16082 (SHM_STAT_ANY): Likewise.
16083 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16084 (SHM_STAT_ANY): Likewise.
16085 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16086 (SHM_STAT_ANY): Likewise.
16087 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16088 (SHM_STAT_ANY): Likewise.
16089 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16090 (SHM_STAT_ANY): Likewise.
16091 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16092 (SHM_STAT_ANY): Likewise.
16093 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16094 (SHM_STAT_ANY): Likewise.
16095 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16096 (SHM_STAT_ANY): Likewise.
16097
16098 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16099 (SEM_STAT_ANY): New macro.
16100 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16101 (SEM_STAT_ANY): Likewise.
16102 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16103 (SEM_STAT_ANY): Likewise.
16104 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16105 (SEM_STAT_ANY): Likewise.
16106 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16107 (SEM_STAT_ANY): Likewise.
16108 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16109 (SEM_STAT_ANY): Likewise.
16110 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16111 (SEM_STAT_ANY): Likewise.
16112 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16113 (SEM_STAT_ANY): Likewise.
16114 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16115 (SEM_STAT_ANY): Likewise.
16116 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16117 (SEM_STAT_ANY): Likewise.
16118
16119 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16120 (MSG_STAT_ANY): New macro.
16121 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16122 (MSG_STAT_ANY): Likewise.
16123 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16124 (MSG_STAT_ANY): Likewise.
16125 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16126 (MSG_STAT_ANY): Likewise.
16127 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16128 (MSG_STAT_ANY): Likewise.
16129 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16130 (MSG_STAT_ANY): Likewise.
16131 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16132 (MSG_STAT_ANY): Likewise.
16133 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16134 (MSG_STAT_ANY): Likewise.
16135 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16136 (MSG_STAT_ANY): Likewise.
16137 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16138 (MSG_STAT_ANY): Likewise.
16139
16140 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16141 (MAP_TYPE): Change value to 0x2b.
16142
16143 2018-06-18 Florian Weimer <fweimer@redhat.com>
16144
16145 [BZ #15722]
16146 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16147 socket with SOCK_CLOEXEC.
16148
16149 2018-06-18 Joseph Myers <joseph@codesourcery.com>
16150
16151 [BZ #23303]
16152 * sysdeps/powerpc/powerpc64/le/Makefile
16153 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16154 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16155 (gnulib-tests): Also add $(f128-loader-link) for
16156 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16157
16158 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16159
16160 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16161 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16162 of sendfile.
16163 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16164 (sendfile64): New strong alias.
16165 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16166 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16167 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
16168 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16169 attribute.
16170 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16171 ___pthread_get_cleanup_stack.
16172 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
16173 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16174 * mach/shortcut.awk: Make syscall stubs include
16175 <mach-shortcuts-hidden.h> and add hidden definition.
16176 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
16177 (__mach_msg): Add hidden prototype.
16178 * mach/msg.c: Include <mach.h>.
16179 (__mach_msg): Add hidden definition.
16180 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16181 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16182 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16183 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
16184 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16185 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
16186 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16187 prototype and definition.
16188 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16189 hidden target for _hurd_self_sigstate.
16190
16191 2018-06-15 Joseph Myers <joseph@codesourcery.com>
16192
16193 [BZ #23007]
16194 * stdlib/tst-strtod-nan-sign-main.c: New file.
16195 * stdlib/tst-strtod-nan-sign.c: Likewise.
16196 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16197 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16198 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16199 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16200 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16201
16202 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16203
16204 [BZ #23007]
16205 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16206 appropriate sign.
16207
16208 2018-06-14 Florian Weimer <fweimer@redhat.com>
16209
16210 [BZ #23290]
16211 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16212 that the result stays within the ISO-8859-1 range.
16213 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16214 characters are defined in IBM273.
16215
16216 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16217
16218 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16219 __mach_task_self): Remove attribute_hidden.
16220
16221 2018-06-14 Joseph Myers <joseph@codesourcery.com>
16222
16223 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16224 ignore -Wrestrict for one test.
16225
16226 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16227 Szabolcs Nagy <szabolcs.nagy@arm.com>
16228
16229 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16230
16231 2018-06-14 Florian Weimer <fweimer@redhat.com>
16232
16233 * scripts/update-abilist.sh: Accept empty list of files to patch.
16234
16235 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16236
16237 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16238 test-xfail-check-abi-libmachuser): Add.
16239 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16240 __libc_read and __libc_write to __read and __write.
16241 * sysdeps/hurd/include/hurd/port.h: New file.
16242 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16243 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16244 __thread_switch, __evc_wait): Move declarations to...
16245 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16246 attribute_hidden.
16247 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16248 use PLT to call _hurd_self_sigstate.
16249
16250 2018-06-13 Joseph Myers <joseph@codesourcery.com>
16251
16252 [BZ #23279]
16253 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16254 MAX_EXP as overflowing.
16255 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16256 overflow flag.
16257 (round_str): Output also whether result overflows in each rounding
16258 mode.
16259 * stdlib/tst-strtod-round-data: Add more tests.
16260 * stdlib/tst-strtod-round-data.h: Regenerated.
16261 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16262 (TEST): Handle extra arguments for overflow flags.
16263 (struct test_overflow): New type.
16264 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16265 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16266 (test_in_one_mode): Take argument with overflow information.
16267 (do_test): Update calls to test_in_one_mode.
16268
16269 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16270
16271 * elf/dl-load (_dl_dst_substitute): Correct comment.
16272 (_dl_dst_count): Likewise.
16273
16274 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16275 lll_futex_timed_wait.
16276
16277 2018-06-12 Joseph Myers <joseph@codesourcery.com>
16278
16279 [BZ #23277]
16280 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16281 attribute.
16282 * math/test-nan-const.c: New file.
16283 * math/Makefile (tests): Add test-nan-const.
16284 (CFLAGS-test-nan-const.c): New variable.
16285
16286 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16287
16288 * benchtests/scripts/compare_strings.py (process_results): Add
16289 funcs argument. Compare only functions which are selected.
16290 (main): Check if base function is among selected functions.
16291 Pass selected functions to process_results.
16292 (__main__): Add -f/--functions argument.
16293
16294 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16295 Hongbo Zhang <hongbo.zhang@linaro.org>
16296
16297 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16298 __memcpy_falkor for phecda core.
16299 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16300 __memmove_falkor for phecda core.
16301 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16302 __memset_falkor for phecda core.
16303 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16304 for phecda core.
16305 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16306 macro to identify phecda core.
16307
16308 2018-06-12 Carlos O'Donell <carlos@redhat.com>
16309 Andreas Schwab <schwab@suse.de>
16310 Dmitry V. Levin <ldv@altlinux.org>
16311 Florian Weimer <fweimer@redhat.com>
16312
16313 [BZ #23102]
16314 [BZ #21942]
16315 [BZ #18018]
16316 [BZ #23259]
16317 CVE-2011-0536
16318 * elf/dl-dst.h: Remove DL_DST_COUNT.
16319 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16320 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16321 (is_dst): Comment. Support ELF gABI.
16322 (_dl_dst_count): Comment. Simplify and count DSTs.
16323 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16324 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16325 locals.
16326
16327 2018-06-12 Zack Weinberg <zackw@panix.com>
16328
16329 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16330 * sysdeps/unix/sysv/linux/dl-sysdep.c
16331 Include not-cancel.h. Use __close_nocancel instead of __close,
16332 __open64_nocancel instead of __open, __read_nocancel instead of
16333 __libc_read, and __write_nocancel instead of __libc_write.
16334
16335 * csu/check_fds.c (check_one_fd)
16336 * sysdeps/posix/fdopendir.c (__fdopendir)
16337 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
16338 instead of __fcntl and/or __libc_fcntl.
16339
16340 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16341 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
16342 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
16343 Use __open64_nocancel instead of __open_nocancel.
16344
16345 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16346 hidden_proto declarations to the end and issue them if either
16347 IS_IN(libc) or IS_IN(rtld).
16348 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16349 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16350 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16351 read_nocancel, waitpid_nocancel, write_nocancel.
16352
16353 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16354 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16355 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
16356
16357 * nptl/pt-fcntl.c: New file.
16358 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16359 (libpthread-routines): Add pt-fcntl.
16360 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16361 (__libc_fcntl): Remove attribute_hidden.
16362 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16363 __fcntl_nocancel_adjusted, not fcntl_common.
16364 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
16365 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16366 to fcntl_nocancel.c.
16367 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16370 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16371
16372 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16373 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16374 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16375 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16376 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16377 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16378 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16379 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16380 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16381 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16382 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16383 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16384 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16385 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16386 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16387 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16388 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16389 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16390 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16391 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16392
16393 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16394 libpthread-routines.
16395 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16396 defines nothing.
16397
16398 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16399 __libc_read, and __write instead of __libc_write. Define
16400 __open64 in addition to __open.
16401
16402 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16403
16404 [BZ #23250]
16405 [BZ #10686]
16406 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16407 to _private_tm[3] and add __glibc_reserved2.
16408 Add _Static_assert of offset of __private_ss == 0x30.
16409 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16410 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16411
16412 2018-06-12 Florian Weimer <fweimer@redhat.com>
16413
16414 x86: Make strncmp usable from rtld.
16415 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16416 __strncmp_ia32 if in libc (and not in rtld).
16417 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16418 strncmp if not in libc (and not to __strncmp_sse2).
16419
16420 2018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
16421
16422 [BZ #23140]
16423 * localedata/locales/gd_GB (mon): Rename to...
16424 (alt_mon): This.
16425 (mon): Import from CLDR (genitive case).
16426 * localedata/locales/hsb_DE (mon): Rename to...
16427 (alt_mon): This.
16428 (mon): Import from CLDR (genitive case).
16429 * localedata/locales/wa_BE (mon): Rename to...
16430 (alt_mon): This.
16431 (mon): Add, fill with the proper genitive forms, but CLDR data
16432 is incomplete; completed according to the comments in this file.
16433 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16434
16435 * localedata/locales/wa_BE (country_name): Reword
16436 "Beljike" -> "Beldjike".
16437
16438 2018-06-11 Joseph Myers <joseph@codesourcery.com>
16439
16440 [BZ #23272]
16441 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16442 cases of non-finite arguments.
16443 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16444
16445 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
16446
16447 [BZ #23174]
16448 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16449
16450 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16451
16452 [BZ #23264]
16453 * include/unistd.h (__execvpex): New prototype.
16454 * posix/Makefile (tests): Add tst-spawn4.
16455 (tests-internal): Add tst-spawn4-compat.
16456 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16457 * posix/tst-spawn4-compat.c: New file.
16458 * posix/tst-spawn4.c: Likewise.
16459 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16460 binaries as shell scripts.
16461 * sysdeps/posix/spawni.c (__spawni): Likewise.
16462
16463 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16464
16465 [BZ #23145]
16466 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16467 ($(all-built-dso:=.dynsym): New target.
16468 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16469 ($(objpfx)check-initfini.out): New target.
16470 (generated): Add check-initfini.out.
16471 * scripts/check-initfini.awk: New file.
16472 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16473 (_fini): Likewise.
16474 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16475 (_fini): Likewise.
16476 * sysdeps/arm/crti.S (_init): Mark as hidden.
16477 (_fini): Likewise.
16478 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16479 (_fini): Likewise.
16480 * sysdeps/i386/crti.S (_init): Mark as hidden.
16481 (_fini): Likewise.
16482 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16483 (_fini): Likewise.
16484 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16485 (_fini): Likewise.
16486 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16487 (_fini): Likewise.
16488 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16489 (_fini): Likewise.
16490 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16491 (_fini): Likewise.
16492 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16493 (_fini): Likewise.
16494 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16495 (_fini): Likewise.
16496 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16497 (_fini): Likewise.
16498 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16499 (_fini): Likewise.
16500 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16501 (_fini): Likewise.
16502 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16503 (_fini): Likewise.
16504 * sysdeps/sh/crti.S (_init): Mark as hidden.
16505 (_fini): Likewise.
16506 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16507 (_fini): Likewise.
16508 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16509 (_fini): Likewise.
16510
16511 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16512
16513 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16514 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16515 and TF redirection to KFtype and KF only when the default
16516 long double type is not the IEEE 128-bit floating point type.
16517
16518 2018-06-05 Joseph Myers <joseph@codesourcery.com>
16519
16520 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16521 macro.
16522 (HWCAP_USCAT): Likewise.
16523 (HWCAP_ILRCPC): Likewise.
16524 (HWCAP_FLAGM): Likewise.
16525 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16526 Increase to 28.
16527 (_dl_aarch64_cap_flags): Add new flag names.
16528
16529 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16530 (MAP_FIXED_NOREPLACE): New macro.
16531 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16532 (MAP_FIXED_NOREPLACE): Likewise.
16533 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16534 (MAP_FIXED_NOREPLACE): Likewise.
16535 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16536 (MAP_FIXED_NOREPLACE): Likewise.
16537 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16538 (MAP_FIXED_NOREPLACE): Likewise.
16539 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16540 (MAP_FIXED_NOREPLACE): Likewise.
16541 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16542 (MAP_FIXED_NOREPLACE): Likewise.
16543 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16544 (MAP_FIXED_NOREPLACE): Likewise.
16545 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16546 (MAP_FIXED_NOREPLACE): Likewise.
16547 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16548 (MAP_FIXED_NOREPLACE): Likewise.
16549 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16550 (MAP_FIXED_NOREPLACE): Likewise.
16551 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16552 (MAP_FIXED_NOREPLACE): Likewise.
16553 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16554 (MAP_FIXED_NOREPLACE): Likewise.
16555 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16556 (MAP_FIXED_NOREPLACE): Likewise.
16557 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16558 (MAP_FIXED_NOREPLACE): Likewise.
16559
16560 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16561 version to 4.17.
16562
16563 2018-06-04 Joseph Myers <joseph@codesourcery.com>
16564
16565 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16566 version to 4.17
16567
16568 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16569
16570 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16571 int.
16572 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16573
16574 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16575
16576 * benchtests/scripts/compare_string.py: (process_results) Catch
16577 exception in non-existent base_func and catch exception in
16578 non-existent attribute.
16579 (parse_file) Catch exception if input file does not exist.
16580
16581 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16582
16583 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16584 options to avoid diff calculation and omit header, respectively.
16585 (main): process --no-diff and --no-header
16586
16587 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16588 H.J. Lu <hongjiu.lu@intel.com>
16589
16590 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16591 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16592 wcsncmp-sse2.
16593 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16594 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16595 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16596 and __wcsncmp_sse2.
16597 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16598 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16599 AVX unaligned load is fast and vzeroupper is preferred.
16600 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16601 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16602 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16603 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16604 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16605 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16606 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16607 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16608 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16609 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16610 is undefined.
16611
16612 2018-06-01 Florian Weimer <fweimer@redhat.com>
16613
16614 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16615 configuring with --disable-multi-arch, building with
16616 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16617 Haswell-era CPU.
16618
16619 2018-06-01 Florian Weimer <fweimer@redhat.com>
16620
16621 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16622 results from building with “-march=x86-64 -mtune=generic
16623 -mfpmath=sse” and running on a Haswell-era CPU.
16624
16625 2018-06-01 Joseph Myers <joseph@codesourcery.com>
16626
16627 [BZ #18473]
16628 * soft-fp/sqrttf2.c: Remove file.
16629 * soft-fp/sqrtdf2.c: Move to ....
16630 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16631 <shlib-compat.h>.
16632 (__sqrtdf2): Make conditional on
16633 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16634 symbol.
16635 * soft-fp/sqrtsf2.c: Move to ....
16636 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16637 <shlib-compat.h>.
16638 (__sqrtsf2): Make conditional on
16639 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16640 symbol.
16641 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16642 (gcc-double-routines): Remove sqrtdf2.
16643 (gcc-quad-routines): Remove sqrttf2.
16644 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16645 Do not filter out sqrtsf2 and sqrtdf2.
16646 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16647 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16648
16649 2018-06-01 Florian Weimer <fweimer@redhat.com>
16650
16651 * sysdeps/generic/libcidn.abilist: Remove file.
16652
16653 2018-06-01 Florian Weimer <fweimer@redhat.com>
16654
16655 [BZ #23236]
16656 * libio/strfile.h (struct _IO_str_fields): Rename members to
16657 discourage their use and add comment.
16658 (_IO_STR_DYNAMIC): Remove unused macro.
16659 * libio/strops.c (_IO_str_init_static_internal): Do not use
16660 callback pointers. Call malloc and free.
16661 (_IO_str_overflow): Do not use callback pointers. Call malloc
16662 and free.
16663 (enlarge_userbuf): Likewise.
16664 (_IO_str_finish): Call free.
16665 * libio/wstrops.c (_IO_wstr_init_static): Initialize
16666 _allocate_buffer_unused.
16667 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
16668 and free.
16669 (enlarge_userbuf): Likewise.
16670 (_IO_wstr_finish): Call free.
16671 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
16672 _allocate_buffer_unused, _free_buffer_unused.
16673 * libio/memstream.c (__open_memstream): Likewise.
16674 * libio/vasprintf.c (_IO_vasprintf): Likewise.
16675 * libio/wmemstream.c (open_wmemstream): Likewise.
16676
16677 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16678
16679 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
16680 AMD Ryzen 7 1800X.
16681
16682 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16683
16684 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
16685 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
16686 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
16687 New file.
16688 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
16689 Likewise.
16690 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
16691
16692 2018-05-29 Florian Weimer <fweimer@redhat.com>
16693
16694 * support/Makefile (libsupport-routines): Add
16695 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
16696 xpthread_barrierattr_setpshared.
16697 * support/xpthread_barrierattr_destroy.c: New file.
16698 * support/xpthread_barrierattr_init.c: Likewise.
16699 * support/xpthread_barrierattr_setpshared.c: Likewise.
16700
16701 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
16702
16703 [BZ #23206]
16704 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
16705 _r_debug and update DT_DEBUG for debugger.
16706
16707 2018-05-29 Florian Weimer <fweimer@redhat.com>
16708
16709 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
16710 (tst-strtod5i.out): Likewise.
16711
16712 2018-05-25 Joseph Myers <joseph@codesourcery.com>
16713
16714 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
16715 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
16716 (sparc64-quad-routines): New variable. Moved from ....
16717 [$(subdir) = soft-fp] (sysdep_routines): Add
16718 $(sparc64-quad-routines). Moved from ....
16719 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
16720 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
16721 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
16722 moved from ....
16723 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
16724 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
16725 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
16726 * sysdeps/sparc/sparc64/qp_add.c: ... here.
16727 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
16728 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
16729 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
16730 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
16731 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
16732 * sysdeps/sparc/sparc64/qp_div.c: ... here.
16733 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
16734 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
16735 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
16736 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
16737 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
16738 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
16739 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
16740 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
16741 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
16742 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
16743 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
16744 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
16745 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
16746 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
16747 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
16748 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
16749 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
16750 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
16751 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
16752 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
16753 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
16754 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
16755 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
16756 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
16757 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
16758 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
16759 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
16760 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
16761 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
16762 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
16763 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
16764 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
16765 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
16766 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
16767 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
16768 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
16769 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
16770 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
16771 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
16772 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
16773 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
16774 * sysdeps/sparc/sparc64/qp_util.c: ... here.
16775 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
16776 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
16777 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
16778 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
16779 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
16780 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
16781
16782 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
16783 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
16784 (sparc32-quad-routines): New variable. Moved from ....
16785 [$(subdir) = soft-fp] (sysdep_routines): Add
16786 $(sparc32-quad-routines). Moved from ....
16787 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
16788 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
16789 moved from ....
16790 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
16791 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
16792 * sysdeps/sparc/sparc32/q_add.c: ... here.
16793 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
16794 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
16795 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
16796 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
16797 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
16798 * sysdeps/sparc/sparc32/q_div.c: ... here.
16799 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
16800 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
16801 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
16802 * sysdeps/sparc/sparc32/q_feq.c: ... here.
16803 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
16804 * sysdeps/sparc/sparc32/q_fge.c: ... here.
16805 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
16806 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
16807 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
16808 * sysdeps/sparc/sparc32/q_fle.c: ... here.
16809 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
16810 * sysdeps/sparc/sparc32/q_flt.c: ... here.
16811 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
16812 * sysdeps/sparc/sparc32/q_fne.c: ... here.
16813 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
16814 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
16815 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
16816 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
16817 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
16818 * sysdeps/sparc/sparc32/q_mul.c: ... here.
16819 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
16820 * sysdeps/sparc/sparc32/q_neg.c: ... here.
16821 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
16822 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
16823 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
16824 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
16825 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
16826 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
16827 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
16828 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
16829 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
16830 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
16831 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
16832 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
16833 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
16834 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
16835 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
16836 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
16837 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
16838 * sysdeps/sparc/sparc32/q_sub.c: ... here.
16839 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
16840 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
16841 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
16842 * sysdeps/sparc/sparc32/q_util.c: ... here.
16843 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
16844 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
16845 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
16846 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
16847
16848 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16849 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16850
16851 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
16852 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
16853 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
16854 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
16855
16856 2018-05-24 Joseph Myers <joseph@codesourcery.com>
16857
16858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
16859 powerpc/soft-fp.
16860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
16861 Likewise.
16862 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
16863 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
16864
16865 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16866
16867 [BZ #23171]
16868 * math/math.h [C++] (iseqsig): Fix parameter type for the long
16869 double version.
16870
16871 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16872
16873 * sysdeps/sh/Implies: Remove sh/soft-fp.
16874 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
16875 * sysdeps/sh/sfp-machine.h: ... here.
16876
16877 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
16878
16879 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
16880 (__mempcpy_erms): Skip zero length.
16881 (__memmove_erms): Likewise.
16882 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
16883 (__memset_erms): Likewise.
16884
16885 2018-05-23 Joseph Myers <joseph@codesourcery.com>
16886
16887 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
16888 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16889 Add functions moved from ....
16890 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
16891 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
16892 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
16893 from ....
16894 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
16895 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
16896 * sysdeps/alpha/e_sqrtl.c: ... here.
16897 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
16898 * sysdeps/alpha/local-soft-fp.h: ... here.
16899 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
16900 * sysdeps/alpha/ots_add.c: ... here.
16901 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
16902 * sysdeps/alpha/ots_cmp.c: ... here.
16903 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
16904 * sysdeps/alpha/ots_cmpe.c: ... here.
16905 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
16906 * sysdeps/alpha/ots_cvtqux.c: ... here.
16907 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
16908 * sysdeps/alpha/ots_cvtqx.c: ... here.
16909 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
16910 * sysdeps/alpha/ots_cvttx.c: ... here.
16911 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
16912 * sysdeps/alpha/ots_cvtxq.c: ... here.
16913 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
16914 * sysdeps/alpha/ots_cvtxt.c: ... here.
16915 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
16916 * sysdeps/alpha/ots_div.c: ... here.
16917 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
16918 * sysdeps/alpha/ots_mul.c: ... here.
16919 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
16920 * sysdeps/alpha/ots_nintxq.c: ... here.
16921 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
16922 * sysdeps/alpha/ots_sub.c: ... here.
16923 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
16924 * sysdeps/alpha/sfp-machine.h: ... here.
16925
16926 2018-05-23 Florian Weimer <fweimer@redhat.com>
16927
16928 [BZ #19728]
16929 [BZ #19729]
16930 [BZ #22247]
16931 CVE-2016-6261
16932 CVE-2016-6263
16933 CVE-2017-14062
16934 Switch to extern IDNA implementation (libidn2).
16935 * libidn: Remove subdirectory.
16936 * LICENSES: Do not mention licensing conditions for the removed
16937 libidn code.
16938 * config.h.in (HAVE_LIBIDN): Remove.
16939 * include/dlfcn.h (__libc_dlopen): Update comment.
16940 * include/idna.h: Remove file.
16941 * inet/Makefile (routines): Add idna.
16942 (tests-static, tests-internal): Add tst-idna_name_classify.
16943 (LOCALES): Generate locales for tests.
16944 (tst-idna_name_classify.out): Depend on generated locales.
16945 * inet/idna_name_classify.c: New file.
16946 * inet/tst-idna_name_classify.c: Likewise.
16947 * inet/net-internal.h (__idna_to_dns_encoding)
16948 (__idna_from_dns_encoding): Declare.
16949 * inet/net-internal.h (enum idna_name_classification): Define.
16950 (__idna_name_classify): Declare.
16951 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
16952 __idna_from_dns_encoding.
16953 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
16954 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
16955 name as a fallback in case of encoding errors.
16956 (getnameinfo): Use DEPRECATED_NI_IDN.
16957 * inet/idna.c: New file.
16958 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
16959 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
16960 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
16961 (modules-names): Add tst-no-libidn2.
16962 (extra-test-objs): Add tst-no-libidn2.os.
16963 (LDFLAGS-tst-no-libidn2.so): Set soname.
16964 (LOCALES): Set, and generate locales.
16965 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
16966 (tst-resolv-ai_idn-latin1): Likewise.
16967 (tst-resolv-ai_idn-nolibidn2): Likewise.
16968 (tst-resolv-ai_idn.out): Depend on locales.
16969 (tst-resolv-ai_idn-latin1.out): Depend on locales.
16970 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
16971 tst-no-libidn2.so.
16972 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
16973 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
16974 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
16975 * resolv/tst-resolv-ai_idn.c: New file.
16976 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
16977 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
16978 * resolv/tst-no-libidn2.c: Likewise.
16979 * support/support_format_addrinfo.c (format_ai_flags): Do not
16980 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
16981 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
16982 (gaih_inet): Call __idna_to_dns_encoding and
16983 __idna_from_dns_encoding, and use the original (punycode) name if
16984 __idna_from_dns_encoding fails due to an encoding error.
16985 (getaddrinfo): Use DEPRECATED_AI_IDN.
16986 * sysdeps/unix/inet/Subdirs (libidn): Remove.
16987 * sysdeps/unix/inet/configure: Remove file.
16988 * sysdeps/unix/inet/configure.ac: Likewise.
16989
16990 2018-05-23 Florian Weimer <fweimer@redhat.com>
16991
16992 Implement allocate_once.
16993 * include/allocate_once.h: New file.
16994 * misc/allocate_once.c: Likewise.
16995 * misc/tst-allocate_once.c: Likewise.
16996 * misc/Makefile (routines): Add allocate_once.
16997 (tests-internal): Add tst-allocate_once.
16998 (generated): Add tst-allocate_once.mtrace,
16999 tst-allocate_once-mem.out.
17000 (tests-special): Add tst-allocate_once-mem.out.
17001 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17002 (tst-allocate_once-mem.out): Call mtrace.
17003 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17004
17005 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17006
17007 [BZ #23196]
17008 * string/test-memcpy.c (do_test1): New function.
17009 (test_main): Call it.
17010
17011 2018-05-23 Andreas Schwab <schwab@suse.de>
17012
17013 [BZ #23196]
17014 CVE-2018-11237
17015 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17016 (L(preloop_large)): Save initial destination pointer in %r11 and
17017 use it instead of %rax after the loop.
17018 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17019
17020 2018-05-22 Joseph Myers <joseph@codesourcery.com>
17021
17022 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17023 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17024 -I../soft-fp. Moved from ....
17025 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17026 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17027 * sysdeps/aarch64/e_sqrtl.c: ... here.
17028 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17029 * sysdeps/aarch64/sfp-machine.h: ... here.
17030
17031 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17032 -Wmaybe-uninitialized around access to fq[0].
17033 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17034 Likewise.
17035
17036 [BZ #18471]
17037 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17038 aliases for non-libc case of versioned symbols.
17039 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17040 (llseek): Define as compat symbol if
17041 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17042 with link warning.
17043 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17044 Make into a compat symbol, disabled for minimum symbol version
17045 GLIBC_2.28 and later.
17046 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17047
17048 2018-05-22 Florian Weimer <fweimer@redhat.com>
17049
17050 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17051 not add -mpreferred-stack-boundary=4.
17052 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17053 (stack-align-test-flags): Likewise.
17054 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17055 Likewise.
17056 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17057 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17058 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17059 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17060 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17061 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17062 (CFLAGS-tst-align2.c): Likewise.
17063
17064 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17065
17066 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17067 (index_arch_Prefer_FSRM): Likewise.
17068 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17069 Also check Prefer_FSRM.
17070 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17071 Also return OPTIMIZE (erms) for Prefer_FSRM.
17072
17073 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17074
17075 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17076 (index_cpu_FSRM): Likewise.
17077 (reg_FSRM): Likewise.
17078
17079 2018-05-18 Joseph Myers <joseph@codesourcery.com>
17080
17081 * math/gen-tgmath-tests.py: Import sys.
17082 (Tests.__init__): Initialize macros_seen.
17083 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17084 if requested to do so for this macro.
17085 (Tests.add_all_tests): Take argument for macro for which to
17086 generate tests.
17087 (Tests.check_macro_list): New function.
17088 (main): Handle check-list argument and argument specifying macro
17089 for which to generate tests.
17090 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17091 [PYTHON] (tgmath3-macro-tests): Likewise.
17092 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17093 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17094 not test-tgmath3.c.
17095 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17096 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17097 to CFLAGS.
17098 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17099 [PYTHON] ($(foreach
17100 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17101 rule.
17102 [PYTHON] (tests-special): Add
17103 $(objpfx)test-tgmath3-macro-list.out.
17104 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17105
17106 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17107 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17108 later.
17109
17110 [BZ #22639]
17111 * time/tzset.c (SECSPERDAY): Cast to time_t.
17112 * time/tst-y2039.c: New file.
17113 * time/Makefile (tests): Add tst-y2039.
17114
17115 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17116
17117 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17118 (PREFETCH_ONE_SET): Remove duplicate line.
17119
17120 2018-05-17 Florian Weimer <fweimer@redhat.com>
17121
17122 * sysdeps/generic/math-type-macros-double.h: Include
17123 <math-nan-payload-double.h> after <libm-alias-double.h>.
17124 * sysdeps/generic/math-type-macros-float.h: Include
17125 <math-nan-payload-float.h> after <libm-alias-float.h>.
17126 * sysdeps/generic/math-type-macros-float128.h: Include
17127 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17128 * sysdeps/generic/math-type-macros-ldouble.h: Include
17129 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17130
17131 2018-05-17 Andreas Schwab <schwab@suse.de>
17132
17133 * resolv/res_send.c (__res_context_send): Don't set errno when
17134 returing error after malloc failure.
17135
17136 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17137
17138 * nptl/allocatestack.c (allocate_stack): Remove the
17139 !__ASSUME_PRIVATE_FUTEX paths.
17140 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17141 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17142 Likewise.
17143 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17144 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17145 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17146 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17147 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17148 !__ASSUME_PRIVATE_FUTEX path.
17149 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17150 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17151 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17152 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17153 !__ASSUME_PRIVATE_FUTEX macros.
17154 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17155 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17156 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17157 * sysdeps/unix/sysv/linux/kernel-features.h
17158 (__ASSUME_PRIVATE_FUTEX): Removed.
17159
17160 2018-05-17 Joseph Myers <joseph@codesourcery.com>
17161
17162 * math/Makefile (libm-narrow-fns): Add div.
17163 (libm-test-funcs-narrow): Likewise.
17164 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17165 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17166 * math/gen-auto-libm-tests.c (test_functions): Add div.
17167 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17168 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17169 (NARROW_DIV_TRIVIAL): Likewise.
17170 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17171 macro.
17172 (__ddivl): Likewise.
17173 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17174 ddiv.
17175 (CFLAGS-nldbl-ddiv.c): New variable.
17176 (CFLAGS-nldbl-fdiv.c): Likewise.
17177 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17178 __nldbl_ddivl.
17179 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17180 prototype.
17181 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17182 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17183 * math/auto-libm-test-in: Add tests of div.
17184 * math/auto-libm-test-out-narrow-div: New generated file.
17185 * math/libm-test-narrow-div.inc: New file.
17186 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17187 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17188 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17189 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17190 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17191 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17192 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17193 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17194 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17195 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17196 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17197 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17198 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17199 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17200 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17201 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17202 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17203 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17204 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17205 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17206 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17207 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17208 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17209 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17210 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17211 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17212 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17213 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17214 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17215 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17216 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17217 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17222 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17223 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17224 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17225 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17226 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17227 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17228 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17229 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17230
17231 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17232
17233 [BZ #23178]
17234 * nscd/nscd-client.h (sendfileall): Remove prototype.
17235 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17236 (handle_request): Use writeall instead of sendfileall.
17237 * nscd/aicache.c (addhstaiX): Likewise.
17238 * nscd/grpcache.c (cache_addgr): Likewise.
17239 * nscd/hstcache.c (cache_addhst): Likewise.
17240 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17241 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17242 * nscd/pwdcache.c (cache_addpw): Likewise.
17243 * nscd/servicescache.c (cache_addserv): Likewise.
17244 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17245 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17246 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17247 Remove define.
17248
17249 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17250
17251 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17252 Include <string/strncat.c>.
17253 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17254 alias.
17255 (__GI___strncat): New hidden alias.
17256
17257 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17258
17259 * sysdeps/mips/mips32/libm-test-ulps: Update.
17260 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17261
17262 2018-05-16 Florian Weimer <fweimer@redhat.com>
17263
17264 * support/Makefile (libsupport-routines): Add support_quote_blob,
17265 support_test_compare_blob.
17266 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17267 * support/check.h (TEST_COMPARE_BLOB): Define.
17268 (support_test_compare_blob): Declare.
17269 * support/support.h (support_quote_blob): Declare.
17270 * support/support_quote_blob.c: New file.
17271 * support/support_test_compare_blob.c: Likewise.
17272 * support/tst-support_quote_blob.c: Likewise.
17273 * support/tst-test_compare_blob.c: Likewise.
17274
17275 2018-05-16 Florian Weimer <fweimer@redhat.com>
17276
17277 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17278 of <strtod_nan_double.h>.
17279 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17280 instead of SET_MANTISSA.
17281 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17282 of include <strtod_nan_float.h>.
17283 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17284 instead of <strtod_nan_ldouble.h>.
17285 * stdlib/strtod_nan_double.h: Move to ...
17286 * sysdeps/generic/math-nan-payload-double.h: ... here.
17287 (FLOAT): Remove definition.
17288 (SET_MANTISSA): Rename to ...
17289 (SET_NAN_PAYLOAD): ... this.
17290 * stdlib/strtod_nan_float.h: Move to ...
17291 * sysdeps/generic/math-nan-payload-float.h: ... here.
17292 (FLOAT): Remove definition.
17293 (SET_MANTISSA): Rename to ...
17294 (SET_NAN_PAYLOAD): ... this.
17295 * sysdeps/generic/math-type-macros-double.h: Include
17296 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17297 instead of <math-svid-compat.h>.
17298 * sysdeps/generic/math-type-macros-float.h: Include
17299 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17300 instead of <math-svid-compat.h>.
17301 * sysdeps/generic/math-type-macros-float128.h: Include
17302 <math-nan-payload-float128.h>.
17303 * sysdeps/generic/math-type-macros-ldouble.h: Include
17304 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17305 instead of <math-svid-compat.h>.
17306 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17307 check for definition.
17308 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17309 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17310 Include <ieee754_float128.h>.
17311 (FLOAT): Remove definition.
17312 (SET_MANTISSA): Rename to ...
17313 (SET_NAN_PAYLOAD): ... this.
17314 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17315 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17316 Do not include <float128_private.h>.
17317 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17318 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17319 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17320 (FLOAT): Remove definition.
17321 (SET_MANTISSA): Rename to ...
17322 (SET_NAN_PAYLOAD): ... this.
17323 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17324 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17325 (FLOAT): Remove definition.
17326 (SET_MANTISSA): Rename to ...
17327 (SET_NAN_PAYLOAD): ... this.
17328 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17329 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17330 (FLOAT): Remove definition.
17331 (SET_MANTISSA): Rename to ...
17332 (SET_NAN_PAYLOAD): ... this.
17333 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17334 of "../stdlib/strtod_nan_double.h".
17335 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17336 of "../stdlib/strtod_nan_float.h".
17337 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17338 instead of "../stdlib/strtod_nan_ldouble.h".
17339 * manual/arith.texi (Parsing of Floats): Adjust comment.
17340
17341 2018-05-16 Joseph Myers <joseph@codesourcery.com>
17342
17343 * math/Makefile (libm-narrow-fns): Add mul.
17344 (libm-test-funcs-narrow): Likewise.
17345 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17346 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17347 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17348 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17349 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17350 (NARROW_MUL_TRIVIAL): Likewise.
17351 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17352 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17353 macro.
17354 (__dmull): Likewise.
17355 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17356 dmul.
17357 (CFLAGS-nldbl-dmul.c): New variable.
17358 (CFLAGS-nldbl-fmul.c): Likewise.
17359 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17360 __nldbl_dmull.
17361 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17362 prototype.
17363 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17364 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17365 * math/auto-libm-test-in: Add tests of mul.
17366 * math/auto-libm-test-out-narrow-mul: New generated file.
17367 * math/libm-test-narrow-mul.inc: New file.
17368 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17369 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17370 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17371 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17372 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17373 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17374 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17375 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17376 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17377 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17378 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17379 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17380 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17381 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17382 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17383 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17384 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17385 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17386 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17387 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17388 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17389 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17390 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17391 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17392 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17393 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17394 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17395 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17396 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17397 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17398 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17399 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17404 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17405 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17406 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17407 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17408 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17409 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17410 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17411 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17412
17413 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17414
17415 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17416 with *%eax in call.
17417
17418 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17419
17420 * sysdeps/i386/ldsodefs.h: Removed.
17421 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17422 * sysdeps/x86/ldsodefs.h: This.
17423 (La_i86_regs): New.
17424 (La_i86_retval): Likewise.
17425 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17426 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17427
17428 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17429
17430 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17431 unnecessary testl.
17432
17433 2018-05-13 Alan Modra <amodra@gmail.com>
17434
17435 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17436 R_PARISC_TLS_DTPOFF32 reloc addend.
17437
17438 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17439
17440 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17441 * math/math.h: Restrict the prototype definition for the functions
17442 issignaling(_Float128) and iszero(_Float128); and template
17443 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17444 __HAVE_FLOAT128_UNLIKE_LDBL.
17445 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17446 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17447 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17448 __f128() constants; define the type _Float128 as long double;
17449 and reuse long double in __CFLOAT128.
17450
17451 2018-05-11 Joseph Myers <joseph@codesourcery.com>
17452
17453 * sysdeps/generic/math_private.h: Do not include
17454 <math-barriers.h>.
17455 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17456 <math_private.h>.
17457 * math/fromfp.h: Include <math-barriers.h>.
17458 * math/math-narrow.h: Likewise.
17459 * math/s_nextafter.c: Likewise.
17460 * math/s_nexttowardf.c: Likewise.
17461 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17462 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17463 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17464 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17465 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17466 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17467 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17468 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17469 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17470 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17471 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17472 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17473 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17474 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17475 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17476 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17477 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17478 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17479 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17480 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17481 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17482 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17483 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17484 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17485 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17486 * sysdeps/ieee754/k_standardl.c: Likewise.
17487 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17488 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17489 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17490 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17491 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17492 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17493 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17494 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17495 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17496 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17497 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17498 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17499 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17500 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17501 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17502 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17503 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17504 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17505 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17506 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17507 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17508 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17509
17510 2018-05-11 Florian Weimer <fweimer@redhat.com>
17511
17512 Use 64-bit epoch values in the time zone file parser.
17513 * include/time.h (internal_time_t): Define.
17514 (__tzfile_compute): Use it.
17515 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17516 member.
17517 (transitions): Switch to internal_time_t.
17518 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17519 types.
17520 (__tzfile_compute): Use internal_time_t for timer argument. Check
17521 for truncation before calling __offtime.
17522
17523 2018-05-11 Florian Weimer <fweimer@redhat.com>
17524
17525 [BZ #23166]
17526 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17527 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17528 Likewise.
17529 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17530 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17531 export without --enable-obsolete-rpc.
17532 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17533 symbol. This should not have been exported, ever.
17534
17535 2018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
17536
17537 [BZ #23152]
17538 * localedata/locales/gd_GB (abmon): Fix typo in May:
17539 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17540
17541 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17542
17543 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17544 Use multiple registers to copy data in loop tail.
17545
17546 * sysdeps/aarch64/multiarch/memmove_falkor.S
17547 (__memmove_falkor): Use multiple registers to move data in
17548 loop tail.
17549
17550 2018-05-10 Joseph Myers <joseph@codesourcery.com>
17551
17552 * math/math-underflow.h: New file.
17553 * sysdeps/generic/math_private.h: Do not include <float.h>.
17554 (fabs_tg): Remove macro. Moved to math-underflow.h.
17555 (min_of_type_f): Likewise.
17556 (min_of_type_): Likewise.
17557 (min_of_type_l): Likewise.
17558 (min_of_type_f128): Likewise.
17559 (min_of_type): Likewise.
17560 (math_check_force_underflow): Likewise.
17561 (math_check_force_underflow_nonneg): Likewise.
17562 (math_check_force_underflow_complex): Likewise.
17563 * math/e_exp2_template.c: Include <math-underflow.h>.
17564 * math/k_casinh_template.c: Likewise.
17565 * math/s_catan_template.c: Likewise.
17566 * math/s_catanh_template.c: Likewise.
17567 * math/s_ccosh_template.c: Likewise.
17568 * math/s_cexp_template.c: Likewise.
17569 * math/s_clog10_template.c: Likewise.
17570 * math/s_clog_template.c: Likewise.
17571 * math/s_csin_template.c: Likewise.
17572 * math/s_csinh_template.c: Likewise.
17573 * math/s_csqrt_template.c: Likewise.
17574 * math/s_ctan_template.c: Likewise.
17575 * math/s_ctanh_template.c: Likewise.
17576 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17577 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17578 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17579 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17580 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17581 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17582 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17583 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17584 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17585 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17586 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17587 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17588 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17589 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17590 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17591 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17592 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17593 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17594 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17595 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17596 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17597 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17598 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17599 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17600 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17601 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17602 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17603 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17604 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17605 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17606 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17607 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17608 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17609 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17610 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17611 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17612 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17613 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17614 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17615 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17616 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17617 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17618 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17619 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17620 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17621 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17622 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17623 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17624 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17625 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17626 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17627 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17628 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17629 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17630 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17631 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17632 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17633 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17634 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17635 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17636 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17637 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17638 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17639 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17640 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17641 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17642 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17643 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17644 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17645 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17646 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17647 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17648 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17649 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17650 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17651 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17652 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17653 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17654 * sysdeps/x86/fpu/powl_helper.c: Likewise.
17655 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
17656 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
17657 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
17658 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
17659 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
17660
17661 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17662
17663 * sysdeps/generic/math-barriers.h: New file.
17664 * sysdeps/generic/math_private.h [!math_opt_barrier]
17665 (math_opt_barrier): Move to math-barriers.h.
17666 [!math_opt_barrier] (math_force_eval): Likewise.
17667 * sysdeps/aarch64/fpu/math-barriers.h: New file.
17668 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
17669 math-barriers.h.
17670 (math_force_eval): Likewise.
17671 * sysdeps/alpha/fpu/math-barriers.h: New file.
17672 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
17673 math-barriers.h.
17674 (math_force_eval): Likewise.
17675 * sysdeps/x86/fpu/math-barriers.h: New file.
17676 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
17677 math-barriers.h.
17678 (math_force_eval): Likewise.
17679 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
17680 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
17681 multiple-include guard for rename.
17682 * sysdeps/powerpc/fpu/math-barriers.h: New file.
17683 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
17684 math-barriers.h.
17685 (math_force_eval): Likewise.
17686
17687 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
17688
17689 [BZ #22786]
17690 CVE-2018-11236
17691 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
17692 computation.
17693 * stdlib/Makefile (test-bz22786): New test.
17694 * stdlib/test-bz22786.c: New test.
17695
17696 2018-05-09 Joseph Myers <joseph@codesourcery.com>
17697
17698 * include/math-narrow-eval.h: New file. Contents moved from ....
17699 * sysdeps/generic/math_private.h: ... here.
17700 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
17701 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
17702 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
17703 * stdlib/strtod_l.c: Likewise.
17704 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17705 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
17706 * sysdeps/i386/fpu/s_fdim.c: Likewise.
17707 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17708 * sysdeps/ieee754/dbl-64/e_gamma_r.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_lgamma_r.c: Likewise.
17712 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17713 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17714 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17715 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
17716 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17717 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17718 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17719 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17720 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17721 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17722 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17723 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17724 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17725 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17726 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17727 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17728 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
17729 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17730 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17731 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17732 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17733
17734 2018-05-08 Andreas Schwab <schwab@suse.de>
17735
17736 * sysdeps/nptl/internaltypes.h: Fix comment.
17737
17738 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
17739
17740 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17741 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
17742 hidden.
17743
17744 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
17745
17746 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
17747 of I into loop header.
17748 * benchtests/bench-memmove-walk.c
17749 (test_main): Likewise.
17750
17751 2018-05-07 Alexandre Oliva <oliva@gnu.org>
17752
17753 Revert:
17754 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
17755 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
17756
17757 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
17758
17759 [BZ #20419]
17760 * elf/dl-load.c (open_verify): Fix stack overflow.
17761 * elf/Makefile (tst-big-note): New test.
17762 * elf/tst-big-note-lib.S: New.
17763 * elf/tst-big-note.c: New.
17764
17765 2018-05-04 Joseph Myers <joseph@codesourcery.com>
17766
17767 * scripts/abilist.awk: Ignore absolute symbols.
17768 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
17769 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
17770 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
17771 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
17772 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
17773 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
17774 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17775 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
17776 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
17777 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
17778 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
17779 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
17780 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
17781 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
17782 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
17783 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
17784 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
17785 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
17786 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17787 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
17788 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
17789 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
17790 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
17791 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
17792 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
17793 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
17794 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
17795 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
17796 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
17797 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
17798 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
17799 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17800 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
17801 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
17802 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
17803 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
17804 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
17805 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
17806 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
17807 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
17808 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
17809 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
17810 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
17811 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
17812 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17813 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
17814 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
17815 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
17816 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
17817 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
17818 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
17819 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
17820 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
17821 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
17822 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
17823 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
17824 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
17825 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17826 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
17827 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
17828 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
17829 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
17830 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
17831 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
17832 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
17833 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
17834 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
17835 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
17836 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
17837 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
17838 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17839 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
17840 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
17841 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
17842 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
17843 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
17844 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
17845 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
17846 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
17847 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
17848 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
17849 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
17850 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
17851 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17852 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
17853 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
17854 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
17855 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
17856 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
17857 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
17858 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
17859 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
17860 Likewise.
17861 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
17862 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
17863 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
17864 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
17865 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17866 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
17867 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
17868 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
17869 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
17870 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
17871 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
17872 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
17873 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
17874 Likewise.
17875 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
17876 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
17877 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
17878 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
17879 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17880 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
17881 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
17882 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
17883 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
17884 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
17885 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
17886 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
17887 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
17888 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
17889 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
17890 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
17891 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
17892 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17893 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
17894 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
17895 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
17896 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
17897 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
17898 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
17899 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
17900 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
17901 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
17902 Likewise.
17903 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
17904 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
17905 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
17906 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
17907 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17908 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
17909 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
17910 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
17911 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
17912 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
17913 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
17914 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
17915 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
17916 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
17917 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
17918 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
17919 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
17920 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
17921 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
17922 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
17923 Likewise.
17924 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
17925 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
17926 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
17927 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17928 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
17929 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
17930 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
17931 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
17932 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
17933 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
17934 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
17935 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
17936 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
17937 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
17938 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
17939 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
17940 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
17941 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
17942 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
17943 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
17944 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
17945 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17946 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
17947 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
17948 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
17949 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
17950 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
17951 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
17952 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
17953 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17954 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
17955 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
17956 Likewise.
17957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
17958 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
17959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
17960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
17961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
17962 Likewise.
17963 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
17964 Likewise.
17965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
17966 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
17967 Likewise.
17968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
17969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
17970 Likewise.
17971 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
17972 Likewise.
17973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
17974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
17975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
17976 Likewise.
17977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
17978 Likewise.
17979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
17980 Likewise.
17981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
17982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
17983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
17984 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
17985 Likewise.
17986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
17987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
17988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
17989 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17990 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
17992 Likewise.
17993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
17994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
17995 Likewise.
17996 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
17997 Likewise.
17998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
17999 Likewise.
18000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18001 Likewise.
18002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18005 Likewise.
18006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18007 Likewise.
18008 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18009 Likewise.
18010 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18011 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18012 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18013 Likewise.
18014 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18015 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18016 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18017 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18018 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18019 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18020 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18021 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18022 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18025 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18026 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18027 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18028 Likewise.
18029 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18030 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18031 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18032 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18033 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18034 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18035 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18036 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18037 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18038 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18039 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18040 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18041 Likewise.
18042 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18043 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18044 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18045 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18046 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18047 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18048 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18049 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18050 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18051 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18052 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18053 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18054 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18055 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18056 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18057 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18058 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18059 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18060 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18061 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18062 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18063 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18064 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18065 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18066 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18067 Likewise.
18068 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18069 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18070 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18071 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18072 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18073 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18074 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18075 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18076 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18077 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18078 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18079 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18080 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18081 Likewise.
18082 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18083 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18084 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18085 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18086 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18087 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18088 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18089 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18090 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18091 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18092 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18093 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18094 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18095 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18096 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18097 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18098 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18099 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18100 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18101 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18102 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18103 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18104 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18105 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18106 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18107 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18108 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18109 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18110 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18111 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18112 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18113 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18114 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18115 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18116 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18117 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18118 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18119 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18120
18121 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18122
18123 [BZ #23137]
18124 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18125 Use atomic_load_acquire to load __tid.
18126
18127 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18128
18129 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18130 Restore the pointer into %rdx, after syscall and use %rdx,
18131 instead of %rsi, to restore context.
18132
18133 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18134
18135 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18136 Pop the pointer into %rdx after syscall and use %rdx, instead
18137 of %rsi, to restore context.
18138
18139 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18140
18141 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18142 handlers after setjmp.
18143 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18144 defined.
18145 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18146 <libc-pointer-arith.h>.
18147 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18148 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18149 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18150 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18151 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18152 * sysdeps/x86/__longjmp_cancel.S: New file.
18153 * sysdeps/x86/longjmp.c: Likewise.
18154 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18155
18156 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18157
18158 * NEWS: Add ustat.h deprecation entry.
18159 * bits/ustat.h: Remove file.
18160 * misc/sys/ustat.h: Likewise.
18161 * misc/ustat.h: Likewise.
18162 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18163 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18164 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18165 compatibility mode.
18166 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18167 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18168 generic Linux implementation.
18169
18170 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18171
18172 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18173 * math/w_expl_compat.c: Likewise.
18174 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18175
18176 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18177
18178 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18179
18180 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18181
18182 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18183 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18184 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18185 Remove.
18186 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18188 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18189 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18190 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18191 and SYSCALL_LL64.
18192
18193 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18194
18195 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18196
18197 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18198 * math/w_asin_template.c: Likewise.
18199 * math/w_atanh_template.c: Likewise.
18200
18201 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18202
18203 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18204 to powerpc/powerpc64/be for big-endian.
18205 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18206 little-endian.
18207
18208 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18209 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18210 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18211 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18212 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18213 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18214 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18215 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18216 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18217 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18218 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18219 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18220 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18221 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18222 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18223 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18224 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18225 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18226 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18227 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18228 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18229 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18230 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18231 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18232 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18233 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18234 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18235 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18236 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18237 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18238 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18239 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18240
18241 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18242 adjusted to imply powerpc64 and older processors on powerpc64/be.
18243 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18244 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18245 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18246 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18247 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18248 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18249 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18250 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18251 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18252 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18253 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18254 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18255 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18256 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18257 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18258 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18259 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18260 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18261 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18262 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18263 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18264 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18265 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18266 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18267 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18268 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18269 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18270 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18271 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18272 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18273 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18274
18275 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18276 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18277 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18278 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18279
18280 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18281 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18282 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18283 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18284
18285 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18286 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18287 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18288 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18289 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18290 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18291 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18292 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18293 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18294 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18295 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18296
18297 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18298 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18299 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18300 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18301 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18302 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18303 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18304 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18305 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18306 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18307 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18308
18309 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18310 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18311 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18312 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18313 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18314 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18315 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18316 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18317 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18318 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18319 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18320 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18321
18322 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18323 and adjusted to imply olders processors.
18324 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18325 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18326 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18327 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18328 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18329 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18330 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18331 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18332 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18333 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18334 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18335
18336 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18337 powerpc64/le.
18338 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18339 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18340
18341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18342 powerpc64le.
18343 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18345
18346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18347 powerpc64/be.
18348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18351
18352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18353 powerpc64 and adjusted.
18354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18355 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18357 Likewise.
18358
18359 2018-04-27 Joseph Myers <joseph@codesourcery.com>
18360
18361 * sysdeps/tile: Remove.
18362 * sysdeps/unix/sysv/linux/tile: Likewise.
18363 * README (tilegx-*-linux-gnu): Remove from list of supported
18364 configurations.
18365 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18366 contribution of support for generic Linux kernel syscall
18367 interface.
18368 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18369 tilegx configurations.
18370 (Config.install_linux_headers): Do not handle tile.
18371 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18372 in comment.
18373 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18374 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18375 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18376 conditional undefine and redefine.
18377 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18378 in comment.
18379 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18380 conditional undefine and redefine.
18381
18382 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18383
18384 * signal/tst-sigaction.c: New file to test BZ #23069.
18385 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18386
18387 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18388
18389 [BZ #22766]
18390 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18391 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18392 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18393 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18394
18395 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18396
18397 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18398 _DIRENT_MATCHES_DIRENT64 is not defined.
18399 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18400 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18401 is defined.
18402 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18403 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18404
18405 2018-04-25 Joseph Myers <joseph@codesourcery.com>
18406
18407 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18408 version to GCC 8 branch.
18409
18410 2018-04-24 Joseph Myers <joseph@codesourcery.com>
18411
18412 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18413 (check_no_hidden): Use type of original function when declaring
18414 alias.
18415
18416 * sysdeps/unix/sysv/linux/sys/ptrace.h
18417 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18418 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18419 (struct __ptrace_seccomp_metadata): New type.
18420 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18421 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18422 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18423 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18424 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18425 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18426 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18427 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18428 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18429 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18430 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18431 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18432 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18433 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18434 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18435 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18436
18437 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18438
18439 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18440 defined.
18441 * dirent/versionsort.c (versionsort): Likewise.
18442 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18443 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18444 * dirent/versionsort64.c (versionsort64): Likewise.
18445 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18446 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18447 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18448 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18449 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18450 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18451 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18452 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18453 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18454 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18457 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18458 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18459
18460 2018-04-23 Joseph Myers <joseph@codesourcery.com>
18461
18462 * elf/elf.h (NT_PPC_PKEY): New macro.
18463
18464 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
18465
18466 [BZ #23094]
18467 * localedata/locales/hr_HR: fix thousands_sep and
18468 mon_thousands_sep
18469
18470 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18471
18472 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18473 (XTABS): Define to TAB3.
18474
18475 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18476
18477 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18478
18479 * dirent/scandir-tail-common.c: New file.
18480 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18481 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18482 * dirent/scandir.c: Use scandir-tail-common.c.
18483 * dirent/scandirat.c: Likewise.
18484 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18485 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18486 if _DIRENT_MATCHES_DIRENT64 is defined.
18487 * dirent/scandirat64.c (scandirat64): Likewise.
18488 * include/dirent.h (__scandir_tail): Only define iff
18489 _DIRENT_MATCHES_DIRENT64 is not defined.
18490 (__scandir64_tail): Define regardless.
18491 (__scandirat, scandirat64): Remove libc_hidden_proto.
18492 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18493 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18494 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18495 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18496 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18497 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18498 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18499
18500 2018-04-20 Joseph Myers <joseph@codesourcery.com>
18501
18502 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18503 New macro.
18504 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18505 Increase to 24.
18506 (_dl_aarch64_cap_flags): Add asimdfhm.
18507
18508 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18509
18510 * sysdeps/nios2/libm-test-ulps: Update.
18511
18512 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18513
18514 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18515 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18516
18517 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18518 requirements.
18519 (_DIRENT_MATCHES_DIRENT64): Undef
18520 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18521 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18522 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18523 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18524 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18525 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18526 use getdents64 syscalls as base.
18527 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18528 symbol if required.
18529 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18530 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18531 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18532 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18533 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18534 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18535 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18536 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18537 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18538 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18539 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18540
18541 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18542
18543 * scripts/test_printers_common.py (init_test): Disable lock elision.
18544
18545 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18546
18547 * math/test-tgmath.c (count_double, count_float,
18548 count_ldouble, count_cdouble, count_cfloat,
18549 count_cldouble): Use volatile int.
18550
18551 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18552
18553 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18554 (conformtest-xfail-conds): Add i386-gnu.
18555 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
18556 i386-gnu.
18557 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18558 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18559 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18560 msqid_ds.msg_lrpid): Likewise.
18561 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18562 Likewise.
18563 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18564 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
18565 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18566 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18567 unsigned int.
18568 (struct statvfs64): Likewise.
18569 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18570 Likewise.
18571 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18572 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18573 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18574 instead of wait_queue.
18575 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18576 instead of vm_area_struct.
18577 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18578 struct sched_param definition to it.
18579 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18580 * bits/types/struct_sched_param.h: New file.
18581 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18582 <bits/types/struct_sched_param.h> instead of <sched.h>.
18583 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
18584 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18585 generic version but include <bits/pthreadtypes.h> to make struct
18586 sigevent's sigev_notify_attributes field a pthread_attr_t*.
18587 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18588 non-compliant.
18589 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18590 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18591 [__USE_XOPEN] (OFDEL): New macro.
18592 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
18593 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
18594 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18595 prototypes.
18596 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18597 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
18598 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18599 non-compliant.
18600 * sysdeps/i386/sys/ucontext.h: Likewise.
18601 * sysdeps/m68k/sys/ucontext.h: Likewise.
18602 * sysdeps/mips/sys/ucontext.h: Likewise.
18603 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
18604 * sysdeps/mach/hurd/i386/Makefile
18605 (test-xfail-POSIX/fcntl.h/conform): Add.
18606 (test-xfail-POSIX/signal.h/conform): Add.
18607 (test-xfail-POSIX/semaphore.h/conform): Add.
18608 (test-xfail-POSIX/regex.h/conform): Add.
18609 (test-xfail-POSIX/aio.h/conform): Add.
18610 (test-xfail-POSIX/mqueue.h/conform): Add.
18611 (test-xfail-POSIX/sys/types.h/conform): Add.
18612 (test-xfail-UNIX98/fcntl.h/conform): Add.
18613 (test-xfail-UNIX98/netdb.h/conform): Add.
18614 (test-xfail-UNIX98/signal.h/conform): Add.
18615 (test-xfail-UNIX98/semaphore.h/conform): Add.
18616 (test-xfail-UNIX98/regex.h/conform): Add.
18617 (test-xfail-UNIX98/aio.h/conform): Add.
18618 (test-xfail-UNIX98/ftw.h/conform): Add.
18619 (test-xfail-UNIX98/mqueue.h/conform): Add.
18620 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18621 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18622 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18623 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18624 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18625 (test-xfail-UNIX98/sys/types.h/conform): Add.
18626 (test-xfail-UNIX98/stdlib.h/conform): Add.
18627 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18628 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18629 (test-xfail-POSIX2008/netdb.h/conform): Add.
18630 (test-xfail-POSIX2008/signal.h/conform): Add.
18631 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18632 (test-xfail-POSIX2008/regex.h/conform): Add.
18633 (test-xfail-POSIX2008/aio.h/conform): Add.
18634 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18635 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18636 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18637 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18638 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18639 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18640 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18641 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18642 (test-xfail-XOPEN2K/signal.h/conform): Add.
18643 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18644 (test-xfail-XOPEN2K/regex.h/conform): Add.
18645 (test-xfail-XOPEN2K/aio.h/conform): Add.
18646 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18647 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18648 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18649 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18650 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18651 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
18652 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
18653 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
18654 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
18655 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
18656 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
18657 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
18658 (test-xfail-XOPEN2K8/signal.h/conform): Add.
18659 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
18660 (test-xfail-XOPEN2K8/regex.h/conform): Add.
18661 (test-xfail-XOPEN2K8/aio.h/conform): Add.
18662 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
18663 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
18664 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
18665 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
18666 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
18667 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
18668 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
18669 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
18670 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
18671 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
18672 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
18673 i386-gnu.
18674 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
18675 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
18676
18677 2018-04-18 Joseph Myers <joseph@codesourcery.com>
18678
18679 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18680 --enable-obsolete for powerpc-linux-gnuspe.
18681
18682 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
18683
18684 * conform/data/sys/un.h-data: Allow sun_ prefix.
18685 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
18686 prototypes.
18687 * sysdeps/mach/include/mach.h: Likewise.
18688 * sysdeps/mach/include/mach/mig_support.h: Likewise.
18689 * sysdeps/mach/include/mach_error.h: Likewise.
18690
18691 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18692
18693 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
18694 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
18695 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
18696 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
18697
18698 2018-04-16 Andreas Schwab <schwab@suse.de>
18699
18700 [BZ #19527]
18701 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
18702
18703 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18704
18705 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
18706 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
18707
18708 2018-04-12 DJ Delorie <dj@redhat.com>
18709
18710 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18711 version to 4.16.
18712
18713 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
18714
18715 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
18716 (struct kernel_sigaction): Use the same definition on 31bit as is used
18717 on 64bit.
18718
18719 2018-04-09 Florian Weimer <fweimer@redhat.com>
18720
18721 [BZ #23037]
18722 * resolv/res_send.c (send_dg): Use designated initializers instead
18723 of assignment to zero-initialize other fields of struct mmsghdr.
18724
18725 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18726
18727 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
18728 __READDIR_ALIAS): Undefine after usage.
18729 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
18730 __READDIR_R_ALIAS): Likewise.
18731 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
18732 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
18733 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
18734 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
18735 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
18736 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
18737 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
18738 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
18739 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
18740 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
18741 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
18742 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
18743 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
18744 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
18745 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
18746 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
18747 * sysdeps/unix/sysv/linux/readdir.c: New file.
18748 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
18749 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
18750 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
18751
18752 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18753
18754 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
18755
18756 * manual/charset.texi (Converting a Character): Fix typo.
18757
18758 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18759
18760 * sysdeps/sparc/fpu/libm-test-ulps: Update.
18761
18762 * sysdeps/arm/libm-test-ulps: Update.
18763
18764 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
18765 as base implementation.
18766 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
18767 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
18768 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
18769 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
18770 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
18771 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
18772 remove unrequired definitions and update comments.
18773 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
18774 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
18775 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
18776 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
18777 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
18778 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
18779 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
18780 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
18781 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
18782 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
18783 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
18784 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
18785 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
18786 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
18787 and RESET_SA_RESTORER hooks.
18788
18789 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
18790
18791 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18792
18793 2018-04-05 Florian Weimer <fweimer@redhat.com>
18794
18795 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
18796 integer overflow, memory leak on error, and indeterminate errno
18797 value. Add a null wide character to terminate the result string.
18798 * manual/charset.texi (Converting a Character): Mention embedded
18799 null bytes in the mbrtowc input string. Explain what happens in
18800 the -2 result case. Do not claim that mbrtowc is simple or
18801 obvious to use. Adjust the description of the code example. Use
18802 @code, not @var, for concrete variables.
18803
18804 2018-04-05 Florian Weimer <fweimer@redhat.com>
18805
18806 * manual/examples/mbstouwcs.c: New file.
18807 * manual/charset.texi (Converting a Character): Include it.
18808
18809 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
18810
18811 * include/dirent.h (dirfd): Add hidden proto.
18812 * dirent/dirfd.c (dirfd): Add hidden def.
18813 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
18814 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
18815
18816 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18817
18818 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
18819 sin, cos and sincos to 1 ULP.
18820
18821 2018-04-04 Maciej W. Rozycki <macro@mips.com>
18822
18823 [BZ #19818]
18824 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
18825 symbols.
18826 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
18827 * elf/tst-absolute-sym.c: New file.
18828 * elf/tst-absolute-sym-lib.c: New file.
18829 * elf/tst-absolute-sym-lib.lds: New file.
18830 * elf/Makefile (tests): Add `tst-absolute-sym'.
18831 (modules-names): Add `tst-absolute-sym-lib'.
18832 (LDLIBS-tst-absolute-sym-lib.so): New variable.
18833 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
18834 ($(objpfx)tst-absolute-sym): New dependency.
18835
18836 [BZ #19818]
18837 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
18838 parameter.
18839 (SYMBOL_ADDRESS): New macro.
18840 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
18841 SYMBOL_ADDRESS for symbol address calculation.
18842 * elf/dl-runtime.c (_dl_fixup): Likewise.
18843 (_dl_profile_fixup): Likewise.
18844 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
18845 * elf/rtld.c (dl_main): Likewise.
18846 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
18847 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
18848 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
18849 (elf_machine_rela): Likewise.
18850 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
18851 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
18852 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18853 (elf_machine_rela): Likewise.
18854 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
18855 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
18856 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
18857 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
18858 Likewise.
18859 (elf_machine_reloc): Likewise.
18860 (elf_machine_got_rel): Likewise.
18861 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
18862 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
18863 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
18864 Likewise.
18865 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18866 Likewise.
18867 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
18868 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18869 Likewise.
18870 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18871 Likewise.
18872 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18873 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18874 Likewise.
18875 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18876 Likewise.
18877 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
18878 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18879
18880 2018-04-04 Zack Weinberg <zackw@panix.com>
18881
18882 * sysdeps/generic/internal-signals.h: Include signal.h,
18883 sigsetops.h, and stdbool.h.
18884 (__libc_signal_block_all): Actually block all signals.
18885 (__libc_signal_block_app): Likewise.
18886 (__libc_signal_restore_set): Actually restore the signal mask.
18887
18888 2018-04-04 Florian Weimer <fweimer@redhat.com>
18889
18890 inet: Actually build and run tst-deadline.
18891 * inet/Makefile (tests-internal): Add tst-deadline and do not
18892 overwrite the variable.
18893 (tests-static-internal): Remove variable.
18894
18895 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
18896
18897 [BZ #22947]
18898 * bits/uio-ext.h (RWF_APPEND): New.
18899 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
18900 * manual/llio.texi: Document RWF_APPEND.
18901 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
18902 (RWF_SUPPORTED): Add RWF_APPEND.
18903
18904 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18905
18906 [BZ #22391]
18907 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
18908 check for internal nptl signals.
18909 * nptl/sigaction.c (__sigaction): Likewise.
18910 * signal/sigaddset.c (sigaddset): Likewise.
18911 * signal/sigdelset.c (sigdelset): Likewise.
18912 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
18913 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
18914 value.
18915 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
18916 to filter out internal nptl signals.
18917 * signal/tst-sigset.c (do_test): Check ech signal indidually and
18918 also check realtime signals using standard macros.
18919 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
18920 __is_internal_signal, __libc_signal_block_all,
18921 __libc_signal_block_app, __libc_signal_restore_set): New functions.
18922 * sysdeps/nptl/sigfillset.c: Remove file.
18923 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
18924 Change return to bool.
18925 (__clear_internal_signals): Remove SIGTIMER clean since it is
18926 equal to SIGCANEL on Linux.
18927 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
18928 signal set was constructed using standard functions.
18929
18930 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
18931
18932 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
18933 ifname is too long.
18934 * hurd/hurdsig.c (interrupted_reply_port_location): Use
18935 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
18936 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
18937 hidden def.
18938 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
18939 * signal/sigaddset.c: Include <sigsetopts.h>.
18940 * signal/sigdelset.c: Likewise.
18941
18942 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18943
18944 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
18945 (__cos): Likewise.
18946 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
18947 logic as sin and cos.
18948
18949 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18950
18951 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
18952 inputs. Return correct sign.
18953 (do_sincos): Remove small input check before do_sin, let do_sin set
18954 the sign.
18955 (__sin): Likewise.
18956 (__cos): Likewise.
18957
18958 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18959
18960 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
18961 (do_cos_slow): Likewise.
18962 (do_sin_slow): Likewise.
18963 (reduce_and_compute): Likewise.
18964 (slow): Likewise.
18965 (slow1): Likewise.
18966 (slow2): Likewise.
18967 (sloww): Likewise.
18968 (sloww1): Likewise.
18969 (sloww2): Likewise.
18970 (bslow): Likewise.
18971 (bslow1): Likewise.
18972 (bslow2): Likewise.
18973 (cslow2): Likewise.
18974
18975 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18976
18977 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
18978 (do_cos): Remove corp parameter and calculations.
18979 (do_sin): Likewise.
18980 (do_sincos): Remove cor variable.
18981 (__sin): Use do_sincos for huge inputs.
18982 (__cos): Likewise.
18983 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18984 (reduce_and_compute_sincos): Remove unused function.
18985
18986 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18987
18988 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
18989 reduce_sincos, improve accuracy to 136 bits.
18990 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
18991 (__sin): Use improved reduction and simplified do_sincos calculation.
18992 (__cos): Likewise.
18993 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
18994
18995 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
18996
18997 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
18998 (do_sincos_2): Likewise.
18999 (__sin): Remove middle range reduction case.
19000 (__cos): Likewise.
19001 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19002 reduction case.
19003
19004 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19005
19006 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19007 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19008 inputs.
19009 (__cos): Likewise.
19010 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19011
19012 2018-04-03 Joseph Myers <joseph@codesourcery.com>
19013
19014 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19015 version to 4.16
19016
19017 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19018
19019 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19020 Remove definitions.
19021 (opendir_oflags): Use O_DIRECTORY regardless.
19022 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19023 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19024
19025 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19026
19027 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19028 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19029 macros.
19030 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19031 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19032 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19033 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
19034 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19035 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
19036
19037 * htl/Makefile: Bump licence to LGPL 2.1+.
19038 * htl/alloca_cutoff.c: Likewise.
19039 * htl/cthreads-compat.c: Likewise.
19040 * htl/lockfile.c: Likewise.
19041 * htl/pt-alloc.c: Likewise.
19042 * htl/pt-cancel.c: Likewise.
19043 * htl/pt-cleanup.c: Likewise.
19044 * htl/pt-create.c: Likewise.
19045 * htl/pt-dealloc.c: Likewise.
19046 * htl/pt-detach.c: Likewise.
19047 * htl/pt-exit.c: Likewise.
19048 * htl/pt-getattr.c: Likewise.
19049 * htl/pt-initialize.c: Likewise.
19050 * htl/pt-internal.h: Likewise.
19051 * htl/pt-join.c: Likewise.
19052 * htl/pt-self.c: Likewise.
19053 * htl/pt-setcancelstate.c: Likewise.
19054 * htl/pt-setcanceltype.c: Likewise.
19055 * htl/pt-sigmask.c: Likewise.
19056 * htl/pt-spin-inlines.c: Likewise.
19057 * htl/pt-testcancel.c: Likewise.
19058 * htl/pt-yield.c: Likewise.
19059 * htl/tests/test-1.c: Likewise.
19060 * htl/tests/test-10.c: Likewise.
19061 * htl/tests/test-11.c: Likewise.
19062 * htl/tests/test-12.c: Likewise.
19063 * htl/tests/test-13.c: Likewise.
19064 * htl/tests/test-14.c: Likewise.
19065 * htl/tests/test-15.c: Likewise.
19066 * htl/tests/test-16.c: Likewise.
19067 * htl/tests/test-17.c: Likewise.
19068 * htl/tests/test-2.c: Likewise.
19069 * htl/tests/test-3.c: Likewise.
19070 * htl/tests/test-4.c: Likewise.
19071 * htl/tests/test-5.c: Likewise.
19072 * htl/tests/test-6.c: Likewise.
19073 * htl/tests/test-7.c: Likewise.
19074 * htl/tests/test-8.c: Likewise.
19075 * htl/tests/test-9.c: Likewise.
19076 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19077 * sysdeps/htl/bits/cancelation.h: Likewise.
19078 * sysdeps/htl/bits/pthread-np.h: Likewise.
19079 * sysdeps/htl/bits/pthread.h: Likewise.
19080 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19081 * sysdeps/htl/bits/semaphore.h: Likewise.
19082 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19083 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19084 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19085 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19086 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19087 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19088 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19089 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19090 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19091 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19092 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19093 * sysdeps/htl/old_pt-atfork.c: Likewise.
19094 * sysdeps/htl/pt-atfork.c: Likewise.
19095 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19096 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19097 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19098 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19099 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19100 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19101 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19102 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19103 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19104 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19105 * sysdeps/htl/pt-attr-init.c: Likewise.
19106 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19107 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19108 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19109 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19110 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19111 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19112 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19113 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19114 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19115 * sysdeps/htl/pt-attr.c: Likewise.
19116 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19117 * sysdeps/htl/pt-barrier-init.c: Likewise.
19118 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19119 * sysdeps/htl/pt-barrier.c: Likewise.
19120 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19121 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19122 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19123 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19124 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19125 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19126 * sysdeps/htl/pt-cond-init.c: Likewise.
19127 * sysdeps/htl/pt-cond-signal.c: Likewise.
19128 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19129 * sysdeps/htl/pt-cond-wait.c: Likewise.
19130 * sysdeps/htl/pt-cond.c: Likewise.
19131 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19132 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19133 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19134 * sysdeps/htl/pt-condattr-init.c: Likewise.
19135 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19136 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19137 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19138 * sysdeps/htl/pt-equal.c: Likewise.
19139 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19140 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19141 * sysdeps/htl/pt-getschedparam.c: Likewise.
19142 * sysdeps/htl/pt-getspecific.c: Likewise.
19143 * sysdeps/htl/pt-init-specific.c: Likewise.
19144 * sysdeps/htl/pt-key-create.c: Likewise.
19145 * sysdeps/htl/pt-key-delete.c: Likewise.
19146 * sysdeps/htl/pt-key.h: Likewise.
19147 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19148 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19149 * sysdeps/htl/pt-mutex-init.c: Likewise.
19150 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19151 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19152 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19153 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19154 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19155 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19156 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19157 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19158 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19159 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19160 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19161 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19162 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19163 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19164 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19165 * sysdeps/htl/pt-mutexattr.c: Likewise.
19166 * sysdeps/htl/pt-once.c: Likewise.
19167 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19168 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19169 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19170 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19171 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19172 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19173 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19174 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19175 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19176 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19177 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19178 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19179 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19180 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19181 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19182 * sysdeps/htl/pt-setschedparam.c: Likewise.
19183 * sysdeps/htl/pt-setschedprio.c: Likewise.
19184 * sysdeps/htl/pt-setspecific.c: Likewise.
19185 * sysdeps/htl/pt-spin.c: Likewise.
19186 * sysdeps/htl/pt-startup.c: Likewise.
19187 * sysdeps/htl/pthread.h: Likewise.
19188 * sysdeps/htl/sem-close.c: Likewise.
19189 * sysdeps/htl/sem-destroy.c: Likewise.
19190 * sysdeps/htl/sem-getvalue.c: Likewise.
19191 * sysdeps/htl/sem-init.c: Likewise.
19192 * sysdeps/htl/sem-open.c: Likewise.
19193 * sysdeps/htl/sem-post.c: Likewise.
19194 * sysdeps/htl/sem-timedwait.c: Likewise.
19195 * sysdeps/htl/sem-trywait.c: Likewise.
19196 * sysdeps/htl/sem-unlink.c: Likewise.
19197 * sysdeps/htl/sem-wait.c: Likewise.
19198 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19199 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19200 * sysdeps/mach/htl/pt-block.c: Likewise.
19201 * sysdeps/mach/htl/pt-spin.c: Likewise.
19202 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19203 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19204 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19205 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19206 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19207 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19208 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19209 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19210 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19211 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19212 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19213 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19214 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19215 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19216 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19217 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19218 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19219 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19220 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19221 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19222 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19223 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19224 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19225 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19226 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19227 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19228 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19229 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19230 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19231 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19232 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19233 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19234 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19235 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19236 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19237 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19238 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19239 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19240 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19241 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19242 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19243 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19244 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19245
19246 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19247 * README: Remove the mention of out-of-tree patches needed for
19248 GNU/Hurd.
19249
19250 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19251 (UTIME_NOW, UTIME_OMIT): Define macros.
19252
19253 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19254 instead of pthread_detach.
19255 (__cthread_fork): Call __pthread_create instead of pthread_create.
19256 (__cthread_keycreate): Call __pthread_key_create instead of
19257 pthread_key_create.
19258 (__cthread_getspecific): Call __pthread_getspecific instead of
19259 pthread_getspecific.
19260 (__cthread_setspecific): Call __pthread_setspecific instead of
19261 pthread_setspecific.
19262 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19263 __pthread_mutex_unlock instead of pthread_mutex_lock and
19264 pthread_mutex_unlock.
19265 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19266 ___pthread_get_cleanup_stack.
19267 (__pthread_get_cleanup_stack): New strong alias.
19268 * htl/pt-create.c: Include <pthreadP.h>.
19269 (entry_point): Call __pthread_exit instead of pthread_exit.
19270 (pthread_create): Rename to __pthread_create.
19271 (pthread_create): New strong alias.
19272 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19273 (pthread_detach): New strong alias.
19274 (__pthread_detach): Call __pthread_cond_broadcast instead of
19275 pthread_cond_broadcast.
19276 * htl/pt-exit.c: Include <pthreadP.h>.
19277 (__pthread_exit): Call __pthread_setcancelstate and
19278 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19279 __pthread_get_cleanup_stack.
19280 * htl/pt-testcancel.c: Include <pthreadP.h>.
19281 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19282 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19283 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19284 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19285 pthread_attr_getstacksize.
19286 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19287 Rename to __pthread_attr_getstackaddr.
19288 (pthread_attr_getstackaddr): New strong alias.
19289 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19290 Rename to __pthread_attr_getstacksize.
19291 (pthread_attr_getstacksize): New strong alias.
19292 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19293 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19294 (pthread_attr_setstack): New strong alias.
19295 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19296 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19297 pthread_attr_getstacksize, pthread_attr_setstacksize and
19298 pthread_attr_setstackaddr.
19299 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19300 Rename to __pthread_attr_setstackaddr.
19301 (pthread_attr_setstackaddr): New strong alias.
19302 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19303 Rename to __pthread_attr_setstacksize.
19304 (pthread_attr_setstacksize): New strong alias.
19305 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19306 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19307 pthread_exit.
19308 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19309 (__pthread_key_create): New hidden def.
19310 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19311 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19312 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19313 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19314 __pthread_setspecific, __pthread_setcancelstate,
19315 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19316 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19317 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19318 declarations.
19319 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19320 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19321 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19322 (pthread_attr_setstackaddr): New strong alias.
19323 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19324 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19325 (pthread_attr_setstacksize): New strong alias.
19326 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19327 (call_exit): Call __pthread_exit instead of pthread_exit.
19328 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19329 (_pthread_mutex_init): New hidden definition.
19330 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19331 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19332 instead of pthread_attr_init and pthread_attr_setstack.
19333
19334 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19335 __vm_deallocate instead of vm_allocate and vm_deallocate.
19336 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19337 setenv.
19338 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19339 of geteuid.
19340 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19341 strdup.
19342 * hurd/siginfo.c: Include <libioP.h>.
19343 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19344 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19345 munmap.
19346 * mach/devstream.c: Include <libioP.h>.
19347 (dealloc_ref): Call __mach_port_deallocate instead of
19348 mach_port_deallocate.
19349 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19350 Call __mach_port_deallocate instead of mach_port_deallocate.
19351 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19352 pathconf.
19353 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19354 munmap.
19355 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19356 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19357 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19358 of munmap.
19359 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19360 of close.
19361 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19362 instead of sysconf.
19363 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19364 __clock_gettime instead of clock_gettime.
19365 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19366 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19367 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19368 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19369 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19370 tcgetattr.
19371 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19372 __clock_gettime and __nanosleep instead of clock_gettime and
19373 nanosleep.
19374 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19375 __hurd_catch_signal.
19376 (hurd_catch_signal): New strong alias.
19377 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19378 __hurd_catch_signal instead of hurd_catch_signal.
19379 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19380 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19381 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19382 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19383 (_hurd_thread_sigstate): Add hidden def.
19384 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19385 mutex_unlock.
19386 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19387 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19388 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19389 __hurd_file_name_path_lookup.
19390 (hurd_file_name_path_lookup): New strong alias.
19391 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19392 hurd_file_name_path_lookup.
19393 * mach/errstring.c (mach_error_type): Add hidden def.
19394 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19395 * mach/mutex-init.c (__mutex_init): Add hidden def.
19396 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19397 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19398 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19399 * sysdeps/mach/hurd/getcwd.c
19400 (_hurd_canonicalize_directory_name_internal): Rename to
19401 __hurd_canonicalize_directory_name_internal.
19402 (_hurd_canonicalize_directory_name_internal): New strong alias.
19403 (__canonicalize_directory_name_internal, __getcwd): Call
19404 __hurd_canonicalize_directory_name_internal instead of
19405 _hurd_canonicalize_directory_name_internal.
19406 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19407 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19408 hidden defs.
19409 * sysdeps/hurd/include/hurd.h: New file.
19410 * sysdeps/hurd/include/hurd/fd.h: New file.
19411 * sysdeps/hurd/include/hurd/signal.h: New file.
19412 * sysdeps/mach/include/lock-intern.h: New file.
19413 * sysdeps/mach/include/mach.h: New file.
19414 * sysdeps/mach/include/mach/mig_support.h: New file.
19415 * sysdeps/mach/include/mach_error.h: New file.
19416 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19417 prototype.
19418 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19419 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19420 _HEADER_H_HIDDEN_DEF macro.
19421 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19422 _hurd_fd_error_signal): Add hidden prototype.
19423 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19424 hidden def.
19425 * libio/iolibio.h (_IO_puts): New hidden prototype.
19426 * libio/ioputs.c (_IO_puts): New hidden def.
19427 * sysdeps/mach/hurd/localplt.data: New file.
19428
19429 2018-04-02 Agustina Arzille <avarzille@riseup.net>
19430 Amos Jeffries <squid3@treenet.co.nz>
19431 David Michael <fedora.dm0@gmail.com>
19432 Marco Gerards <marco@gnu.org>
19433 Marcus Brinkmann <marcus@gnu.org>
19434 Neal H. Walfield <neal@gnu.org>
19435 Pino Toscano <toscano.pino@tiscali.it>
19436 Richard Braun <rbraun@sceen.net>
19437 Roland McGrath <roland@gnu.org>
19438 Samuel Thibault <samuel.thibault@ens-lyon.org>
19439 Thomas DiModica <ricinwich@yahoo.com>
19440 Thomas Schwinge <tschwinge@gnu.org>
19441
19442 * htl: New directory.
19443 * sysdeps/htl: New directory.
19444 * sysdeps/hurd/htl: New directory.
19445 * sysdeps/i386/htl: New directory.
19446 * sysdeps/mach/htl: New directory.
19447 * sysdeps/mach/hurd/htl: New directory.
19448 * sysdeps/mach/hurd/i386/htl: New directory.
19449 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19450 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19451 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19452
19453 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19454
19455 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19456 signals in thread created for runing timers.
19457
19458 2018-04-01 Florian Weimer <fweimer@redhat.com>
19459
19460 * support/support_format_addrinfo.c (support_format_addrinfo):
19461 Include unknown error number in formatted result.
19462
19463 2018-03-29 Florian Weimer <fweimer@redhat.com>
19464
19465 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19466 capture SIGBUS.
19467
19468 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19469
19470 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19471 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19472 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19473 (__ASSUME_CLONE_BACKWARDS): Define.
19474
19475 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19476
19477 [BZ #23024]
19478 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19479 early when linux sentinel value is set.
19480
19481 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19482
19483 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19484
19485 2018-03-27 Andreas Schwab <schwab@suse.de>
19486
19487 [BZ #23005]
19488 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19489 allocation of private copy of nsaddr_list fails.
19490
19491 2018-03-26 Joseph Myers <joseph@codesourcery.com>
19492
19493 [BZ #16552]
19494 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19495 * sysdeps/unix/sysv/linux/umount.c: ... here.
19496 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19497 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19498 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19499 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19501 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19502 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19503
19504 2018-03-26 Andreas Schwab <schwab@suse.de>
19505
19506 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19507 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19508 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19509 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19510 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19511 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19512 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19513 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19514 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19515 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19516 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19517 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19518 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19519 (R_RISCV_NUM): Define.
19520
19521 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19522
19523 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19524 TLS declaration of errno.
19525 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19526 __libc_setup_tls.
19527 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19528 (ARCH_SETUP_TLS): Likewise.
19529 * sysdeps/mach/hurd/libc-start.h: New file copied from
19530 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
19531 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19532 instead of __libc_setup_tls.
19533 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
19534 __libc_setup_tls before initializing libpthread and running _hurd_init
19535 which starts the signal thread.
19536 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19537 Declare function.
19538 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19539
19540 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19541
19542 [BZ #22998]
19543 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19544 after it is defined.
19545
19546 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19547 Max Horn <max@quendi.de>
19548
19549 [BZ #22644]
19550 CVE-2017-18269
19551 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19552 branch conditions.
19553 * string/test-memmove.c (do_test2): New testcase.
19554
19555 2018-03-22 Joseph Myers <joseph@codesourcery.com>
19556
19557 * sysdeps/generic/frame.h: Remove file.
19558 * sysdeps/arm/frame.h: Likewise.
19559 * sysdeps/hppa/frame.h: Likewise.
19560 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19561 macro.
19562 (GET_FRAME): Likewise.
19563 (GET_STACK): Likewise.
19564 (CALL_SIGHANDLER): Likewise.
19565 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19566 Likewise.
19567 (GET_FRAME): Likewise.
19568 (GET_STACK): Likewise.
19569 (CALL_SIGHANDLER): Likewise.
19570 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19571 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19572 (GET_FRAME): Likewise.
19573 (GET_STACK): Likewise.
19574 (CALL_SIGHANDLER): Likewise.
19575 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19576 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19577 (GET_FRAME): Likewise.
19578 (GET_STACK): Likewise.
19579 (ADVANCE_STACK_FRAME): Likewise.
19580 (CALL_SIGHANDLER): Likewise.
19581 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19582 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19583 (GET_FRAME): Likewise.
19584 (GET_STACK): Likewise.
19585 (CALL_SIGHANDLER): Likewise.
19586 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19587 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19588 (GET_FRAME): Likewise.
19589 (GET_STACK): Likewise.
19590 (CALL_SIGHANDLER): Likewise.
19591 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19592 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19593 (GET_FRAME): Likewise.
19594 (GET_STACK): Likewise.
19595 (CALL_SIGHANDLER): Likewise.
19596 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19597 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19598 (GET_FRAME): Likewise.
19599 (GET_STACK): Likewise.
19600 (CALL_SIGHANDLER): Likewise.
19601 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19602 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19603 (GET_FRAME): Likewise.
19604 (GET_STACK): Likewise.
19605 (CALL_SIGHANDLER): Likewise.
19606 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19607 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19608 (GET_FRAME): Likewise.
19609 (GET_STACK): Likewise.
19610 (CALL_SIGHANDLER): Likewise.
19611 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19612 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19613 (GET_FRAME): Likewise.
19614 (GET_STACK): Likewise.
19615 (CALL_SIGHANDLER): Likewise.
19616 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19617 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19618 (GET_FRAME): Likewise.
19619 (GET_STACK): Likewise.
19620 (CALL_SIGHANDLER): Likewise.
19621 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19622 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19623 (GET_FRAME): Likewise.
19624 (GET_STACK): Likewise.
19625 (CALL_SIGHANDLER): Likewise.
19626 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19627 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19628 (FIRST_FRAME_POINTER): Likewise.
19629 (ADVANCE_STACK_FRAME): Likewise.
19630 (GET_STACK): Likewise.
19631 (GET_FRAME): Likewise.
19632 (CALL_SIGHANDLER): Likewise.
19633 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19634 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19635 (ADVANCE_STACK_FRAME): Likewise.
19636 (GET_STACK): Likewise.
19637 (GET_FRAME): Likewise.
19638 (CALL_SIGHANDLER): Likewise.
19639 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19640 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19641 (GET_FRAME): Likewise.
19642 (GET_STACK): Likewise.
19643 (CALL_SIGHANDLER): Likewise.
19644 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19645 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19646 (GET_FRAME): Likewise.
19647 (GET_STACK): Likewise.
19648 (CALL_SIGHANDLER): Likewise.
19649
19650 2018-03-21 Joseph Myers <joseph@codesourcery.com>
19651
19652 * sysdeps/x86_64/backtrace.c: Move to ....
19653 * debug/backtrace.c: ... here.
19654 * sysdeps/aarch64/backtrace.c: Remove file.
19655 * sysdeps/alpha/backtrace.c: Likewise.
19656 * sysdeps/hppa/backtrace.c: Likewise.
19657 * sysdeps/ia64/backtrace.c: Likewise.
19658 * sysdeps/mips/backtrace.c: Likewise.
19659 * sysdeps/nios2/backtrace.c: Likewise.
19660 * sysdeps/riscv/backtrace.c: Likewise.
19661 * sysdeps/sh/backtrace.c: Likewise.
19662 * sysdeps/tile/backtrace.c: Likewise.
19663
19664 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19665
19666 [BZ #22987]
19667 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
19668 function.
19669 (fdimf): Likewise.
19670 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
19671
19672 [BZ #17343]
19673 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
19674 possibly overflowing computations.
19675
19676 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
19677
19678 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
19679 values from Linux-specific section now that it is in the GNU section.
19680 * sysdeps/gnu/errlist.c: Regenerate.
19681
19682 2018-03-20 Joseph Myers <joseph@codesourcery.com>
19683
19684 * math/Makefile (libm-narrow-fns): Add sub.
19685 (libm-test-funcs-narrow): Likewise.
19686 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
19687 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
19688 * math/gen-auto-libm-tests.c (test_functions): Add sub.
19689 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
19690 (NARROW_SUB_ROUND_TO_ODD): Likewise.
19691 (NARROW_SUB_TRIVIAL): Likewise.
19692 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
19693 macro.
19694 (__dsubl): Likewise.
19695 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
19696 dsub.
19697 (CFLAGS-nldbl-dsub.c): New variable.
19698 (CFLAGS-nldbl-fsub.c): Likewise.
19699 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
19700 __nldbl_dsubl.
19701 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
19702 prototype.
19703 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
19704 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
19705 * math/auto-libm-test-in: Add tests of sub.
19706 * math/auto-libm-test-out-narrow-sub: New generated file.
19707 * math/libm-test-narrow-sub.inc: New file.
19708 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
19709 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
19710 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
19711 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
19712 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
19713 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
19714 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
19715 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
19716 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
19717 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
19718 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
19719 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
19720 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
19721 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
19722 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
19723 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
19724 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
19725 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
19726 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19727 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
19728 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19729 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19730 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19731 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19732 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19733 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19734 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19735 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19736 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19737 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19738 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19739 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
19741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
19742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
19743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
19744 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19745 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19746 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19747 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19748 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19749 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19750 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
19751 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
19752 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19753 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19754
19755 2018-03-19 Joseph Myers <joseph@codesourcery.com>
19756
19757 [BZ #20079]
19758 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
19759
19760 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
19761
19762 * benchtests/bench-timing.h (attribute_hidden): Undefine.
19763
19764 2018-03-18 Richard Braun <rbraun@sceen.net>
19765
19766 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
19767 thread reference.
19768
19769 2018-03-18 Agustina Arzille <avarzille@riseup.net>
19770
19771 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
19772 (__libc_cleanup_fct): Define function.
19773 (__libc_cleanup_region_start, __libc_cleanup_region_end,
19774 __libc_cleanup_end): Rewrite implementation using
19775 __attribute__ ((__cleanup__)).
19776 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
19777 * hurd/Makefile (routines): Add hurdlock.
19778 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
19779 interface.
19780 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
19781 * hurd/hurdpid.c: Include <lowlevellock.h>
19782 (_S_msg_proc_newids): Use lll_wait to synchronize.
19783 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
19784 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
19785 * mach/Makefile (lock-headers): Remove machine-lock.h.
19786 * mach/lock-intern.h: Include <lowlevellock.h> instead of
19787 <machine-lock.h>.
19788 (__spin_lock_t): New type.
19789 (__SPIN_LOCK_INITIALIZER): New macro.
19790 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
19791 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
19792 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
19793 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
19794 (__mutex_init): Initialize with lll.
19795 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
19796 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
19797 needing lll.
19798 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
19799 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
19800 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
19801 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
19802 (__setpgid): Use lll for synchronization.
19803 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
19804 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
19805 instead of <cthreads.h>.
19806 (_IO_lock_inexpensive): New macro
19807 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
19808 (__libc_lock_self0): New declaration.
19809 (__libc_lock_owner_self): New macro.
19810 (__libc_key_t): Remove type.
19811 (_LIBC_LOCK_INITIALIZER): New macro.
19812 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
19813 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
19814 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
19815 __libc_lock_define_initialized_recursive,
19816 __rtld_lock_define_initialized_recursive,
19817 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
19818 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
19819 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
19820 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
19821 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
19822 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
19823 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
19824 New macros.
19825 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
19826 * hurd/hurdlock.c: New file.
19827 * hurd/hurdlock.h: New file.
19828 * mach/lowlevellock.h: New file
19829
19830 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19831
19832 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
19833 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
19834 when opening a symlink with O_NOFOLLOW.
19835 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
19836 path when flags contains O_NOFOLLOW.
19837 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
19838 if flags contains O_DIRECTORY and the result is a directory.
19839 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
19840 oneself when the pointer given in D is nul (as set by ext2fs).
19841 * sysdeps/mach/hurd/mlockall.c: New file.
19842 * sysdeps/mach/hurd/munlockall.c: New file.
19843
19844 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
19845
19846 * hurd/hurdsig.c: Include <pthread.h>.
19847 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
19848 get the signal thread stack layout.
19849 * hurd/Makefile (headers): Remove threadvar.h.
19850 (inline-headers): Remove threadvar.h.
19851 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
19852 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
19853 __hurd_threadvar_max, __hurd_errno_location.
19854 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
19855 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
19856 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
19857 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
19858 unless TLS is not initialized yet, in which case we do not need a
19859 critical section yet anyway.
19860 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
19861 <machine-sp.h>.
19862 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
19863 declarations.
19864 (__hurd_threadvar_index): Remove enum.
19865 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
19866 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
19867 inlines.
19868 (__hurd_reply_port0): New variable declaration.
19869 (__hurd_local_reply_port): New macro.
19870 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
19871 (interrupted_reply_port_location): Add thread_t parameter. Use it
19872 with THREAD_TCB to access thread-local variables.
19873 (_hurdsig_abort_rpcs): Pass ss->thread to
19874 interrupted_reply_port_location.
19875 (_hurd_internal_post_signal): Likewise.
19876 (_hurdsig_init): Use presence of cthread_fork instead of
19877 __hurd_threadvar_stack_mask to start signal thread by hand.
19878 Remove signal thread threadvar initialization.
19879 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
19880 * hurd/sigunwind.c: Include <hurd/threadvar.h>
19881 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
19882 of threadvar.
19883 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
19884 __libc_lock_self0.
19885 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
19886 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
19887 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
19888 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
19889 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
19890 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
19891 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
19892 define variables.
19893 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
19894 <hurd/threadvar.h>.
19895 [IS_IN(rtld)] (rtld_errno): New variable.
19896 [IS_IN(rtld)] (__errno_location): New weak function.
19897 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
19898 * sysdeps/mach/hurd/errno.c: Remove file.
19899 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
19900 (__fork): Remove THREADVAR_SPACE macro and its use.
19901 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
19902 variable.
19903 (init): Do not initialize threadvar.
19904 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
19905 symbol.
19906 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
19907 __hurd_local_reply_port instead of threadvar.
19908 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
19909 _hurd_sigstate fields.
19910 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
19911 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
19912 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
19913 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
19914 instead of threadvar.
19915 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
19916 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
19917 (use_threadvar, global_reply_port): Remove variables.
19918 (__hurd_reply_port0): New variable.
19919 (__mig_get_reply_port): Use __hurd_local_reply_port and
19920 __hurd_reply_port0 instead of threadvar.
19921 (__mig_dealloc_reply_port): Likewise.
19922 (__mig_init): Do not initialize threadvar.
19923 * sysdeps/mach/hurd/profil.c: Fix comment.
19924 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
19925 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
19926 cthread_keycreate, cthread_getspecific, cthread_setspecific to
19927 __cthread_fork, __cthread_detach, __pthread_getattr_np,
19928 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
19929 __cthread_setspecific.
19930 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
19931 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
19932 __cthread_t instead of cthread_fork, cthread_detach,
19933 pthread_getattr_np, pthread_attr_getstack.
19934 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
19935 __cthread_keycreate.
19936 (cthread_getspecific): Rename to __cthread_getspecific.
19937 (cthread_setspecific): Rename to __cthread_setspecific.
19938 (__libc_getspecific): Use __cthread_getspecific instead of
19939 cthread_getspecific.
19940 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
19941 __cthread_keycreate instead of cthread_keycreate.
19942 (__libc_setspecific): Use __cthread_setspecific instead of
19943 cthread_setspecific.
19944 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
19945 Likewise.
19946 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
19947 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
19948 testing whether it is defined.
19949
19950 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
19951
19952 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
19953 Define macro.
19954 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
19955 * sysdeps/mach/i386/thread_state.h
19956 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
19957 i386_THREAD_STATE.
19958 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
19959 i386_THREAD_STATE.
19960 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
19961
19962 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
19963 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
19964
19965 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
19966 macros.
19967 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
19968 descriptor instead of creating a new one.
19969 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
19970
19971 * mach/setup-thread.c: Include <ldsodefs.h>.
19972 (__mach_setup_thread): Call _dl_allocate_tls, pass
19973 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
19974 MACHINE_THREAD_STATE_FLAVOR, before getting
19975 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
19976 MACHINE_THREAD_STATE_FLAVOR with the result.
19977 * hurd/hurdfault.c (_hurdsig_fault_init): Call
19978 MACHINE_THREAD_STATE_FIX_NEW.
19979 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
19980 too. Add original thread parameter.
19981
19982 2018-03-16 Joseph Myers <joseph@codesourcery.com>
19983
19984 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
19985 Remove inline function.
19986
19987 * sysdeps/i386/fpu/libm-test-ulps: Update.
19988 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19989
19990 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
19991
19992 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
19993 commit.
19994
19995 2018-03-15 Joseph Myers <joseph@codesourcery.com>
19996
19997 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
19998 (__sincos_code): Remove define and undefine.
19999 [__FAST_MATH__] (__sincos): Remove inline function.
20000 [__FAST_MATH__] (__sincosf): Remove inline function.
20001 [__FAST_MATH__] (__sincosl): Remove inline function.
20002 (__atan2l): Remove inline functions.
20003 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20004 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20005 function.
20006 (floor): Remove inline function.
20007 (ceil): Likewise.
20008 [__FAST_MATH__] (__ldexp_code): Remove macro.
20009 [__FAST_MATH__] (ldexp): Remove inline function.
20010 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20011 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20012 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20013 [__USE_ISOC99] (__lrint_code): Remove macro.
20014 [__USE_ISOC99] (__llrint_code): Likewise.
20015 [__USE_ISOC99] (lrintf): Remove inline function.
20016 [__USE_ISOC99] (lrint): Likewise.
20017 [__USE_ISOC99] (lrintl): Likewise.
20018 [__USE_ISOC99] (llrint): Likewise.
20019 [__USE_ISOC99] (llrintf): Likewise.
20020 [__USE_ISOC99] (llrintl): Likewise.
20021
20022 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20023
20024 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20025 (__ieee754_sqrtf): Remove.
20026 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20027 (__ieee754_sqrtf): Remove.
20028 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20029 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20030 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20031 (__ieee754_sqrtf): Remove.
20032 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20033 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20034 (sqrtf): Remove.
20035 (sqrtl): Remove.
20036 (__ieee754_sqrt): Remove.
20037 (__ieee754_sqrtf): Remove.
20038 (__ieee754_sqrtl): Remove.
20039 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20040 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20041 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20042 (__ieee754_sqrtf): Remove.
20043 (__ieee754_sqrtl): Remove.
20044
20045 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20046
20047 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20048 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20049 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20050 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20051 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20052 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20053 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20054 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20055 Likewise.
20056 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20057 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20058 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20059 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20060 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20061 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20062 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20063 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20064 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20065 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20066 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20067 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20068 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20069 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20070 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20071 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20072 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20073 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20074 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20075 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20076 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20077 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20078 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20079 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20080 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20081 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20082 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20083 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20084 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20085 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20086 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20087 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20088 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20089 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20090 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20091 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20092 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20093 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20094 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20095 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20096
20097 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20098
20099 * include/math.h (sqrt): Declare with asm redirect.
20100 (sqrtf): Likewise.
20101 (sqrtl): Likewise.
20102 (sqrtf128): Likewise.
20103 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20104 nonlib and libnldbl with -fmath-errno.
20105 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20106 * math/w_sqrt_template.c: Likewise.
20107 * math/w_sqrtf_compat.c: Likewise.
20108 * math/w_sqrtl_compat.c: Likewise.
20109 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20110 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20111 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20112 complex.h.
20113
20114 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20115
20116 * benchtests/Makefile: Define _ISOMAC.
20117 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20118 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20119 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20120 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20121 * benchtests/bench-timing.h: Define attribute_hidden.
20122
20123 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20124
20125 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20126 mov + lsr.
20127
20128 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20129
20130 [BZ #22963]
20131 * localedata/locales/cs_CZ (mon): Rename to...
20132 (alt_mon): This.
20133 (mon): Import from CLDR (genitive case).
20134
20135 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20136
20137 [BZ #22937]
20138 * localedata/locales/el_CY (abmon): Rename to...
20139 (ab_alt_mon): This.
20140 (abmon): Import from CLDR (abbreviated genitive case).
20141 * localedata/locales/el_GR (abmon): Rename to...
20142 (ab_alt_mon): This.
20143 (abmon): Import from CLDR (abbreviated genitive case).
20144
20145 2018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
20146
20147 [BZ #22932]
20148 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20149
20150 2018-03-15 Robert Buj <robert.buj@gmail.com>
20151
20152 [BZ #22848]
20153 * localedata/locales/ca_ES (abmon): Rename to...
20154 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20155 (mon): Rename to...
20156 (alt_mon): This.
20157 (abmon): Import from CLDR (genitive case, month names preceded by
20158 "de" or "d’").
20159 (mon): Likewise.
20160 (abday): Synchronize with CLDR.
20161 (d_t_fmt): Likewise.
20162 (d_fmt): Likewise.
20163 (am_pm): Likewise.
20164
20165 (LC_TIME): Improve indentation.
20166 (LC_TELEPHONE): Likewise.
20167 (LC_NAME): Likewise.
20168 (LC_ADDRESS): Likewise.
20169
20170 2018-03-14 Joseph Myers <joseph@codesourcery.com>
20171
20172 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20173 (lrintf): Remove definitions used only with old GCC.
20174 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20175 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20176 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20177 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20178 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20179 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20180 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20181 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20182 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20183 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20184 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20185 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20186 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20187 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20188 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20189 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20190 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20191 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20192 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20193 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20194 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20195 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20196 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20197 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20198 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20199 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20200 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20201 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20202
20203 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20204
20205 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20206 instruction to unbreak builds with binutils 2.26 and older.
20207
20208 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20209
20210 * sysdeps/aarch64/strncmp.S (count): New macro.
20211 (strncmp): Store misaligned length in SRC1 in COUNT.
20212 (mutual_align): Adjust.
20213 (misaligned8): Load dword at a time when it is safe.
20214
20215 2018-03-12 Zack Weinberg <zackw@panix.com>
20216
20217 [BZ #1190]
20218 [BZ #19476]
20219 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20220 if the _IO_EOF_SEEN bit is already set; update commentary.
20221 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20222 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20223
20224 * support/support_openpty.c, support/tty.h: New files.
20225 * support/Makefile (libsupport-routines): Add support_openpty.
20226
20227 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20228 New test cases.
20229 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20230 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20231
20232 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20233
20234 * po/pt_BR.po: Update translations.
20235
20236 2018-03-12 David Michael <fedora.dm0@gmail.com>
20237
20238 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20239 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20240 get a port to the startup server.
20241
20242 2018-03-11 Zack Weinberg <zackw@panix.com>
20243
20244 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20245 before nldbl-compat.h.
20246
20247 2018-03-10 Zack Weinberg <zackw@panix.com>
20248
20249 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20250 math.h or math_private.h.
20251
20252 * sysdeps/alpha/fpu/s_isnan.c
20253 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20254 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20255 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20256 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20257 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20258 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20259 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20260 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20261 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20263 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20264 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20265 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20266 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20267 Include math_private.h.
20268
20269 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20270 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20271 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20272 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20273 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20274 * sysdeps/powerpc/power7/fpu/s_logb.c:
20275 Include math.h and math_private.h.
20276
20277 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20278 uses of $at in .set noat / .set at.
20279
20280 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20281
20282 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20283 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20284 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20285 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20286 Likewise.
20287
20288 2018-03-09 Florian Weimer <fweimer@redhat.com>
20289
20290 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20291 in comment.
20292
20293 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20294
20295 [BZ #22919]
20296 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20297 Add nop before __startcontext, add explaining comments.
20298
20299 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20300
20301 [BZ #22926]
20302 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20303 empty for __SPE__.
20304 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20305 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20306 Do not build hardware transactional code for __SPE__.
20307 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20308 (__lll_trylock_elision): Likewise.
20309 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20310 (__lll_unlock_elision): Likewise.
20311
20312 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
20313 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20314 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20315 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20316 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20317 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20318 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20319 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20320 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20321 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20322 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20323 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20324 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20325 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20326 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20327 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20328 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20329 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20330 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20331 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20332 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20333 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20334 (__ASSUME_CLONE_BACKWARDS): Define.
20335 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20336 __clone2 if __NR_clone2 is defined.
20337 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20338 (__ASSUME_CLONE_BACKWARDS): Likewise.
20339 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20340 (__ASSUME_CLONE_BACKWARDS): Likewise.
20341 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20342 (__ASSUME_CLONE2): Likewise.
20343 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20344 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20345 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20346 variants and the define architecture can use.
20347 (__ASSUME_CLONE_DEFAULT): Define as default.
20348 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20349 (__ASSUME_CLONE_BACKWARDS): Likewise.
20350 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20351 (__ASSUME_CLONE_BACKWARDS): Likewise.
20352 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20353 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20354
20355 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20356
20357 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20358
20359 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20360 time.
20361
20362 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20363 (do_test_limit): Likewise.
20364
20365 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20366 for every implementation.
20367 (do_test): Likewise.
20368
20369 * benchtests/bench-strncmp.c: Convert output to json.
20370
20371 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20372
20373 * io/futimens.c: Add missing start-of-file descriptive comment.
20374 * io/utime.c: Likewise.
20375 * misc/futimesat.c: Likewise.
20376 * misc/utimes.c: Likewise.
20377 * sysdeps/mach/hurd/futimesat.c: Likewise.
20378 * sysdeps/mach/hurd/utimes.c: Likewise.
20379 * sysdeps/posix/utime.c: Likewise.
20380 * sysdeps/posix/utimes.c: Likewise.
20381 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20382 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20383 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20384 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20385
20386 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20387
20388 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20389 hurd_futimes.
20390 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20391 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20392 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20393 (__futimens): Move implementation to...
20394 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20395 utime_tvalue_from_tspec): ... new helper functions.
20396 (hurd_futimens): New function.
20397 * sysdeps/mach/hurd/futimesat.c: New file.
20398 * sysdeps/mach/hurd/utimensat.c: New file.
20399
20400 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20401
20402 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20403 UTIME_OMIT): New macros.
20404 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20405 before reverting to converting time spec to time value and calling
20406 __file_utimes.
20407 * sysdeps/mach/hurd/utime-helper.c: New file.
20408 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20409 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20410 reverting to utime_tvalue_from_tval and __file_utimes.
20411 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20412 (__lutimes): Just call hurd_futimens after lookup.
20413 * sysdeps/mach/hurd/utimes.c: Likewise.
20414
20415 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20416
20417 * bits/sigaction.h: Add include guard.
20418 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20419 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20420 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20421 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20422 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20423 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20424 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20425 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20426 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20427
20428 2018-03-05 Joseph Myers <joseph@codesourcery.com>
20429
20430 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20431 -Wmaybe-uninitialized for -Os.
20432 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20433 this disabling.
20434
20435 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20436
20437 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20438 __INO_T_MATCHES_INO64_T is defined.
20439 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20440 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20441 of definition.
20442 * dirent/alphasort64.c: Likewise.
20443 * dirent/scandir.c: Likewise.
20444 * dirent/scandir64-tail.c: Likewise.
20445 * dirent/scandir64.c: Likewise.
20446 * dirent/scandirat.c: Likewise.
20447 * dirent/scandirat64.c: Likewise.
20448 * dirent/versionsort.c: Likewise.
20449 * dirent/versionsort64.c: Likewise.
20450 * include/dirent.h: Likewise.
20451
20452 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20453 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20454 for socketpair endpoint.
20455 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20456 WRITE_BUFFER_SIZE as buffer size for sending socket.
20457 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20458 issue on system where send is implemented with sendto syscall.
20459 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20460 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20461 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20462 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20463
20464 [BZ #21269]
20465 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20466 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20467 sa_restorer for vDSO case.
20468 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20469
20470 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20471
20472 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
20473 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20474 * hurd/hurd/ioctl.h: Include <mach/port.h>
20475 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
20476 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20477 <mach/mach_types.h> and <mach/message.h>.
20478 (headers): Move mach/param.h to bits/mach/param.h.
20479 * sysdeps/mach/i386/mach/param.h: Move file to ...
20480 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20481 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20482 of <mach/param.h>.
20483 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20484 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20485 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
20486 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20487 trivial, for C++ conformity.
20488 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
20489 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20490 Process mig output through $(migheadersed).
20491 * hurd/Makefile (migheadersed): Define variable.
20492 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20493 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20494 headers.
20495 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20496 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20497 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20498 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20499 <bits/types/sigset_t.h>.
20500 [!defined __USE_GNU]: Do not #error out.
20501 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20502 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20503 Include <stddef.h> and <bits/types/sigset_t.h>
20504 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20505 instead of sighandler_t.
20506 * stdlib/errno.h (error_t): Move definition to...
20507 * bits/types/error_t.h: ... new header.
20508 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20509 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20510 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20511 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20512 * hurd/hurd.h: Include <bits/types/error_t.h>
20513 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20514 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20515 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20516 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20517 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20518 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
20519 * sysdeps/mach/hurd/futimens.c: New file.
20520
20521 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20522
20523 [BZ #22918]
20524 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20525 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20526 * nscd/gai.c (__nss_hosts_database): Readd definition.
20527 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20528 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20529 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20530
20531 2018-03-02 Joseph Myers <joseph@codesourcery.com>
20532
20533 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20534 (ifunc_one): Likewise.
20535
20536 2018-03-01 DJ Delorie <dj@delorie.com>
20537
20538 [BZ #22342]
20539 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20540 key value.
20541
20542 2018-03-01 Maciej W. Rozycki <macro@mips.com>
20543
20544 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20545 `match_pid' parameter.
20546 (td_ta_thr_iter): Update accordingly.
20547
20548 2018-03-01 Florian Weimer <fweimer@redhat.com>
20549
20550 * nptl/Makefile (install-lib-ldscripts): Remove.
20551 (install): Remove rule.
20552 ($(inst_libdir)/libpthread.so): Likewise.
20553
20554 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20555
20556 [BZ #22896]
20557 * localedata/locales/an_ES: update month and day names,
20558 improve d_fmt, improve postal_fmt, add country_post,
20559 add country_isbn
20560
20561 2018-03-01 Mike FABIAN <mfabian@redhat.com>
20562
20563 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20564 Ukrainian instead of Bulgarian.
20565
20566 2018-03-01 Florian Weimer <fweimer@redhat.com>
20567
20568 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20569 reference.
20570
20571 2018-03-01 Florian Weimer <fweimer@redhat.com>
20572
20573 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20574 * nptl/Makefile (routines): Add pthread_atfork.
20575 (static-only-routines): Set to pthread_atfork.
20576 (libpthread-routines): Remove pthread_atfork.
20577 (libpthread-static-only-routines): Remove.
20578 (install): Update comment.
20579 (libpthread.so): Do not install libpthread_nonshared.a.
20580 (tests): Do not link with libpthread_nonshared.a.
20581 (generated): Remove libpthread_nonshared.a.
20582 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20583 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20584 with libpthread_nonshared.a.
20585
20586 2018-02-28 Joseph Myers <joseph@codesourcery.com>
20587
20588 [BZ #22902]
20589 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20590 (libc_feholdexcept_setroundf128): New macro.
20591 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20592
20593 [BZ #15105]
20594 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20595 libc_hidden_def.
20596 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20597 * include/inttypes.h: New file.
20598
20599 2018-02-27 Joseph Myers <joseph@codesourcery.com>
20600
20601 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20602 -Os in two more places.
20603
20604 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20605
20606 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20607 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20608 be sorted correctly at the moment because of a bug.
20609
20610 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20611
20612 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20613 treat ñ as a primary different character, sync the collation
20614 for Spanish with CLDR.
20615 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20616 * localedata/Makefile: Add new test files.
20617 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20618 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20619 collation order.
20620 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20621 * localedata/am_ET.UTF-8.in: New test file.
20622 * localedata/az_AZ.UTF-8.in: Likewise.
20623 * localedata/be_BY.UTF-8.in: Likewise.
20624 * localedata/ber_DZ.UTF-8.in: Likewise.
20625 * localedata/ber_MA.UTF-8.in: Likewise.
20626 * localedata/bg_BG.UTF-8.in: Likewise.
20627 * localedata/br_FR.UTF-8.in: Likewise.
20628 * localedata/cmn_TW.UTF-8.in: Likewise.
20629 * localedata/crh_UA.UTF-8.in: Likewise.
20630 * localedata/csb_PL.UTF-8.in: Likewise.
20631 * localedata/cv_RU.UTF-8.in: Likewise.
20632 * localedata/cy_GB.UTF-8.in: Likewise.
20633 * localedata/dz_BT.UTF-8.in: Likewise.
20634 * localedata/eo.UTF-8.in: Likewise.
20635 * localedata/es_ES.UTF-8.in: Likewise.
20636 * localedata/fa_IR.UTF-8.in: Likewise.
20637 * localedata/fi_FI.UTF-8.in: Likewise.
20638 * localedata/fil_PH.UTF-8.in: Likewise.
20639 * localedata/fur_IT.UTF-8.in: Likewise.
20640 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20641 * localedata/ha_NG.UTF-8.in: Likewise.
20642 * localedata/ig_NG.UTF-8.in: Likewise.
20643 * localedata/ik_CA.UTF-8.in: Likewise.
20644 * localedata/kk_KZ.UTF-8.in: Likewise.
20645 * localedata/ku_TR.UTF-8.in: Likewise.
20646 * localedata/ky_KG.UTF-8.in: Likewise.
20647 * localedata/ln_CD.UTF-8.in: Likewise.
20648 * localedata/mi_NZ.UTF-8.in: Likewise.
20649 * localedata/ml_IN.UTF-8.in: Likewise.
20650 * localedata/mn_MN.UTF-8.in: Likewise.
20651 * localedata/mr_IN.UTF-8.in: Likewise.
20652 * localedata/mt_MT.UTF-8.in: Likewise.
20653 * localedata/nb_NO.UTF-8.in: Likewise.
20654 * localedata/om_KE.UTF-8.in: Likewise.
20655 * localedata/os_RU.UTF-8.in: Likewise.
20656 * localedata/ps_AF.UTF-8.in: Likewise.
20657 * localedata/ro_RO.UTF-8.in: Likewise.
20658 * localedata/ru_RU.UTF-8.in: Likewise.
20659 * localedata/sc_IT.UTF-8.in: Likewise.
20660 * localedata/se_NO.UTF-8.in: Likewise.
20661 * localedata/sq_AL.UTF-8.in: Likewise.
20662 * localedata/sv_SE.UTF-8.in: Likewise.
20663 * localedata/szl_PL.UTF-8.in: Likewise.
20664 * localedata/tg_TJ.UTF-8.in: Likewise.
20665 * localedata/tk_TM.UTF-8.in: Likewise.
20666 * localedata/tt_RU.UTF-8.in: Likewise.
20667 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
20668 * localedata/ug_CN.UTF-8.in: Likewise.
20669 * localedata/uz_UZ.UTF-8.in: Likewise.
20670 * localedata/vi_VN.UTF-8.in: Likewise.
20671 * localedata/yi_US.UTF-8.in: Likewise.
20672 * localedata/yo_NG.UTF-8.in: Likewise.
20673 * localedata/zh_CN.UTF-8.in: Likewise.
20674 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
20675 file and fix bugs in the collation.
20676 * localedata/locales/az_AZ: Likewise.
20677 * localedata/locales/be_BY: Likewise.
20678 * localedata/locales/ber_DZ: Likewise.
20679 * localedata/locales/ber_MA: Likewise.
20680 * localedata/locales/bg_BG: Likewise.
20681 * localedata/locales/br_FR: Likewise.
20682 * localedata/locales/br_FR@euro: Likewise.
20683 * localedata/locales/ca_ES: Likewise.
20684 * localedata/locales/cns11643_stroke: Likewise.
20685 * localedata/locales/crh_UA: Likewise.
20686 * localedata/locales/cs_CZ: Likewise.
20687 * localedata/locales/csb_PL: Likewise.
20688 * localedata/locales/cv_RU: Likewise.
20689 * localedata/locales/cy_GB: Likewise.
20690 * localedata/locales/da_DK: Likewise.
20691 * localedata/locales/dz_BT: Likewise.
20692 * localedata/locales/en_CA: Likewise.
20693 * localedata/locales/eo: Likewise.
20694 * localedata/locales/es_CU: Likewise.
20695 * localedata/locales/es_EC: Likewise.
20696 * localedata/locales/es_ES: Likewise.
20697 * localedata/locales/es_US: Likewise.
20698 * localedata/locales/et_EE: Likewise.
20699 * localedata/locales/fa_IR: Likewise.
20700 * localedata/locales/fi_FI: Likewise.
20701 * localedata/locales/fil_PH: Likewise.
20702 * localedata/locales/fur_IT: Likewise.
20703 * localedata/locales/gez_ER@abegede: Likewise.
20704 * localedata/locales/ha_NG: Likewise.
20705 * localedata/locales/hr_HR: Likewise.
20706 * localedata/locales/hsb_DE: Likewise.
20707 * localedata/locales/hu_HU: Likewise.
20708 * localedata/locales/ig_NG: Likewise.
20709 * localedata/locales/ik_CA: Likewise.
20710 * localedata/locales/is_IS: Likewise.
20711 * localedata/locales/iso14651_t1_pinyin: Likewise.
20712 * localedata/locales/kk_KZ: Likewise.
20713 * localedata/locales/ku_TR: Likewise.
20714 * localedata/locales/ky_KG: Likewise.
20715 * localedata/locales/ln_CD: Likewise.
20716 * localedata/locales/lt_LT: Likewise.
20717 * localedata/locales/lv_LV: Likewise.
20718 * localedata/locales/mi_NZ: Likewise.
20719 * localedata/locales/ml_IN: Likewise.
20720 * localedata/locales/mn_MN: Likewise.
20721 * localedata/locales/mr_IN: Likewise.
20722 * localedata/locales/mt_MT: Likewise.
20723 * localedata/locales/nb_NO: Likewise.
20724 * localedata/locales/om_KE: Likewise.
20725 * localedata/locales/os_RU: Likewise.
20726 * localedata/locales/pl_PL: Likewise.
20727 * localedata/locales/ps_AF: Likewise.
20728 * localedata/locales/ro_RO: Likewise.
20729 * localedata/locales/ru_RU: Likewise.
20730 * localedata/locales/ru_UA: Likewise.
20731 * localedata/locales/sc_IT: Likewise.
20732 * localedata/locales/se_NO: Likewise.
20733 * localedata/locales/si_LK: Likewise.
20734 * localedata/locales/sq_AL: Likewise.
20735 * localedata/locales/sv_FI: Likewise.
20736 * localedata/locales/sv_FI@euro: Likewise.
20737 * localedata/locales/sv_SE: Likewise.
20738 * localedata/locales/szl_PL: Likewise.
20739 * localedata/locales/tg_TJ: Likewise.
20740 * localedata/locales/ti_ER: Likewise.
20741 * localedata/locales/tk_TM: Likewise.
20742 * localedata/locales/tl_PH: Likewise.
20743 * localedata/locales/tr_TR: Likewise.
20744 * localedata/locales/tt_RU: Likewise.
20745 * localedata/locales/tt_RU@iqtelif: Likewise.
20746 * localedata/locales/ug_CN: Likewise.
20747 * localedata/locales/uk_UA: Likewise.
20748 * localedata/locales/uz_UZ: Likewise.
20749 * localedata/locales/uz_UZ@cyrillic: Likewise.
20750 * localedata/locales/vi_VN: Likewise.
20751 * localedata/locales/yi_US: Likewise.
20752 * localedata/locales/yo_NG: Likewise.
20753
20754 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20755
20756 * gen-locales.mk: Make test files which contain @ modifiers in their
20757 name work.
20758 * localedata/gen-locale.sh: Likewise.
20759
20760 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20761
20762 * posix/tst-fnmatch.input: Fix results for range expressions
20763 for non C locales.
20764 * posix/tst-regexloc.c: Do not use a range expression for
20765 de_DE.ISO-8859-1 locale.
20766
20767 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20768
20769 * posix/bug-regex5.c: Fix test case because with the new
20770 iso14651_t1_common file, the da_DK locale now has 6 collating elements
20771 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
20772 file.
20773
20774 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20775
20776 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
20777 downloaded from ISO, the collation order of @-. and space has changed.
20778 Therefore, this test file needed to be adapted.
20779 * localedata/fr_CA.UTF-8.in: Likewise.
20780 * localedata/fr_FR.UTF-8.in: Likewise.
20781 * localedata/uk_UA.UTF-8.in: Likewise.
20782
20783 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20784
20785 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
20786 order of ȥ in the new iso14651_t1_common file.
20787 * localedata/pl_PL.UTF-8.in: Likewise.
20788
20789 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20790
20791 * localedata/locales/iso14651_t1_common: Add sections for various
20792 scripts to the iso14651_t1_common file.
20793
20794 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20795
20796 * localedata/locales/iso14651_t1_common: Use the code point of a
20797 character in the fourth collation level instead of IGNORE for all
20798 entries which have IGNORE on all 4 levels.
20799
20800 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20801
20802 * localedata/locales/iso14651_t1_common: Add some convenient collation
20803 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
20804 rules similar to those in CLDR.
20805
20806 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20807
20808 * localedata/locales/iso14651_t1_common: The new version of this
20809 file downloaded from ISO contained several syntax errors which
20810 are fixed by this patch.
20811
20812 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20813
20814 * localedata/locales/iso14651_t1_common: replace all <U.....>
20815 with <U000.....> because glibc understands only 4 digit or 8 digit
20816
20817 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20818
20819 * localedata/locales/iso14651_t1_common: Necessary changes
20820 to make the file downloaded from ISO usable by glibc.
20821
20822 2018-02-27 Mike FABIAN <mfabian@redhat.com>
20823
20824 [BZ #14095]
20825 * localedata/locales/iso14651_t1_common: Update file to
20826 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
20827
20828 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
20829
20830 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
20831 of <nptl/pthreadP.h>
20832 (thread_attr_compare): Move function to...
20833 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
20834 * sysdeps/nptl/timer_routines.h: ... new header.
20835 * sysdeps/mach/hurd/gai_misc.h: New file.
20836
20837 2018-02-26 Joseph Myers <joseph@codesourcery.com>
20838
20839 * string/strcoll_l.c: Include <libc-diag.h>.
20840 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
20841 declarations of seq1 and seq2.
20842
20843 [BZ #15105]
20844 * stdlib/atoi.c (atoi): Use libc_hidden_def.
20845 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
20846
20847 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
20848
20849 [BZ #22433]
20850 [BZ #22807]
20851 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
20852 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
20853 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
20854 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
20855 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
20856 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
20857
20858 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20859
20860 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
20861 macros used in __ptrace_request.
20862
20863 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
20864
20865 [BZ #22792]
20866 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
20867 to $(CC).
20868 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
20869 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
20870 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
20871 <tcb-offsets.h>.
20872
20873 2018-02-23 Joseph Myers <joseph@codesourcery.com>
20874
20875 [BZ #15105]
20876 * ctype/ctype.c (tolower): Use libc_hidden_def.
20877 (toupper): Likewise.
20878 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
20879 [!_ISOMAC] (toupper): Likewise.
20880
20881 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20882
20883 * localedata/Makefile: Remove --quiet argument when
20884 installing locales
20885
20886 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20887
20888 [BZ #17438]
20889 * localedata/locales/pt_BR (LC_TIME): use / instead of -
20890 in d_fmt.
20891 * localedata/locales/pt_PT (LC_TIME): likewise
20892
20893 2018-02-23 Mike FABIAN <mfabian@redhat.com>
20894
20895 [BZ #22646]
20896 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
20897 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
20898 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
20899
20900 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20901
20902 * sysdeps/sparc/fpu/libm-test-ulps: Update.
20903
20904 * nptl/Makefile (routines): Remove unregister-atfork.
20905 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
20906 (fork_handler_alloc): Remove function.
20907 (fork_handlers, fork_handler_init): New variables.
20908 (__fork_lock): Rename to atfork_lock.
20909 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
20910 to use a dynamic array to add/remove atfork handlers.
20911 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20912 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
20913 Remove declaration.
20914 (fork_handler): Remove next, refcntr, and need_signal member.
20915 (__run_fork_handler_type): New enum.
20916 (__run_fork_handlers): New prototype.
20917 * nptl/register-atfork.c: Remove file.
20918 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
20919
20920 * sysdeps/nptl/nptl-signals.h: Move to ...
20921 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
20922 comments.
20923 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
20924 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
20925 unnecessary check for SIGTIMER.
20926 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
20927 remove unnecessary removal of SIGTIMER.
20928 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
20929 include-signals.h rename.
20930 * nptl/pthreadP.h: Likewise.
20931 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
20932 __is_internal_signal instead of __nptl_is_internal_signal.
20933
20934 2018-02-22 Andrew Waterman <andrew@sifive.com>
20935
20936 [BZ # 22884]
20937 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
20938 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
20939 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
20940 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
20941
20942 2018-02-22 DJ Delorie <dj@delorie.com>
20943
20944 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
20945
20946 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
20947
20948 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
20949 do_misaligned, not misaligned8.
20950
20951 2018-02-22 Steve Ellcey <sellcey@cavium.com>
20952
20953 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
20954 Add memcpy_thunderx2.
20955 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
20956 Increment to 4.
20957 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
20958 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
20959 and IS_THUNDERX2PA checks.
20960 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
20961 Use macro to set name appropriately.
20962 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
20963 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
20964 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
20965 New macro.
20966 (IS_THUNDERX2): New macro.
20967
20968 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
20969
20970 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20971
20972 2018-02-21 Zack Weinberg <zackw@panix.com>
20973
20974 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
20975 Define here, unconditionally.
20976 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
20977 * libio/libioP.h: Remove #if 0 blocks.
20978 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
20979 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
20980 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
20981
20982 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
20983 Assume weak_alias is always defined.
20984
20985 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
20986 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
20987 Remove #if 0 and #ifdef TODO blocks.
20988 Assume text_set_element is always defined.
20989
20990 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
20991 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
20992 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
20993
20994 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
20995 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
20996 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
20997 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
20998 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
20999 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21000 Reformat bit flags for _flags field to make occupancy clearer.
21001 Update commentary.
21002 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21003 Keep definitions consistent with those in libio/libio.h.
21004
21005 * libio/libio.h (_IO_file_flags): Remove macro.
21006 All uses changed to _flags.
21007
21008 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21009 (__HAVE_COLUMN, _IO_BE): Don't define.
21010 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21011 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21012 * libio/libioP.h (EOF): Don't define.
21013 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21014 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21015 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21016 testing _IO_UNIFIED_JUMPTABLES.
21017
21018 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21019 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21020 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21021 (_IO_size_t): Delete; all uses changed to size_t.
21022 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21023 (_IO_off_t): Delete; all uses changed to off_t.
21024 (_IO_off64_t): Delete; all uses changed to off64_t.
21025 (_IO_pid_t): Delete; all uses changed to pid_t.
21026 (_IO_uid_t): Delete; all uses changed to uid_t.
21027 (_IO_wint_t): Delete; all uses changed to wint_t.
21028 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21029 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21030 (_IO_cookie_io_functions_t): Delete; all uses changed to
21031 cookie_io_functions_t.
21032 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21033 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21034 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21035 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21036
21037 * libio/iofopncook.c: Remove unnecessary forward declarations.
21038 * libio/iolibio.h: Correct outdated commentary.
21039 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21040 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21041 Remove unnecessary casts.
21042 * stdio-common/getline.c: Use _IO_getdelim directly.
21043 Don't redefine ssize_t.
21044 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21045 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21046 Remove outdated comments.
21047 * stdio-common/vfscanf.c: Don't redefine va_list.
21048
21049 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21050 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21051 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21052 which are always true, and __cplusplus, which is always false.
21053
21054 2018-02-21 Joseph Myers <joseph@codesourcery.com>
21055
21056 [BZ #15105]
21057 [BZ #19463]
21058 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21059 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21060 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21061 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21062 libc_hidden_proto.
21063 [!_ISOMAC] (putc_unlocked): Likewise.
21064 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21065 define inline if [__USE_EXTERN_INLINES].
21066 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21067 putc_unlocked.
21068
21069 [BZ #15105]
21070 [BZ #19463]
21071 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21072 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21073 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21074 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21075 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21076 getc_unlocked.
21077 * time/tzfile.c (__tzfile_read): Likewise.
21078
21079 2018-02-21 Mike FABIAN <mfabian@redhat.com>
21080
21081 [BZ #22517]
21082 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21083
21084 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21085
21086 * io/fcntl.h: Fix a typo in a comment.
21087
21088 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
21089
21090 [BZ #22862]
21091 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21092 define _DEFAULT_SOURCE.
21093 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21094
21095 2018-02-21 Florian Weimer <fweimer@redhat.com>
21096
21097 [BZ #20890]
21098 * elf/cache.c (save_cache): Call fsync on temporary file before
21099 renaming it.
21100 (save_aux_cache): Call fdatasync on temporary file before renaming
21101 it.
21102
21103 2018-02-21 Florian Weimer <fweimer@redhat.com>
21104
21105 [BZ #22787]
21106 * include/caller.h: Remove file.
21107 * elf/dl-caller.c: Likewise.
21108 * elf/Makefile (dl-routines): Remove dl-caller.
21109 (shared-only-routines): Do not add dl-caller.
21110 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21111 __check_caller.
21112 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21113 member.
21114 (dl_open_worker): Do not call __check_caller.
21115 (_dl_open): Do not set caller_dl_open member.
21116 * elf/rtld.c (_rtld_global_ro): Do not initialize
21117 _dl_check_caller member.
21118 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21119 _dl_check_caller member.
21120 (_dl_check_caller): Remove declaration.
21121 * sysdeps/unix/sysv/linux/dl-execstack.c
21122 (_dl_make_stack_executable): Do not call __check_caller.
21123
21124 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21125
21126 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
21127 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
21128
21129 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21130
21131 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21132 description.
21133
21134 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
21135
21136 [BZ #16335]
21137 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21138 of 199606L, 200112L, and 200809L.
21139 (_XOPEN_SOURCE): Document special values of 600 and 700.
21140 (_ISOC11_SOURCE): Document macro.
21141 (_ATFILE_SOURCE): Likewise.
21142 (_FORTIFY_SOURCE): Likewise.
21143
21144 2018-02-19 Joseph Myers <joseph@codesourcery.com>
21145
21146 [BZ #15105]
21147 [BZ #19463]
21148 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21149 and define as weak alias of __ferror_unlocked. Use
21150 libc_hidden_weak.
21151 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21152 libc_hidden_proto.
21153 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21154 function if [__USE_EXTERN_INLINES].
21155 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21156 ferror_unlocked.
21157
21158 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
21159
21160 [BZ #6889]
21161 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21162
21163 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21164
21165 [BZ #22818]
21166 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21167 the GLIBC_2.1 version.
21168
21169 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21170
21171 [BZ #21508]
21172 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21173 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21174 intl/tst-gettext-de.po from po/de.po by removing the
21175 POT-Creation-Date line.
21176 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21177 ../po/de.po.
21178 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21179 ../po/de.po.
21180
21181 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21182
21183 * mach/Makefile (headers): Add mach/param.h.
21184 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21185 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
21186 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21187 (__ptsname_r): Move implementation to...
21188 (__ptsname_internal): ... new function. Add filling the STP
21189 structure.
21190
21191 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
21192
21193 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21194 idouble to 1 ULP.
21195
21196 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
21197
21198 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21199 syntax.
21200
21201 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21202
21203 * nptl/Makefile (tst-mutex8-ENV): Delete.
21204 * nptl/tst-mutex8.c (check_type):
21205 Add runtime check if mutex will be elided.
21206
21207 2018-02-15 Joseph Myers <joseph@codesourcery.com>
21208
21209 [BZ #20980]
21210 [BZ #21234]
21211 * manual/install.texi (Configuring and compiling): Describe
21212 passing CC and CFLAGS on configure command line, not as
21213 environment variables. Use @code markup on those variables.
21214 Specify what options go in CC and what go in CFLAGS. Note the
21215 requirement to compile with optimization.
21216 * INSTALL: Regenerated.
21217
21218 [BZ #18124]
21219 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21220 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21221 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21222 __sigprocmask instead of sigprocmask.
21223 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21224 Likewise.
21225 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21226 __sigsetjmp and sigprocmask.
21227
21228 [BZ #15105]
21229 * include/argz.h (argz_next): Use libc_hidden_proto.
21230 (__argz_next): Likewise.
21231 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21232 (argz_next): Use libc_hidden_weak.
21233
21234 [BZ #15105]
21235 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21236 libc_hidden_proto.
21237 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21238 libc_hidden_def.
21239
21240 [BZ #15105]
21241 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21242 libc_hidden_proto.
21243 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21244
21245 [BZ #15105]
21246 [BZ #19463]
21247 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21248 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21249 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21250 (__feof_unlocked): New declaration, and inline function if
21251 [__USE_EXTERN_INLINES].
21252 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21253 instead of feof_unlocked.
21254 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21255 * nss/nsswitch.c (nss_parse_file): Likewise.
21256 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21257 Likewise.
21258 * time/getdate.c (__getdate_r): Likewise.
21259 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21260 Define as macro to call __feof_unlocked.
21261
21262 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21263
21264 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21265
21266 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21267
21268 * math/Makefile: Remove mpexp.c and mplog.c
21269 * sysdeps/i386/fpu/mpexp.c: Delete file.
21270 * sysdeps/i386/fpu/mplog.c: Likewise.
21271 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21272 * sysdeps/ia64/fpu/mplog.c: Likewise.
21273 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21274 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21275 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21276 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21277 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21278 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21279 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21280 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21281 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21282 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21283 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21284 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21285 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21286 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21287 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21288 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21289
21290 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21291
21292 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21293
21294 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21295
21296 * sysdeps/sh/libm-test-ulps: Update.
21297
21298 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21299
21300 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21301 idouble to 1 ULP.
21302
21303 2018-02-12 Zack Weinberg <zackw@panix.com>
21304
21305 [BZ #19239]
21306 * posix/sys/types.h: Don't include sys/sysmacros.h.
21307 * misc/sys/sysmacros.h: Remove the conditional deprecation
21308 warnings for the macros defined by this header.
21309
21310 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21311
21312 * manual/probes.texi: Remove slowexp probes.
21313 * math/Makefile: Remove slowexp.
21314 * sysdeps/generic/math_private.h (__slowexp): Remove.
21315 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21316 document error bounds.
21317 * sysdeps/i386/fpu/slowexp.c: Remove.
21318 * sysdeps/ia64/fpu/slowexp.c: Remove.
21319 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21320 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21321 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21322 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21323 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21324 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21325 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21326 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21327 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21328 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21329 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21330
21331 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21332
21333 [BZ #13932]
21334 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21335 * benchtests/pow-inputs: Update comment for slow path cases.
21336 * manual/probes.texi (slowpow_p10): Delete removed probe.
21337 (slowpow_p10): Likewise.
21338 * math/Makefile: Remove halfulp.c and slowpow.c.
21339 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21340 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21341 (__halfulp): Remove.
21342 (__slowpow): Remove.
21343 * sysdeps/i386/fpu/halfulp.c: Delete file.
21344 * sysdeps/i386/fpu/slowpow.c: Likewise.
21345 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21346 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21347 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21348 improve comments and add error analysis.
21349 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21350 (power1): Remove function:
21351 (log1): Remove error argument, add error analysis.
21352 (my_log2): Remove function.
21353 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21354 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21355 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21356 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21357 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21358 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21359 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21360 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21361 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21362 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21363 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21364 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21365 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21366 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21367
21368 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21369
21370 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21371 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21372
21373 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21374
21375 [BZ #22433]
21376 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21377 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21378 and PTRACE_SETHBPREGS.
21379
21380 2018-02-10 Zack Weinberg <zackw@panix.com>
21381
21382 [BZ #22830]
21383 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21384 correctly.
21385 * malloc/tst-malloc-stats-cancellation.c: New test case.
21386 * malloc/Makefile: Add new test case.
21387
21388 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21389
21390 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21391
21392 2018-02-10 Joseph Myers <joseph@codesourcery.com>
21393
21394 * math/Makefile (libm-narrow-fns): Add add.
21395 (libm-test-funcs-narrow): Likewise.
21396 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21397 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21398 * math/gen-auto-libm-tests.c (test_functions): Add add.
21399 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21400 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21401 (NARROW_ADD_TRIVIAL): Likewise.
21402 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21403 macro.
21404 (__daddl): Likewise.
21405 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21406 dadd.
21407 (CFLAGS-nldbl-dadd.c): New variable.
21408 (CFLAGS-nldbl-fadd.c): Likewise.
21409 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21410 __nldbl_daddl.
21411 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21412 prototype.
21413 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21414 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21415 * math/auto-libm-test-in: Add tests of add.
21416 * math/auto-libm-test-out-narrow-add: New generated file.
21417 * math/libm-test-narrow-add.inc: New file.
21418 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21419 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21420 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21421 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21422 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21423 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21424 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21425 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21426 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21427 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21428 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21429 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21430 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21431 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21432 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21433 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21434 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21435 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21436 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21437 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21438 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21439 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21440 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21441 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21442 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21443 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21444 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21445 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21446 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21447 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21448 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21449 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21453 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21454 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21455 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21456 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21457 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21458 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21459 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21460 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21461 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21462 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21463 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21464
21465 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21466 (f128-pairs): New variable.
21467 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21468 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21469 to CFLAGS.
21470 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21471 Also make tests add $(f128-loader-link) to gnulib-tests.
21472
21473 2018-02-09 DJ Delorie <dj@redhat.com>
21474
21475 [BZ #22827]
21476 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21477 64-bit ELF type for 64-bit ELF objects.
21478
21479 2018-02-09 Joseph Myers <joseph@codesourcery.com>
21480
21481 * math/libm-test-driver.c (snan_tests_arg): New variable.
21482 * math/libm-test-support.h (snan_tests_arg): New declaration.
21483 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21484
21485 * math/Makefile (test-type-pairs): New variable.
21486 (test-type-pairs-f64xf128-yes): Likewise.
21487 (tests): Add test-narrow-macros.
21488 (libm-test-funcs-narrow): New variable.
21489 (libm-test-c-narrow): Likewise.
21490 (generated): Add $(libm-test-c-narrow).
21491 (libm-tests-base-narrow): New variable.
21492 (libm-tests-narrow): Likewise.
21493 (libm-tests): Add $(libm-tests-narrow).
21494 (libm-tests-for-type): Handle $(libm-tests-narrow).
21495 (libm-test-c-narrow-obj): New variable.
21496 ($(libm-test-c-narrow-obj)): New rule.
21497 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21498 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21499 $(o-iterator) to set dependencies and CFLAGS.
21500 * math/gen-auto-libm-tests.c: Document use for narrowing
21501 functions.
21502 (output_for_one_input_case): Take argument NARROW.
21503 (generate_output): Likewise. Update call to
21504 output_for_one_input_case.
21505 (main): Take --narrow option. Update call to generate_output.
21506 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21507 (apply_lit): Update call to _apply_lit.
21508 (apply_arglit): New function.
21509 (parse_args): Handle "a" arguments.
21510 (parse_auto_input): Handle format names using ":".
21511 * math/README.libm-test: Document "a" parameter type.
21512 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21513 (ARG_TYPE_TRUE_MIN): Likewise.
21514 (ARG_TYPE_MAX): Likwise.
21515 (ARG_MIN_EXP): Likewise.
21516 (ARG_MAX_EXP): Likewise.
21517 (ARG_MANT_DIG): Likewise.
21518 (TEST_COND_arg_ibm128): Likewise.
21519 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21520 (TEST_COND_arg_fmt): New macro.
21521 (init_max_error): Update prototype.
21522 * math/libm-test-support.c (test_ibm128): New variable.
21523 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21524 instead of using [TEST_COND_ibm128] conditional.
21525 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21526 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21527 [TEST_NARROW] (TEST_MSG): New definition.
21528 (arg_plus_zero): New macro.
21529 (arg_minus_zero): Likewise.
21530 (arg_plus_infty): Likewise.
21531 (arg_minus_infty): Likewise.
21532 (arg_qnan_value_pl): Likewise.
21533 (arg_qnan_value): Likewise.
21534 (arg_snan_value_pl): Likewise.
21535 (arg_snan_value): Likewise.
21536 (arg_max_value): Likewise.
21537 (arg_min_value): Likewise.
21538 (arg_min_subnorm_value): Likewise.
21539 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21540 (RUN_TEST_LOOP_aa_f): New macro.
21541 (TEST_SUFF): New macro.
21542 (TEST_SUFF_STR): Likewise.
21543 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21544 (TEST_COND_any_ibm128): New macro.
21545 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21546 this_func. Update call to init_max_error.
21547 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21548 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21549 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21550 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21551 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21552 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21553 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21554 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21555 * math/test-math-vector.h (TEST_NARROW): Likewise.
21556 * math/test-arg-double.h: New file.
21557 * math/test-arg-float128.h: Likewise.
21558 * math/test-arg-float32x.h: Likewise.
21559 * math/test-arg-float64.h: Likewise.
21560 * math/test-arg-float64x.h: Likewise.
21561 * math/test-arg-ldouble.h: Likewise.
21562 * math/test-math-narrow.h: Likewise.
21563 * math/test-narrow-macros.c: Likewise.
21564 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21565 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21566 test-narrow-macros-ldbl-64.
21567 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21568
21569 * math/bits/mathcalls-narrow.h: New file.
21570 * include/bits/mathcalls-narrow.h: Likewise.
21571 * math/math-narrow.h: Likewise.
21572 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21573 (__MATHCALL_NARROW_ARGS_2): Likewise.
21574 (__MATHCALL_NARROW_ARGS_3): Likewise.
21575 (__MATHCALL_NARROW_NORMAL): Likewise.
21576 (__MATHCALL_NARROW_REDIR): Likewise.
21577 (__MATHCALL_NARROW): Likewise.
21578 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21579 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21580 defined.
21581 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21582 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21583 (libm-narrow-fns): New variable.
21584 (libm-narrow-types-basic): Likewise.
21585 (libm-narrow-types-ldouble-yes): Likewise.
21586 (libm-narrow-types-float128-yes): Likewise.
21587 (libm-narrow-types-float128-alias-yes): Likewise.
21588 (libm-narrow-types): Likewise.
21589 (libm-routines): Add narrowing functions.
21590 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21591 (libc_feholdexcept_setroundf128): New macro.
21592 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21593 * sysdeps/ieee754/float128/float128_private.h: Include
21594 <math/math-narrow.h>.
21595 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21596 Undefine and redefine.
21597 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21598 (libm_alias_float_ldouble): Undefine and redefine.
21599 (libm_alias_double_ldouble): Likewise.
21600
21601 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21602
21603 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21604
21605 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21606 FPCR/FPSR.
21607
21608 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
21609
21610 * manual/creature.texi: Convert references to gcc.info to gcc.
21611 * manual/stdio.texi: Likewise.
21612 * manual/string.texi: Likewise.
21613
21614 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21615
21616 [BZ #17979]
21617 * posix/bits/types.h (__int_least8_t): New typedef.
21618 (__uint_least8_t): Likewise.
21619 (__int_least16_t): Likewise.
21620 (__uint_least16_t): Likewise.
21621 (__int_least32_t): Likewise.
21622 (__uint_least32_t): Likewise.
21623 (__int_least64_t): Likewise.
21624 (__uint_least64_t): Likewise.
21625 * sysdeps/generic/stdint.h (int_least8_t): Define using
21626 __int_least8_t.
21627 (int_least16_t): Define using __int_least16_t.
21628 (int_least32_t): Define using __int_least32_t.
21629 (int_least64_t): Define using __int_least64_t.
21630 (uint_least8_t): Define using __uint_least8_t.
21631 (uint_least16_t): Define using __uint_least16_t.
21632 (uint_least32_t): Define using __uint_least32_t.
21633 (uint_least64_t): Define using __uint_least64_t.
21634 * wcsmbs/uchar.h: Include <bits/types.h>.
21635 (char16_t): Define using __uint_least16_t conditional only on
21636 [!__USE_ISOCXX11].
21637 (char32_t): Define using __uint_least32_t conditional only on
21638 [!__USE_ISOCXX11].
21639 * wcsmbs/test-char-types.c: New file.
21640 * wcsmbs/Makefile (tests): Add test-char-types.
21641
21642 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21643 version to 4.0.1.
21644
21645 2018-02-07 Zack Weinberg <zackw@panix.com>
21646
21647 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21648 Delete all contents except for definitions of _G_HAVE_MMAP and
21649 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21650 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21651 sysdeps/unix/sysv/linux/_G_config.h. Make same content
21652 change as above.
21653
21654 * libio/libio.h: Don't include bits/_G_config.h here.
21655 Include stddef.h with __need_wchar_t defined. Include
21656 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
21657 Define _IO_iconv_t here, directly.
21658 Don't define _IO_HAVE_ST_BLKSIZE.
21659 * libio/libioP.h: Include _G_config.h here. Move include of
21660 shlib-compat.h up with rest of includes. Simplify conditionals
21661 controlling definition of _IO_JUMPS_OFFSET.
21662
21663 * csu/init.c: Remove always-true #if around entire file.
21664 Don't include stdio.h. Set _IO_stdin_used to hardwired
21665 constant 0x20001, and update commentary.
21666 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
21667 Replace all uses of _G_va_list with __gnuc_va_list.
21668 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
21669 instead of #if _IO_HAVE_ST_BLKSIZE.
21670 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
21671 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
21672 not #ifdef.
21673
21674 * libio/bits/libio.h: Move back to libio/libio.h and adjust
21675 multiple-include guard to match.
21676 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
21677 into this file.
21678 Remove preprocessor conditionals that are always true and/or
21679 redundant to other preprocessor conditionals in the same nest.
21680 Include shlib-compat.h unconditionally.
21681 Error out if _LIBC is not defined, or if _ISOMAC is defined,
21682 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
21683 defined after including stdio.h.
21684 Use __BEGIN_DECLS/__END_DECLS.
21685
21686 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
21687 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
21688 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
21689
21690 2018-02-07 Zack Weinberg <zackw@panix.com>
21691
21692 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
21693 New single-type headers split from _G_config.h.
21694 * libio/bits/types/cookie_io_functions_t.h
21695 * libio/bits/types/struct_FILE.h
21696 New single-type headers split from libio.h.
21697
21698 * libio/Makefile: Install the above new headers. Don't install
21699 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
21700 bits/libio-ldbl.h.
21701 * libio/_G_config.h, libio/libio.h: Delete file.
21702
21703 * libio/bits/libio.h: Remove improper-inclusion guard.
21704 Include stdio.h and don't repeat anything that it does.
21705 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
21706 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
21707 __io_read_fn as cookie_read_function_t,
21708 __io_write_fn as cookie_write_function_t,
21709 __io_seek_fn as cookie_seek_function_t,
21710 __io_close_fn as cookie_close_function_t,
21711 and _IO_cookie_io_functions_t as cookie_io_functions_t.
21712 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
21713 here, in the "compatibility defines" section. Remove an #if 0
21714 block. Use the "body" macros from bits/types/struct_FILE.h to
21715 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
21716 and _IO_ferror_unlocked.
21717 Move prototypes of __uflow and __overflow...
21718
21719 * libio/stdio.h: ...here. Don't include bits/libio.h.
21720 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
21721 directly from stdarg.h. Include bits/types/__fpos_t.h,
21722 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
21723 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
21724 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
21725 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
21726 cookie_io_functions_t, not _IO_cookie_io_functions_t;
21727 __ssize_t, not _IO_ssize_t. Unconditionally define
21728 BUFSIZ as 8192 and EOF as (-1).
21729
21730 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
21731 macros from bits/types/struct_FILE.h instead of _IO_* macros
21732 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
21733 instead of _IO_ssize_t.
21734 * libio/bits/stdio2.h: Similarly.
21735
21736 * libio/iolibio.h: Add multiple-include guard.
21737 Include bits/libio.h after stdio.h.
21738 * libio/libioP.h: Add multiple-include guard.
21739 Include stdio.h and bits/libio.h before iolibio.h.
21740
21741 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
21742 * include/bits/types/cookie_io_functions_t.h
21743 * include/bits/types/struct_FILE.h: New wrappers.
21744
21745 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
21746 Get definitions of _G_fpos_t and _G_fpos64_t from
21747 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
21748 respectively. Remove improper-inclusion guards.
21749
21750 * conform/data/stdio.h-data: Update expectations of va_list.
21751 * scripts/check-installed-headers.sh: Remove special case for
21752 libio.h and _G_config.h.
21753
21754 2018-02-07 Joseph Myers <joseph@codesourcery.com>
21755
21756 [BZ #15105]
21757 [BZ #19463]
21758 * include/sys/sysmacros.h [!_ISOMAC]
21759 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
21760 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
21761 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
21762 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
21763 libc_hidden_proto.
21764 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
21765 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
21766 Likewise.
21767 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
21768 Undefine and redefine to add use __gnu_dev_ prefix.
21769 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
21770 Likewise.
21771 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
21772 and define as hidden inline function.
21773 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
21774 Likewise.
21775 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
21776 Likewise.
21777 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
21778 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
21779 (gnu_dev_minor): Likewise.
21780 (gnu_dev_makedev): Likewise.
21781 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
21782 makedev.
21783 * posix/wordexp.c (exec_comm_child): Likewise.
21784 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
21785 instead of minor and __gnu_dev_major instead of major.
21786 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
21787 __gnu_dev_major instead of major.
21788 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
21789 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
21790 instead of gnu_dev_minor.
21791 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
21792 (SLAVE_P): Likewise.
21793 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
21794 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
21795 instead of major.
21796
21797 [BZ #21313]
21798 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
21799 in another place.
21800 * locale/weightwc.h (findidx): Likewise.
21801
21802 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
21803
21804 * manual/probes.texi (slowlog): Delete documentation of removed probe.
21805 (slowlog_inexact): Likewise
21806 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
21807 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
21808
21809 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
21810
21811 [BZ #22797]
21812 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
21813 missing second underscore to parameter name.
21814
21815 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21816
21817 [BZ #14508]
21818 [BZ #15512]
21819 [BZ #17082]
21820 [BZ #20530]
21821 * bits/byteswap.h: Update file comment. Do not include
21822 <bits/byteswap-16.h>.
21823 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
21824 constant.
21825 (__bswap_16): Define as inline function.
21826 (__bswap_constant_32): Reformat definition.
21827 (__bswap_32): Always define as inline function, not macro, using
21828 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
21829 otherwise __bswap_constant_32.
21830 (__bswap_constant_64): Reformat definition. Do not use
21831 __extension__ here.
21832 (__bswap_64): Always define as inline function, not macro. Use
21833 __extension__ on function definition. Use __builtin_bswap64 if
21834 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
21835 * string/test-endian-file-scope.c: New file.
21836 * string/test-endian-sign-conversion.c: Likewise.
21837 * string/Makefile (headers): Remove bits/byteswap-16.h.
21838 (tests): Add test-endian-file-scope and
21839 test-endian-sign-conversion.
21840 (CFLAGS-test-endian-sign-conversion.c): New variable.
21841 * bits/byteswap-16.h: Remove file.
21842 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
21843 * sysdeps/ia64/bits/byteswap.h: Likewise.
21844 * sysdeps/m68k/bits/byteswap.h: Likewise.
21845 * sysdeps/s390/bits/byteswap-16.h: Likewise.
21846 * sysdeps/s390/bits/byteswap.h: Likewise.
21847 * sysdeps/tile/bits/byteswap.h: Likewise.
21848 * sysdeps/x86/bits/byteswap-16.h: Likewise.
21849 * sysdeps/x86/bits/byteswap.h: Likewise.
21850
21851 [BZ #17721]
21852 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
21853 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
21854 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
21855 199901L] (__restrict): Define to restrict.
21856
21857 [BZ #19667]
21858 * string/testcopy.c: Include <support/support.h>. Do not include
21859 <malloc.h>. Use <support/test-driver.c>.
21860 (main): Rename to do_test. Make static. Use xmalloc instead of
21861 malloc.
21862
21863 [BZ #13575]
21864 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
21865 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
21866 (SSIZE_MAX): Define to INT_MAX.
21867 * posix/test-ssize-max.c: New file.
21868 * posix/Makefile (tests): Add test-ssize-max.
21869
21870 [BZ #19668]
21871 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
21872 <support/support.h>. Do not include <malloc.h>.
21873 (query_auxv): Use xmalloc instead of malloc.
21874
21875 [BZ #14553]
21876 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
21877 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
21878 instead of loff_t.
21879
21880 2018-02-06 Florian Weimer <fweimer@redhat.com>
21881
21882 [BZ #18023]
21883 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
21884 Use scratch_buffer instead of extend_alloca.
21885
21886 2018-02-06 Zack Weinberg <zackw@panix.com>
21887
21888 * libio/stdio.h: Don't define getc or putc as macros.
21889 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
21890 not _IO_getc and _IO_putc.
21891
21892 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
21893 * stdio-common/tstgetln.c: Don't redefine ssize_t.
21894
21895 2018-02-06 Joseph Myers <joseph@codesourcery.com>
21896
21897 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
21898 (TCP_FASTOPEN_NO_COOKIE): Likewise.
21899
21900 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
21901
21902 [BZ #14890]
21903 * elf/elf.h (NT_PRFPREG): New macro.
21904 (NT_S390_VXRS_LOW): Likewise.
21905 (NT_S390_VXRS_HIGH): Likewise.
21906 (NT_S390_GS_CB): Likewise.
21907 (NT_S390_GS_BC): Likewise.
21908 (NT_S390_RI_CB): Likewise.
21909
21910 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
21911 (MAP_SYNC): New macro.
21912 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
21913 Likewise.
21914 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
21915 (MAP_SYNC): Likewise.
21916 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
21917 (MAP_SYNC): Likewise.
21918 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
21919 (MAP_SYNC): Likewise.
21920 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
21921 (MAP_SYNC): Likewise.
21922 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
21923 (MAP_SYNC): Likewise.
21924 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
21925 (MAP_SYNC): Likewise.
21926 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
21927 Likewise.
21928 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
21929 Likewise.
21930
21931 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
21932 (MAP_SHARED_VALIDATE): New macro.
21933 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
21934 (MAP_SHARED_VALIDATE): Likewise.
21935
21936 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21937
21938 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
21939 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
21940 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21941
21942 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21943
21944 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
21945 (DT_NUM): Updated to 35.
21946
21947 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21948
21949 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
21950 __builtin_expect with __glibc_likely and __glibc_unlikely.
21951 (elf_machine_rela): Likewise.
21952 (elf_machine_lazy_rel): Likewise.
21953
21954 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21955
21956 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
21957 __builtin_expect with __glibc_likely and __glibc_unlikely.
21958 (elf_machine_lazy_rel): Likewise.
21959
21960 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
21961
21962 [BZ #22638]
21963 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
21964 SHARED.
21965 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
21966
21967 2018-02-05 Andreas Schwab <schwab@suse.de>
21968
21969 [BZ #22761]
21970 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
21971 string.
21972
21973 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
21974
21975 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
21976 not check against PTHREAD_STACK_MIN.
21977
21978 2018-02-02 Sean McKean <smckean83@gmail.com>
21979
21980 [BZ #22735]
21981 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
21982
21983 2018-02-02 Florian Weimer <fweimer@redhat.com>
21984
21985 [BZ #22753]
21986 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
21987 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
21988 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
21989 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
21990 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
21991 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
21992 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
21993 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
21994 * manual/llio.texi (Scatter-Gather): Mention offset -1.
21995 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
21996 * misc/tst-preadvwritev2.c (do_test): Call it.
21997 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
21998
21999 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22000
22001 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22002
22003 * benchtests/bench-memcmp.c: Print json instead of plain text.
22004
22005 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22006 every test run.
22007
22008 2018-02-01 Joseph Myers <joseph@codesourcery.com>
22009
22010 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22011 version to 4.15.
22012 (s390_sthyi): New syscall.
22013
22014 * sysdeps/generic/ldbl-classify-compat.h: New file.
22015 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22016 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22017 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22018 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22019 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22020 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22021 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22022 <ldbl-classify-compat.h>.
22023 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22024 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22025 <ldbl-classify-compat.h>.
22026 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22027 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22028 <ldbl-classify-compat.h>.
22029 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22030 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22031 <ldbl-classify-compat.h>.
22032 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22033 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22034 <ldbl-classify-compat.h>.
22035 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22036 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22037 <ldbl-classify-compat.h>.
22038 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22039 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22040 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22041 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22042 * sysdeps/microblaze/math_private.h: Likewise.
22043 * sysdeps/nios2/math_private.h: Likewise.
22044 * sysdeps/sh/math_private.h: Likewise.
22045
22046 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22047 * sysdeps/m68k/coldfire/math_private.h: ... here.
22048 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22049 * sysdeps/tile/math_private.h: Likewise.
22050 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22051 Remove macro.
22052 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22053 Likewise.
22054
22055 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22056 Remove macro.
22057 (libc_fetestexcept): Likewise.
22058 (libc_feupdateenv_test): Likewise.
22059 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22060 (libc_fetestexcept): Likewise.
22061 (libc_feupdateenv_test): Likewise.
22062 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22063 (libc_fetestexcept): Likewise.
22064 (libc_feupdateenv_test): Likewise.
22065 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22066 (libc_fetestexcept): Likewise.
22067 (libc_feupdateenv_test): Likewise.
22068
22069 * sysdeps/generic/math_private.h
22070 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22071 New inline function.
22072 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22073 Likewise.
22074
22075 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22076 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22077 * sysdeps/generic/math_private.h
22078 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22079 inline function.
22080 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22081 Likewise.
22082 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22083 Likewise.
22084 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22085 Likewise.
22086 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22087 Likewise.
22088 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22089 Likewise.
22090 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22091 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22092 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22093 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22094 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22095 (__fegetenv): Likewise.
22096 (fesetenv): Likewise.
22097 (__fesetenv): Likewise.
22098 (feupdateenv): Likewise.
22099 (__feupdateenv): Likewise.
22100 (fegetround): Likewise.
22101 (__fegetround): Likewise.
22102 (fesetround): Likewise.
22103 (__fesetround): Likewise.
22104
22105 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22106 (feraiseexcept): New macro.
22107 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22108 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22109 Remove macro.
22110 (__feraiseexcept): Likewise.
22111 (feclearexcept): Likewise.
22112 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22113 (__feraiseexcept): Likewise.
22114 (feclearexcept): Likewise.
22115 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22116 (__feraiseexcept): Likewise.
22117 (feclearexcept): Likewise.
22118 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22119 (__feraiseexcept): Likewise.
22120 (feclearexcept): Likewise.
22121 (fetestexcept): Likewise.
22122
22123 * sysdeps/m68k/coldfire/math-tests.h: New file.
22124
22125 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22126 * sysdeps/m68k/bits/fenv.h: ... here.
22127 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22128 not define.
22129 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22130 Likewise.
22131 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22132 Likewise.
22133 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22134 Likewise.
22135 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22136 Likewise.
22137 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22138 Define to 0.
22139 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22140 (__FE_UNDEFINED): New enum constant.
22141 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22142 Do not define.
22143 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22144 Likewise.
22145 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22146 Likewise.
22147 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22148 to match generic bits/fenv.h.
22149 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22150 Do not define.
22151
22152 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22153 packed on bits.
22154 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22155 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22156 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22157 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22158
22159 2018-02-01 Carlos O'Donell <carlos@redhat.com>
22160 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22161 Joseph Myers <joseph@codesourcery.com>
22162
22163 [BZ #21314]
22164 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22165 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22166 computation using c.
22167 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22168 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22169 computation using c.
22170
22171 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22172
22173 * version.h (RELEASE): Set to "development".
22174 (VERSION): Set to "2.27.9000".
22175 * NEWS (2.28): New section.
22176
22177 * version.h (RELEASE): Set to "stable".
22178 (VERSION): Set to "2.27".
22179 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22180
22181 * NEWS: Add the list of bugs fixed in 2.27.
22182
22183 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22184
22185 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22186 against PTHREAD_STACK_MIN.
22187
22188 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22189
22190 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22191 New entries.
22192 (Rafał Lużyński, Andreas Schwab): Update.
22193
22194 2018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
22195
22196 [BZ #10871]
22197 * NEWS: List the languages which actually use the alternative
22198 months feature in this release. Also explain that "alt_mon" and
22199 "ab_alt_mon" are optional.
22200
22201 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22202
22203 [BZ #22765]
22204 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22205
22206 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22207
22208 * manual/install.texi (Tools for Compilation): Update the newest
22209 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22210 * INSTALL: Regenerated.
22211
22212 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
22213
22214 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22215 instead of __builtin_expect.
22216
22217 2018-01-30 Florian Weimer <fweimer@redhat.com>
22218
22219 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22220 data.
22221 * nss/tst-nss-getpwent.c (do_test): Likewise.
22222
22223 2018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
22224
22225 [BZ #10871]
22226 * localedata/locales/hr_HR (mon): Rename to...
22227 (alt_mon): This.
22228 (mon): Import from CLDR (genitive case).
22229 (d_t_fmt): Update the comment.
22230
22231 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22232
22233 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22234 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22235 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22236
22237 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22238
22239 * mach/Versions: Fix version when __mach_host_self_ was added.
22240 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22241 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22242 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22243 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22244 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22245 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22246 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22247 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22248 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22249 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22250 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22251 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
22252 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22253 || to respect codestyle.
22254 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22255 (do_test_bz20181): Rename accordingly.
22256 * malloc/malloc.c: Include <assert.h>.
22257 (assert): Do not define.
22258 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
22259 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22260 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
22261 * sysdeps/mach/hurd/hp-timing.h: New file.
22262 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
22263
22264 2018-01-29 Darius Rad <darius@bluespec.com>
22265
22266 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22267
22268 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
22269
22270 * sysdeps/init_array/crti.S (.section .init_array): Add
22271 PREINIT_FUNCTION when defined.
22272 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
22273 * config.h.in: Regenerate.
22274 * manual/platform.texi: Add RISC-V documenation for
22275 __riscv_flush_icache.
22276 * sysdeps/riscv/__longjmp.S: New file.
22277 * sysdeps/riscv/backtrace.c: Likewise.
22278 * sysdeps/riscv/bits/endian.h: Likewise.
22279 * sysdeps/riscv/bits/setjmp.h: Likewise.
22280 * sysdeps/riscv/bits/wordsize.h: Likewise.
22281 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22282 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22283 * sysdeps/riscv/dl-trampoline.S: Likewise.
22284 * sysdeps/riscv/gccframe.h: Likewise.
22285 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22286 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22287 * sysdeps/riscv/machine-gmon.h: Likewise.
22288 * sysdeps/riscv/memusage.h: Likewise.
22289 * sysdeps/riscv/setjmp.S: Likewise.
22290 * sysdeps/riscv/sys/asm.h: Likewise.
22291 * sysdeps/riscv/tls-macros.h: Likewise.
22292 * sysdeps/riscv/dl-tls.h: New file.
22293 * sysdeps/riscv/libc-tls.c: Likewise.
22294 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22295 * sysdeps/riscv/nptl/tls.h: Likewise.
22296 * sysdeps/riscv/stackinfo.h: Likewise.
22297 * sysdeps/riscv/bits/fenv.h: New file.
22298 * sysdeps/riscv/e_sqrtl.c: Likewise.
22299 * sysdeps/riscv/fpu_control.h: Likewise.
22300 * sysdeps/riscv/math-tests.h: Likewise.
22301 * sysdeps/riscv/nofpu/Implies: Likewise.
22302 * sysdeps/riscv/sfp-machine.h: Likewise.
22303 * sysdeps/riscv/tininess.h: Likewise.
22304 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22305 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22306 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22307 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22308 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22309 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22310 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22311 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22312 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22313 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22314 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22315 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22316 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22317 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22318 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22319 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22320 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22321 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22322 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22323 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22324 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22325 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22326 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22327 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22328 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22329 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22330 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22331 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22332 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22333 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22334 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22335 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22336 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22337 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22338 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22339 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22340 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22341 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22342 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22343 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22344 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22345 * sysdeps/riscv/rvf/math_private.h: Likewise.
22346 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22347 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22348 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22349 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22350 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22351 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22352 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22353 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22354 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22355 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22356 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22357 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22358 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22359 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22360 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22361 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
22362 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22363 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22364 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22365 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
22366 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22367 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22368 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22369 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22370 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22371 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22372 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22373 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22374 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
22375 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22376 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22377 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22378 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22379 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22380 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22381 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22382 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22383 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22384 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22385 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22386 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22387 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22388 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22389 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22390 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22391 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22392 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22393 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22394 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22395 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22396 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
22397 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22398 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22399 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
22400 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22401 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22402 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22403 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22404 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22405 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22406 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22407 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22408 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22409 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22410 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22411 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22412 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22413 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
22414 * sysdeps/riscv/Implies: New file.
22415 * sysdeps/riscv/Makefile: Likewise.
22416 * sysdeps/riscv/configure: Likewise.
22417 * sysdeps/riscv/configure.ac: Likewise.
22418 * sysdeps/riscv/nptl/Makefile: Likewise.
22419 * sysdeps/riscv/preconfigure: Likewise.
22420 * sysdeps/riscv/rv64/Implies-after: Likewise.
22421 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22422 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22423 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22424 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22425 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22426 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22427 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22428 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22429 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22430 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22431 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
22432 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22433 (Config): Likewise.
22434
22435 2018-01-29 Florian Weimer <fweimer@redhat.com>
22436
22437 [BZ #22701]
22438 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22439 libnsl_hidden_proto.
22440 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22441 libnsl_hidden_proto.
22442 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22443 * nis/Makefile (libnsl-routines): Add nss-default only for
22444 build-obsolete-nsl.
22445 * nis/nis_defaults.c (__nis_default_ttl): Add
22446 libnsl_hidden_nolink_def.
22447 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22448 declaration.
22449 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22450 * nis/ypclnt.c (yp_maplist): Likewise.
22451
22452 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22453
22454 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22455 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22456
22457 2018-01-29 Joseph Myers <joseph@codesourcery.com>
22458
22459 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22460 clean -dxfq for git updates when replacing sources.
22461
22462 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22463 --disable-libcilkrts unconditionally, not just for the final GCC
22464 build for Hurd.
22465
22466 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22467 version to 4.15.
22468
22469 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22470
22471 [BZ #10871]
22472 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22473 case).
22474
22475 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22476
22477 [BZ #10871]
22478 * localedata/locales/be_BY (mon): Rename to...
22479 (alt_mon): This, then synchronize with CLDR (nominative case).
22480 (abmon): Rename to...
22481 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22482 (mon): Import from CLDR (genitive case).
22483 (abmon): Likewise.
22484 * localedata/locales/be_BY@latin (mon): Rename to...
22485 (alt_mon): This.
22486 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22487
22488 * localedata/locales/be_BY@latin (lang_name): Reworded to
22489 "biełaruskaja mova".
22490
22491 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22492
22493 [BZ #10871]
22494 * localedata/locales/el_CY (mon): Renamed to...
22495 (alt_mon): This.
22496 (mon): Import from CLDR (genitive case).
22497 * localedata/locales/el_GR: Likewise.
22498
22499 2018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
22500
22501 [BZ #10871]
22502 * localedata/locales/ru_RU (mon): Rename to...
22503 (alt_mon): This.
22504 (abmon): Rename to...
22505 (ab_alt_mon): This.
22506 (mon): Import from CLDR (genitive case).
22507 (abmon): Copy from the old content except the 5th month which is
22508 now in the genitive case, even when abbreviated.
22509 * localedata/locales/ru_UA: Likewise.
22510 * time/tst-strptime.c (day_tests): Add an actual example of
22511 a difference between %b and %Ob in Russian.
22512
22513 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22514
22515 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
22516 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22517 a `c' variable.
22518 * resolv/res-close.c: Include <stdlib.h>.
22519 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22520 <sys/wait.h>, <time.h>, <sys/uio.h>.
22521 (NOT_CANCEL_H): Add inclusion guard.
22522 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
22523 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22524 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22525 return 0.
22526 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22527 vm_address_t * to ElfW(Addr) * for dl_main parameter.
22528 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22529 instead of void *.
22530 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22531 timer_ptr2id to cast struct timer_node * to void *.
22532 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22533 --disable-libcilkrts to gcc configure.
22534 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22535 and make them the default for now.
22536 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22537 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
22538 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22539 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22540 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22541 MACH_IPC_COMPAT.
22542 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22543 __task_terminate would ever return successfully.
22544 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22545 to global scope.
22546 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22547 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
22548 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22549 critical section to make code simpler and avoid warning.
22550 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22551 critical section to make code simpler and avoid warning.
22552 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22553 const char * instead of char *.
22554 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22555 __hurd_file_name_split, hurd_file_name_split,
22556 __hurd_directory_name_split, hurd_directory_name_split,
22557 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22558 hurd_file_name_path_lookup): Make lookup function parameter take a
22559 const char *name instead of char *name.
22560 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22561 __hurd_directory_name_split): Likewise.
22562 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22563 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
22564 * sysdeps/mach/hurd/check_native.c: New file.
22565 * sysdeps/mach/hurd/check_pf.c: New file.
22566 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22567 (__freeifaddrs): Define macro to freeifaddrs.
22568 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22569 * sysdeps/mach/libmachuser.abilist: New file.
22570 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22571 (do_test_bz20181): Rename accordingly.
22572 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
22573 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22574 <sys/mount.h>.
22575 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22576 version only if __USE_EXTERN_INLINES is defined.
22577 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22578 __hurd_sockfail): Likewise.
22579 (_hurd_fd_get): Always declare functions, and provide inline versions
22580 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22581 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22582 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22583 _hurd_port_set): Always declare functions, and provide inline versions
22584 only if __USE_EXTERN_INLINES and _LIBC are defined and
22585 IS_IN(libc).
22586 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22587 _hurd_critical_section_unlock): Likewise.
22588 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22589 * __hurd_threadvar_location): Likewise.
22590 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22591 _hurd_userlink_clear): Likewise.
22592 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22593 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22594 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22595 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22596 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22597 __spin_lock_locked): Likewise.
22598 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22599 __spin_lock_locked): Likewise.
22600 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22601 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22602 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22603 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22604 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
22605 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22606 _POSIX_NO_TRUNC): Define to 0.
22607 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22608 check size against PTHREAD_STACK_MIN.
22609 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22610 IS_IN(libpthread)]: Include <sigsetops.h>.
22611 * mach/Makefile (user-interfaces): Add mach/gnumach.
22612 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22613 * sysdeps/mach/configure (mach_interface_list): Regenerate.
22614 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22615 instead of invalid -1.
22616 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22617 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22618 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22619 <net/ppp_defs.h>.
22620
22621 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
22622
22623 * hurd/fcntl-internal.h: New file.
22624
22625 2018-01-27 James Clarke <jrtc27@jrtc27.com>
22626
22627 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22628
22629 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22630
22631 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22632
22633 [BZ #22701]
22634 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22635 Build only shared objects.
22636
22637 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22638
22639 * README: Update for hppa.
22640
22641 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22642
22643 * sysdeps/sparc/fpu/libm-test-ulps: Update
22644 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
22645
22646 2018-01-26 Carlos O'Donell <carlos@redhat.com>
22647
22648 Revert:
22649
22650 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22651
22652 [BZ #22563]
22653 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22654 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
22655 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
22656 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
22657 to feature_1.
22658
22659 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22660
22661 [BZ #22563]
22662 * bits/types/__cancel_jmp_buf_tag.h: New file.
22663 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
22664 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
22665 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
22666 * nptl/Makefile (headers): Add
22667 bits/types/__cancel_jmp_buf_tag.h.
22668 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
22669 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
22670 * sysdeps/nptl/pthread.h: Include
22671 <bits/types/__cancel_jmp_buf_tag.h>.
22672 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
22673 __cancel_jmp_buf.
22674 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
22675
22676 2018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
22677
22678 [BZ #10871]
22679 * localedata/locales/uk_UA (mon): Renamed to...
22680 (alt_mon): This.
22681 (alt_digits): "0" removed and then renamed to...
22682 (mon): This.
22683 (date_fmt): Definition changed not to use the alternative
22684 digits hack.
22685
22686 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
22687
22688 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
22689 FLAG_RISCV_FLOAT_ABI_DOUBLE.
22690 * elf/elf.h (EF_RISCV_RVC): New define.
22691 (EF_RISCV_FLOAT_ABI): Likewise.
22692 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
22693 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
22694 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22695 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
22696 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
22697 define.
22698 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
22699
22700 2018-01-25 Andreas Schwab <schwab@suse.de>
22701
22702 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
22703 single quotes.
22704 * sysdeps/gnu/configure: Regenerate.
22705 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
22706 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
22708 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
22709 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
22710 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
22711 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
22712 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
22713
22714 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
22715
22716 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
22717 URL, and run autoconf, make it the default for now.
22718
22719 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22720
22721 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22722 soft-float ColdFire configuration.
22723
22724 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
22725 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
22726 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
22727
22728 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
22729 MicroBlaze file.
22730
22731 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
22732 ....
22733 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
22734 ... here.
22735 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
22736 New file.
22737
22738 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
22739 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
22740 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
22741 file.
22742
22743 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22744
22745 [BZ #22742]
22746 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
22747 Rename to __reserved and add comment.
22748 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
22749 Rename to __reserved.
22750
22751 2018-01-24 Joseph Myers <joseph@codesourcery.com>
22752
22753 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
22754 i686-gnu configurations.
22755 (Context.run_builds): Include mig, gnumach and hurd in components
22756 considered.
22757 (Context.checkout): Add mig, gnumach and hurd to components.
22758 (Context.checkout_tar): Add URL mappings for mig, gnumach and
22759 hurd.
22760 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
22761 (Config.build): Install gnumach headers, build mig and install
22762 hurd headers for 'gnu' OS.
22763 (Config.install_gnumach_headers): New function.
22764 (Config.install_hurd_headers): Likewise.
22765 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
22766 when building for 'gnu' OS.
22767
22768 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
22769
22770 * manual/tunables.texi (Hardware Capability Tunables): Fix
22771 spelling.
22772
22773 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
22774
22775 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
22776 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
22777 (ALTMON_11, ALTMON_12): Improve documentation.
22778 * manual/time.texi (strftime): Likewise.
22779
22780 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22781
22782 [BZ #10871]
22783 * localedata/locales/pl_PL: Alternative month names added,
22784 primary month names are genitive now.
22785 * time/tst-strptime.c (day_tests): Actually use a genitive case
22786 of a month name in Polish language.
22787
22788 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22789
22790 [BZ #10871]
22791 * manual/locale.texi: Document ALTMON_1..12 constants for
22792 nl_langinfo. Specify when to use ALTMON instead of MON.
22793 * manual/time.texi (strftime, strptime): Document GNU extension
22794 permitting O modifier with %B and %b. Specify when to use
22795 %OB instead of %B.
22796
22797 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22798
22799 [BZ #10871]
22800 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
22801 names, define them as the same as abbreviated month names explicitly.
22802 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
22803 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
22804 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
22805 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
22806 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
22807 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
22808 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
22809 _NL_WABALTMON_12): New enum constants.
22810 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
22811 wab_alt_mon, and ab_alt_mon_defined members.
22812 (time_output): Output ab_alt_mon and wab_alt_mon members.
22813 (time_read): Read them, initialize them as copies of abmon and wabmon
22814 respectively if they are missing, initialize ab_alt_mon_defined.
22815 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
22816 * locale/programs/locfile-kw.h: Regenerate.
22817 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
22818 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
22819 and ru_RU.UTF-8.
22820 * time/strftime_l.c (a_altmonth, aam_len): New macros.
22821 [!COMPILE_WIDE] (ABALTMON_1): New macro.
22822 (__strftime_internal): Handle %Ob and %Oh formats.
22823 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
22824 (__strptime_internal): Handle %Ob and %Oh formats.
22825 * time/tst-strptime.c (day_tests): Add more tests to parse different
22826 forms of month names including the new %Ob format specifier.
22827
22828 2018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22829
22830 [BZ #10871]
22831 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
22832 define them as the same as primary full month names explicitly.
22833 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
22834 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
22835 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
22836 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
22837 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
22838 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
22839 _NL_WALTMON_12): New enum constants.
22840 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
22841 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
22842 macros.
22843 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
22844 walt_mon, and alt_mon_defined members.
22845 (time_output): Output alt_mon and walt_mon members.
22846 (time_read): Read them, initialize them as copies of mon and wmon
22847 respectively if they are missing, initialize alt_mon_defined.
22848 * locale/programs/locfile-kw.gperf (alt_mon): Define.
22849 * locale/programs/locfile-kw.h: Regenerate.
22850 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
22851 * localedata/tst-langinfo.c (map): Add tests for the new constants
22852 ALTMON_1 .. ALTMON_12.
22853 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
22854 and pl_PL.UTF-8.
22855 * time/strftime_l.c (f_altmonth): New macro.
22856 (__strftime_internal): Handle %OB format.
22857 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
22858 (__strptime_internal): Handle %OB format.
22859 * time/tst-strptime.c (day_tests): Add tests to parse different forms
22860 of month names including the new %OB format specifier.
22861
22862 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22863
22864 [BZ #22685]
22865 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
22866 from ABORT_TRANSACTION.
22867 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
22868 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
22869 ABORT_TRANSACTION_IMPL): Likewise.
22870 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
22871 Linux code, but remove the code that aborts transactions.
22872
22873 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
22874
22875 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
22876
22877 2018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
22878
22879 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
22880 in date: "2004-14-09" should be "2004-09-14".
22881 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
22882 "2003-15-09" should be "2003-09-15".
22883
22884 2018-01-18 Arjun Shankar <arjun@redhat.com>
22885
22886 [BZ #22343]
22887 [BZ #22774]
22888 CVE-2018-6485
22889 CVE-2018-6551
22890 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
22891 after padding.
22892 (_int_memalign): check for integer overflow before calling
22893 _int_malloc.
22894 * malloc/tst-malloc-too-large.c: New test.
22895 * malloc/Makefile: Add tst-malloc-too-large.
22896
22897 2018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
22898
22899 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
22900 in date: "2017-24-07" should be "2017-07-24".
22901 * localedata/locales/mai_IN: Likewise.
22902 * localedata/locales/mai_NP: Likewise.
22903
22904 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
22905
22906 * po/ru.po: Update translations.
22907
22908 2018-01-17 Joseph Myers <joseph@codesourcery.com>
22909
22910 [BZ #22719]
22911 * sysdeps/hppa/backtrace.c: New file.
22912
22913 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
22914
22915 [BZ #22715]
22916 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
22917 align La_x86_64_retval to VEC_SIZE.
22918
22919 2018-01-16 Joseph Myers <joseph@codesourcery.com>
22920
22921 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
22922 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
22923
22924 2018-01-16 Florian Weimer <fweimer@redhat.com>
22925
22926 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
22927 Move tst-thread-exit-clobber ...
22928 [$(CXX)] (tests-unsupported): ... to here.
22929
22930 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22931
22932 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
22933 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
22934 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22935 (_dl_aarch64_cap_flags): Update.
22936 (_DL_HWCAP_COUNT): Update.
22937
22938 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
22939
22940 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
22941 (_DL_HWCAP_LAST): Remove.
22942 (_DL_HWCAP_COUNT): Move to ...
22943 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
22944 (_DL_HWCAP_COUNT): ... here.
22945
22946 2018-01-16 Florian Weimer <fweimer@redhat.com>
22947
22948 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
22949 mode with GNU extensions.
22950
22951 2018-01-15 Alan Hayward <alan.hayward@arm.com>
22952
22953 * elf/elf.h (NT_ARM_SVE): Define.
22954
22955 2018-01-15 Florian Weimer <fweimer@redhat.com>
22956
22957 [BZ #22636]
22958 * nptl/tst-minstack-throw.cc: New file.
22959 * nptl/Makefile (tests): Add tst-minstack-throw.
22960 (LDLIBS-tst-minstack-throw): Link with libstdc++.
22961 [!CXX] (tests-unsupported): Add tst-minstack-throw.
22962
22963 2018-01-15 Joseph Myers <joseph@codesourcery.com>
22964
22965 * scripts/build-many-glibcs.py (Context.checkout): Default
22966 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
22967 version to 1.1.0.
22968
22969 2018-01-13 Carlos O'Donell <carlos@redhat.com>
22970
22971 [BZ #22707]
22972 * elf/elf.h (DF_1_STUB): Define.
22973 (DF_1_PIE): Define.
22974
22975 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22976
22977 [BZ #22697]
22978 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
22979 Do not add 0.5 to integer or out-of-range arguments.
22980
22981 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22982
22983 * po/bg.po: Update translations.
22984 * po/cs.po: Likewise.
22985 * po/de.po: Likewise.
22986 * po/ko.po: Likewise.
22987 * po/pl.po: Likewise.
22988 * po/sv.po: Likewise.
22989 * po/uk.po: Likewise.
22990 * po/vi.po: Likewise.
22991
22992 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22993
22994 * aarch64/start.S (_start): Use __wrap_main.
22995 (__wrap_main): New local symbol.
22996
22997 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
22998
22999 [BZ #22679]
23000 CVE-2018-1000001
23001 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23002 generic_getcwd if the path returned by getcwd syscall is not absolute.
23003 * io/tst-getcwd-abspath.c: New test.
23004 * io/Makefile (tests): Add tst-getcwd-abspath.
23005
23006 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23007
23008 * malloc/malloc.c (malloc_consolidate): Add size check.
23009
23010 2018-01-12 Florian Weimer <fweimer@redhat.com>
23011
23012 * support/write_message.c (write_message): Preserve errno.
23013 * support/check.c (print_failure): Likewise.
23014 * support/support_test_verify_impl.c (support_test_verify_impl):
23015 Likewise.
23016 * support/support_test_compare_failure.c
23017 (support_test_compare_failure): Likewise.
23018
23019 2018-01-12 Florian Weimer <fweimer@redhat.com>
23020
23021 [BZ #22701]
23022 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23023 Prevent installation of libnsl.so.
23024 (libnsl-inhibit-o): Do not build (or install) static libraries.
23025
23026 2018-01-12 Egmont Koblinger <egmont@gmail.com>
23027
23028 [BZ #22657]
23029 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23030 before the day number which may produce a double space.
23031 (date_fmt): Likewise.
23032
23033 2018-01-12 Joseph Myers <joseph@codesourcery.com>
23034
23035 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23036 instead of fegetenv.
23037
23038 2018-01-11 Joseph Myers <joseph@codesourcery.com>
23039
23040 [BZ #22702]
23041 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23042 comment to say exceptions are discarded.
23043 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23044 __fegetenv.
23045 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23046 be enabled.
23047
23048 2018-01-11 Florian Weimer <fweimer@redhat.com>
23049
23050 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23051 and error message.
23052
23053 2018-01-11 Florian Weimer <fweimer@redhat.com>
23054
23055 [BZ #22636]
23056 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23057 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23058
23059 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23060
23061 [BZ #22693]
23062 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23063 negative arguments in test for NaN or infinity argument.
23064
23065 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23066
23067 * po/libc.pot: Regenerate.
23068
23069 2018-01-10 Florian Weimer <fweimer@redhat.com>
23070
23071 [BZ #22636]
23072 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23073 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23074
23075 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23076
23077 * hurd/hurd/fd.h: Include <fcntl.h>
23078 (__hurd_at_flags): New function.
23079 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23080 with call to __hurd_at_flags.
23081 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23082 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23083 __faccessat
23084 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23085 (__access_noerrno): Use __faccessat_common instead of access_common.
23086 (__access): Likewise.
23087 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23088 with a call to __faccessat.
23089 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23090 (__faccessat_common): ... this. Move implementation of __access into it when
23091 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23092 reauthenticate_cwdir_at helper to implement AT mechanism.
23093 (__faccessat_noerrno): New function, just calls __faccessat_common.
23094 (__faccessat): New function, just calls __faccessat_common.
23095 (faccessat): Define weak alias.
23096
23097 2018-01-10 Joseph Myers <joseph@codesourcery.com>
23098
23099 [BZ #22691]
23100 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23101 (CFLAGS-s_fmaxmagl.c): New variable.
23102 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23103
23104 [BZ #22690]
23105 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23106 long int for arguments of possibly overflowing addition or
23107 subtraction.
23108 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23109
23110 2018-01-09 Joseph Myers <joseph@codesourcery.com>
23111
23112 [BZ #22688]
23113 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23114 (CFLAGS-e_remainderl.c): New variable.
23115
23116 [BZ #22687]
23117 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23118 variable.
23119 (CFLAGS-s_cacoshl.c): Likewise.
23120 (CFLAGS-s_casinhl.c): Likewise.
23121 (CFLAGS-s_catanl.c): Likewise.
23122 (CFLAGS-s_catanhl.c): Likewise.
23123 (CFLAGS-s_cexpl.c): Likewise.
23124 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23125 (CFLAGS-s_csinhl.c): Likewise.
23126 (CFLAGS-s_clogl.c): Likewise.
23127 (CFLAGS-s_clog10l.c): Likewise.
23128 (CFLAGS-s_csinl.c): Likewise.
23129 (CFLAGS-s_csqrtl.c): Likewise.
23130
23131 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
23132 2017-01-09 Svante Signell <svante.signell@gmail.com>
23133
23134 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23135 (_hurd_exec_paths): New function.
23136 * hurd/hurd.h (_hurd_exec): Deprecate function.
23137 (_hurd_exec_paths): Declare function.
23138 * hurd/Versions: Export _hurd_exec_paths.
23139 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23140 (__execve): Use __getcwd to build absolute path, and use
23141 _hurd_exec_paths instead of _hurd_exec.
23142 * sysdeps/mach/hurd/spawni.c: Likewise.
23143 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23144 _hurd_exec.
23145
23146 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23147
23148 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23149 test instead of failing in case of ENOENT returned by posix_openpt.
23150
23151 2018-01-08 Florian Weimer <fweimer@redhat.com>
23152
23153 resolv: Support binary labels in test framework.
23154 * support/resolv_test.c (struct to_be_freed): Remove.
23155 (struct compressed_name): New.
23156 (allocate_compressed_name, ascii_tolower)
23157 (compare_compressed_name): New functions.
23158 (struct resolv_response_builder): Update type of
23159 compression_offsets for use with tsearch. Rempve to_be_freed.
23160 (response_push_pointer_to_free): Remove function.
23161 (resolv_response_add_name): Rewrite using struct compressed_name
23162 and tsearch instead of hsearch_r.
23163 (response_builder_allocate): Remove initialization of
23164 compression_offsets.
23165 (response_builder_free): Update for removal of to_be_freed. Use
23166 tdestroy instead of hdestroy_r.
23167 * resolv/Makefile (tests): Add tst-resolv-binary.
23168 (tst-resolv-binary): Link with -lresolv -lpthread.
23169
23170 2018-01-08 Florian Weimer <fweimer@redhat.com>
23171
23172 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23173 time. Pass positive flag instead of negative flag to
23174 support_test_compare_failure.
23175 (support_test_compare_failure): Change negative parameter to
23176 positive.
23177 * support/support_test_compare_failure.c (report)
23178 (support_test_compare_failure): Likewise.
23179 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23180 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23181
23182 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23183
23184 [BZ #22637]
23185 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23186 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23187 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23188 stacksize.
23189 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23190
23191 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23192
23193 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23194 Add s_sincosf-sse2 and s_sincosf-fma.
23195 (CFLAGS-s_sincosf-fma.c): New.
23196 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23197 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23198 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23199 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23200 __sincosf is defined.
23201
23202 2018-01-08 Florian Weimer <fweimer@redhat.com>
23203
23204 * nptl/tst-thread-exit-clobber.cc: New file.
23205 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23206 C++11 mode.
23207 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23208 (tests): Add tst-thread-exit-clobber.
23209 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23210
23211 2018-01-08 Florian Weimer <fweimer@redhat.com>
23212
23213 * support/check.h (support_static_assert): Define.
23214 (TEST_COMPARE): Use it.
23215
23216 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23217
23218 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23219 [!__RLIM_T_MATCHES_RLIM64_T]
23220 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23221 __getrlimit64. Add libc_hidden_weak.
23222
23223 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
23224
23225 * elf/elf.h (R_RISCV_NONE): New define.
23226 (R_RISCV_32): Likewise.
23227 (R_RISCV_64): Likewise.
23228 (R_RISCV_RELATIVE): Likewise.
23229 (R_RISCV_COPY): Likewise.
23230 (R_RISCV_JUMP_SLOT): Likewise.
23231 (R_RISCV_TLS_DTPMOD32): Likewise.
23232 (R_RISCV_TLS_DTPMOD64): Likewise.
23233 (R_RISCV_TLS_DTPREL32): Likewise.
23234 (R_RISCV_TLS_DTPREL64): Likewise.
23235 (R_RISCV_TLS_TPREL32): Likewise.
23236 (R_RISCV_TLS_TPREL64): Likewise.
23237 * Makerules (make-link-multidir): Make directories before linking into
23238 them.
23239 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23240 define.
23241 (VDSO_HASH_LINUX_4_15): Likewise.
23242 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23243 in subdirectories of lib.
23244 * nptl/Makefile (/librt.so): Always depend on
23245 "$(shared-thread-library)".
23246
23247 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23248
23249 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
23250 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23251 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23252 (___tls_get_addr).
23253 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
23254 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23255 "-O2 -march=i686".
23256 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
23257 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23258 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23259 * sysdeps/gnu/glob-lstat-compat.c: New file.
23260 * sysdeps/gnu/glob64-lstat-compat.c: New file.
23261 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
23262
23263 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23264
23265 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23266 Reserve 16 chars to reloc_addr before calling _itoa_word.
23267
23268 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23269
23270 [BZ #22678]
23271 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23272 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23273
23274 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23275 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23276
23277 * resource/tst-getrlimit.c: Add copyright header.
23278
23279 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23280 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23281
23282 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23283 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23284 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23285 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23286 instead.
23287 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23288 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23289 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23290 RLIM64_INFINITY): Fix values to match the kernel ones.
23291 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23292 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23293 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23294 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23295 getrlimit64@@GLIBC_2_27.
23296 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23297 and setrlimit64.
23298 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23299 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23300 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23301 setrlimit, getrlimit64 and setrlimit64.
23302
23303 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23304
23305 [BZ #22648]
23306 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23307 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23308
23309 2018-01-04 Joseph Myers <joseph@codesourcery.com>
23310
23311 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23312 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23313 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23314
23315 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23316
23317 [BZ #15479]
23318 [BZ #22666]
23319 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23320 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23321
23322 [BZ #15479]
23323 [BZ #22665]
23324 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23325 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23326 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23327 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23328
23329 2018-01-04 Florian Weimer <fweimer@redhat.com>
23330
23331 [BZ #22667]
23332 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23333 Align the stack before calling exit.
23334 * stdlib/tst-makecontext-align.c: New file.
23335 * stdlib/Makefile (tests): Add tst-makecontext-align.
23336
23337 2018-01-04 Florian Weimer <fweimer@redhat.com>
23338
23339 Add support for calling dlvsym from libc.so.
23340 * include/dlfcn.h (__libc_dlvsym): Declare.
23341 * elf/Makefile (tests-static-internal): Add
23342 tst-libc_dlvsym-static.
23343 (tests-internal): Add tst-libc_dlvsym.
23344 (modules-names): Add tst-libc_dlvsym-dso.
23345 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23346 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23347 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23348 object tst-libc_dlvsym-dso.so needs to be built before running
23349 these tests.
23350 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23351 * elf/Versions: Export __libc_dlvsym.
23352 * elf/dl-libc.c (struct do_dlvsym_args): New.
23353 (do_dlvsym, __libc_dlvsym): New functions.
23354 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23355 (_dl_open_hook2): New variable.
23356 (__libc_register_dl_open_hook): Set it.
23357 * elf/tst-libc_dlvsym-dso.c: New file.
23358 * elf/tst-libc_dlvsym-static.c: Likewise.
23359 * elf/tst-libc_dlvsym.c: Likewise.
23360 * elf/tst-libc_dlvsym.h: Likewise.
23361
23362 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23363
23364 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23365 include <sys/mount.h>.
23366
23367 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23368
23369 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23370 Add __NO_MATH_ERRNO__ check.
23371
23372 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23373
23374 * sysdeps/mips/mips32/libm-test-ulps: Update.
23375 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23376
23377 2018-01-02 Florian Weimer <fweimer@redhat.com>
23378
23379 * misc/tst-pselect.c: Add copyright header.
23380
23381 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23382
23383 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23384 comment.
23385 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23386 comment.
23387 (settrlimit): Rename into setrlimit.
23388 (__sttrlimit): Rename into __setrlimit.
23389
23390 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23391 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23392 never defined in that case.
23393
23394 2018-01-02 Joseph Myers <joseph@codesourcery.com>
23395
23396 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23397
23398 * sysdeps/arm/libm-test-ulps: Update.
23399
23400 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23401 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23402
23403 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23404
23405 * NEWS: Add cosf and sincosf to list of optimized functions.
23406
23407 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23408
23409 [BZ #22660]
23410 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23411 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23412 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23413 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23414
23415 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23416
23417 [BZ #22433]
23418 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23419
23420 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23421 making a copy of it.
23422
23423 2018-01-01 Joseph Myers <joseph@codesourcery.com>
23424
23425 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23426 trailing whitespace removed.
23427 * scripts/config.guess: Update to version 2018-01-01.
23428 * scripts/config.sub: Update to version 2018-01-01.
23429 * scripts/move-if-change: Update from gnulib.
23430
23431 * NEWS: Update copyright dates.
23432 * catgets/gencat.c (print_version): Likewise.
23433 * csu/version.c (banner): Likewise.
23434 * debug/catchsegv.sh: Likewise.
23435 * debug/pcprofiledump.c (print_version): Likewise.
23436 * debug/xtrace.sh (do_version): Likewise.
23437 * elf/ldconfig.c (print_version): Likewise.
23438 * elf/ldd.bash.in: Likewise.
23439 * elf/pldd.c (print_version): Likewise.
23440 * elf/sotruss.sh: Likewise.
23441 * elf/sprof.c (print_version): Likewise.
23442 * iconv/iconv_prog.c (print_version): Likewise.
23443 * iconv/iconvconfig.c (print_version): Likewise.
23444 * locale/programs/locale.c (print_version): Likewise.
23445 * locale/programs/localedef.c (print_version): Likewise.
23446 * login/programs/pt_chown.c (print_version): Likewise.
23447 * malloc/memusage.sh (do_version): Likewise.
23448 * malloc/memusagestat.c (print_version): Likewise.
23449 * malloc/mtrace.pl: Likewise.
23450 * manual/libc.texinfo: Likewise.
23451 * nptl/version.c (banner): Likewise.
23452 * nscd/nscd.c (print_version): Likewise.
23453 * nss/getent.c (print_version): Likewise.
23454 * nss/makedb.c (print_version): Likewise.
23455 * posix/getconf.c (main): Likewise.
23456 * scripts/test-installation.pl: Likewise.
23457 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23458
23459 * All files with FSF copyright notices: Update copyright dates
23460 using scripts/update-copyrights.
23461 * locale/programs/charmap-kw.h: Regenerated.
23462 * locale/programs/locfile-kw.h: Likewise.
23463
23464 2017-12-31 Zack Weinberg <zackw@panix.com>
23465
23466 * libio/bits/libio-ldbl.h: Correct check for improper
23467 inclusion. Add own multiple include guard.
23468
23469 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23470 Dmitry V. Levin <ldv@altlinux.org>
23471
23472 [BZ #22625]
23473 CVE-2017-16997
23474 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23475 string token expansion. Check for NULL pointer or empty string possibly
23476 returned by expand_dynamic_string_token.
23477 (decompose_rpath): Check for empty path after dynamic string
23478 token expansion.
23479
23480 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23481
23482 [BZ #22433]
23483 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23484
23485 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23486 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23487 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23488 and PTRACE_SYSCALL.
23489 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23490 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23491 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23492 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23493 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23494 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23495
23496 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23497 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23498 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23499 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23500 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23501 bits/ptrace-shared.h.
23502 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23503 <bits/ptrace-shared.h>.
23504 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23505 __ptrace_peeksiginfo_flags, ptrace): Remove.
23506 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23507 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23508 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23509 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23510 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23511
23512 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23513
23514 [BZ #17804]
23515 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23516 end of the loop. Improve comments.
23517
23518 2017-12-29 Zack Weinberg <zackw@panix.com>
23519
23520 [BZ #22615]
23521 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23522 might be set on success.
23523
23524 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23525
23526 [BZ #22611]
23527 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23528 is unchanged on success.
23529
23530 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23531
23532 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23533 updated.
23534 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23535 expand_dynamic_string_token): Likewise.
23536 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23537 is_path argument.
23538
23539 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23540 contains ':'.
23541
23542 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23543 is set and name contains ':', and all code depending on these checks.
23544
23545 2017-12-24 Zack Weinberg <zackw@panix.com>
23546
23547 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23548 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23549 respectively.
23550 * libio/libio.h: Rename the original version of this file to
23551 libio/bits/libio.h. Error out if not included by stdio.h or the
23552 stub libio.h.
23553 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23554 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23555 if not included by bits/libio.h or the stub _G_config.h.
23556 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23557 sysdeps/unix/sysv/linux/bits. Error out if not included by
23558 bits/libio.h or the stub _G_config.h.
23559 * libio/stdio.h: Include bits/libio.h, not libio.h.
23560 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23561 well as libio.h and _G_config.h.
23562
23563 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23564 * libio/strfile.h, stdio-common/vfscanf.c
23565 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23566 Include stdio.h, not _G_config.h nor libio.h.
23567 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23568 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23569
23570 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23571
23572 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23573
23574 [BZ #22347]
23575 * stdlib/getrandom.c (getrandom): Fix comment.
23576 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23577
23578 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
23579
23580 [BZ #21161]
23581 * manual/arith.texi (strtoul): Fix a typo.
23582
23583 [BZ #22596]
23584 * manual/arith.texi (finite): Fix the description of the return
23585 value.
23586
23587 2017-12-22 Eric Blake <ebb9@byu.net>
23588
23589 Avoid gcc warnings on cygwin
23590 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23591 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23592 Avoid unused variable.
23593
23594 2017-12-22 Florian Weimer <fweimer@redhat.com>
23595
23596 * io/Makefile (routines): Add copy_file_range.
23597 (tests): Add tst-copy_file_range.
23598 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23599 * io/Versions (GLIBC_2.27): Export copy_file_range.
23600 * io/copy_file_range-compat.c: New file.
23601 * io/copy_file_range.c: Likewise.
23602 * io/tst-copy_file_range-compat.c: Likewise.
23603 * io/tst-copy_file_range.c: Likewise.
23604 * manual/llio.texi (Copying File Data): New section.
23605 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23606 * support/Makefile (libsupport-routines): Add support-xfstat,
23607 xftruncate, xlseek.
23608 * support/support-xfstat.c: New file.
23609 * support/xftruncate.c: Likewise.
23610 * support/xlseek.c: Likewise.
23611 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23612 * sysdeps/unix/sysv/linux/**.abilist: Update.
23613 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23614
23615 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23616
23617 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23618 disable-multi-arch variant to aarch64-linux-gnu.
23619
23620 2017-12-20 Joseph Myers <joseph@codesourcery.com>
23621
23622 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23623 trailing whitespace removed.
23624 * scripts/config.guess: Update to version 2017-12-17.
23625 * scripts/config.sub: Update to version 2017-11-23.
23626 * scripts/install-sh: Update to version 2017-09-23.17.
23627 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23628
23629 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23630
23631 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23632 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23633 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23634 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23635 * sysdeps/tile/crtn.S: Likewise.
23636 * sysdeps/tile/dl-start.S (_start): Likewise.
23637 * sysdeps/tile/dl-trampoline.S: Likewise.
23638 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23639 * sysdeps/tile/start.S (_start): Likewise.
23640 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23641 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23642 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23643 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23644 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23645 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23646 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23647
23648 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23649 comment.
23650 * sysdeps/tile/preconfigure: Remove tilegx folder.
23651 * sysdeps/tile/tilegx/Implies: Move definitions to ...
23652 * sysdeps/tile/Implies: ... here.
23653 * sysdeps/tile/tilegx/Makefile: Move rules to ...
23654 * sysdeps/tile/Makefile: ... here.
23655 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
23656 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
23657 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
23658 * sysdeps/tile/bits/wordsize.h: ... here.
23659 * sysdeps/tile/tilegx/*: Move to ...
23660 * sysdeps/tile/*: ... here.
23661 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
23662 * sysdeps/tile/tilegx32/Implies: ... here.
23663 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
23664 * sysdeps/tile/tilegx64/Implies: ... here.
23665 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
23666 to ...
23667 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
23668 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
23669 * sysdeps/unix/sysv/linux/tile/*: ... here.
23670 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
23671 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
23672 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
23673 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
23674
23675 * README: Remove tilepro-*-linux-gnu from supported architecture.
23676 * scripts/build-many-glibcs.py: Likewise.
23677 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23678 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
23679 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
23680 elf_machine_matches_host, elf_machine_dynamic,
23681 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
23682 howto, elf_machine_rela): Likewise.
23683 * sysdeps/tile/dl-start.S (_start): Likewise.
23684 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
23685 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
23686 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
23687 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
23688 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
23689 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
23690 Likewise.
23691 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
23692 * sysdeps/tile/preconfigure: Likewise.
23693 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
23694 POINTER_CHK_GUARD): Likewise.
23695 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
23696 * sysdeps/tile/start.S (_start): Likewise.
23697 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
23698 Likewise.
23699 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
23700 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
23701 CMOVNEZ): Remove.
23702 * sysdeps/unix/sysv/linux/tile/bits/environments.h
23703 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
23704 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
23705 Likewise.
23706 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
23707 * sysdeps/tile/tilepro/Implies: Remove file.
23708 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
23709 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
23710 * sysdeps/tile/tilepro/memchr.c: Likewise.
23711 * sysdeps/tile/tilepro/memcpy.S: Likewise.
23712 * sysdeps/tile/tilepro/memset.c: Likewise.
23713 * sysdeps/tile/tilepro/memusage.h: Likewise.
23714 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
23715 * sysdeps/tile/tilepro/strchr.c: Likewise.
23716 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
23717 * sysdeps/tile/tilepro/strlen.c: Likewise.
23718 * sysdeps/tile/tilepro/strrchr.c: Likewise.
23719 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
23720 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
23721 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23722 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
23723 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
23724 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
23725 Likewise.
23726 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
23727 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
23728 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
23729 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
23730 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23731 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
23732 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
23733 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
23734 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
23735 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
23736 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
23737 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
23738 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
23739 tilepro mention in comment.
23740
23741 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
23742 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
23743 * nptl/pthread_join_common.c: New file: common function used on
23744 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
23745 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
23746 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
23747 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
23748 (cleanup): Move definition to pthread_join_common.c.
23749 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
23750 Remove superflous checks.
23751 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
23752 Likewise.
23753
23754 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
23755
23756 * sysdeps/aarch64/libm-test-ulps: Update.
23757
23758 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23759
23760 * sysdeps/aarch64/memset.S (MEMSET): Define.
23761
23762 2017-12-20 Florian Weimer <fweimer@redhat.com>
23763
23764 [BZ #22635]
23765 nptl: Provide full implementation of pthread_self in libc.so.
23766 * nptl/Makefile (routines): Add pthread_self.
23767 (libpthread-routines): Replace pthread_self with
23768 compat-pthread_self.
23769 * nptl/forward.c (pthread_self): Remove.
23770 * nptl/nptl-init.c (pthread_functions): Do not initialize
23771 ptr_pthread_self.
23772 * nptl/pthread_self.c (pthread_self): Remove weak alias.
23773 * nptl/compat-pthread_self.c: New file.
23774 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
23775 Remove ptr_pthread_self.
23776
23777 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
23778
23779 * posix/regcomp.c: Fix spelling in comments.
23780 * posix/regex.h: Likewise.
23781 * posix/regex_internal.c: Likewise.
23782 * posix/regexec.c: Likewise.
23783
23784 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
23785
23786 [BZ #22377]
23787 * math/Makefile [C++] (tests): Add test for iseqsig.
23788 * math/math.h [C++] (iseqsig): New implementation, which does
23789 not rely on __MATH_TG/__builtin_types_compatible_p.
23790 * math/test-math-iseqsig.cc: New file.
23791 * sysdeps/powerpc/powerpc64le/Makefile
23792 (CFLAGS-test-math-iseqsig.cc): New variable.
23793
23794 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
23795
23796 * elf/dl-load.c (is_trusted_path): Remove.
23797 (fillin_rpath): Remove check_trusted argument and its use,
23798 all callers changed.
23799
23800 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23801
23802 [BZ #22630]
23803 * Makeconfig (link-pie-before-libc): Replace -pie with
23804 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
23805 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
23806 (tst-dlopen-aout-no-pie): New.
23807 (LDFLAGS-tst-prelink): Removed.
23808 (tst-prelink-no-pie): New.
23809 (LDFLAGS-tst-main1): Removed.
23810 (tst-main1-no-pie): New.
23811 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
23812 (tst-gmon-no-pie): New.
23813
23814 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23815
23816 * manual/install.texi: Document that --enable-static-pie
23817 implies PIE.
23818 * INSTALL: Regenerated.
23819
23820 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
23821
23822 [BZ #21309]
23823 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
23824 unsigned.
23825
23826 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23827
23828 Revert:
23829
23830 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23831
23832 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23833
23834 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23835
23836 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23837 <errno.h>. Include "eexp.tbl".
23838 (half): New constant.
23839 (one): Likewise.
23840 (__ieee754_exp): Rewrite.
23841 (__slowexp): Remove prototype.
23842 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23843 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23844 * sysdeps/i386/fpu/slowexp.c: Likewise.
23845 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23846 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23847 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23848 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23849 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23850 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23851 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23852 comment.
23853 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23854 (CPPFLAGS-slowexp.c): Remove variable.
23855 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23856 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23857 (CFLAGS-slowexp-fma.c): Remove variable.
23858 (CFLAGS-slowexp-fma4.c): Likewise.
23859 (CFLAGS-slowexp-avx.c): Likewise.
23860 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23861 define as macro.
23862 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23863 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23864 * math/Makefile (type-double-routines): Remove slowexp.
23865 * manual/probes.texi (slowexp_p6): Remove.
23866 (slowexp_p32): Likewise.
23867
23868 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23869
23870 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
23871 arithmetic.
23872
23873 * lib/glob.c (glob): Do not pass NULL to mempcpy.
23874
23875 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23876
23877 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23878
23879 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
23880
23881 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
23882 <errno.h>. Include "eexp.tbl".
23883 (half): New constant.
23884 (one): Likewise.
23885 (__ieee754_exp): Rewrite.
23886 (__slowexp): Remove prototype.
23887 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
23888 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
23889 * sysdeps/i386/fpu/slowexp.c: Likewise.
23890 * sysdeps/ia64/fpu/slowexp.c: Likewise.
23891 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
23892 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
23893 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
23894 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
23895 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
23896 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
23897 comment.
23898 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
23899 (CPPFLAGS-slowexp.c): Remove variable.
23900 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23901 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
23902 (CFLAGS-slowexp-fma.c): Remove variable.
23903 (CFLAGS-slowexp-fma4.c): Likewise.
23904 (CFLAGS-slowexp-avx.c): Likewise.
23905 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
23906 define as macro.
23907 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
23908 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
23909 * math/Makefile (type-double-routines): Remove slowexp.
23910 * manual/probes.texi (slowexp_p6): Remove.
23911 (slowexp_p32): Likewise.
23912
23913 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23914 James Clarke <jrtc27@jrtc27.com>
23915
23916 [BZ #22603]
23917 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
23918 addition.
23919
23920 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23921
23922 [BZ #22605]
23923 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
23924 code.
23925
23926 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23927
23928 [BZ #22563]
23929 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23930 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23931 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23932 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23933 to feature_1.
23934
23935 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23936
23937 [BZ #22563]
23938 * bits/types/__cancel_jmp_buf_tag.h: New file.
23939 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23940 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23941 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23942 * nptl/Makefile (headers): Add
23943 bits/types/__cancel_jmp_buf_tag.h.
23944 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23945 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23946 * sysdeps/nptl/pthread.h: Include
23947 <bits/types/__cancel_jmp_buf_tag.h>.
23948 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23949 __cancel_jmp_buf.
23950 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23951
23952 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23953
23954 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23955 --enable-static-pie variants to x86_64, x32 and i686.
23956
23957 2017-12-19 Joseph Myers <joseph@codesourcery.com>
23958
23959 [BZ #22631]
23960 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
23961 argument for attrubutes. All callers changed.
23962 (__inline_mathop1): Likewise. All callers changed.
23963 (__inline_mathop): Likewise. All callers changed.
23964 [__USE_MISC] (scalbn): Use __inline_forward instead of
23965 __inline_forward_c.
23966 [__USE_ISOC99] (scalbln): Likewise.
23967 [__USE_ISOC99] (nearbyint): Likewise.
23968 [__USE_ISOC99] (lrint): Likewise.
23969 [__USE_MISC] (scalbnf): Likewise.
23970 [__USE_ISOC99] (scalblnf): Likewise.
23971 [__USE_ISOC99] (nearbyintf): Likewise.
23972 [__USE_ISOC99] (lrintf): Likewise.
23973 [__USE_MISC] (scalbnl): Likewise.
23974 [__USE_ISOC99] (scalblnl): Likewise.
23975 [__USE_ISOC99] (nearbyintl): Likewise.
23976 [__USE_ISOC99] (lrintl): Likewise.
23977 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
23978 __inline_mathop and __m81_defun changed.
23979
23980 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
23981 CPU or FPU for ARM hard-float configurations.
23982
23983 2017-12-18 Joseph Myers <joseph@codesourcery.com>
23984
23985 * nptl/tst-attr3.c: Include <libc-diag.h>.
23986 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
23987
23988 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
23989
23990 * string/tester.c (test_strncat): Also disable -Warray-bounds
23991 warnings for two tests.
23992
23993 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
23994
23995 [BZ #22614]
23996 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
23997 $(cc-pie-default) == yes.
23998 * config.make.in (cc-pie-default): New.
23999 * configure.ac (libc_cv_pie_default): Renamed to ...
24000 (libc_cv_cc_pie_default): This.
24001 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24002 * configure: Regenerated.
24003
24004 2017-12-18 Florian Weimer <fweimer@redhat.com>
24005
24006 [BZ #20204]
24007 ld.so: Harden dl-libc/libdl hooks.
24008 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24009 (rtld_active): New function.
24010 * dlfcn/dladdr.c (__dladdr): Call it.
24011 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24012 * dlfcn/dlclose.c (__dlcose): Likewise.
24013 * dlfcn/dlerror.c (__dlerror): Likewise.
24014 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24015 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24016 * dlfcn/dlopen.c (__dlopen): Likewise.
24017 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24018 * dlfcn/dlsym.c (__dlsym): Likewise.
24019 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24020 * libio/vtables.c (_IO_vtable_check): Likewise.
24021 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24022 (__libc_dlclose): Likewise.
24023 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24024 assignment.
24025
24026 2017-12-18 Joseph Myers <joseph@codesourcery.com>
24027
24028 [BZ #22446]
24029 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24030 buffers for readlink input and output.
24031
24032 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24033
24034 [BZ #22624]
24035 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24036 inhibit_stack_protector.
24037
24038 [BZ #22624]
24039 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24040 inhibit_stack_protector.
24041
24042 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24043
24044 [BZ #22627]
24045 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24046 code and invocation.
24047
24048 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24049
24050 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24051
24052 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24053
24054 [BZ #22505]
24055 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24056
24057 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24058
24059 * sysdeps/s390/fpu/libm-test-ulps: Update.
24060
24061 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24062
24063 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24064
24065 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24066
24067 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24068 constants to s_sincosf.h file.
24069 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24070 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24071 implementation.
24072 * sysdeps/ieee754/flt-32/s_sincosf.h:
24073 New file.
24074
24075 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24076
24077 [BZ #14681]
24078 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24079 before mtrace.
24080
24081 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24082
24083 [BZ #19574]
24084 * INSTALL: Regenerated.
24085 * Makeconfig (real-static-start-installed-name): New.
24086 (pic-default): Updated for --enable-static-pie.
24087 (pie-default): New for --enable-static-pie.
24088 (default-pie-ldflag): Likewise.
24089 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24090 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24091 Replace $(static-start-installed-name) with
24092 $(real-static-start-installed-name).
24093 (+prectorT): Updated for --enable-static-pie.
24094 (+postctorT): Likewise.
24095 (CFLAGS-.o): Add $(pie-default).
24096 (CFLAGS-.op): Likewise.
24097 * NEWS: Mention --enable-static-pie.
24098 * config.h.in (ENABLE_STATIC_PIE): New.
24099 * configure.ac (--enable-static-pie): New configure option.
24100 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24101 (have-static-pie): Likewise.
24102 Enable static PIE if linker supports --no-dynamic-linker.
24103 (ENABLE_STATIC_PIE): New AC_DEFINE.
24104 (enable-static-pie): New LIBC_CONFIG_VAR.
24105 * configure: Regenerated.
24106 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24107 gr$(start-installed-name) for --enable-static-pie.
24108 (extra-objs): Likewise.
24109 (install-lib): Likewise.
24110 (extra-objs): Add static-reloc.o and static-reloc.os
24111 ($(objpfx)$(start-installed-name)): Also depend on
24112 $(objpfx)static-reloc.o.
24113 ($(objpfx)r$(start-installed-name)): New.
24114 ($(objpfx)g$(start-installed-name)): Also depend on
24115 $(objpfx)static-reloc.os.
24116 ($(objpfx)gr$(start-installed-name)): New.
24117 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24118 in libc.a.
24119 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24120 initimage.
24121 * csu/static-reloc.c: New file.
24122 * elf/Makefile (routines): Add dl-reloc-static-pie.
24123 (elide-routines.os): Likewise.
24124 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24125 (tst-tls1-static-non-pie-no-pie): New.
24126 * elf/dl-reloc-static-pie.c: New file.
24127 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24128 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24129 STATIC_PIE_BOOTSTRAP.
24130 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24131 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24132 (tests-static): Likewise.
24133 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24134 (tst-gmon-static-no-pie): New.
24135 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24136 (CRT-tst-gmon-static-pie): Likewise.
24137 (tst-gmon-static-pie-ENV): Likewise.
24138 (tests-special): Likewise.
24139 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24140 (clean-tst-gmon-static-pie-data): Likewise.
24141 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24142 * gmon/tst-gmon-static-pie.c: New file.
24143 * manual/install.texi: Document --enable-static-pie.
24144 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24145 (_dl_get_dl_main_map): Likewise.
24146 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24147 * sysdeps/x86_64/configure.ac: Likewise.
24148 * sysdeps/i386/configure: Regenerated.
24149 * sysdeps/x86_64/configure: Likewise.
24150 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24151 (ASFLAGS-.op): Likewise.
24152
24153 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24154
24155 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24156 * posix/tst-mmap-offset.c (fname): Use /tmp.
24157 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24158
24159 2017-12-15 Steve Ellcey <sellcey@cavium.com>
24160
24161 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24162
24163 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24164
24165 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24166 errno.
24167
24168 2017-12-15 Joseph Myers <joseph@codesourcery.com>
24169
24170 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24171 --with-float=hard for arm-linux-gnueabihf configurations.
24172
24173 [BZ #14121]
24174 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24175 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24176 ($(mo-installed)): Use $(objpfx)%.mo.
24177 (realclean): Remove rule.
24178
24179 * po/Makefile (linguas): Remove rule and dependencies.
24180 (linguas.mo): Likewise.
24181 (.PHONY): Do not depend on linguas and linguas.mo.
24182 (podir): Remove variable.
24183 (pofiles): Likewise.
24184 [$(pofiles)] (%.po): Remove rule.
24185
24186 * sysdeps/sparc/sparc32/Makefile
24187 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24188 start-of-line whitespace in argument of echo.
24189 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24190 with whitespace. Generate __wrap_.udiv alias.
24191 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24192 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24193 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24194 * sysdeps/sparc/sparc32/urem.S: Likewise.
24195
24196 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24197
24198 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24199 for aligned inputs.
24200
24201 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24202
24203 * benchtests/bench-strcmp.c: Print output in JSON format.
24204
24205 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24206
24207 2017-12-14 Florian Weimer <fweimer@redhat.com>
24208
24209 [BZ #22607]
24210 CVE-2017-1000409
24211 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24212 the expanded path string.
24213
24214 2017-12-14 Florian Weimer <fweimer@redhat.com>
24215
24216 [BZ #22606]
24217 CVE-2017-1000408
24218 * elf/dl-load.c (system_dirs): Update comment.
24219 (nsystem_dirs_len): Use array_length.
24220 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24221
24222 2017-12-14 Florian Weimer <fweimer@redhat.com>
24223
24224 Simplify compiling most of support/ outside of glibc.
24225 * support/check_addrinfo.c: Include <string.h>.
24226 * support/check_dns_packet.c: Likewise.
24227 * support/check_hostent.c: Likewise.
24228 * support/support_can_chroot.c: Include <support/xunistd.h>.
24229 * support/support_format_addrinfo.c: Include <stdlib.h>
24230 * support/support_format_dns_packet.c: Include <stdbool.h>.
24231 * support/support_format_hostent.c: Include <stdlib.h>.
24232 * support/support_format_netent.c: Likewise.
24233 * support/support_write_string.c: Include <support/xunistd.h>.
24234 * support/xdlfcn.c: Include <stddef.h>.
24235
24236 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24237
24238 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24239
24240 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24241 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24242
24243 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24244 (sysdeps_routines): Add memset-niagara7.
24245 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24246 Likewise.
24247 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24248 file.
24249 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24250 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24251 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24252 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24253 Add niagara7 option.
24254 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24255 memset.
24256
24257 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24258 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24259 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24260 Likewise.
24261 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24262 New file.
24263 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24264 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24265 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24266 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24267 and __memmove_niagara7.
24268 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24269 Add niagara7 option.
24270 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24271 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24272 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24273 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24274 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24275
24276 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24277
24278 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24279 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24280 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24281 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24282
24283 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24284 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24285 _dl_sparc_cap_flags array.
24286 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24287
24288 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24289
24290 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24291 time whenever possible.
24292
24293 2017-12-12 Carlos O'Donell <carlos@redhat.com>
24294
24295 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24296 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24297
24298 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24299
24300 * soft-fp/fmadf4.c: Move to ....
24301 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24302 * soft-fp/fmasf4.c: Move to ....
24303 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24304 * soft-fp/fmatf4.c: Move to ....
24305 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24306 * sysdeps/ieee754/soft-fp/Makefile: New file.
24307 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24308 * sysdeps/arm/preconfigure: Regenerated.
24309 * sysdeps/arm/nofpu/Implies: New file.
24310 * sysdeps/arm/s_fma.c: Remove file.
24311 * sysdeps/arm/s_fmaf.c: Likewise.
24312 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24313 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24314 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24315 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24316 * sysdeps/microblaze/s_fma.c: Remove file.
24317 * sysdeps/microblaze/s_fmaf.c: Likewise.
24318 * sysdeps/mips/mips32/nofpu/Implies: New file.
24319 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24320 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24321 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24322 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24323 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24324 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24325 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24326 implementation.
24327 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24328 * sysdeps/nios2/s_fma.c: Remove file.
24329 * sysdeps/nios2/s_fmaf.c: Likewise.
24330 * sysdeps/sh/nofpu/Implies: New file.
24331 * sysdeps/sh/s_fma.c: Remove file.
24332 * sysdeps/sh/s_fmaf.c: Likewise.
24333 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24334 * sysdeps/tile/s_fma.c: Remove file.
24335 * sysdeps/tile/s_fmaf.c: Likewise.
24336
24337 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24338
24339 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24340 Add s_cosf-sse2 and s_cosf-fma.
24341 (CFLAGS-s_cosf-fma.c): New.
24342 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24343 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24344 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24345
24346 2017-12-12 Steve Ellcey <sellcey@cavium.com>
24347
24348 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24349
24350 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24351
24352 * libio/Makefile (tests): Add tst-bz22415.
24353 (tst-bz22415-ENV): New rule.
24354 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24355 (tests-special): Add tst-bz22415-mem.out.
24356 ($(objpfx)tst-bz22415-mem.out): New rule.
24357 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24358 in case of a successful seek operation.
24359 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24360 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24361 buffer is required.
24362 * libio/tst-bz22415.c: New test.
24363
24364 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24365
24366 2017-12-12 James Clarke <jrtc27@jrtc27.com>
24367
24368 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24369 __IPC_64 to 0 to avoid IPC_64 being set.
24370
24371 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24372
24373 [BZ #22593]
24374 * math/bits/mathcalls.h (nextafter): Remove const.
24375 (nexttoward): Likewise.
24376
24377 2017-12-12 Joseph Myers <joseph@codesourcery.com>
24378
24379 * configure.ac (--with-fp): Remove configure option.
24380 (with_fp_cond): New variable.
24381 (libc_cv_with_fp): New configure test. Use this variable instead
24382 of with_fp.
24383 * configure: Regenerated.
24384 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24385 * manual/install.texi (Configuring and compiling): Remove
24386 --without-fp.
24387 * INSTALL: Regenerated.
24388 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24389 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24390 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24391 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24392 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24393 use --without-fp to configure glibc.
24394
24395 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
24396
24397 * manual/locale.texi (nl_langinfo): Fix a typo.
24398
24399 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
24400
24401 [BZ #22588]
24402 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24403
24404 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24405
24406 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24407 (CFLAGS-argp-parse.c): Likewise.
24408 (CFLAGS-argp-fmtstream.c): Likewise.
24409 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24410 (CPPFLAGS-sha512-crypt.c): Likewise.
24411 (CPPFLAGS-md5-crypt.c): Likewise.
24412 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24413 (CFLAGS-stack_chk_fail_local.c): Likewise.
24414 (CFLAGS-backtrace.c): Likewise.
24415 (CFLAGS-sprintf_chk.c): Likewise.
24416 (CFLAGS-snprintf_chk.c): Likewise.
24417 (CFLAGS-vsprintf_chk.c): Likewise.
24418 (CFLAGS-vsnprintf_chk.c): Likewise.
24419 (CFLAGS-asprintf_chk.c): Likewise.
24420 (CFLAGS-vasprintf_chk.c): Likewise.
24421 (CFLAGS-obprintf_chk.c): Likewise.
24422 (CFLAGS-dprintf_chk.c): Likewise.
24423 (CFLAGS-vdprintf_chk.c): Likewise.
24424 (CFLAGS-printf_chk.c): Likewise.
24425 (CFLAGS-fprintf_chk.c): Likewise.
24426 (CFLAGS-vprintf_chk.c): Likewise.
24427 (CFLAGS-vfprintf_chk.c): Likewise.
24428 (CFLAGS-gets_chk.c): Likewise.
24429 (CFLAGS-fgets_chk.c): Likewise.
24430 (CFLAGS-fgets_u_chk.c): Likewise.
24431 (CFLAGS-fread_chk.c): Likewise.
24432 (CFLAGS-fread_u_chk.c): Likewise.
24433 (CFLAGS-swprintf_chk.c): Likewise.
24434 (CFLAGS-vswprintf_chk.c): Likewise.
24435 (CFLAGS-wprintf_chk.c): Likewise.
24436 (CFLAGS-fwprintf_chk.c): Likewise.
24437 (CFLAGS-vwprintf_chk.c): Likewise.
24438 (CFLAGS-vfwprintf_chk.c): Likewise.
24439 (CFLAGS-fgetws_chk.c): Likewise.
24440 (CFLAGS-fgetws_u_chk.c): Likewise.
24441 (CFLAGS-read_chk.c): Likewise.
24442 (CFLAGS-pread_chk.c): Likewise.
24443 (CFLAGS-pread64_chk.c): Likewise.
24444 (CFLAGS-recv_chk.c): Likewise.
24445 (CFLAGS-recvfrom_chk.c): Likewise.
24446 (CFLAGS-tst-longjmp_chk.c): Likewise.
24447 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24448 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24449 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24450 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24451 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24452 (CFLAGS-tst-chk1.c): Likewise.
24453 (CFLAGS-tst-chk2.c): Likewise.
24454 (CFLAGS-tst-chk3.c): Likewise.
24455 (CFLAGS-tst-chk4.cc): Likewise.
24456 (CFLAGS-tst-chk5.cc): Likewise.
24457 (CFLAGS-tst-chk6.cc): Likewise.
24458 (CFLAGS-tst-lfschk1.c): Likewise.
24459 (CFLAGS-tst-lfschk2.c): Likewise.
24460 (CFLAGS-tst-lfschk3.c): Likewise.
24461 (CFLAGS-tst-lfschk4.cc): Likewise.
24462 (CFLAGS-tst-lfschk5.cc): Likewise.
24463 (CFLAGS-tst-lfschk6.cc): Likewise.
24464 (CFLAGS-tst-ssp-1.c): Likewise.
24465 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24466 (CFLAGS-scandir64.c): Likewise.
24467 (CFLAGS-scandir-tail.c): Likewise.
24468 (CFLAGS-scandir64-tail.c): Likewise.
24469 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24470 (CFLAGS-dl-tunables.c): Likewise.
24471 (CFLAGS-dl-runtime.c): Likewise.
24472 (CFLAGS-dl-lookup.c): Likewise.
24473 (CFLAGS-dl-iterate-phdr.c): Likewise.
24474 (CFLAGS-vismain.c): Likewise.
24475 (CFLAGS-tst-linkall-static.c): Likewise.
24476 (CFLAGS-tst-linkall-static.c): Likewise.
24477 (CPPFLAGS-dl-load.c): Likewise.
24478 (CFLAGS-ldconfig.c): Likewise.
24479 (CFLAGS-dl-cache.c): Likewise.
24480 (CFLAGS-cache.c): Likewise.
24481 (CFLAGS-rtld.c): Likewise.
24482 (CFLAGS-multiload.c): Likewise.
24483 (CFLAGS-filtmod1.c): Likewise.
24484 (CFLAGS-tst-align.c): Likewise.
24485 (CFLAGS-tst-align2.c): Likewise.
24486 (CFLAGS-tst-alignmod.c): Likewise.
24487 (CFLAGS-tst-alignmod2.c): Likewise.
24488 (CPPFLAGS-tst-execstack.c): Likewise.
24489 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24490 (CFLAGS-tst-latepthreadmod.c): Likewise.
24491 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24492 (CFLAGS-getgrnam_r.c): Likewise.
24493 (CFLAGS-getgrent_r.c): Likewise.
24494 (CFLAGS-getgrent.c): Likewise.
24495 (CFLAGS-fgetgrent.c): Likewise.
24496 (CFLAGS-fgetgrent_r.c): Likewise.
24497 (CFLAGS-putgrent.c): Likewise.
24498 (CFLAGS-initgroups.c): Likewise.
24499 (CFLAGS-getgrgid.c): Likewise.
24500 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24501 (CFLAGS-getsgent.c): Likewise.
24502 (CFLAGS-fgetsgent.c): Likewise.
24503 (CFLAGS-fgetsgent_r.c): Likewise.
24504 (CFLAGS-putsgent.c): Likewise.
24505 (CFLAGS-getsgnam.c): Likewise.
24506 (CFLAGS-getsgnam_r.c): Likewise.
24507 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24508 (CFLAGS-iconv_charmap.c): Likewise.
24509 (CFLAGS-dummy-repertoire.c): Likewise.
24510 (CFLAGS-charmap.c): Likewise.
24511 (CFLAGS-linereader.c): Likewise.
24512 (CFLAGS-simple-hash.c): Likewise.
24513 (CFLAGS-gconv_conf.c): Likewise.
24514 (CFLAGS-iconvconfig.c): Likewise.
24515 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24516 (CFLAGS-gethstbyad.c): Likewise.
24517 (CFLAGS-gethstbynm_r.c): Likewise.
24518 (CFLAGS-gethstbynm.c): Likewise.
24519 (CFLAGS-gethstbynm2_r.c): Likewise.
24520 (CFLAGS-gethstbynm2.c): Likewise.
24521 (CFLAGS-gethstent_r.c): Likewise.
24522 (CFLAGS-gethstent.c): Likewise.
24523 (CFLAGS-rcmd.c): Likewise.
24524 (CFLAGS-getnetbynm_r.c): Likewise.
24525 (CFLAGS-getnetbynm.c): Likewise.
24526 (CFLAGS-getnetbyad_r.c): Likewise.
24527 (CFLAGS-getnetbyad.c): Likewise.
24528 (CFLAGS-getnetent_r.c): Likewise.
24529 (CFLAGS-getnetent.c): Likewise.
24530 (CFLAGS-getaliasent_r.c): Likewise.
24531 (CFLAGS-getaliasent.c): Likewise.
24532 (CFLAGS-getrpcent_r.c): Likewise.
24533 (CFLAGS-getrpcent.c): Likewise.
24534 (CFLAGS-getservent_r.c): Likewise.
24535 (CFLAGS-getservent.c): Likewise.
24536 (CFLAGS-getprtent_r.c): Likewise.
24537 (CFLAGS-getprtent.c): Likewise.
24538 (CFLAGS-either_ntoh.c): Likewise.
24539 (CFLAGS-either_hton.c): Likewise.
24540 (CFLAGS-getnetgrent.c): Likewise.
24541 (CFLAGS-getnetgrent_r.c): Likewise.
24542 (CFLAGS-tst-checks-posix.c): Likewise.
24543 (CFLAGS-tst-sockaddr.c): Likewise.
24544 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24545 (CFLAGS-tst-translit.c): Likewise.
24546 (CFLAGS-tst-gettext2.c): Likewise.
24547 (CFLAGS-tst-codeset.c): Likewise.
24548 (CFLAGS-tst-gettext3.c): Likewise.
24549 (CFLAGS-tst-gettext4.c): Likewise.
24550 (CFLAGS-tst-gettext5.c): Likewise.
24551 (CFLAGS-tst-gettext6.c): Likewise.
24552 * io/Makefile (CFLAGS-open.c): Likewise.
24553 (CFLAGS-open64.c): Likewise.
24554 (CFLAGS-creat.c): Likewise.
24555 (CFLAGS-creat64.c): Likewise.
24556 (CFLAGS-fcntl.c): Likewise.
24557 (CFLAGS-poll.c): Likewise.
24558 (CFLAGS-ppoll.c): Likewise.
24559 (CFLAGS-lockf.c): Likewise.
24560 (CFLAGS-statfs.c): Likewise.
24561 (CFLAGS-fstatfs.c): Likewise.
24562 (CFLAGS-statvfs.c): Likewise.
24563 (CFLAGS-fstatvfs.c): Likewise.
24564 (CFLAGS-fts.c): Likewise.
24565 (CFLAGS-fts64.c): Likewise.
24566 (CFLAGS-ftw.c): Likewise.
24567 (CFLAGS-ftw64.c): Likewise.
24568 (CFLAGS-lockf.c): Likewise.
24569 (CFLAGS-posix_fallocate.c): Likewise.
24570 (CFLAGS-posix_fallocate64.c): Likewise.
24571 (CFLAGS-fallocate.c): Likewise.
24572 (CFLAGS-fallocate64.c): Likewise.
24573 (CFLAGS-read.c): Likewise.
24574 (CFLAGS-write.c): Likewise.
24575 (CFLAGS-test-stat.c): Likewise.
24576 (CFLAGS-test-lfs.c): Likewise.
24577 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24578 (CFLAGS-fputc.c): Likewise.
24579 (CFLAGS-fputwc.c): Likewise.
24580 (CFLAGS-freopen64.c): Likewise.
24581 (CFLAGS-freopen.c): Likewise.
24582 (CFLAGS-fseek.c): Likewise.
24583 (CFLAGS-fseeko64.c): Likewise.
24584 (CFLAGS-fseeko.c): Likewise.
24585 (CFLAGS-ftello64.c): Likewise.
24586 (CFLAGS-ftello.c): Likewise.
24587 (CFLAGS-fwide.c): Likewise.
24588 (CFLAGS-genops.c): Likewise.
24589 (CFLAGS-getc.c): Likewise.
24590 (CFLAGS-getchar.c): Likewise.
24591 (CFLAGS-getwc.c): Likewise.
24592 (CFLAGS-getwchar.c): Likewise.
24593 (CFLAGS-iofclose.c): Likewise.
24594 (CFLAGS-iofflush.c): Likewise.
24595 (CFLAGS-iofgetpos64.c): Likewise.
24596 (CFLAGS-iofgetpos.c): Likewise.
24597 (CFLAGS-iofgets.c): Likewise.
24598 (CFLAGS-iofgetws.c): Likewise.
24599 (CFLAGS-iofputs.c): Likewise.
24600 (CFLAGS-iofputws.c): Likewise.
24601 (CFLAGS-iofread.c): Likewise.
24602 (CFLAGS-iofsetpos64.c): Likewise.
24603 (CFLAGS-iofsetpos.c): Likewise.
24604 (CFLAGS-ioftell.c): Likewise.
24605 (CFLAGS-iofwrite.c): Likewise.
24606 (CFLAGS-iogetdelim.c): Likewise.
24607 (CFLAGS-iogetline.c): Likewise.
24608 (CFLAGS-iogets.c): Likewise.
24609 (CFLAGS-iogetwline.c): Likewise.
24610 (CFLAGS-ioputs.c): Likewise.
24611 (CFLAGS-ioseekoff.c): Likewise.
24612 (CFLAGS-ioseekpos.c): Likewise.
24613 (CFLAGS-iosetbuffer.c): Likewise.
24614 (CFLAGS-iosetvbuf.c): Likewise.
24615 (CFLAGS-ioungetc.c): Likewise.
24616 (CFLAGS-ioungetwc.c): Likewise.
24617 (CFLAGS-oldfileops.c): Likewise.
24618 (CFLAGS-oldiofclose.c): Likewise.
24619 (CFLAGS-oldiofgetpos64.c): Likewise.
24620 (CFLAGS-oldiofgetpos.c): Likewise.
24621 (CFLAGS-oldiofsetpos64.c): Likewise.
24622 (CFLAGS-oldiofsetpos.c): Likewise.
24623 (CFLAGS-peekc.c): Likewise.
24624 (CFLAGS-putc.c): Likewise.
24625 (CFLAGS-putchar.c): Likewise.
24626 (CFLAGS-putwc.c): Likewise.
24627 (CFLAGS-putwchar.c): Likewise.
24628 (CFLAGS-rewind.c): Likewise.
24629 (CFLAGS-wfileops.c): Likewise.
24630 (CFLAGS-wgenops.c): Likewise.
24631 (CFLAGS-oldiofopen.c): Likewise.
24632 (CFLAGS-iofopen.c): Likewise.
24633 (CFLAGS-iofopen64.c): Likewise.
24634 (CFLAGS-oldtmpfile.c): Likewise.
24635 (CFLAGS-tst_putwc.c): Likewise.
24636 * locale/Makefile (CFLAGS-md5.c): Likewise.
24637 (CFLAGS-charmap.c): Likewise.
24638 (CFLAGS-locfile.c): Likewise.
24639 (CFLAGS-charmap-dir.c): Likewise.
24640 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24641 (CFLAGS-getpt.c): Likewise.
24642 (CFLAGS-pt_chown.c): Likewise.
24643 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24644 (CFLAGS-obstack.c): Likewise.
24645 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24646 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24647 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24648 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24649 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24650 (CFLAGS-test-tgmath.c): Likewise.
24651 (CFLAGS-test-tgmath2.c): Likewise.
24652 (CFLAGS-test-tgmath-ret.c): Likewise.
24653 (CFLAGS-test-powl.c): Likewise.
24654 (CFLAGS-test-snan.c): Likewise.
24655 (CFLAGS-test-signgam-finite.c): Likewise.
24656 (CFLAGS-test-signgam-finite-c99.c): Likewise.
24657 (CFLAGS-test-signgam-finite-c11.c): Likewise.
24658 (CFLAGS-test-signgam-uchar.c): Likewise.
24659 (CFLAGS-test-signgam-uchar-init.c): Likewise.
24660 (CFLAGS-test-signgam-uchar-static.c): Likewise.
24661 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
24662 (CFLAGS-test-signgam-uint.c): Likewise.
24663 (CFLAGS-test-signgam-uint-init.c): Likewise.
24664 (CFLAGS-test-signgam-uint-static.c): Likewise.
24665 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
24666 (CFLAGS-test-signgam-ullong.c): Likewise.
24667 (CFLAGS-test-signgam-ullong-init.c): Likewise.
24668 (CFLAGS-test-signgam-ullong-static.c): Likewise.
24669 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
24670 (CFLAGS-test-math-cxx11.cc): Likewise.
24671 (CFLAGS-test-math-isinff.cc): Likewise.
24672 (CFLAGS-test-math-iszero.cc): Likewise.
24673 (CFLAGS-test-math-issignaling.cc): Likewise.
24674 (CFLAGS-test-math-iscanonical.cc): Likewise.
24675 (CFLAGS-test-iszero-excess-precision.c): Likewise.
24676 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
24677 (CFLAGS-test-flt-eval-method.c): Likewise.
24678 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
24679 (CFLAGS-test-finite-macros.c): Likewise.
24680 * misc/Makefile (CFLAGS-select.c): Likewise.
24681 (CFLAGS-tsearch.c): Likewise.
24682 (CFLAGS-lsearch.c): Likewise.
24683 (CFLAGS-pselect.c): Likewise.
24684 (CFLAGS-readv.c): Likewise.
24685 (CFLAGS-writev.c): Likewise.
24686 (CFLAGS-preadv.c): Likewise.
24687 (CFLAGS-preadv64.c): Likewise.
24688 (CFLAGS-pwritev.c): Likewise.
24689 (CFLAGS-pwritev64.c): Likewise.
24690 (CFLAGS-preadv2.c): Likewise.
24691 (CFLAGS-preadv64v2.c): Likewise.
24692 (CFLAGS-pwritev2.c): Likewise.
24693 (CFLAGS-pwritev64v2.c): Likewise.
24694 (CFLAGS-usleep.c): Likewise.
24695 (CFLAGS-syslog.c): Likewise.
24696 (CFLAGS-error.c): Likewise.
24697 (CFLAGS-getpass.c): Likewise.
24698 (CFLAGS-mkstemp.c): Likewise.
24699 (CFLAGS-mkstemp64.c): Likewise.
24700 (CFLAGS-getsysstats.c): Likewise.
24701 (CFLAGS-getusershell.c): Likewise.
24702 (CFLAGS-err.c): Likewise.
24703 (CFLAGS-tst-tsearch.c): Likewise.
24704 (CFLAGS-msync.c): Likewise.
24705 (CFLAGS-fdatasync.c): Likewise.
24706 (CFLAGS-fsync.c): Likewise.
24707 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
24708 (CFLAGS-unwind.c): Likewise.
24709 (CFLAGS-unwind-forcedunwind.c): Likewise.
24710 (CFLAGS-pthread_cancel.c): Likewise.
24711 (CFLAGS-pthread_setcancelstate.c): Likewise.
24712 (CFLAGS-pthread_setcanceltype.c): Likewise.
24713 (CFLAGS-cancellation.c): Likewise.
24714 (CFLAGS-libc-cancellation.c): Likewise.
24715 (CFLAGS-pthread_exit.c): Likewise.
24716 (CFLAGS-forward.c): Likewise.
24717 (CFLAGS-pthread_testcancel.c): Likewise.
24718 (CFLAGS-pthread_join.c): Likewise.
24719 (CFLAGS-pthread_timedjoin.c): Likewise.
24720 (CFLAGS-pthread_once.c): Likewise.
24721 (CFLAGS-pthread_cond_wait.c): Likewise.
24722 (CFLAGS-sem_wait.c): Likewise.
24723 (CFLAGS-sem_timedwait.c): Likewise.
24724 (CFLAGS-fcntl.c): Likewise.
24725 (CFLAGS-lockf.c): Likewise.
24726 (CFLAGS-pread.c): Likewise.
24727 (CFLAGS-pread64.c): Likewise.
24728 (CFLAGS-pwrite.c): Likewise.
24729 (CFLAGS-pwrite64.c): Likewise.
24730 (CFLAGS-wait.c): Likewise.
24731 (CFLAGS-waitpid.c): Likewise.
24732 (CFLAGS-sigwait.c): Likewise.
24733 (CFLAGS-msgrcv.c): Likewise.
24734 (CFLAGS-msgsnd.c): Likewise.
24735 (CFLAGS-tcdrain.c): Likewise.
24736 (CFLAGS-open.c): Likewise.
24737 (CFLAGS-open64.c): Likewise.
24738 (CFLAGS-pause.c): Likewise.
24739 (CFLAGS-recv.c): Likewise.
24740 (CFLAGS-send.c): Likewise.
24741 (CFLAGS-accept.c): Likewise.
24742 (CFLAGS-sendto.c): Likewise.
24743 (CFLAGS-connect.c): Likewise.
24744 (CFLAGS-recvfrom.c): Likewise.
24745 (CFLAGS-recvmsg.c): Likewise.
24746 (CFLAGS-sendmsg.c): Likewise.
24747 (CFLAGS-close.c): Likewise.
24748 (CFLAGS-read.c): Likewise.
24749 (CFLAGS-write.c): Likewise.
24750 (CFLAGS-nanosleep.c): Likewise.
24751 (CFLAGS-sigsuspend.c): Likewise.
24752 (CFLAGS-msync.c): Likewise.
24753 (CFLAGS-fdatasync.c): Likewise.
24754 (CFLAGS-fsync.c): Likewise.
24755 (CFLAGS-pt-system.c): Likewise.
24756 (CFLAGS-tst-cleanup2.c): Likewise.
24757 (CFLAGS-tst-cleanupx2.c): Likewise.
24758 (CFLAGS-flockfile.c): Likewise.
24759 (CFLAGS-ftrylockfile.c): Likewise.
24760 (CFLAGS-funlockfile.c): Likewise.
24761 (CFLAGS-tst-initializers1.c): Likewise.
24762 (CFLAGS-tst-initializers1-c89.c): Likewise.
24763 (CFLAGS-tst-initializers1-c99.c): Likewise.
24764 (CFLAGS-tst-initializers1-c11.c): Likewise.
24765 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
24766 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
24767 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
24768 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
24769 (CFLAGS-nscd_getgr_r.c): Likewise.
24770 (CFLAGS-nscd_gethst_r.c): Likewise.
24771 (CFLAGS-nscd_getai.c): Likewise.
24772 (CFLAGS-nscd_initgroups.c): Likewise.
24773 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
24774 (CFLAGS-pause.c): Likewise.
24775 (CFLAGS-pread.c): Likewise.
24776 (CFLAGS-pread64.c): Likewise.
24777 (CFLAGS-pwrite.c): Likewise.
24778 (CFLAGS-pwrite64.c): Likewise.
24779 (CFLAGS-sleep.c): Likewise.
24780 (CFLAGS-wait.c): Likewise.
24781 (CFLAGS-waitid.c): Likewise.
24782 (CFLAGS-waitpid.c): Likewise.
24783 (CFLAGS-getopt.c): Likewise.
24784 (CFLAGS-wordexp.c): Likewise.
24785 (CFLAGS-sysconf.c): Likewise.
24786 (CFLAGS-pathconf.c): Likewise.
24787 (CFLAGS-fpathconf.c): Likewise.
24788 (CFLAGS-spawn.c): Likewise.
24789 (CFLAGS-spawnp.c): Likewise.
24790 (CFLAGS-spawni.c): Likewise.
24791 (CFLAGS-glob.c): Likewise.
24792 (CFLAGS-glob64.c): Likewise.
24793 (CFLAGS-getconf.c): Likewise.
24794 (CFLAGS-nanosleep.c): Likewise.
24795 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
24796 (CFLAGS-getpwent.c): Likewise.
24797 (CFLAGS-getpw.c): Likewise.
24798 (CFLAGS-fgetpwent_r.c): Likewise.
24799 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
24800 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
24801 (CFLAGS-mq_timedreceive.c): Likewise.
24802 (CFLAGS-mq_timedsend.c): Likewise.
24803 (CFLAGS-clock_nanosleep.c): Likewise.
24804 (CFLAGS-librt-cancellation.c): Likewise.
24805 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
24806 (CFLAGS-getspent.c): Likewise.
24807 (CFLAGS-fgetspent.c): Likewise.
24808 (CFLAGS-fgetspent_r.c): Likewise.
24809 (CFLAGS-putspent.c): Likewise.
24810 (CFLAGS-getspnam.c): Likewise.
24811 (CFLAGS-getspnam_r.c): Likewise.
24812 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
24813 (CFLAGS-sigsuspend.c): Likewise.
24814 (CFLAGS-sigtimedwait.c): Likewise.
24815 (CFLAGS-sigwait.c): Likewise.
24816 (CFLAGS-sigwaitinfo.c): Likewise.
24817 (CFLAGS-sigreturn.c): Likewise.
24818 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
24819 (CFLAGS-vfwprintf.c): Likewise.
24820 (CFLAGS-tmpfile.c): Likewise.
24821 (CFLAGS-tmpfile64.c): Likewise.
24822 (CFLAGS-tempname.c): Likewise.
24823 (CFLAGS-psignal.c): Likewise.
24824 (CFLAGS-vprintf.c): Likewise.
24825 (CFLAGS-cuserid.c): Likewise.
24826 (CFLAGS-errlist.c): Likewise.
24827 (CFLAGS-siglist.c): Likewise.
24828 (CFLAGS-scanf15.c): Likewise.
24829 (CFLAGS-scanf17.c): Likewise.
24830 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
24831 (CFLAGS-msort.c): Likewise.
24832 (CFLAGS-qsort.c): Likewise.
24833 (CFLAGS-system.c): Likewise.
24834 (CFLAGS-fmtmsg.c): Likewise.
24835 (CFLAGS-strfmon.c): Likewise.
24836 (CFLAGS-strfmon_l.c): Likewise.
24837 (CFLAGS-strfromd.c): Likewise.
24838 (CFLAGS-strfromf.c): Likewise.
24839 (CFLAGS-strfroml.c): Likewise.
24840 (CFLAGS-tst-bsearch.c): Likewise.
24841 (CFLAGS-tst-qsort.c): Likewise.
24842 (CFLAGS-tst-makecontext2.c): Likewise.
24843 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
24844 (CFLAGS-xnlm_prot.c): Likewise.
24845 (CFLAGS-xrstat.c): Likewise.
24846 (CFLAGS-xyppasswd.c): Likewise.
24847 (CFLAGS-xklm_prot.c): Likewise.
24848 (CFLAGS-xrex.c): Likewise.
24849 (CFLAGS-xsm_inter.c): Likewise.
24850 (CFLAGS-xmount.c): Likewise.
24851 (CFLAGS-xrusers.c): Likewise.
24852 (CFLAGS-xspray.c): Likewise.
24853 (CFLAGS-xnfs_prot.c): Likewise.
24854 (CFLAGS-xrquota.c): Likewise.
24855 (CFLAGS-xkey_prot.c): Likewise.
24856 (CFLAGS-auth_unix.c): Likewise.
24857 (CFLAGS-key_call.c): Likewise.
24858 (CFLAGS-pmap_rmt.c): Likewise.
24859 (CFLAGS-clnt_perr.c): Likewise.
24860 (CFLAGS-openchild.c): Likewise.
24861 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
24862 (CFLAGS-msgsnd.c): Likewise.
24863 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
24864 * time/Makefile (CFLAGS-tzfile.c): Likewise.
24865 (CFLAGS-tzset.c): Likewise.
24866 (CFLAGS-getdate.c): Likewise.
24867 (CFLAGS-test_time.c): Likewise.
24868 (CPPFLAGS-tst-tzname.c): Likewise.
24869 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
24870 (CFLAGS-zic.c): Likewise.
24871 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
24872 (CFLAGS-wcswidth.c): Likewise.
24873 (CFLAGS-wcstol.c): Likewise.
24874 (CFLAGS-wcstoul.c): Likewise.
24875 (CFLAGS-wcstoll.c): Likewise.
24876 (CFLAGS-wcstoull.c): Likewise.
24877 (CFLAGS-wcstod.c): Likewise.
24878 (CFLAGS-wcstold.c): Likewise.
24879 (CFLAGS-wcstof128.c): Likewise.
24880 (CFLAGS-wcstof.c): Likewise.
24881 (CFLAGS-wcstol_l.c): Likewise.
24882 (CFLAGS-wcstoul_l.c): Likewise.
24883 (CFLAGS-wcstoll_l.c): Likewise.
24884 (CFLAGS-wcstoull_l.c): Likewise.
24885 (CFLAGS-wcstod_l.c): Likewise.
24886 (CFLAGS-wcstold_l.c): Likewise.
24887 (CFLAGS-wcstof128_l.c): Likewise.
24888 (CFLAGS-wcstof_l.c): Likewise.
24889 (CPPFLAGS-tst-wchar-h.c): Likewise.
24890 (CPPFLAGS-wcstold_l.c): Likewise.
24891
24892 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
24893
24894 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
24895
24896 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
24897 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24898
24899 * manual/tunables.texi (Hardware Capability Tunables): Document
24900 glibc.tune.cached_memopt.
24901 * sysdeps/powerpc/cpu-features.c: New file.
24902 * sysdeps/powerpc/cpu-features.h: New file.
24903 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
24904 _dl_powerpc_cpu_features.
24905 * sysdeps/powerpc/dl-tunables.list: New file.
24906 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
24907 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
24908 (INIT_ARCH): Initialize use_aligned_memopt.
24909 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
24910 IS_IN(rtld))]: Restrict dl_platform_init availability and
24911 initialize CPU features used by tunables.
24912 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
24913 Add memcpy-power8-cached.
24914 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
24915 __memcpy_power8_cached.
24916 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24917 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
24918 New file.
24919
24920 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24921
24922 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
24923 (CFLAGS-noinl-tester.c): Likewise.
24924 (CFLAGS-tst-strlen.c): Likewise.
24925 (CFLAGS-stratcliff.c): Likewise.
24926 (CFLAGS-test-ffs.c): Likewise.
24927 (CFLAGS-tst-inlcall.c): Likewise.
24928 (CFLAGS-tst-xbzero-opt.c): Likewise.
24929 (CFLAGS-memcpy.c): Likewise.
24930 (CFLAGS-wordcopy.c): Likewise.
24931
24932 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
24933
24934 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
24935 Store r15 on stack and add cfi rule.
24936 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
24937 Likewise.
24938
24939 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
24940
24941 [BZ #22577]
24942 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
24943 call.
24944
24945 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24946
24947 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24948 Add s_sinf-sse2 and s_sinf-fma.
24949 (CFLAGS-s_sinf-fma.c): New.
24950 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
24951 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
24952 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
24953
24954 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
24955
24956 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
24957
24958 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24959
24960 [BZ #22568]
24961 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
24962 part of result to imaginary part of argument if it is zero and the
24963 real part of the argument is not finite.
24964 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
24965 of result to real part of argument if it is zero and the imaginary
24966 part of the argument is not finite.
24967
24968 2017-12-07 Mike FABIAN <mfabian@redhat.com>
24969
24970 [BZ #22524]
24971 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
24972 and to the list of locales to be built for testing.
24973 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
24974 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
24975 and build the collation rules upon that.
24976
24977 2017-12-07 Joseph Myers <joseph@codesourcery.com>
24978
24979 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
24980 * manual/math.texi (Mathematics): Document support for _Float32.
24981 * math/Makefile (test-types): Add float32.
24982 * math/Versions (GLIBC_2.27): Add _Float32 functions.
24983 * stdlib/Versions (GLIBC_2.27): Likewise.
24984 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24985 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24986 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24987 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24988 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24989 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24990 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24991 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24992 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24993 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24994 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24995 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24996 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24997 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24998 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24999 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25000 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25001 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25002 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25003 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25004 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25005 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25006 Likewise.
25007 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25008 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25009 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25010 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25011 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25013 Likewise.
25014 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25015 Likewise.
25016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25017 Likewise.
25018 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25019 Likewise.
25020
25021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25022 Likewise.
25023 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25024 Likewise.
25025 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25026 Likewise.
25027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25028 Likewise.
25029 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25030 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25031 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25032 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25033 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25034 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25035 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25036 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25037 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25038 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25039 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25040 Likewise.
25041 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25042 Likewise.
25043 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25044 Likewise.
25045 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25046 Likewise.
25047 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25048 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25049 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25050 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25051 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25052 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25053 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25054 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25055
25056 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25057
25058 * stdlib/strtof.c: Include <bits/floatn.h>
25059 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25060 and later undefine as macro. Define as weak alias if
25061 [!USE_WIDE_CHAR].
25062 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25063 and later undefine as macro. Define as weak alias if
25064 [USE_WIDE_CHAR].
25065 * stdlib/strtof_l.c: Include <bits/floatn.h>
25066 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25067 and later undefine as macro. Define as weak alias if
25068 [!USE_WIDE_CHAR].
25069 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25070 and later undefine as macro. Define as weak alias if
25071 [USE_WIDE_CHAR].
25072
25073 * stdlib/strfromf.c: Include <bits/floatn.h>.
25074 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25075 and later undefine as macro and define as weak alias.
25076
25077 * math/test-float32.h: New file.
25078
25079 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25080 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25081 (libm_alias_float_other_r): Create f32 alias.
25082 (libm_alias_float_r): Use semicolon before call to
25083 libm_alias_float_other_r.
25084
25085 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25086 second argument to libm_alias_float_other.
25087 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25088 second argument to libm_alias_float_other.
25089 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25090 argument to libm_alias_float_other.
25091
25092 [BZ #22561]
25093 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25094 real part of result for argument 0 + i * NaN.
25095 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25096 results for tests of 0 + i * NaN.
25097
25098 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25099
25100 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25101
25102 2017-12-06 David S. Miller <davem@davemloft.net>
25103
25104 * sysdeps/sparc/fpu/libm-test-ulps: Update
25105 exp_{downward,towardzero,upward} ulps.
25106
25107 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25108
25109 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25110 variables static.
25111
25112 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25113 (Y0_2D): Likewise.
25114 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25115 (Y0_2D): Likewise.
25116 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25117 (Y0_2D): Likewise.
25118 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25119 (Y0_2D): Likewise.
25120
25121 2017-12-06 Mike FABIAN <mfabian@redhat.com>
25122
25123 [BZ #22515]
25124 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25125 and to the list of locales to be built for testing.
25126 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25127 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25128 and build the collation rules upon that.
25129
25130 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25131
25132 * NEWS: Add sinf to list of optimized functions.
25133
25134 2017-12-06 Joseph Myers <joseph@codesourcery.com>
25135
25136 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25137 (__HAVE_FLOAT32X): Likewise.
25138 * manual/math.texi (Mathematics): Document support for _Float64
25139 and _Float32x.
25140 * math/Makefile (test-types): Add float64 and float32x.
25141 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25142 functions.
25143 * stdlib/Versions (GLIBC_2.27): Likewise.
25144 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25145 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25146 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25147 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25148 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25149 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25150 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25151 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25152 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25153 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25154 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25155 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25156 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25157 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25158 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25159 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25160 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25161 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25162 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25163 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25164 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25165 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25166 Likewise.
25167 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25168 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25169 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25170 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25171 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25172 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25173 Likewise.
25174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25175 Likewise.
25176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25177 Likewise.
25178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25179 Likewise.
25180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25181 Likewise.
25182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25183 Likewise.
25184 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25185 Likewise.
25186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25187 Likewise.
25188 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25189 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25190 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25191 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25192 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25193 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25194 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25195 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25196 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25197 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25198 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25199 Likewise.
25200 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25201 Likewise.
25202 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25203 Likewise.
25204 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25205 Likewise.
25206 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25207 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25208 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25209 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25210 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25211 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25212 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25213 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25214
25215 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25216
25217 * bits/floatn-common.h: Include <bits/long-double.h>.
25218 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25219 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25220 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25221 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25222 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25223 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25224 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25225 (__builtin_huge_valf64): Use __builtin_huge_vall.
25226 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25227 (__builtin_inff64): Use __builtin_infl.
25228 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25229 (__builtin_nanf64): Use __builtin_nanl.
25230 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25231 (__builtin_nansf64): Use __builtin_nansl.
25232
25233 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25234 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
25235 Carlos O'Donell <carlos@redhat.com>
25236
25237 * elf/dl-tunables.list: Add elision parameters.
25238 * manual/tunables.texi: Add entries about elision tunable.
25239 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25240 Add callback functions to dynamically enable/disable elision.
25241 Add multiple callbacks functions to set elision parameters.
25242 Deleted __libc_enable_secure check.
25243 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25244 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25245 * configure: Regenerated.
25246 * configure.ac: Option enable_lock_elision was deleted.
25247 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25248 * config.make.in: Remove references to enable_lock_elision.
25249 * manual/install.texi: Elision configure option was removed.
25250 * INSTALL: Regenerated to remove enable_lock_elision.
25251 * nptl/Makefile:
25252 Disable elision so it can verify error case for destroying a mutex.
25253 * sysdeps/powerpc/nptl/elide.h:
25254 Cleanup ENABLE_LOCK_ELISION check.
25255 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25256 * sysdeps/s390/configure: Regenerated.
25257 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25258 * nptl/tst-mutex8.c:
25259 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25260 * sysdeps/powerpc/powerpc32/sysdep.h:
25261 Deleted all ENABLE_LOCK_ELISION checks.
25262 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25263 * sysdeps/powerpc/sysdep.h: Likewise.
25264 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25265 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25266 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25267 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25268 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25269 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25270 enable-lock-elision.
25271
25272 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25273
25274 * stdlib/strtod.c: Include <bits/floatn.h>.
25275 (BUILD_DOUBLE): New macro.
25276 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25277 (strtof64): Define and later undefine as macro. Define as weak
25278 alias if [!USE_WIDE_CHAR].
25279 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25280 (wcstof64): Define and later undefine as macro. Define as weak
25281 alias if [USE_WIDE_CHAR].
25282 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25283 (strtof32x): Define and later undefine as macro. Define as weak
25284 alias if [!USE_WIDE_CHAR].
25285 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25286 (wcstof32x): Define and later undefine as macro. Define as weak
25287 alias if [USE_WIDE_CHAR].
25288 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25289 (BUILD_DOUBLE): New macro.
25290 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25291 (strtof64_l): Define and later undefine as macro. Define as weak
25292 alias if [!USE_WIDE_CHAR].
25293 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25294 (wcstof64_l): Define and later undefine as macro. Define as weak
25295 alias if [USE_WIDE_CHAR].
25296 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25297 (strtof32x_l): Define and later undefine as macro. Define as weak
25298 alias if [!USE_WIDE_CHAR].
25299 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25300 (wcstof32x_l): Define and later undefine as macro. Define as weak
25301 alias if [USE_WIDE_CHAR].
25302
25303 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25304
25305 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25306 (reduced): Use ones as double instead of integer.
25307
25308 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25309
25310 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25311
25312 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25313
25314 * stdlib/strfromd.c: Include <bits/floatn.h>.
25315 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25316 and later undefine as macro and define as weak alias.
25317 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25318 Likewise.
25319
25320 * math/test-float32x.h: New file.
25321 * math/test-float64.h: Likewise.
25322
25323 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25324 (libm_alias_double_other_r_f64): New macro.
25325 (libm_alias_double_other_r_f32x): Likewise.
25326 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25327 libm_alias_double_other_r_f32x.
25328 (libm_alias_double_r): Use semicolon before call to
25329 libm_alias_double_other_r.
25330 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25331 <bits/floatn.h>.
25332 (libm_alias_double_other_r_f64): New macro.
25333 (libm_alias_double_other_r_f32x): Likewise.
25334 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25335 libm_alias_double_other_r_f32x.
25336
25337 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25338
25339 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25340 int.
25341 (SINF_FUNC): Likewise. Replace floor with simple casts.
25342
25343 2017-12-05 Mike FABIAN <mfabian@redhat.com>
25344
25345 [BZ #22517]
25346 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25347 and to the list of locales to be built for testing.
25348 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25349 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25350 and build the collation rules upon that.
25351
25352 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25353
25354 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25355 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25356 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25357 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25358 instead of __insn__xxx.
25359 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25360 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25361 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25362 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25363 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25364 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25365
25366 2017-12-05 Florian Weimer <fweimer@redhat.com>
25367
25368 Linux: Implement interfaces for memory protection keys
25369 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25370 xsignal, xsysconf.
25371 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25372 * support/xunistd.h (xsysconf): Declare.
25373 * support/xraise.c: New file.
25374 * support/xsigaction.c: Likewise.
25375 * support/xsignal.c: Likewise.
25376 * support/xsysconf.c: Likewise.
25377 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25378 pkey_set, pkey_get, pkey_mprotect.
25379 [misc] (tests): Add tst-pkey.
25380 (tst-pkey): Link with -lpthread.
25381 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25382 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25383 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25384 (PKEY_DISABLE_WRITE): Define.
25385 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25386 Declare.
25387 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25388 (SEGV_PKUERR): Add.
25389 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25390 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25391 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25392 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25393 Add.
25394 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25395 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25396 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25397 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25398 * sysdeps/unix/sysv/linux/**.abilist: Update.
25399
25400 2017-12-05 Florian Weimer <fweimer@redhat.com>
25401
25402 * support/tst-test_compare.c (subprocess): Use long long instead
25403 of long argument for consistent type width across 32-bit and
25404 64-bit architectures.
25405 (do_test): Adjust expected output.
25406
25407 2017-12-05 Joseph Myers <joseph@codesourcery.com>
25408
25409 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25410 (cosf): Define using libm_alias_float.
25411 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25412 (fabsf): Define using libm_alias_float.
25413 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25414 (fmaf): Define using libm_alias_float.
25415 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25416 (rintf): Define using libm_alias_float.
25417 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25418 (sinf): Define using libm_alias_float.
25419 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25420 <libm-alias-float.h>.
25421 (modff): Define using libm_alias_float.
25422 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25423 <libm-alias-float.h>.
25424 (logbf): Define using libm_alias_float.
25425 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25426 <libm-alias-float.h>.
25427 (ceilf): Define using libm_alias_float.
25428 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25429 <libm-alias-float.h>.
25430 (copysignf): Define using libm_alias_float.
25431 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25432 <libm-alias-float.h>.
25433 (floorf): Define using libm_alias_float.
25434 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25435 <libm-alias-float.h>.
25436 (llrintf): Define using libm_alias_float.
25437 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25438 <libm-alias-float.h>.
25439 (llroundf): Define using libm_alias_float.
25440 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25441 <libm-alias-float.h>.
25442 (lrintf): Define using libm_alias_float.
25443 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25444 <libm-alias-float.h>.
25445 (lroundf): Define using libm_alias_float.
25446 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25447 <libm-alias-float.h>.
25448 (nearbyintf): Define using libm_alias_float.
25449 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25450 <libm-alias-float.h>.
25451 (rintf): Define using libm_alias_float.
25452 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25453 <libm-alias-float.h>.
25454 (roundf): Define using libm_alias_float.
25455 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25456 <libm-alias-float.h>.
25457 (truncf): Define using libm_alias_float.
25458 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25459 Include <libm-alias-float.h>.
25460 (ceilf): Define using libm_alias_float.
25461 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25462 Include <libm-alias-float.h>.
25463 (copysignf): Define using libm_alias_float.
25464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25465 Include <libm-alias-float.h>.
25466 (floorf): Define using libm_alias_float.
25467 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25468 Include <libm-alias-float.h>.
25469 (llrintf): Define using libm_alias_float.
25470 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25471 Include <libm-alias-float.h>.
25472 (llroundf): Define using libm_alias_float.
25473 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25474 Include <libm-alias-float.h>.
25475 (logbf): Define using libm_alias_float.
25476 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25477 Include <libm-alias-float.h>.
25478 (lrintf): Define using libm_alias_float.
25479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25480 Include <libm-alias-float.h>.
25481 (lroundf): Define using libm_alias_float.
25482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25483 Include <libm-alias-float.h>.
25484 (modff): Define using libm_alias_float.
25485 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25486 Include <libm-alias-float.h>.
25487 (roundf): Define using libm_alias_float.
25488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25489 Include <libm-alias-float.h>.
25490 (truncf): Define using libm_alias_float.
25491 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25492 <libm-alias-float.h>.
25493 (llrintf): Define using libm_alias_float.
25494 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25495 <libm-alias-float.h>.
25496 (llroundf): Define using libm_alias_float.
25497 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25498 <libm-alias-float.h>.
25499 (ceilf): Define using libm_alias_float.
25500 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25501 <libm-alias-float.h>.
25502 (floorf): Define using libm_alias_float.
25503 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25504 <libm-alias-float.h>.
25505 (llroundf): Define using libm_alias_float.
25506 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25507 <libm-alias-float.h>.
25508 (lroundf): Define using libm_alias_float.
25509 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25510 <libm-alias-float.h>.
25511 (roundf): Define using libm_alias_float.
25512 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25513 <libm-alias-float.h>.
25514 (truncf): Define using libm_alias_float.
25515 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25516 <libm-alias-float.h>.
25517 (copysignf): Define using libm_alias_float.
25518 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25519 <libm-alias-float.h>.
25520 (llrintf): Define using libm_alias_float.
25521 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25522 <libm-alias-float.h>.
25523 (llroundf): Define using libm_alias_float.
25524 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25525 <libm-alias-float.h>.
25526 (lrintf): Define using libm_alias_float.
25527 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25528 <libm-alias-float.h>.
25529 (lroundf): Define using libm_alias_float.
25530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25531 <libm-alias-float.h>.
25532 (ceilf): Define using libm_alias_float.
25533 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25534 <libm-alias-float.h>.
25535 (copysignf): Define using libm_alias_float.
25536 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25537 <libm-alias-float.h>.
25538 (cosf): Define using libm_alias_float.
25539 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25540 <libm-alias-float.h>.
25541 (floorf): Define using libm_alias_float.
25542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25543 <libm-alias-float.h>.
25544 (llrintf): Define using libm_alias_float.
25545 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25546 <libm-alias-float.h>.
25547 (llroundf): Define using libm_alias_float.
25548 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25549 <libm-alias-float.h>.
25550 (logbf): Define using libm_alias_float.
25551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25552 <libm-alias-float.h>.
25553 (modff): Define using libm_alias_float.
25554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25555 <libm-alias-float.h>.
25556 (roundf): Define using libm_alias_float.
25557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25558 <libm-alias-float.h>.
25559 (sinf): Define using libm_alias_float.
25560 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25561 <libm-alias-float.h>.
25562 (truncf): Define using libm_alias_float.
25563 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25564 <libm-alias-float.h>.
25565 (ceilf): Define using libm_alias_float.
25566 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25567 <libm-alias-float.h>.
25568 (copysignf): Define using libm_alias_float.
25569 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25570 <libm-alias-float.h>.
25571 (floorf): Define using libm_alias_float.
25572 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25573 <libm-alias-float.h>.
25574 (llrintf): Define using libm_alias_float.
25575 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25576 <libm-alias-float.h>.
25577 (llroundf): Define using libm_alias_float.
25578 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25579 <libm-alias-float.h>.
25580 (nearbyintf): Define using libm_alias_float.
25581 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25582 <libm-alias-float.h>.
25583 (rintf): Define using libm_alias_float.
25584 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25585 <libm-alias-float.h>.
25586 (roundf): Define using libm_alias_float.
25587 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25588 <libm-alias-float.h>.
25589 (truncf): Define using libm_alias_float.
25590 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25591 <libm-alias-float.h>.
25592 (ceilf): Define using libm_alias_float.
25593 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25594 <libm-alias-float.h>.
25595 (floorf): Define using libm_alias_float.
25596 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25597 <libm-alias-float.h>.
25598 (llroundf): Define using libm_alias_float.
25599 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25600 <libm-alias-float.h>.
25601 (roundf): Define using libm_alias_float.
25602 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25603 <libm-alias-float.h>.
25604 (truncf): Define using libm_alias_float.
25605 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25606 <libm-alias-float.h>.
25607 (copysignf): Define using libm_alias_float.
25608 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25609 <libm-alias-float.h>.
25610 (llrintf): Define using libm_alias_float.
25611 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25612 <libm-alias-float.h>.
25613 (llroundf): Define using libm_alias_float.
25614 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25615 <libm-alias-float.h>.
25616 (cosf): Define using libm_alias_float.
25617 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25618 <libm-alias-float.h>.
25619 (llrintf): Define using libm_alias_float.
25620 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25621 <libm-alias-float.h>.
25622 (llroundf): Define using libm_alias_float.
25623 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25624 <libm-alias-float.h>.
25625 (sinf): Define using libm_alias_float.
25626
25627 2017-12-04 Florian Weimer <fweimer@redhat.com>
25628
25629 * support/check.h (TEST_COMPARE): Define.
25630 (support_test_compare_failure): Declare.
25631 * support/Makefile (libsupport-routines): Add
25632 support_test_compare_failure.
25633 (tests): Add tst-test_compare.
25634 * support /support_test_compare_failure.c: New file.
25635 * support/tst-test_compare.c: Likewise.
25636
25637 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25638
25639 [BZ #22527]
25640 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25641 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25642 available, this rewrite of the collation rules does reproduce
25643 the test file in the same order.
25644
25645 2017-12-04 Mike FABIAN <mfabian@redhat.com>
25646
25647 [BZ #10580]
25648 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25649 digraphs in the month and day names. Using single code points for
25650 digraphs is deprecated. While there are dedicated Unicode
25651 codepoints, for the digraphs, these are included for backwards
25652 compatibility and modern texts use a sequence of Basic Latin
25653 characters. See: https://www.unicode.org/faq/ligature_digraph.html
25654 This makes the month and day names agree exactly with CLDR now,
25655 CLDR does not use the single code points for the digraphs either.
25656
25657 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
25658
25659 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
25660
25661 2017-12-04 Joseph Myers <joseph@codesourcery.com>
25662
25663 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
25664 of floor.
25665
25666 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
25667
25668 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
25669 Define only for libc.so.
25670
25671 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
25672
25673 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25674 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
25675 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
25676 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
25677 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
25678
25679 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25680
25681 [BZ #5997]
25682 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
25683
25684 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
25685
25686 [BZ libc/19170]
25687 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
25688 PREINIT_FUNCTION_WEAK is nonzero.
25689 (gmon_initializer): New function. Put procedure label for it in
25690 .init_array section.
25691 (_init): Don't call PREINIT_FUNCTION.
25692 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
25693 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
25694 value when map argument is null.
25695
25696 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
25697 depi instruction from PIC pc-relative sequence.
25698 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
25699 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
25700 (elf_machine_load_address): Likewise.
25701 (elf_machine_runtime_setup): Likewise.
25702
25703 2017-12-02 Joseph Myers <joseph@codesourcery.com>
25704
25705 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
25706 <libm-alias-double.h>.
25707 (logb): Define using libm_alias_double.
25708 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25709 <libm-alias-double.h>.
25710 (copysign): Define using libm_alias_double.
25711 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
25712 <libm-alias-double.h>.
25713 (llrint): Define using libm_alias_double.
25714 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
25715 <libm-alias-double.h>.
25716 (llround): Define using libm_alias_double.
25717 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25718 <libm-alias-double.h>.
25719 (lrint): Define using libm_alias_double.
25720 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25721 <libm-alias-double.h>.
25722 (lround): Define using libm_alias_double.
25723 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
25724 Include <libm-alias-double.h>.
25725 (copysign): Define using libm_alias_double.
25726 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
25727 Include <libm-alias-double.h>.
25728 (llrint): Define using libm_alias_double.
25729 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
25730 Include <libm-alias-double.h>.
25731 (llround): Define using libm_alias_double.
25732 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
25733 <libm-alias-double.h>.
25734 (logb): Define using libm_alias_double.
25735 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
25736 Include <libm-alias-double.h>.
25737 (lrint): Define using libm_alias_double.
25738 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
25739 Include <libm-alias-double.h>.
25740 (lround): Define using libm_alias_double.
25741 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
25742 <libm-alias-double.h>.
25743 (llrint): Define using libm_alias_double.
25744 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25745 <libm-alias-double.h>.
25746 (llround): Define using libm_alias_double.
25747 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25748 <libm-alias-double.h>.
25749 (llround): Define using libm_alias_double.
25750 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25751 <libm-alias-double.h>.
25752 (lround): Define using libm_alias_double.
25753 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25754 <libm-alias-double.h>.
25755 (copysign): Define using libm_alias_double.
25756 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
25757 <libm-alias-double.h>.
25758 (llrint): Define using libm_alias_double.
25759 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25760 <libm-alias-double.h>.
25761 (llround): Define using libm_alias_double.
25762 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25763 <libm-alias-double.h>.
25764 (lrint): Define using libm_alias_double.
25765 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25766 <libm-alias-double.h>.
25767 (lround): Define using libm_alias_double.
25768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
25769 <libm-alias-double.h>.
25770 (copysign): Define using libm_alias_double.
25771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
25772 <libm-alias-double.h>.
25773 (llrint): Define using libm_alias_double.
25774 (lrint): Likewise.
25775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
25776 <libm-alias-double.h>.
25777 (llround): Define using libm_alias_double.
25778 (lround): Likewise.
25779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
25780 <libm-alias-double.h>.
25781 (logb): Define using libm_alias_double.
25782 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25783 <libm-alias-double.h>.
25784 (copysign): Define using libm_alias_double.
25785 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25786 <libm-alias-double.h>.
25787 (llrint): Define using libm_alias_double.
25788 (lrint): Likewise.
25789 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
25790 <libm-alias-double.h>.
25791 (llround): Define using libm_alias_double.
25792 (lround): Likewise.
25793 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25794 <libm-alias-double.h>.
25795 (llround): Define using libm_alias_double.
25796 (lround): Likewise.
25797 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25798 <libm-alias-double.h>.
25799 (copysign): Define using libm_alias_double.
25800 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25801 <libm-alias-double.h>.
25802 (llrint): Define using libm_alias_double.
25803 (lrint): Likewise.
25804 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25805 <libm-alias-double.h>.
25806 (llround): Define using libm_alias_double.
25807 (lround): Likewise.
25808 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25809 <libm-alias-double.h>.
25810 (llrint): Define using libm_alias_double.
25811 (lrint): Likewise.
25812 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25813 <libm-alias-double.h>.
25814 (llround): Define using libm_alias_double.
25815 (lround): Likewise.
25816
25817 2017-12-01 Joseph Myers <joseph@codesourcery.com>
25818
25819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
25820 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
25821 compat symbol based on llround.
25822
25823 * sysdeps/powerpc/power7/fpu/s_logb.c
25824 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
25825 symbol based on __logb, not on logb.
25826 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
25827 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
25829 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
25830
25831 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
25832 (rint): Define using libm_alias_double.
25833 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
25834 <libm-alias-double.h>.
25835 (modf): Define using libm_alias_double.
25836 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
25837 <libm-alias-double.h>.
25838 (ceil): Define using libm_alias_double.
25839 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
25840 <libm-alias-double.h>.
25841 (floor): Define using libm_alias_double.
25842 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
25843 <libm-alias-double.h>.
25844 (nearbyint): Define using libm_alias_double.
25845 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
25846 <libm-alias-double.h>.
25847 (rint): Define using libm_alias_double.
25848 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
25849 <libm-alias-double.h>.
25850 (round): Define using libm_alias_double.
25851 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
25852 <libm-alias-double.h>.
25853 (trunc): Define using libm_alias_double.
25854 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
25855 <libm-alias-double.h>.
25856 (ceil): Define using libm_alias_double.
25857 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
25858 Include <libm-alias-double.h>.
25859 (floor): Define using libm_alias_double.
25860 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
25861 <libm-alias-double.h>.
25862 (modf): Define using libm_alias_double.
25863 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
25864 Include <libm-alias-double.h>.
25865 (round): Define using libm_alias_double.
25866 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
25867 Include <libm-alias-double.h>.
25868 (trunc): Define using libm_alias_double.
25869 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
25870 <libm-alias-double.h>.
25871 (ceil): Define using libm_alias_double.
25872 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
25873 <libm-alias-double.h>.
25874 (floor): Define using libm_alias_double.
25875 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
25876 <libm-alias-double.h>.
25877 (round): Define using libm_alias_double.
25878 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
25879 <libm-alias-double.h>.
25880 (trunc): Define using libm_alias_double.
25881 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
25882 <libm-alias-double.h>.
25883 (ceil): Define using libm_alias_double.
25884 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
25885 <libm-alias-double.h>.
25886 (floor): Define using libm_alias_double.
25887 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
25888 <libm-alias-double.h>.
25889 (modf): Define using libm_alias_double.
25890 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
25891 <libm-alias-double.h>.
25892 (round): Define using libm_alias_double.
25893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
25894 <libm-alias-double.h>.
25895 (trunc): Define using libm_alias_double.
25896 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
25897 <libm-alias-double.h>.
25898 (ceil): Define using libm_alias_double.
25899 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
25900 <libm-alias-double.h>.
25901 (floor): Define using libm_alias_double.
25902 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
25903 <libm-alias-double.h>.
25904 (nearbyint): Define using libm_alias_double.
25905 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
25906 <libm-alias-double.h>.
25907 (rint): Define using libm_alias_double.
25908 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
25909 <libm-alias-double.h>.
25910 (round): Define using libm_alias_double.
25911 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
25912 <libm-alias-double.h>.
25913 (trunc): Define using libm_alias_double.
25914 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
25915 <libm-alias-double.h>.
25916 (ceil): Define using libm_alias_double.
25917 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
25918 <libm-alias-double.h>.
25919 (floor): Define using libm_alias_double.
25920 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
25921 <libm-alias-double.h>.
25922 (round): Define using libm_alias_double.
25923 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
25924 <libm-alias-double.h>.
25925 (trunc): Define using libm_alias_double.
25926
25927 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
25928 (fabs): Define using libm_alias_double.
25929 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
25930 (fma): Define using libm_alias_double.
25931 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
25932 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
25933 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
25934 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
25935
25936 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25937
25938 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
25939
25940 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
25941 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
25942 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
25943
25944 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
25945 due redirect macro.
25946
25947 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
25948
25949 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
25950
25951 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25952
25953 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
25954 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
25955 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
25956 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
25957
25958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25959 (libm-sysdep_routines): Add s_nearbyintf-generic and
25960 s_nearbyint-generic.
25961 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
25962 New file.
25963 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
25964 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
25965 Likewise.
25966 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
25967 Likewise.
25968 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
25969 file.
25970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
25971 Likewise.
25972
25973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25974 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
25975 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
25976 file.
25977 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
25978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
25979 Likewise.
25980 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
25981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
25982 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25983
25984 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25985 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
25986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
25987 file.
25988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
25989 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
25990 Likewise.
25991 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
25992 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
25993 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
25994
25995 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
25996 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
25997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
25998 file.
25999 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26001 Likewise.
26002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26003 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26004 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26005
26006 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26007 (sysdep_calls): New rule.
26008 (sysdep_routines): Use sysdep_calls as base.
26009 (libm-sysdep_routines): Add generic rule for symbols shared with
26010 libc. Add s_copysign-generic and s_copysign-generic objects.
26011 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26012 New file.
26013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26015 Likewise.
26016 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26018 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26019
26020 2017-12-01 Mike FABIAN <mfabian@redhat.com>
26021
26022 [BZ #22519]
26023 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26024 the list of locales to be built for testing.
26025 * localedata/is_IS.UTF-8.in: New file.
26026 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26027 on iso14651_t1.
26028
26029 2017-12-01 Joseph Myers <joseph@codesourcery.com>
26030
26031 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26032 <libm-alias-float.h>.
26033 (fabsf): Define using libm_alias_float.
26034
26035 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26036
26037 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26038
26039 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26040
26041 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26042 <libm-alias-float.h>.
26043 (fabsf): Define using libm_alias_float.
26044 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26045 <libm-alias-float.h>.
26046 (lrintf): Define using libm_alias_float.
26047 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26048 <libm-alias-float.h>.
26049 (rintf): Define using libm_alias_float.
26050
26051 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26052 <libm-alias-double.h>.
26053 (fabs): Define using libm_alias_double.
26054 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26055 <libm-alias-double.h>.
26056 (lrint): Define using libm_alias_double.
26057 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26058 <libm-alias-double.h>.
26059 (rint): Define using libm_alias_double.
26060
26061 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26062 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26063 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26064 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26065 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26066 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26067 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26068 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26069 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26070 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26071 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26072 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26073 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26074 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26075 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26076 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26077 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26078 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26079 s_atan_template.c.
26080 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26081 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26082 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26083 s_ceil_template.c.
26084 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26085 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26086 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26087 s_cos_template.c.
26088 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26089 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26090 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26091 s_expm1_template.c.
26092 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26093 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26094 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26095 s_fabs_template.c.
26096 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26097 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26098 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26099 s_floor_template.c.
26100 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26101 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26102 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26103 s_frexp_template.c.
26104 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26105 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26106 s_lrint_template.c.
26107 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26108 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26109 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26110 s_modf_template.c.
26111 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26112 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26113 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26114 s_nearbyint_template.c.
26115 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26116 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26117 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26118 s_remquo_template.c.
26119 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26120 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26121 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26122 s_rint_template.c.
26123 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26124 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26125 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26126 s_sin_template.c.
26127 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26128 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26129 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26130 s_sincos_template.c.
26131 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26132 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26133 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26134 s_tan_template.c.
26135 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26136 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26137 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26138 s_tanh_template.c.
26139 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26140 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26141 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26142 s_trunc_template.c.
26143 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26144 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26145 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26146 s_atan.c instead of including s_atan.c.
26147 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26148 s_atanf.c instead of including s_atanf.c.
26149 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26150 s_atanl.c instead of including s_atanl.c.
26151 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26152 instead of s_atan.c.
26153 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26154 instead of s_atanf.c.
26155 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26156 instead of s_atanl.c.
26157
26158 * scripts/update-copyrights: Do not handle intl/plural.c
26159 specially.
26160
26161 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26162
26163 [BZ #22432]
26164 * configure.ac (BISON): Require to be present.
26165 * configure: Regenerated.
26166 * intl/Makefile (generated): Add plural.c.
26167 [$(BISON) != no]: Make code unconditional.
26168 (plural.c): Change rule to $(objpfx)plural.c.
26169 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26170 * intl/plural.c: Remove.
26171 * manual/install.texi (Tools for Compilation): Document bison as
26172 required.
26173 * INSTALL: Regenerated.
26174
26175 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26176
26177 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26178 <libm-alias-double.h>.
26179 (llrint): Define using libm_alias_double.
26180 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26181 <libm-alias-float.h>.
26182 (llrintf): Define using libm_alias_float.
26183 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26184 <libm-alias-ldouble.h>.
26185 (llrintl): Define using libm_alias_ldouble.
26186
26187 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26188 declare_mgen_alias instead of weak_alias.
26189 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26190 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26191 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26192
26193 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26194
26195 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26196 Add add_n-generic.
26197 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26198 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26199 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26200
26201 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26202 Add submul_1-generic.
26203 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26204 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26205 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26206
26207 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26208 Add addmul_1-generic.
26209 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26210 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26211 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26212
26213 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26214 Add sub_n-generic.
26215 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26216 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26217 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26218
26219 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26220 Add mul_1-generic.
26221 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26222 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26223 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26224
26225 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26226
26227 According to CLDR, collation rules for Serbian and Bosnian
26228 should be the same as for Croatian.
26229
26230 [BZ #22534]
26231 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26232 and to the list of locales to be built for testing.
26233 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26234 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26235 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26236 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26237
26238 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26239
26240 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26241 to make test case pass.
26242 * localedata/hr_HR.UTF-8.in: Add more test strings.
26243
26244 2017-11-30 Mike FABIAN <mfabian@redhat.com>
26245
26246 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26247
26248 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26249
26250 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26251 the list of locales to built for testing.
26252 * localedata/hr_HR.UTF-8.in: New file.
26253
26254 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
26255
26256 [BZ #10580]
26257 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26258 iso14651_t1.
26259 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26260 CLDR (except use ligatures for the digraphs, CLDR does not use
26261 the ligatures), add first_workday, some fixes in the date and time
26262 formats.
26263 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26264 for Đ and đ.
26265 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26266 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26267 Add int_p_cs_precedes and int_n_cs_precedes.
26268 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26269 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26270 LC_MONETARY now).
26271 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26272 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26273 name_miss.
26274 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26275 and lang_lib. Change postal_fmt.
26276
26277 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26278
26279 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26280 <setjmp.h>.
26281 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26282 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26283 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26284 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26285 * sysdeps/generic/setjmpP.h: New file.
26286 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26287 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26288 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26289 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26290 Add jmp_buf-ssp.sym.
26291 (tests): Add tst-saved_mask-1.
26292
26293 2017-11-30 Arjun Shankar <arjun@redhat.com>
26294
26295 [BZ #22375]
26296 CVE-2017-17426
26297 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26298 instead of request2size.
26299
26300 2017-11-30 Joseph Myers <joseph@codesourcery.com>
26301
26302 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26303 (__lllrint): Remove alias.
26304 (lllrint): Likewise.
26305 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26306 (__lllrintf): Likewise.
26307 (lllrintf): Likewise.
26308
26309 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26310 <libm-alias-float.h>.
26311 (copysignf): Define using libm_alias_float.
26312 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26313 <libm-alias-float.h>.
26314 (fabsf): Define using libm_alias_float.
26315 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26316 Include <libm-alias-float.h>.
26317 (copysignf): Define using libm_alias_float.
26318 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26319 <libm-alias-float.h>.
26320 (fabsf): Define using libm_alias_float.
26321 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26322 <libm-alias-float.h>.
26323 (fdimf): Define using libm_alias_float.
26324 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26325 <libm-alias-float.h>.
26326 (fmaf): Define using libm_alias_float.
26327 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26328 <libm-alias-float.h>.
26329 (llrintf): Define using libm_alias_float.
26330 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26331 Include <libm-alias-float.h>.
26332 (nearbyintf): Define using libm_alias_float.
26333 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26334 <libm-alias-float.h>.
26335 (rintf): Define using libm_alias_float.
26336 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26337 <libm-alias-float.h>.
26338 (llrintf): Define using libm_alias_float.
26339 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26340 <libm-alias-float.h>.
26341 (lrintf): Define using libm_alias_float.
26342 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26343 <libm-alias-float.h>.
26344 (nearbyintf): Define using libm_alias_float.
26345 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26346 <libm-alias-float.h>.
26347 (rintf): Define using libm_alias_float.
26348 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26349 <libm-alias-float.h>.
26350 (ceilf): Define using libm_alias_float.
26351 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26352 <libm-alias-float.h>.
26353 (floorf): Define using libm_alias_float.
26354 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26355 <libm-alias-float.h>.
26356 (fmaf): Define using libm_alias_float.
26357 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26358 <libm-alias-float.h>.
26359 (lrintf): Define using libm_alias_float.
26360 (llrintf): Likewise.
26361 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26362 <libm-alias-float.h>.
26363 (nearbyintf): Define using libm_alias_float.
26364 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26365 <libm-alias-float.h>.
26366 (rintf): Define using libm_alias_float.
26367 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26368 <libm-alias-float.h>.
26369 (truncf): Define using libm_alias_float.
26370 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26371 <libm-alias-float.h>.
26372 (copysignf): Define using libm_alias_float.
26373 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26374 <libm-alias-float.h>.
26375 (fabsf): Define using libm_alias_float.
26376 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26377 <libm-alias-float.h>.
26378 (lrintf): Define using libm_alias_float.
26379 (llrintf): Likewise.
26380 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26381 <libm-alias-float.h>.
26382 (nearbyintf): Define using libm_alias_float.
26383 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26384 <libm-alias-float.h>.
26385 (rintf): Define using libm_alias_float.
26386
26387 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26388
26389 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26390 <libm-alias-double.h>.
26391 (copysign): Define using libm_alias_double.
26392 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26393 <libm-alias-double.h>.
26394 (fabs): Define using libm_alias_double.
26395 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26396 Include <libm-alias-double.h>.
26397 (copysign): Define using libm_alias_double.
26398 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26399 <libm-alias-double.h>.
26400 (fabs): Define using libm_alias_double.
26401 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26402 <libm-alias-double.h>.
26403 (fdim): Define using libm_alias_double.
26404 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26405 <libm-alias-double.h>.
26406 (fma): Define using libm_alias_double.
26407 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26408 <libm-alias-double.h>.
26409 (llrint): Define using libm_alias_double.
26410 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26411 Include <libm-alias-double.h>.
26412 (nearbyint): Define using libm_alias_double.
26413 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26414 <libm-alias-double.h>.
26415 (rint): Define using libm_alias_double.
26416 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26417 <libm-alias-double.h>.
26418 (fabs): Define using libm_alias_double.
26419 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26420 <libm-alias-double.h>.
26421 (llrint): Define using libm_alias_double.
26422 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26423 <libm-alias-double.h>.
26424 (nearbyint): Define using libm_alias_double.
26425 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26426 <libm-alias-double.h>.
26427 (rint): Define using libm_alias_double.
26428 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26429 <libm-alias-double.h>.
26430 (ceil): Define using libm_alias_double.
26431 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26432 <libm-alias-double.h>.
26433 (floor): Define using libm_alias_double.
26434 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26435 <libm-alias-double.h>.
26436 (fma): Define using libm_alias_double.
26437 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26438 <libm-alias-double.h>.
26439 (lrint): Define using libm_alias_double.
26440 (llrint): Likewise.
26441 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26442 <libm-alias-double.h>.
26443 (nearbyint): Define using libm_alias_double.
26444 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26445 <libm-alias-double.h>.
26446 (rint): Define using libm_alias_double.
26447 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26448 <libm-alias-double.h>.
26449 (trunc): Define using libm_alias_double.
26450 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26451 <libm-alias-double.h>.
26452 (copysign): Define using libm_alias_double.
26453 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26454 <libm-alias-double.h>.
26455 (fabs): Define using libm_alias_double.
26456 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26457 <libm-alias-double.h>.
26458 (lrint): Define using libm_alias_double.
26459 (llrint): Likewise.
26460 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26461 <libm-alias-double.h>.
26462 (nearbyint): Define using libm_alias_double.
26463 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26464 <libm-alias-double.h>.
26465 (rint): Define using libm_alias_double.
26466
26467 [BZ #22229]
26468 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26469 <math_ldbl_opt.h>.
26470 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26471
26472 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26473 SPARC --disable-multi-arch glibc variants.
26474
26475 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26476 <libm-alias-float.h>.
26477 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26478 if [SHARED].
26479 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26480 <libm-alias-float.h>.
26481 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26482 if [SHARED].
26483 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26484 <libm-alias-float.h>.
26485 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26486 if [SHARED].
26487 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26488 <libm-alias-float.h>.
26489 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26490 if [SHARED].
26491 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26492 <libm-alias-float.h>.
26493 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26494 if [SHARED].
26495 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26496 <libm-alias-float.h>.
26497 (ceilf): Define using libm_alias_float.
26498 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26499 <libm-alias-float.h>.
26500 (floorf): Define using libm_alias_float.
26501 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26502 <libm-alias-float.h>.
26503 (fmaf): Define using libm_alias_float.
26504 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26505 <libm-alias-float.h>.
26506 (nearbyintf): Define using libm_alias_float.
26507 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26508 <libm-alias-float.h>.
26509 (rintf): Define using libm_alias_float.
26510 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26511 <libm-alias-float.h>.
26512 (truncf): Define using libm_alias_float.
26513 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26514 (copysignf): Define using libm_alias_float.
26515 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26516 (cosf): Define using libm_alias_float.
26517 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26518 (fabsf): Define using libm_alias_float.
26519 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26520 (fmaxf): Define using libm_alias_float.
26521 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26522 (fminf): Define using libm_alias_float.
26523 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26524 (llrintf): Define using libm_alias_float.
26525 [!__ILP32__] (lrintf): Likewise.
26526 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26527 (sincosf): Define using libm_alias_float.
26528 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26529 (sinf): Define using libm_alias_float.
26530 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26531 (lrintf): Define using libm_alias_float.
26532
26533 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26534 <libm-alias-double.h>.
26535 (atan): Define using libm_alias_double.
26536 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26537 <libm-alias-double.h>.
26538 (ceil): Define using libm_alias_double.
26539 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26540 <libm-alias-double.h>.
26541 (floor): Define using libm_alias_double.
26542 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26543 <libm-alias-double.h>.
26544 (fma): Define using libm_alias_double.
26545 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26546 <libm-alias-double.h>.
26547 (nearbyint): Define using libm_alias_double.
26548 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26549 <libm-alias-double.h>.
26550 (rint): Define using libm_alias_double.
26551 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26552 <libm-alias-double.h>.
26553 (sin): Define using libm_alias_double.
26554 (cos): Likewise.
26555 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26556 <libm-alias-double.h>.
26557 (tan): Define using libm_alias_double.
26558 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26559 <libm-alias-double.h>.
26560 (trunc): Define using libm_alias_double.
26561 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26562 (copysign): Define using libm_alias_double.
26563 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26564 (fabs): Define using libm_alias_double.
26565 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26566 (fmax): Define using libm_alias_double.
26567 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26568 (fmin): Define using libm_alias_double.
26569 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26570 (llrint): Define using libm_alias_double.
26571 [!__ILP32__] (lrint): Likewise.
26572 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26573 (lrint): Define using libm_alias_double.
26574
26575 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26576
26577 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26578 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26579 objects.
26580 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26581 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26582 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26583 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26584 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26585 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26586
26587 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26588 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26589 objects.
26590 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26591 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26592 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26593 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26594 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26595 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26596
26597 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26598 (libm-sysdep_routines): Add s_nearbyint-generic and
26599 s_nearbyintf-generic objects.
26600 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26601 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26602 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26603 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26604 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26605 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26606
26607 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26608 Add s_finitef-generic and s_finite-generic objects.
26609 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26610 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26611 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26612 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26613 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26614 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26615
26616 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26617 Add s_isinff-generic and s_isinf-generic objects.
26618 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26619 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26620 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26621 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26622 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26623 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26624
26625 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26626 Add s_isnanf-generic and s_isnan-generic objects.
26627 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26628 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26629 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26630 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26631 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26632 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26633
26634 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26635 macro.
26636 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26637 rule.
26638 (sysdep_routines): Use sysdep_calls as base.
26639 (libm-sysdep_routines): Add generic rule for symbols shared with
26640 libc. Add s_signbit-generic and s_signbitf-generic objects.
26641 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26642 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26643 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26644 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26645 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26646 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26647
26648 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26649
26650 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26651 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
26652 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
26653 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
26654 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
26655 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
26656 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
26657 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
26658 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
26659 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
26660 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
26661 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
26662 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
26663 libm_alias_float_r.
26664 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
26665 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
26666 (logf): Likewise.
26667 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
26668 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
26669 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
26670 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
26671 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
26672 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
26673 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
26674 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
26675 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
26676 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
26677 libm_alias_float.
26678 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
26679 (cosf): Likewise.
26680 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
26681 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
26682 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
26683 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
26684 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
26685 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
26686 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
26687 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
26688 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
26689 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
26690 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
26691 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
26692 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
26693 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
26694 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
26695 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
26696 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
26697 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
26698 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
26699 libm_alias_float.
26700 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
26701 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
26702 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
26703 * sysdeps/ia64/fpu/w_lgammaf_main.c
26704 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
26705 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
26706
26707 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26708 Alexandre Oliva <aoliva@redhat.com>
26709
26710 [BZ #17750]
26711 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
26712 * localedata/fr_CA.UTF-8.in: New file with test data for backward
26713 accents sorting.
26714 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
26715 sorting.
26716 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
26717 * localedata/locales/de_DE (LC_COLLATE): Likewise.
26718 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
26719 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
26720 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
26721 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
26722 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
26723 instead of “ifdef DIACRIT_BACKWARD”.
26724
26725 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26726
26727 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
26728 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
26729 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
26730 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
26731 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
26732 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
26733 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
26734 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
26735 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
26736 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
26737 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
26738 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
26739 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
26740 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
26741 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
26742 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26743 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
26744 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
26745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26746 ($(have-as-vis3) == yes): Remove conditional.
26747 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
26748 Likewise.
26749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
26750 file.
26751 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
26752 file.
26753 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
26754 file.
26755 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
26756 file.
26757 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
26758 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
26759 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
26760 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
26761 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
26762 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
26763 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
26764 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
26765
26766 2017-11-29 Joseph Myers <joseph@codesourcery.com>
26767
26768 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
26769 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
26770 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
26771 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
26772 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
26773 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
26774 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
26775 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
26776 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
26777 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
26778 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
26779 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
26780 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
26781 libm_alias_double_r.
26782 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
26783 (log): Likewise.
26784 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
26785 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
26786 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
26787 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
26788 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
26789 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
26790 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
26791 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
26792 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
26793 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
26794 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
26795 libm_alias_double.
26796 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
26797 (cos): Likewise.
26798 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
26799 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
26800 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
26801 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
26802 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
26803 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
26804 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
26805 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
26806 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
26807 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
26808 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
26809 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
26810 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
26811 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
26812 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
26813 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
26814 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
26815 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
26816 libm_alias_double.
26817 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
26818 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
26819 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
26820 * sysdeps/ia64/fpu/w_lgamma_main.c
26821 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
26822 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
26823
26824 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
26825
26826 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
26827 address of $global$ into %dp register earlier. Use pc-relative
26828 instruction sequence for PIC case.
26829
26830 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26831
26832 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
26833 (asinhf): Define using libm_alias_float.
26834 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
26835 (atanf): Define using libm_alias_float.
26836 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
26837 (cbrtf): Define using libm_alias_float.
26838 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
26839 (ceilf): Define using libm_alias_float.
26840 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26841 (copysignf): Define using libm_alias_float.
26842 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
26843 (expm1f): Define using libm_alias_float.
26844 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
26845 (fabsf): Define using libm_alias_float.
26846 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
26847 (floorf): Define using libm_alias_float.
26848 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26849 (fmaxf): Define using libm_alias_float.
26850 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
26851 (fminf): Define using libm_alias_float.
26852 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
26853 (frexpf): Define using libm_alias_float.
26854 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26855 (llrintf): Define using libm_alias_float.
26856 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
26857 (logbf): Define using libm_alias_float.
26858 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26859 (lrintf): Define using libm_alias_float.
26860 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
26861 (nearbyintf): Define using libm_alias_float.
26862 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
26863 (remquof): Define using libm_alias_float.
26864 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
26865 (rintf): Define using libm_alias_float.
26866 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
26867 (truncf): Define using libm_alias_float.
26868 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
26869 <libm-alias-float.h>.
26870 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26871 if [SHARED].
26872 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
26873 <libm-alias-float.h>.
26874 (expf): Define using libm_alias_float, or libm_alias_float_other
26875 if [SHARED].
26876 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
26877 <libm-alias-float.h>.
26878 (log2f): Define using libm_alias_float, or libm_alias_float_other
26879 if [SHARED].
26880 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
26881 <libm-alias-float.h>.
26882 (logf): Define using libm_alias_float, or libm_alias_float_other
26883 if [SHARED].
26884 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
26885 <libm-alias-float.h>.
26886 (powf): Define using libm_alias_float, or libm_alias_float_other
26887 if [SHARED].
26888 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
26889 <libm-alias-float.h>.
26890 (cosf): Define using libm_alias_float.
26891 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
26892 <libm-alias-float.h>.
26893 (sincosf): Define using libm_alias_float.
26894 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
26895 <libm-alias-float.h>.
26896 (sinf): Define using libm_alias_float.
26897 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26898 (fmaxf): Define using libm_alias_float.
26899 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
26900 (fminf): Define using libm_alias_float.
26901 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
26902 <libm-alias-float.h>.
26903 (fmaf): Define using libm_alias_float.
26904
26905 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
26906 (asinh): Define using libm_alias_double.
26907 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
26908 (atan): Define using libm_alias_double.
26909 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
26910 (cbrt): Define using libm_alias_double.
26911 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
26912 (ceil): Define using libm_alias_double.
26913 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
26914 (copysign): Define using libm_alias_double.
26915 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
26916 (expm1): Define using libm_alias_double.
26917 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
26918 (fabs): Define using libm_alias_double.
26919 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
26920 (fdim): Define using libm_alias_double.
26921 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
26922 (floor): Define using libm_alias_double.
26923 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
26924 (fmax): Define using libm_alias_double.
26925 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
26926 (fmin): Define using libm_alias_double.
26927 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
26928 (frexp): Define using libm_alias_double.
26929 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
26930 (llrint): Define using libm_alias_double.
26931 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
26932 (logb): Define using libm_alias_double.
26933 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
26934 (lrint): Define using libm_alias_double.
26935 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
26936 (nearbyint): Define using libm_alias_double.
26937 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
26938 (remquo): Define using libm_alias_double.
26939 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
26940 (rint): Define using libm_alias_double.
26941 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
26942 (trunc): Define using libm_alias_double.
26943 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
26944 (fmax): Define using libm_alias_double.
26945 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
26946 (fmin): Define using libm_alias_double.
26947 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
26948 (fma): Define using libm_alias_double.
26949
26950 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
26951
26952 [BZ #22370]
26953 * elf/dl-hwcaps.c (ROUND): Removed.
26954 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
26955 and ELF_NOTE_NEXT_OFFSET.
26956 * elf/dl-load.c (ROUND): Removed.
26957 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26958 * elf/readelflib.c (ROUND): Removed.
26959 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
26960 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
26961 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
26962 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
26963
26964 2017-11-28 Joseph Myers <joseph@codesourcery.com>
26965
26966 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
26967 [!__fmaf] (fmaf): Define using libm_alias_float.
26968
26969 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
26970 [!__fma] (fma): Define using libm_alias_double.
26971 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
26972
26973 2017-11-28 Mike FABIAN <mfabian@redhat.com>
26974
26975 [BZ #22336]
26976 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
26977 and implement the collation rules for cs from CLDR on top of that.
26978 * Makefile: Add cs_CZ.UTF-8 to test-input.
26979 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
26980
26981 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
26982
26983 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
26984
26985 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26986 Icarus Sparry <icarus.w.sparry@intel.com>
26987
26988 * benchtests/Makefile:Add BENCHSET to allow subsets of
26989 benchmarks to be run.
26990 * benchtests/README: Add documentation for: Running subsets of
26991 benchmarks.
26992
26993 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
26994
26995 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
26996 range of tests names.
26997
26998 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
26999 result from property and remove "max", min" and "mean" from
27000 required properties based on benchtests/bench-skeleton.c.
27001
27002 2017-11-28 Florian Weimer <fweimer@redhat.com>
27003
27004 [BZ #20826]
27005 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27006 due to Internet requirement.
27007 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27008 tst-getaddrinfo5.
27009 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27010
27011 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27012
27013 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27014 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27015 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27016 (sysdep_routines): Add memset-ultra1.
27017 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27018 file.
27019 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27020 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27021 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27022 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27023 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27024 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27025 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27026 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27027
27028 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27029 file.
27030 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27031 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27032 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27033 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27034 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27035 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27036 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27037 macro.
27038 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27039 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27040 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27041 (sysdep_routines): Add memcpy-ultra1.
27042 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27043 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27044
27045 2017-11-28 Joseph Myers <joseph@codesourcery.com>
27046
27047 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27048 (cfloat_versions): Take function argument without trailing 'f'.
27049 Call libm_alias_float_other.
27050 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27051 * sysdeps/alpha/fpu/cargf.c: Likewise.
27052 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27053 * sysdeps/alpha/fpu/conjf.c: Likewise.
27054 * sysdeps/alpha/fpu/crealf.c: Likewise.
27055 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27056 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27057 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27058 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27059 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27060 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27061 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27062 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27063 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27064 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27065 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27066 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27067 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27068 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27069 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27070 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27071 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27072 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27073 (clog10f): Use libm_alias_float_other.
27074 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27075 (ceilf): Define using libm_alias_float.
27076 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27077 (copysignf): Define using libm_alias_float.
27078 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27079 (fabsf): Define using libm_alias_float.
27080 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27081 (floorf): Define using libm_alias_float.
27082 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27083 (fmaxf): Define using libm_alias_float.
27084 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27085 (fminf): Define using libm_alias_float.
27086 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27087 (lrintf): Define using libm_alias_float.
27088 (llrintf): Likewise.
27089 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27090 (lroundf): Define using libm_alias_float.
27091 (llroundf): Likewise.
27092 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27093 (rintf): Define using libm_alias_float.
27094 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27095 (truncf): Define using libm_alias_float.
27096
27097 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27098 (ceilf): Define using libm_alias_float.
27099 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27100 (floorf): Define using libm_alias_float.
27101 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27102 (fmaf): Define using libm_alias_float.
27103 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27104 (fmaxf): Define using libm_alias_float.
27105 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27106 (fminf): Define using libm_alias_float.
27107 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27108 (llrintf): Define using libm_alias_float.
27109 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27110 (llroundf): Define using libm_alias_float.
27111 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27112 (lrintf): Define using libm_alias_float.
27113 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27114 (lroundf): Define using libm_alias_float.
27115 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27116 <libm-alias-float.h>.
27117 (nearbyintf): Define using libm_alias_float.
27118 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27119 (rintf): Define using libm_alias_float.
27120 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27121 (roundf): Define using libm_alias_float.
27122 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27123 (truncf): Define using libm_alias_float.
27124
27125 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27126 (ceil): Define using libm_alias_double.
27127 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27128 (copysign): Define using libm_alias_double.
27129 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27130 (fabs): Define using libm_alias_double.
27131 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27132 (floor): Define using libm_alias_double.
27133 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27134 (fmax): Define using libm_alias_double.
27135 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27136 (fmin): Define using libm_alias_double.
27137 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27138 (lrint): Define using libm_alias_double.
27139 (llrint): Likewise.
27140 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27141 (lround): Define using libm_alias_double.
27142 (llround): Likewise.
27143 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27144 (rint): Define using libm_alias_double.
27145 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27146 (trunc): Define using libm_alias_double.
27147
27148 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27149 (libm_alias_double_r): Add semicolon after weak_alias call.
27150
27151 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27152
27153 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27154 (ceil): Define using libm_alias_double.
27155 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27156 (floor): Define using libm_alias_double.
27157 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27158 (fma): Define using libm_alias_double.
27159 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27160 (fmax): Define using libm_alias_double.
27161 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27162 (fmin): Define using libm_alias_double.
27163 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27164 (llrint): Define using libm_alias_double.
27165 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27166 (llround): Define using libm_alias_double.
27167 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27168 (lrint): Define using libm_alias_double.
27169 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27170 (lround): Define using libm_alias_double.
27171 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27172 (nearbyint): Define using libm_alias_double.
27173 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27174 (rint): Define using libm_alias_double.
27175 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27176 (round): Define using libm_alias_double.
27177 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27178 (trunc): Define using libm_alias_double.
27179
27180 2017-11-27 Florian Weimer <fweimer@redhat.com>
27181
27182 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27183 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27184 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27185 (tests): Add tst-mlock2.
27186 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27187 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27188 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27189 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27190 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27191 for mlock. Document mlock2.
27192
27193 2017-11-27 Joseph Myers <joseph@codesourcery.com>
27194
27195 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27196 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27197 Likewise.
27198 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27199 Likewise.
27200 * sysdeps/x86/Makeconfig: New file.
27201 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27202 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27203 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27204 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27205 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27206 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27207 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27208 Likewise.
27209 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27210 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27211 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27212 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27213 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27214 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27215 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27216 * manual/math.texi (Mathematics): Document support for _Float64x.
27217 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27218 * stdlib/Versions (GLIBC_2.27): Likewise.
27219 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27220 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27221 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27222 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27223 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27224 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27225 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27226 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27227 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27228 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27229 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27230 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27232 Likewise.
27233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27234 Likewise.
27235 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27236 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27237 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27238 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27239 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27240 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27241 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27242 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27243 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27244 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27245 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27246 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27247 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27248 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27249
27250 2017-11-27 Andreas Schwab <schwab@suse.de>
27251
27252 * elf/Makefile (dl-routines): Add dl-sort-maps.
27253 * elf/dl-sort-maps.c: New file.
27254 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27255 (_dl_sort_maps): Declare.
27256 * elf/dl-fini.c (_dl_sort_fini): Remove.
27257 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27258 * elf/dl-close.c (_dl_close_worker): Likewise.
27259 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27260 open-coding it.
27261 * elf/dl-open.c (dl_open_worker): Likewise.
27262
27263 2017-11-24 Joseph Myers <joseph@codesourcery.com>
27264
27265 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27266 using libm_alias_float128.
27267 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27268 Likewise.
27269 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27270 Likewise.
27271 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27272 (setpayloadsigf128): Likewise.
27273 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27274 Likewise.
27275 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27276 Likewise.
27277
27278 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27279 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27280 -mfloat128 to CFLAGS.
27281 ($(foreach
27282 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27283 Likewise.
27284 (CFLAGS-libm-test-support-float64x.c): New variable.
27285 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27286 $(f128-loader-link) to gnulib-tests.
27287
27288 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27289 (libm_alias_float128_other_r): If
27290 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27291 alias.
27292 (libm_alias_float128_r): Add semicolon after weak_alias call.
27293 * sysdeps/generic/libm-alias-ldouble.h
27294 (libm_alias_ldouble_other_r_f128): New macro.
27295 (libm_alias_ldouble_other_r_f64x): Likewise.
27296 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27297 and libm_alias_ldouble_other_r_f64x.
27298 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27299 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27300 (libm_alias_ldouble_other_r_f128): New macro.
27301 (libm_alias_ldouble_other_r_f64x): Likewise.
27302 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27303 and libm_alias_ldouble_other_r_f64x.
27304
27305 * stdlib/strfroml.c: Always include <stdlib.h>.
27306 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27307 undefine as macro and define as weak alias.
27308 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27309 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27310 <stdlib.h>.
27311 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27312 Define and later undefine as macro and define as weak alias.
27313
27314 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27315 Define and later undefine as macro. Define as weak alias if
27316 [!USE_WIDE_CHAR].
27317 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27318 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27319 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27320 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27321 Define and later undefine as macro. Define as weak alias if
27322 [!USE_WIDE_CHAR].
27323 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27324 Define and later undefine as macro. Define as weak alias if
27325 [USE_WIDE_CHAR].
27326 * sysdeps/ieee754/float128/strtof128_l.c
27327 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27328 Define and later undefine as macro. Define as weak alias if
27329 [!USE_WIDE_CHAR].
27330 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27331 Define and later undefine as macro. Define as weak alias if
27332 [USE_WIDE_CHAR].
27333 * sysdeps/ieee754/ldbl-128/strtold_l.c
27334 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27335 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27336 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27337 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27338 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27339 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27340 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27341 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27342 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27343 * sysdeps/ieee754/ldbl-96/strtold_l.c
27344 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27345 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27346 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27347 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27348
27349 * math/test-float64x.h: New file.
27350 * math/Makefile (type-float64x-yes): New variable.
27351 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27352
27353 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27354 function-like macro.
27355 (min_of_type_): Likewise.
27356 (min_of_type_l): Likewise.
27357 (min_of_type_f128): Likewise.
27358 (min_of_type): Pass () as last argument of __MATH_TG.
27359
27360 * stdlib/tst-strtod-round-skeleton.c
27361 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27362 headers.
27363
27364 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27365 for combinations of long double with _Float64 and _Float64x.
27366
27367 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27368 (__DECL_SIMD_cosf32): Likewise.
27369 (__DECL_SIMD_cosf64): Likewise.
27370 (__DECL_SIMD_cosf32x): Likewise.
27371 (__DECL_SIMD_cosf64x): Likewise.
27372 (__DECL_SIMD_cosf128x): Likewise.
27373 (__DECL_SIMD_sinf16): Likewise.
27374 (__DECL_SIMD_sinf32): Likewise.
27375 (__DECL_SIMD_sinf64): Likewise.
27376 (__DECL_SIMD_sinf32x): Likewise.
27377 (__DECL_SIMD_sinf64x): Likewise.
27378 (__DECL_SIMD_sinf128x): Likewise.
27379 (__DECL_SIMD_sincosf16): Likewise.
27380 (__DECL_SIMD_sincosf32): Likewise.
27381 (__DECL_SIMD_sincosf64): Likewise.
27382 (__DECL_SIMD_sincosf32x): Likewise.
27383 (__DECL_SIMD_sincosf64x): Likewise.
27384 (__DECL_SIMD_sincosf128x): Likewise.
27385 (__DECL_SIMD_logf16): Likewise.
27386 (__DECL_SIMD_logf32): Likewise.
27387 (__DECL_SIMD_logf64): Likewise.
27388 (__DECL_SIMD_logf32x): Likewise.
27389 (__DECL_SIMD_logf64x): Likewise.
27390 (__DECL_SIMD_logf128x): Likewise.
27391 (__DECL_SIMD_expf16): Likewise.
27392 (__DECL_SIMD_expf32): Likewise.
27393 (__DECL_SIMD_expf64): Likewise.
27394 (__DECL_SIMD_expf32x): Likewise.
27395 (__DECL_SIMD_expf64x): Likewise.
27396 (__DECL_SIMD_expf128x): Likewise.
27397 (__DECL_SIMD_powf16): Likewise.
27398 (__DECL_SIMD_powf32): Likewise.
27399 (__DECL_SIMD_powf64): Likewise.
27400 (__DECL_SIMD_powf32x): Likewise.
27401 (__DECL_SIMD_powf64x): Likewise.
27402 (__DECL_SIMD_powf128x): Likewise.
27403
27404 * stdlib/Versions (libc): Move entries for wcstof128 and
27405 wcstof128_l to ....
27406 * wcsmbs/Versions (libc): ... here.
27407 Include <float128-abi.h>.
27408
27409 2017-11-24 Florian Weimer <fweimer@redhat.com>
27410
27411 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27412 bits/mman-shared.h.
27413 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27414 <bits/mman-shared.h>.
27415 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27416 to ...
27417 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27418 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27419 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27420 <bits/mman-shared.h>.
27421
27422 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27423
27424 [BZ #22457]
27425 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27426 posix_memalign/free.
27427 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27428
27429 2017-11-22 Mike FABIAN <mfabian@redhat.com>
27430
27431 [BZ #22469]
27432 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27433 and implement the collation rules for pl from CLDR on top of that.
27434 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27435 of locales to be built for testing.
27436 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27437
27438 2017-11-23 Joseph Myers <joseph@codesourcery.com>
27439
27440 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27441 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27442 libm_alias_ldouble_other.
27443 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27444 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27445 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27446 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27447 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27448 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27449 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27450 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27451 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27452 libm_alias_ldouble_r.
27453 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27454 libm_alias_ldouble_other.
27455 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27456 (log10l): Likewise.
27457 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27458 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27459 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27460 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27461 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27462 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27463 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27464 (atan2l): Likewise.
27465 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27466 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27467 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27468 libm_alias_ldouble.
27469 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27470 (cosl): Likewise.
27471 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27472 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27473 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27474 (expl): Likewise.
27475 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27476 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27477 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27478 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27479 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27480 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27481 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27482 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27483 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27484 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27485 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27486 libm_alias_ldouble.
27487 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27488 libm_alias_ldouble_other.
27489 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27490 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27491 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27492 libm_alias_ldouble.
27493 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27494 libm_alias_ldouble_other.
27495 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27496 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27497 * sysdeps/ia64/fpu/w_lgammal_main.c
27498 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27499 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27500
27501 2017-11-23 Florian Weimer <fweimer@redhat.com>
27502
27503 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27504 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27505 alike. Remove freeres marker.
27506 * malloc/arena.c (arena_thread_freeres): Call
27507 tcache_thread_shutdown.
27508
27509 2017-11-23 Florian Weimer <fweimer@redhat.com>
27510
27511 [BZ #22459]
27512 Export nscd hash function as __nss_hash.
27513 * include/nss.h (__nss_hash): Declare.
27514 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27515 symbol.
27516 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27517 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27518 of __nscd_hash.
27519 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27520 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27521 * nss/Makefiles (routines): Add nss_hash.
27522 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27523 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27524 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27525 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27526
27527 2017-11-23 Florian Weimer <fweimer@redhat.com>
27528
27529 [BZ #22478]
27530 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27531 Return error code, not -1.
27532 * signal/tst-sigwait-eintr.c: New file.
27533 * signal/Makefile (tests): Add tst-sigwait-eintr.
27534
27535 2017-11-23 Florian Weimer <fweimer@redhat.com>
27536
27537 Linux: Add memfd_create system call wrapper
27538 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27539 tst-memfd_create.
27540 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27541 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27542 [__USE_GNU] (memfd_create): Declare.
27543 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27544 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27545 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27546 * sysdeps/unix/sysv/linux/**.abilist: Update.
27547 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27548
27549 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27550
27551 * localedata/gen-locale.sh: Fix typo in variable name.
27552
27553 * resolv/res_debug.c (p_secstodate): Condition definition on
27554 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27555 directly as __p_secstodate, and as a compat symbol. Do not use
27556 libresolv_hidden_def.
27557 * resolv/resolv.h (p_secstodate): Remove macro and function
27558 declaration.
27559 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27560 using p_secstodate.
27561 * include/resolv.h (__p_secstodate): Do not use
27562 libresolv_hidden_proto.
27563 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27564 (tests-internal): ... here.
27565 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27566 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27567 and declare and use __p_secstodate and use compat_symbol_reference
27568 in that case.
27569 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27570 implementation returning 77.
27571
27572 [BZ #22463]
27573 * resolv/res_debug.c: Include <libc-diag.h>.
27574 (p_secstodate): Assert time_t at least as wide as u_long. On
27575 overflow, use integer seconds since the epoch as output, or use
27576 "<overflow>" as output and set errno to EOVERFLOW if integer
27577 seconds since the epoch would be 14 or more characters.
27578 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27579 for sprintf call.
27580 * resolv/tst-p_secstodate.c: New file.
27581 * resolv/Makefile (tests): Add tst-p_secstodate.
27582 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27583
27584 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27585 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27586 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27587
27588 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27589
27590 * posix/regcomp.c (init_word_char): Add comments.
27591
27592 2017-11-22 Joseph Myers <joseph@codesourcery.com>
27593
27594 [BZ #22447]
27595 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27596 strlen to compute length of ut_user and set trailing NUL byte of
27597 result explicitly.
27598
27599 2017-11-21 Mike FABIAN <mfabian@redhat.com>
27600
27601 [BZ #15537]
27602 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27603 using “copy "iso14651_t1"” and then implementing the
27604 collation rules for lv from CLDR on top of that.
27605 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27606 of locales to be built for testing.
27607 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27608 sorting.
27609
27610 2017-11-21 Joseph Myers <joseph@codesourcery.com>
27611
27612 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27613 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27614 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27615 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27616 [__USE_MISC] (MADV_HWPOISON): New macro.
27617 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27618
27619 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27620
27621 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27622 -Wmissing-braces on GCC 4.9.
27623
27624 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27625
27626 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27627 * sysdeps/s390/s390-32/start.S (_start): Likewise
27628 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27629 (thread_start): Likewise.
27630 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27631 (thread_start): Likewise.
27632 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27633 (__makecontext_ret): Likewise.
27634 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27635 (__makecontext_ret): Likewise.
27636
27637 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27638
27639 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27640 __wcschrnul): Remove attribute_hidden.
27641
27642 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27643
27644 regex: don't assume uint64_t or uint32_t
27645 This avoids -Werror=overflow errors for 32-bit systems in
27646 the 64-bit case. Problem reported by Joseph Myers in:
27647 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27648 Also, when this code is used in Gnulib it ports to platforms
27649 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27650 them, and on some 32-bit compilers there is no uint64_t.
27651 Problem reported by Gianluigi Tiesi in:
27652 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
27653 * posix/regcomp.c (init_word_char): Don't assume that the types
27654 uint64_t and uint32_t exist. Adapted from Gnulib patch
27655 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
27656 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
27657
27658 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
27659
27660 * sysdeps/aarch64/memset-reg.h: New file.
27661 * sysdeps/aarch64/memset.S: Use it.
27662 (__memset): Rename to MEMSET macro.
27663 [ZVA_MACRO]: Use zva_macro.
27664 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
27665 Add memset_generic and memset_falkor.
27666 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27667 (__libc_ifunc_impl_list): Add memset ifuncs.
27668 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
27669 local variable zva_size.
27670 * sysdeps/aarch64/multiarch/memset.c: New file.
27671 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
27672 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
27673 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
27674 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
27675 (DCZID_DZP_MASK): New macro.
27676 (DCZID_BS_MASK): Likewise.
27677 (init_cpu_features): Read and set zva_size.
27678 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
27679 (struct cpu_features): New member zva_size.
27680
27681 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
27682 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
27683 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
27684
27685 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
27686 backwards. Fix timing computation.
27687 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
27688 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
27689 on memset by N at a time. Fix timing computation.
27690
27691 2017-11-20 Florian Weimer <fweimer@redhat.com>
27692
27693 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
27694 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
27695
27696 2017-11-19 Florian Weimer <fweimer@redhat.com>
27697
27698 manual: Document mprotect
27699 * manual/memory.texi (Memory Protection): New section.
27700 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
27701 documentation of PROT_* flags and reference the Memory Protection
27702 section instead.
27703
27704 2017-11-19 Florian Weimer <fweimer@redhat.com>
27705
27706 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
27707 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
27708 (Scatter-Gather): ... to here. Remove misleading comment.
27709
27710 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
27711
27712 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
27713 style.
27714
27715 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
27716 when /proc/<pid>/setgroups does not exist.
27717
27718 2017-11-18 Florian Weimer <fweimer@redhat.com>
27719
27720 * sysdeps/unix/sysv/linux/tst-ttyname.c
27721 (become_root_in_mount_ns): Remove.
27722 (do_in_chroot_1): Call support_enter_mount_namespace.
27723 (do_in_chroot_2): Likewise.
27724 (do_test): Call support_become_root early.
27725
27726 2017-11-18 Florian Weimer <fweimer@redhat.com>
27727
27728 * support/namespace.h (support_enter_mount_namespace): Declare.
27729 * support/support_enter_mount_namespace.c: New file.
27730 * support/Makefile (libsupport-routines): Add
27731 support_enter_mount_namespace.
27732
27733 2017-11-18 Florian Weimer <fweimer@redhat.com>
27734
27735 * support/temp_file.c (support_create_temp_directory): Use
27736 test_dir and do not rely on the presence of the XXXXXX suffix.
27737 * support/temp_file.h (support_create_temp_directory): Update
27738 comment.
27739 * support/tst-xreadlink.c (do_test): Adjust.
27740 * support/support_chroot.c (support_chroot_create): Likewise.
27741
27742 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27743
27744 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
27745 macro.
27746 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
27747 htm-no-suspend.
27748
27749 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27750
27751 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27752 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27753 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27754 (ceill): Define using libm_alias_ldouble.
27755 * sysdeps/x86_64/fpu/s_copysignl.S: Include
27756 <libm-alias-ldouble.h>.
27757 (copysignl): Define using libm_alias_ldouble.
27758 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27759 (fabsl): Define using libm_alias_ldouble.
27760 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27761 (floorl): Define using libm_alias_ldouble.
27762 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27763 (fmaxl): Define using libm_alias_ldouble.
27764 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27765 (fminl): Define using libm_alias_ldouble.
27766 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27767 (llrintl): Define using libm_alias_ldouble.
27768 (lrintl): Likewise.
27769 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
27770 <libm-alias-ldouble.h>.
27771 (nearbyintl): Define using libm_alias_ldouble.
27772 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27773 (truncl): Define using libm_alias_ldouble.
27774 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
27775 <libm-alias-ldouble.h>.
27776 (lrintl): Define using libm_alias_ldouble.
27777
27778 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
27779 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
27780 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
27781 (asinhl): Define using libm_alias_ldouble.
27782 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
27783 (atanl): Define using libm_alias_ldouble.
27784 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
27785 (cbrtl): Define using libm_alias_ldouble.
27786 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
27787 (ceill): Define using libm_alias_ldouble.
27788 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
27789 (copysignl): Define using libm_alias_ldouble.
27790 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
27791 (fabsl): Define using libm_alias_ldouble.
27792 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
27793 (floorl): Define using libm_alias_ldouble.
27794 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27795 (fmaxl): Define using libm_alias_ldouble.
27796 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27797 (fminl): Define using libm_alias_ldouble.
27798 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
27799 (frexpl): Define using libm_alias_ldouble.
27800 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
27801 (llrintl): Define using libm_alias_ldouble.
27802 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
27803 (logbl): Define using libm_alias_ldouble.
27804 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
27805 (lrintl): Define using libm_alias_ldouble.
27806 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
27807 (nearbyintl): Define using libm_alias_ldouble.
27808 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
27809 (nextafterl): Define using libm_alias_ldouble.
27810 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
27811 (remquol): Define using libm_alias_ldouble.
27812 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
27813 (rintl): Define using libm_alias_ldouble.
27814 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
27815 (truncl): Define using libm_alias_ldouble.
27816 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
27817 (fmaxl): Define using libm_alias_ldouble.
27818 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
27819 (fminl): Define using libm_alias_ldouble.
27820
27821 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
27822 to C syntax instead of availability and properties of types.
27823 * bits/floatn.h [!__ASSEMBLER]: Likewise.
27824 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
27825 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
27826 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
27827 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
27828 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
27829
27830 2017-11-17 Florian Weimer <fweimer@redhat.com>
27831
27832 support_become_root: Enable file creation in namespaces.
27833 * support/support_become_root.c (setup_mapping): New function.
27834 (support_become_root): Call it.
27835
27836 2017-11-17 Joseph Myers <joseph@codesourcery.com>
27837
27838 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
27839 macro.
27840
27841 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27842
27843 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
27844 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
27845
27846 2017-11-16 Joseph Myers <joseph@codesourcery.com>
27847
27848 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
27849
27850 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
27851 version to 4.14.
27852
27853 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27854
27855 * INSTALL: Fix botched up regeneration.
27856
27857 * NEWS: Update sourceare link to https.
27858 * configure.ac: Likewise.
27859 * crypt/md5test-giant.c: Likewise.
27860 * dlfcn/bug-atexit1.c: Likewise.
27861 * dlfcn/bug-atexit2.c: Likewise.
27862 * localedata/README: Likewise.
27863 * malloc/tst-mallocfork.c: Likewise.
27864 * manual/install.texi: Likewise.
27865 * nptl/tst-pthread-getattr.c: Likewise.
27866 * stdio-common/tst-fgets.c: Likewise.
27867 * stdio-common/tst-fwrite.c: Likewise.
27868 * sunrpc/Makefile: Likewise.
27869 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
27870 * wcsmbs/tst-mbrtowc2.c: Likewise.
27871 * configure: Regenerate.
27872 * INSTALL: Regenerate.
27873
27874 2017-11-15 Martin Sebor <msebor@redhat.com>
27875
27876 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
27877 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
27878 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
27879
27880 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27881
27882 [BZ #22145]
27883 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
27884 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
27885
27886 [BZ #22145]
27887 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
27888 Defer is_pty check until end of the function.
27889 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
27890
27891 [BZ #22145]
27892 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
27893 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
27894 (ttyname): Likewise.
27895 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
27896 (__ttyname_r): Likewise.
27897
27898 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
27899 int to bool.
27900
27901 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
27902
27903 * manual/terminal.texi (Is It a Terminal):
27904 Mention ENODEV for ttyname and ttyname_r.
27905
27906 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27907
27908 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
27909 constant and macro.
27910
27911 * sysdeps/unix/sysv/linux/bits/mman-linux.h
27912 [__USE_MISC] (MADV_WIPEONFORK): New macro.
27913 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27914 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27915 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
27916 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
27917
27918 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27919
27920 * signal/sigrelse.c (sigrelse): Optimize implementation.
27921
27922 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
27923 (__sigpause): Rely on __sigsuspend to implement single thread
27924 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
27925
27926 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27927
27928 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
27929 kernel version to 4.14.
27930
27931 2017-11-15 Steve Ellcey <sellcey@cavium.com>
27932
27933 [BZ #22442]
27934 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
27935 Check if ifname is too long.
27936
27937 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
27938
27939 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
27940
27941 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27942
27943 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
27944 was accidentally lost.
27945
27946 2017-11-15 Mike FABIAN <mfabian@redhat.com>
27947
27948 * localedata/locales/az_IR: Add standard copyright header.
27949
27950 2017-11-15 Florian Weimer <fweimer@redhat.com>
27951
27952 [BZ #22439]
27953 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
27954 not just the top one. Output a new "subheaps" statistic.
27955
27956 2017-11-15 Florian Weimer <fweimer@redhat.com>
27957
27958 [BZ #22408]
27959 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
27960 under the per-arena lock.
27961 * malloc/Makefile (tests): Add tst-malloc_info.
27962 (tst-malloc_info): Link with libpthread.
27963 * malloc/tst-malloc_info.c: New file.
27964
27965 2017-11-15 Joseph Myers <joseph@codesourcery.com>
27966
27967 [BZ #21660]
27968 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
27969 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
27970 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
27971 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
27972 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
27973 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
27974 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
27975 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
27976 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
27977 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
27978 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
27979 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
27980 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
27981 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
27982 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
27983 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
27984 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
27985 (__floating_type): Likewise.
27986 (__real_integer_type): Likewise.
27987 (__complex_integer_type): Likewise.
27988 (__expr_is_real): Likewise.
27989 (__tgmath_real_type_sub): Likewise.
27990 (__tgmath_real_type): Likewise.
27991 (__tgmath_complex_type_sub): Likewise.
27992 (__tgmath_complex_type): Likewise.
27993 (__TGMATH_F128): Likewise.
27994 (__TGMATH_CF128): Likewise.
27995 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
27996 new macros.
27997 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27998 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
27999 Likewise.
28000 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28001 Likewise.
28002 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28003 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28004 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28005 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28006 Likewise.
28007 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28008 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28009 Likewise.
28010 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28011 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28012 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28013 Likewise.
28014 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28015 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28016 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28017 (cimag): Likewise.
28018 (creal): Likewise.
28019
28020 2017-11-14 Joseph Myers <joseph@codesourcery.com>
28021
28022 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28023 for stpncpy calls for GCC 8.
28024 (test_strncat): Disable -Wstringop-truncation warning for strncat
28025 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28026 strncat call for GCC 7.
28027 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28028 calls for GCC 8.
28029 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28030 trailing NUL.
28031
28032 * string/bug-strncat1.c: Include <libc-diag.h>.
28033 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28034
28035 2017-11-13 Claude Paroz <claude@2xlibre.net>
28036
28037 [BZ #22387]
28038 * localedata/locales/aa_DJ: Improved readibility by replacing
28039 <Uxxxx> sequences in the ASCII printable range by their ASCII
28040 character equivalents.
28041 * localedata/locales/aa_ER: Likewise.
28042 * localedata/locales/aa_ER@saaho: Likewise.
28043 * localedata/locales/aa_ET: Likewise.
28044 * localedata/locales/af_ZA: Likewise.
28045 * localedata/locales/agr_PE: Likewise.
28046 * localedata/locales/ak_GH: Likewise.
28047 * localedata/locales/am_ET: Likewise.
28048 * localedata/locales/anp_IN: Likewise.
28049 * localedata/locales/ar_AE: Likewise.
28050 * localedata/locales/ar_BH: Likewise.
28051 * localedata/locales/ar_DZ: Likewise.
28052 * localedata/locales/ar_EG: Likewise.
28053 * localedata/locales/ar_IN: Likewise.
28054 * localedata/locales/ar_IQ: Likewise.
28055 * localedata/locales/ar_JO: Likewise.
28056 * localedata/locales/ar_KW: Likewise.
28057 * localedata/locales/ar_LB: Likewise.
28058 * localedata/locales/ar_LY: Likewise.
28059 * localedata/locales/ar_MA: Likewise.
28060 * localedata/locales/ar_OM: Likewise.
28061 * localedata/locales/ar_QA: Likewise.
28062 * localedata/locales/ar_SA: Likewise.
28063 * localedata/locales/ar_SD: Likewise.
28064 * localedata/locales/ar_SS: Likewise.
28065 * localedata/locales/ar_SY: Likewise.
28066 * localedata/locales/ar_TN: Likewise.
28067 * localedata/locales/ar_YE: Likewise.
28068 * localedata/locales/as_IN: Likewise.
28069 * localedata/locales/ast_ES: Likewise.
28070 * localedata/locales/ayc_PE: Likewise.
28071 * localedata/locales/az_AZ: Likewise.
28072 * localedata/locales/az_IR: Likewise.
28073 * localedata/locales/be_BY: Likewise.
28074 * localedata/locales/be_BY@latin: Likewise.
28075 * localedata/locales/bem_ZM: Likewise.
28076 * localedata/locales/ber_DZ: Likewise.
28077 * localedata/locales/ber_MA: Likewise.
28078 * localedata/locales/bg_BG: Likewise.
28079 * localedata/locales/bhb_IN: Likewise.
28080 * localedata/locales/bho_IN: Likewise.
28081 * localedata/locales/bi_VU: Likewise.
28082 * localedata/locales/bn_BD: Likewise.
28083 * localedata/locales/bn_IN: Likewise.
28084 * localedata/locales/bo_CN: Likewise.
28085 * localedata/locales/bo_IN: Likewise.
28086 * localedata/locales/br_FR: Likewise.
28087 * localedata/locales/brx_IN: Likewise.
28088 * localedata/locales/bs_BA: Likewise.
28089 * localedata/locales/byn_ER: Likewise.
28090 * localedata/locales/ca_AD: Likewise.
28091 * localedata/locales/ca_ES: Likewise.
28092 * localedata/locales/ca_FR: Likewise.
28093 * localedata/locales/ca_IT: Likewise.
28094 * localedata/locales/ce_RU: Likewise.
28095 * localedata/locales/chr_US: Likewise.
28096 * localedata/locales/cmn_TW: Likewise.
28097 * localedata/locales/crh_UA: Likewise.
28098 * localedata/locales/cs_CZ: Likewise.
28099 * localedata/locales/csb_PL: Likewise.
28100 * localedata/locales/cv_RU: Likewise.
28101 * localedata/locales/cy_GB: Likewise.
28102 * localedata/locales/da_DK: Likewise.
28103 * localedata/locales/de_AT: Likewise.
28104 * localedata/locales/de_BE: Likewise.
28105 * localedata/locales/de_CH: Likewise.
28106 * localedata/locales/de_DE: Likewise.
28107 * localedata/locales/de_IT: Likewise.
28108 * localedata/locales/de_LI: Likewise.
28109 * localedata/locales/de_LU: Likewise.
28110 * localedata/locales/doi_IN: Likewise.
28111 * localedata/locales/dv_MV: Likewise.
28112 * localedata/locales/dz_BT: Likewise.
28113 * localedata/locales/el_CY: Likewise.
28114 * localedata/locales/el_GR: Likewise.
28115 * localedata/locales/en_AG: Likewise.
28116 * localedata/locales/en_AU: Likewise.
28117 * localedata/locales/en_BW: Likewise.
28118 * localedata/locales/en_CA: Likewise.
28119 * localedata/locales/en_DK: Likewise.
28120 * localedata/locales/en_GB: Likewise.
28121 * localedata/locales/en_HK: Likewise.
28122 * localedata/locales/en_IE: Likewise.
28123 * localedata/locales/en_IL: Likewise.
28124 * localedata/locales/en_IN: Likewise.
28125 * localedata/locales/en_NG: Likewise.
28126 * localedata/locales/en_NZ: Likewise.
28127 * localedata/locales/en_PH: Likewise.
28128 * localedata/locales/en_SG: Likewise.
28129 * localedata/locales/en_US: Likewise.
28130 * localedata/locales/en_ZA: Likewise.
28131 * localedata/locales/en_ZM: Likewise.
28132 * localedata/locales/en_ZW: Likewise.
28133 * localedata/locales/eo: Likewise.
28134 * localedata/locales/es_AR: Likewise.
28135 * localedata/locales/es_BO: Likewise.
28136 * localedata/locales/es_CL: Likewise.
28137 * localedata/locales/es_CO: Likewise.
28138 * localedata/locales/es_CR: Likewise.
28139 * localedata/locales/es_CU: Likewise.
28140 * localedata/locales/es_DO: Likewise.
28141 * localedata/locales/es_EC: Likewise.
28142 * localedata/locales/es_ES: Likewise.
28143 * localedata/locales/es_GT: Likewise.
28144 * localedata/locales/es_HN: Likewise.
28145 * localedata/locales/es_MX: Likewise.
28146 * localedata/locales/es_NI: Likewise.
28147 * localedata/locales/es_PA: Likewise.
28148 * localedata/locales/es_PE: Likewise.
28149 * localedata/locales/es_PR: Likewise.
28150 * localedata/locales/es_PY: Likewise.
28151 * localedata/locales/es_SV: Likewise.
28152 * localedata/locales/es_US: Likewise.
28153 * localedata/locales/es_UY: Likewise.
28154 * localedata/locales/es_VE: Likewise.
28155 * localedata/locales/et_EE: Likewise.
28156 * localedata/locales/eu_ES: Likewise.
28157 * localedata/locales/eu_ES@euro: Likewise.
28158 * localedata/locales/fa_IR: Likewise.
28159 * localedata/locales/ff_SN: Likewise.
28160 * localedata/locales/fi_FI: Likewise.
28161 * localedata/locales/fil_PH: Likewise.
28162 * localedata/locales/fo_FO: Likewise.
28163 * localedata/locales/fr_BE: Likewise.
28164 * localedata/locales/fr_CA: Likewise.
28165 * localedata/locales/fr_CH: Likewise.
28166 * localedata/locales/fr_FR: Likewise.
28167 * localedata/locales/fr_LU: Likewise.
28168 * localedata/locales/fur_IT: Likewise.
28169 * localedata/locales/fy_DE: Likewise.
28170 * localedata/locales/fy_NL: Likewise.
28171 * localedata/locales/ga_IE: Likewise.
28172 * localedata/locales/gd_GB: Likewise.
28173 * localedata/locales/gez_ER: Likewise.
28174 * localedata/locales/gez_ET: Likewise.
28175 * localedata/locales/gl_ES: Likewise.
28176 * localedata/locales/gu_IN: Likewise.
28177 * localedata/locales/gv_GB: Likewise.
28178 * localedata/locales/ha_NG: Likewise.
28179 * localedata/locales/hak_TW: Likewise.
28180 * localedata/locales/he_IL: Likewise.
28181 * localedata/locales/hi_IN: Likewise.
28182 * localedata/locales/hif_FJ: Likewise.
28183 * localedata/locales/hne_IN: Likewise.
28184 * localedata/locales/hr_HR: Likewise.
28185 * localedata/locales/hsb_DE: Likewise.
28186 * localedata/locales/ht_HT: Likewise.
28187 * localedata/locales/hu_HU: Likewise.
28188 * localedata/locales/hy_AM: Likewise.
28189 * localedata/locales/i18n: Likewise.
28190 * localedata/locales/ia_FR: Likewise.
28191 * localedata/locales/id_ID: Likewise.
28192 * localedata/locales/ig_NG: Likewise.
28193 * localedata/locales/ik_CA: Likewise.
28194 * localedata/locales/is_IS: Likewise.
28195 * localedata/locales/it_CH: Likewise.
28196 * localedata/locales/it_IT: Likewise.
28197 * localedata/locales/iu_CA: Likewise.
28198 * localedata/locales/ja_JP: Likewise.
28199 * localedata/locales/ka_GE: Likewise.
28200 * localedata/locales/kk_KZ: Likewise.
28201 * localedata/locales/kl_GL: Likewise.
28202 * localedata/locales/kn_IN: Likewise.
28203 * localedata/locales/ko_KR: Likewise.
28204 * localedata/locales/kok_IN: Likewise.
28205 * localedata/locales/ks_IN: Likewise.
28206 * localedata/locales/ks_IN@devanagari: Likewise.
28207 * localedata/locales/ku_TR: Likewise.
28208 * localedata/locales/kw_GB: Likewise.
28209 * localedata/locales/ky_KG: Likewise.
28210 * localedata/locales/lb_LU: Likewise.
28211 * localedata/locales/lg_UG: Likewise.
28212 * localedata/locales/li_BE: Likewise.
28213 * localedata/locales/li_NL: Likewise.
28214 * localedata/locales/lij_IT: Likewise.
28215 * localedata/locales/ln_CD: Likewise.
28216 * localedata/locales/lo_LA: Likewise.
28217 * localedata/locales/lt_LT: Likewise.
28218 * localedata/locales/lv_LV: Likewise.
28219 * localedata/locales/lzh_TW: Likewise.
28220 * localedata/locales/mag_IN: Likewise.
28221 * localedata/locales/mai_IN: Likewise.
28222 * localedata/locales/mg_MG: Likewise.
28223 * localedata/locales/mhr_RU: Likewise.
28224 * localedata/locales/mi_NZ: Likewise.
28225 * localedata/locales/mk_MK: Likewise.
28226 * localedata/locales/ml_IN: Likewise.
28227 * localedata/locales/mn_MN: Likewise.
28228 * localedata/locales/mni_IN: Likewise.
28229 * localedata/locales/mr_IN: Likewise.
28230 * localedata/locales/ms_MY: Likewise.
28231 * localedata/locales/mt_MT: Likewise.
28232 * localedata/locales/my_MM: Likewise.
28233 * localedata/locales/nan_TW: Likewise.
28234 * localedata/locales/nan_TW@latin: Likewise.
28235 * localedata/locales/nb_NO: Likewise.
28236 * localedata/locales/nds_DE: Likewise.
28237 * localedata/locales/nds_NL: Likewise.
28238 * localedata/locales/ne_NP: Likewise.
28239 * localedata/locales/nhn_MX: Likewise.
28240 * localedata/locales/niu_NU: Likewise.
28241 * localedata/locales/niu_NZ: Likewise.
28242 * localedata/locales/nl_AW: Likewise.
28243 * localedata/locales/nl_BE: Likewise.
28244 * localedata/locales/nl_NL: Likewise.
28245 * localedata/locales/nn_NO: Likewise.
28246 * localedata/locales/nr_ZA: Likewise.
28247 * localedata/locales/nso_ZA: Likewise.
28248 * localedata/locales/oc_FR: Likewise.
28249 * localedata/locales/om_ET: Likewise.
28250 * localedata/locales/om_KE: Likewise.
28251 * localedata/locales/or_IN: Likewise.
28252 * localedata/locales/os_RU: Likewise.
28253 * localedata/locales/pa_IN: Likewise.
28254 * localedata/locales/pa_PK: Likewise.
28255 * localedata/locales/pap_AW: Likewise.
28256 * localedata/locales/pap_CW: Likewise.
28257 * localedata/locales/pl_PL: Likewise.
28258 * localedata/locales/ps_AF: Likewise.
28259 * localedata/locales/pt_BR: Likewise.
28260 * localedata/locales/pt_PT: Likewise.
28261 * localedata/locales/quz_PE: Likewise.
28262 * localedata/locales/raj_IN: Likewise.
28263 * localedata/locales/ro_RO: Likewise.
28264 * localedata/locales/ru_RU: Likewise.
28265 * localedata/locales/ru_UA: Likewise.
28266 * localedata/locales/rw_RW: Likewise.
28267 * localedata/locales/sa_IN: Likewise.
28268 * localedata/locales/sat_IN: Likewise.
28269 * localedata/locales/sc_IT: Likewise.
28270 * localedata/locales/sd_IN: Likewise.
28271 * localedata/locales/sd_IN@devanagari: Likewise.
28272 * localedata/locales/se_NO: Likewise.
28273 * localedata/locales/sgs_LT: Likewise.
28274 * localedata/locales/shs_CA: Likewise.
28275 * localedata/locales/si_LK: Likewise.
28276 * localedata/locales/sid_ET: Likewise.
28277 * localedata/locales/sk_SK: Likewise.
28278 * localedata/locales/sl_SI: Likewise.
28279 * localedata/locales/sm_WS: Likewise.
28280 * localedata/locales/so_DJ: Likewise.
28281 * localedata/locales/so_ET: Likewise.
28282 * localedata/locales/so_KE: Likewise.
28283 * localedata/locales/so_SO: Likewise.
28284 * localedata/locales/sq_AL: Likewise.
28285 * localedata/locales/sq_MK: Likewise.
28286 * localedata/locales/sr_ME: Likewise.
28287 * localedata/locales/sr_RS: Likewise.
28288 * localedata/locales/sr_RS@latin: Likewise.
28289 * localedata/locales/ss_ZA: Likewise.
28290 * localedata/locales/st_ZA: Likewise.
28291 * localedata/locales/sv_FI: Likewise.
28292 * localedata/locales/sv_SE: Likewise.
28293 * localedata/locales/sw_KE: Likewise.
28294 * localedata/locales/sw_TZ: Likewise.
28295 * localedata/locales/szl_PL: Likewise.
28296 * localedata/locales/ta_IN: Likewise.
28297 * localedata/locales/ta_LK: Likewise.
28298 * localedata/locales/tcy_IN: Likewise.
28299 * localedata/locales/te_IN: Likewise.
28300 * localedata/locales/tg_TJ: Likewise.
28301 * localedata/locales/th_TH: Likewise.
28302 * localedata/locales/the_NP: Likewise.
28303 * localedata/locales/ti_ER: Likewise.
28304 * localedata/locales/ti_ET: Likewise.
28305 * localedata/locales/tig_ER: Likewise.
28306 * localedata/locales/tk_TM: Likewise.
28307 * localedata/locales/tl_PH: Likewise.
28308 * localedata/locales/tn_ZA: Likewise.
28309 * localedata/locales/to_TO: Likewise.
28310 * localedata/locales/tpi_PG: Likewise.
28311 * localedata/locales/tr_CY: Likewise.
28312 * localedata/locales/tr_TR: Likewise.
28313 * localedata/locales/ts_ZA: Likewise.
28314 * localedata/locales/tt_RU: Likewise.
28315 * localedata/locales/tt_RU@iqtelif: Likewise.
28316 * localedata/locales/ug_CN: Likewise.
28317 * localedata/locales/uk_UA: Likewise.
28318 * localedata/locales/unm_US: Likewise.
28319 * localedata/locales/ur_IN: Likewise.
28320 * localedata/locales/ur_PK: Likewise.
28321 * localedata/locales/uz_UZ: Likewise.
28322 * localedata/locales/uz_UZ@cyrillic: Likewise.
28323 * localedata/locales/ve_ZA: Likewise.
28324 * localedata/locales/vi_VN: Likewise.
28325 * localedata/locales/wa_BE: Likewise.
28326 * localedata/locales/wae_CH: Likewise.
28327 * localedata/locales/wal_ET: Likewise.
28328 * localedata/locales/wo_SN: Likewise.
28329 * localedata/locales/xh_ZA: Likewise.
28330 * localedata/locales/yi_US: Likewise.
28331 * localedata/locales/yo_NG: Likewise.
28332 * localedata/locales/yue_HK: Likewise.
28333 * localedata/locales/yuw_PG: Likewise.
28334 * localedata/locales/zh_CN: Likewise.
28335 * localedata/locales/zh_HK: Likewise.
28336 * localedata/locales/zh_SG: Likewise.
28337 * localedata/locales/zh_TW: Likewise.
28338 * localedata/locales/zu_ZA: Likewise.
28339
28340 2017-11-13 Florian Weimer <fweimer@redhat.com>
28341
28342 * support/next_to_fault.h, support/next_to_fault.c: New files.
28343 * support/Makefile (libsupport-routines): Add next_to_fault.
28344 * resolv/tst-inet_pton.c (struct next_to_fault)
28345 (next_to_fault_allocate, next_to_fault_free): Remove.
28346 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28347
28348 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28349
28350 * elf/dl-support.c: Include <dl-procruntime.c>.
28351 * include/link.h: Include <link_map.h>.
28352 * sysdeps/generic/dl-procruntime.c: New file.
28353 * sysdeps/generic/link_map.h: Likewise.
28354 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28355 the writable ld.so namespace.
28356
28357 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28358
28359 timezone: pacify GCC -Wstringop-truncation
28360 Problem reported by Martin Sebor in:
28361 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28362 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28363
28364 2017-11-12 Florian Weimer <fweimer@redhat.com>
28365
28366 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28367 tst-xreadlink.
28368 (tests): Add tst-xreadlink.
28369 * support/support.h (xstrndup): Declare.
28370 * support/xunistd.h (xunlink, xreadlink): Declare.
28371 * support/temp_file.h (support_create_temp_directory): Declare.
28372 * support/temp_file.c (support_create_temp_directory): New function.
28373 * support/support_chroot.c (support_chroot_create): Use it.
28374 * support/xreadlink.c: New file.
28375 * support/xstrndup.c: Likewise.
28376 * support/xunlink.c: Likewise.
28377 * support/tst-xreadlink.c: Likewise.
28378
28379 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
28380
28381 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28382
28383 2017-11-11 Florian Weimer <fweimer@redhat.com>
28384
28385 [BZ #22409]
28386 [BZ #22412]
28387 * resolv/res_comp.c (printable_string, binary_hnok)
28388 (binary_leading_dash): New functions.
28389 (res_hnok): Reimplement using these functions and ns_name_pton.
28390 (res_ownok): Likewise.
28391 (res_mailok): Reimplement using printable_string, ns_name_pton and
28392 binary_hnok.
28393 (res_dnok): Reimplement using printable_string and ns_name_pton.
28394 * resolv/tst-res_hnok.c (tests): Add additional tests.
28395 (LETTERDIGITS, PRINTABLE): Define.
28396 (do_test): Adjust one_char results.
28397
28398 2017-11-11 Florian Weimer <fweimer@redhat.com>
28399
28400 [BZ #22413]
28401 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28402 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28403
28404 2017-11-11 Florian Weimer <fweimer@redhat.com>
28405
28406 * resolv/tst-ns_name_pton.c: New file.
28407 * resolv/Makefile (tests): Add tst-ns_name_pton.
28408 (tst-ns_name_pton): Link against libresolv.
28409
28410 2017-11-11 Florian Weimer <fweimer@redhat.com>
28411
28412 * resolv/tst-res_hnok.c: New file.
28413 * resolv/Makefile (tests): Add tst-res_hnok.
28414 (tst-res_hnok): Link against libresolv.
28415
28416 2017-11-11 Florian Weimer <fweimer@redhat.com>
28417
28418 * resolv/tst-resolv-network.c: Use test framework instead explicit
28419 main function.
28420
28421 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28422
28423 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28424 <jmp_buf-macros.h>.
28425 [!_ISOMAC] (STR_HELPER): New.
28426 [!_ISOMAC] (STR): Likewise.
28427 [!_ISOMAC] (TEST_SIZE): Likewise.
28428 [!_ISOMAC] (TEST_ALIGN): Likewise.
28429 [!_ISOMAC] (TEST_OFFSET): Likewise.
28430 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28431 field offsets of jmp_buf as well as sigjmp_buf.
28432 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28433 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28434 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28435 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28436 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28437 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28438 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28439 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28440 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28441 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28442 Likewise.
28443 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28444 Likewise.
28445 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28446 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28447 Likewise.
28448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28449 Likewise.
28450 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28451 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28452 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28453 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28454 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28455 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28456 Likewise.
28457 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28458 Likewise.
28459 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28460 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28461 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28462
28463 2017-11-07 Joseph Myers <joseph@codesourcery.com>
28464
28465 * include/float.h
28466 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28467 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28468 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28469 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28470 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28471 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28472 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28473 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28474 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28475 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28476 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28477 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28478 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28479 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28480 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28481 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28482 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28483 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28484 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28485 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28486 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28487 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28488 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28489 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28490 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28491 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28492 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28493 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28494 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28495 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28496 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28497 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28498 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28499 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28500 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28501 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28502 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28503 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28504 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28505 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28506 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28507 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28508 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28509 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28510 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28511 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28512 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28513 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28514 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28515 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28516 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28517 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28518 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28519 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28520 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28521 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28522 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28523 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28524 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28525 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28526 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28527 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28528 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28529 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28530 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28531 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28532 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28533 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28534 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28535 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28536 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28537 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28538 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28539 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28540 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28541 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28542 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28543 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28544 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28545 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28546 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28547 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28548 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28549 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28550 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28551 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28552 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28553 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28554
28555 * stdlib/tst-strtod.h (F16): New macro.
28556 (F32): Likewise.
28557 (F64): Likewise.
28558 (F32X): Likewise.
28559 (F64X): Likewise.
28560 (F128X): Likewise.
28561 (IF_FLOAT16): Likewise.
28562 (IF_FLOAT32): Likewise.
28563 (IF_FLOAT64): Likewise.
28564 (IF_FLOAT32X): Likewise.
28565 (IF_FLOAT64X): Likewise.
28566 (IF_FLOAT128X): Likewise.
28567 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28568 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28569 (STRTOD_TEST_FOREACH): Likewise.
28570 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28571 (CHOOSE_f64): Likewise.
28572 (CHOOSE_f32x): Likewise.
28573 (CHOOSE_f64x): Likewise.
28574
28575 2017-11-07 Andreas Schwab <schwab@suse.de>
28576
28577 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28578
28579 2017-11-07 Mike FABIAN <mfabian@redhat.com>
28580
28581 [BZ #22403]
28582 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28583 to be escaped.
28584 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28585 to be escaped.
28586
28587 2017-11-07 Claude Paroz <claude@2xlibre.net>
28588
28589 [BZ #22403]
28590 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28591 to be escaped.
28592 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28593 to be escaped.
28594 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28595 to be escaped.
28596
28597 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28598
28599 [BZ #22298]
28600 * nptl/allocatestack.c (allocate_stack): Check if
28601 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28602 __PTHREAD_MUTEX_HAVE_PREV is defined.
28603 * nptl/descr.h (pthread): Likewise.
28604 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28605 Likewise.
28606 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28607 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28608 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28609 * sysdeps/nptl/bits/thread-shared-types.h
28610 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28611 defines.
28612 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28613 of __WORDSIZE for internal layout.
28614 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28615 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28616 instead of __WORDSIZE whether to use an union for __spins and __list
28617 fields.
28618 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28619 case.
28620 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28621 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28622 defines.
28623 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28624 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28625 Likewise.
28626 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28627 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28628 Likewise.
28629 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28630 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28631 Likewise.
28632 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28633 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28634 Likewise.
28635 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28636 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28637 Likewise.
28638 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28639 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28640 Likewise.
28641 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28642 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28643 Likewise.
28644 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28645 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28646 Likewise.
28647 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28648 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28649 Likewise.
28650 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28651 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28652 Likewise.
28653 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
28654 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28655 Likewise.
28656 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
28657 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28658 Likewise.
28659 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
28660 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28661 Likewise.
28662 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
28663 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28664 Likewise.
28665
28666 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
28667 New macros.
28668 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
28669 checks for expected input type size.
28670 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
28671 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
28672 Likewise.
28673 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
28674 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
28675 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
28676 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
28677 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
28678 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
28679 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
28680 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
28681 superflous runtime assert check.
28682 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
28683 Likewise.
28684 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
28685 Likewise.
28686 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
28687 Likewise.
28688 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
28689 Likewise.
28690 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
28691 Likewise.
28692 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
28693 Likewise.
28694 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
28695 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
28696 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
28697 Likewise.
28698 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
28699 Likewise.
28700 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
28701 Likewise.
28702 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
28703 Likewise.
28704 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
28705 Likewise.
28706 * nptl/pthread_attr_setinheritsched.c
28707 (__pthread_attr_setinheritsched): Likewise.
28708 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
28709 Likewise.
28710 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
28711 Likewise.
28712 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
28713 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
28714 __old_pthread_attr_setstack): Likewise.
28715 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
28716 Likewise.
28717 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
28718 Likewise.
28719 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
28720 Likewise.
28721 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
28722 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
28723 Likewise.
28724 * nptl/tst-typesizes.c: Remove file.
28725
28726 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
28727 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
28728 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
28729 checks for internal pthread_mutex_t offsets.
28730 * sysdeps/aarch64/nptl/pthread-offsets.h
28731 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
28732 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
28733 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
28734 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
28735 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
28736 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
28737 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
28738 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
28739 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
28740 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
28741 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
28742 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
28743 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
28744 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
28745 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
28746 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
28747 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
28748 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
28749
28750 2017-11-07 Florian Weimer <fweimer@redhat.com>
28751
28752 * bits/mman-linux.h: Move ...
28753 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
28754 comment.
28755 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
28756 outdated comment.
28757
28758 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28759
28760 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
28761 Redefine STRNLEN as __strnlen_power8.
28762
28763 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28764
28765 * signal/sighold.c (sighold): Optimize implementation.
28766
28767 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
28768 __NR_rt_sigqueueinfo.
28769
28770 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28771 __sigtimedwait.
28772 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
28773 assume __NR_rt_sigtimedwait.
28774 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
28775 and add LIBC_CANCEL_HANDLED for cancellation marking.
28776 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
28777
28778 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28779 (sysdeps_routines): Add memchr_noneon.
28780 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
28781 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
28782 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
28783 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
28784 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
28785 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
28786 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
28787
28788 * sysdeps/arm/arm-ifunc.h: New file.
28789 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
28790 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
28791 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
28792 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
28793 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
28794 (__memcpy_neon): Avoid create hidden alias.
28795 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
28796 (__memcpy_vfp): Likewise.
28797 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
28798 (sysdep_routines): Add memcpy_arm.
28799 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
28800
28801 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
28802
28803 [BZ #22362]
28804 * Makerules (make-link-multidir): New.
28805 * config.make.in (multidir): New.
28806 * configure.ac (libc_cv_multidir): New. AC_SUBST.
28807 * configure: Regenerated.
28808 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
28809 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
28810 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
28811 New target.
28812
28813 2017-11-06 Joseph Myers <joseph@codesourcery.com>
28814
28815 [BZ #22402]
28816 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
28817 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
28818
28819 2017-11-04 Mike FABIAN <mfabian@redhat.com>
28820
28821 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
28822 to be escaped.
28823
28824 2017-11-04 Florian Weimer <fweimer@redhat.com>
28825
28826 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
28827
28828 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28829
28830 * math/math.h [__HAVE_DISTINCT_FLOAT16
28831 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28832 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28833 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28834 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
28835 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
28836 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
28837 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28838 (__MATH_TG_F32): New macro.
28839 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28840 (__MATH_TG_F64X): Likewise.
28841 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
28842 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
28843
28844 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
28845
28846 * po/de.po: Update translations.
28847 * po/ru.po: Likewise.
28848
28849 2017-11-03 Florian Weimer <fweimer@redhat.com>
28850
28851 * manual/filesys.texi (Hard Links): Document linkat.
28852
28853 2017-11-03 Joseph Myers <joseph@codesourcery.com>
28854
28855 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
28856 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
28857 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
28858 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
28859 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28860 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28861 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
28862 the same as _Float128.
28863 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
28864 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
28865 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
28866
28867 * stdlib/stdlib.h
28868 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
28869 Declare.
28870 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
28871 Likewise.
28872 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
28873 Likewise.
28874 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28875 (strtof32x): Likewise.
28876 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28877 (strtof64x): Likewise.
28878 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28879 (strtof128x): Likewise.
28880 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28881 (strfromf16): Likewise.
28882 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28883 (strfromf32): Likewise.
28884 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28885 (strfromf64): Likewise.
28886 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28887 (strfromf32x): Likewise.
28888 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28889 (strfromf64x): Likewise.
28890 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28891 (strfromf128x): Likewise.
28892 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
28893 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
28894 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
28895 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
28896 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
28897 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
28898
28899 2017-11-03 Richard Henderson <rth@twiddle.net>
28900
28901 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
28902
28903 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28904
28905 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
28906
28907 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28908
28909 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
28910 DT_TLSDESC_GOT initialization.
28911 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
28912 (_dl_tlsdesc_resolve_hold): Likewise.
28913 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
28914 (_dl_tlsdesc_resolve_hold): Likewise.
28915 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
28916 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28917
28918 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28919
28920 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
28921
28922 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28923
28924 [BZ #18572]
28925 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
28926 non-lazily for R_ARM_TLS_DESC.
28927
28928 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28929
28930 [BZ #17078]
28931 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
28932 R_ARM_TLS_DESC case.
28933 (elf_machine_lazy_rel): Remove the prelink check.
28934
28935 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28936
28937 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
28938 DT_TLSDESC_GOT initialization.
28939 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
28940 (_dl_tlsdesc_resolve_rela): Likewise.
28941 (_dl_tlsdesc_resolve_hold): Likewise.
28942 (_dl_tlsdesc_undefweak): Remove ldar.
28943 (_dl_tlsdesc_dynamic): Likewise.
28944 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
28945 (_dl_tlsdesc_resolve_rela): Likewise.
28946 (_dl_tlsdesc_resolve_hold): Likewise.
28947 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
28948 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
28949 (_dl_tlsdesc_resolve_rela): Likewise.
28950 (_dl_tlsdesc_resolve_hold): Likewise.
28951
28952 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28953
28954 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
28955 binding and initialization non-lazily for R_AARCH64_TLSDESC.
28956
28957 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28958
28959 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
28960 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
28961
28962 2017-11-02 Joseph Myers <joseph@codesourcery.com>
28963
28964 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
28965 Declare.
28966 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
28967 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
28968 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
28969 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
28970 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
28971 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
28972 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
28973 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
28974 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
28975 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
28976 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
28977
28978 2017-11-02 Mike FABIAN <mfabian@redhat.com>
28979
28980 [BZ #22382]
28981 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
28982 * localedata/locales/tpi_PG: Add standard header.
28983
28984 2017-11-02 Florian Weimer <fweimer@redhat.com>
28985
28986 test-errno-linux: quotactl can fail with EPERM in containers.
28987 * sysdeps/unix/sysv/linux/test-errno-linux.c
28988 (LIST, LIST_FORWARD): New macros.
28989 (check_error_in_list): New function.
28990 (test_wrp_rv): Accept list of permitted error codes.
28991 (test_wrp_rv2): Remove.
28992 (test_wrp): Call test_wrp_rv with list of error codes.
28993 (test_wrp2): Accept list of error codes.
28994 (do_test): Adjust. Allow EPERM for quotactl.
28995
28996 2017-11-02 Florian Weimer <fweimer@redhat.com>
28997
28998 * stdio-common/bug16.c (do_test): Use array_length.
28999 * stdio-common/errlist.c (_sys_nerr): Likewise.
29000 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29001 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29002 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29003 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29004 (do_test): Use array_length.
29005 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29006 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29007 * stdio-common/tst-printf-round.c (do_test): Likewise.
29008 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29009 (CHECK): Use array_length.
29010 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29011 * stdio-common/tstscanf.c (main): Likewise.
29012 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29013
29014 2017-11-02 Florian Weimer <fweimer@redhat.com>
29015
29016 Add array_length and array_end macros.
29017 * include/array_length.h: New file.
29018
29019 2017-11-02 Florian Weimer <fweimer@redhat.com>
29020
29021 [BZ #22332]
29022 * posix/tst-glob-tilde.c (do_noescape): New variable.
29023 (one_test): Process it.
29024 (do_test): Set do_noescape. Add unescaping test case.
29025
29026 2017-11-01 Joseph Myers <joseph@codesourcery.com>
29027
29028 * math/complex.h
29029 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29030 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29031 with appropriate macros defined and undefined.
29032 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29033 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29034 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29035 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29036 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29037 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29038 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29039 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29040 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29041 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29042
29043 * math/complex.h
29044 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29045 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29046 that for long double. Do not condition define and undefine of
29047 _Mdouble_complex_ on [__CFLOAT128].
29048
29049 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29050
29051 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29052 of <sysdeps/generic/sysdep.h>.
29053 (ALIGNARG): Removed.
29054 (ASM_SIZE_DIRECTIVE): Likewise.
29055 (ENTRY): Likewise.
29056 (END): Likewise.
29057 (ENTRY_CHK): Likewise.
29058 (END_CHK): Likewise.
29059 (syscall_error): Likewise.
29060 (mcount): Likewise.
29061 (PSEUDO_END): Likewise.
29062 (L): Likewise.
29063 (atom_text_section): Likewise.
29064 * sysdeps/x86/sysdep.h: New file.
29065 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29066 of <sysdeps/generic/sysdep.h>.
29067 (ALIGNARG): Removed.
29068 (ASM_SIZE_DIRECTIVE): Likewise.
29069 (ENTRY): Likewise.
29070 (END): Likewise.
29071 (ENTRY_CHK): Likewise.
29072 (END_CHK): Likewise.
29073 (syscall_error): Likewise.
29074 (mcount): Likewise.
29075 (PSEUDO_END): Likewise.
29076 (L): Likewise.
29077 (atom_text_section): Likewise.
29078
29079 2017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
29080
29081 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29082 category of LC_CTYPE set to "i18n:2012".
29083 * localedata/locales/i18n_ctype: Regenerate.
29084
29085 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
29086
29087 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29088 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29089 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29090 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29091
29092 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29093 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29094 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29095 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29096
29097 2017-10-31 Joseph Myers <joseph@codesourcery.com>
29098
29099 * math/complex.h
29100 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29101 New macro.
29102 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29103 Likewise.
29104 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29105 Likewise.
29106 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29107 (CMPLXF32X): Likewise.
29108 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29109 (CMPLXF64X): Likewise.
29110 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29111 (CMPLXF128X): Likewise.
29112
29113 * math/math.h
29114 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29115 (__MATH_EVAL_FMT2): Define to add 0.0f.
29116
29117 2017-10-31 Alan Modra <amodra@gmail.com>
29118
29119 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29120 include sysdep.h.
29121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29135 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29136 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29137 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29138 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29139 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29140 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29141 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29142 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29143 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29144 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29145 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29146 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29147 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29148 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29149 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29150 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29151 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29152 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29153 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29154 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29155 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29156 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29157 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29158 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29159 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29160 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29161 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29162 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29163 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29164 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29165 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29166 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29167 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29168 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29169 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29170 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29171 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29172 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29173 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29174 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29175 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29176 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29177 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29178 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29179 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29180 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29181 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29182 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29183 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29184 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29185 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29186 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29187 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29188 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29189 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29190
29191 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29192 include sysdep.h and math_ldbl_opt.h.
29193
29194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29195 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29200 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29201 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29202 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29203 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29215 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29216 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29217 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29218 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29219 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29220
29221 2017-10-31 Alan Modra <amodra@gmail.com>
29222
29223 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29224 string/strncase_l.c, not string/strncase.c.
29225 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29226 (libc_hidden_def): Redefine.
29227
29228 2017-10-31 Alan Modra <amodra@gmail.com>
29229
29230 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29231 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29232 (__strcasecmp): Don't define.
29233
29234 2017-10-31 Alan Modra <amodra@gmail.com>
29235
29236 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29237 IS_IN (libc).
29238 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29239 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29240 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29241
29242 2017-10-31 Alan Modra <amodra@gmail.com>
29243
29244 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29245 USE_AS_STPNCPY.
29246
29247 2017-10-31 Alan Modra <amodra@gmail.com>
29248
29249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29250 Redefine only when SHARED.
29251
29252 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29253
29254 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29255 Include <bits/math-finite.h> with appropriate macros defined and
29256 undefined.
29257 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29258 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29259 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29260 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29261 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29262
29263 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29264 [!_Mlong_double_] (_Mlong_double_): Likewise.
29265 [!_Mfloat16_] (_Mfloat16_): Likewise.
29266 [!_Mfloat32_] (_Mfloat32_): Likewise.
29267 [!_Mfloat64_] (_Mfloat64_): Likewise.
29268 [!_Mfloat128_] (_Mfloat128_): Likewise.
29269 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29270 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29271 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29272 (_Mdouble_): Define without indirection through those macros.
29273 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29274 [!_Mfloat128_] (_Mfloat128_): Likewise.
29275 [_Mlong_double_] (_Mlong_double_): Likewise.
29276 (_Mdouble_): Define without indirection through those macros.
29277 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29278 not add -D_Mlong_double_=double.
29279 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29280 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29281
29282 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29283
29284 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29285
29286 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29287
29288 * sysdeps/x86/libc-start.c: Reformat.
29289
29290 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29291
29292 [BZ #22353]
29293 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29294 (1): Renamed to ...
29295 (L(Src0)): This.
29296 (L(Src1)): New.
29297 (L(Src2)): Likewise.
29298 (L(1)): Renamed to ...
29299 (L(Src3)): This.
29300
29301 2017-10-30 Joseph Myers <joseph@codesourcery.com>
29302
29303 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29304 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29305 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29306 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29307 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29308 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29309 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29310 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29311 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29312 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29313 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29314 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29315 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29316 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29317 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29318 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29319 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29320 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29321 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29322 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29323 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29324 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29325 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29326 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29327 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29328 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29329 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29330 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29331 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29332 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29333 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29334 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29335 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29336 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29337 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29338 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29339 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29340 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29341 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29342 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29343 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29344 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29345 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29346 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29347 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29348 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29349 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29350 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29351 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29352 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29353 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29354 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29355 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29356 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29357 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29358 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29359 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29360 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29361 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29362 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29363 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29364 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29365 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29366 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29367 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29368 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29369
29370 2017-10-30 Florian Weimer <fweimer@redhat.com>
29371
29372 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29373 always defined.
29374 * io/tst-mkdirat.c (do_test): Likewise.
29375 * io/tst-mkfifoat.c (do_test): Likewise.
29376 * io/tst-mknodat.c (do_test): Likewise.
29377 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29378 * locale/programs/locale.c (select_dirs): Likewise.
29379 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29380 * posix/bug-glob2.c (my_readdir): Likewise.
29381 * posix/tst-dir.c (main): Likewise.
29382 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29383 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29384
29385 2017-10-30 Florian Weimer <fweimer@redhat.com>
29386
29387 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29388 just __USE_GNU.
29389
29390 2017-10-30 Florian Weimer <fweimer@redhat.com>
29391
29392 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29393 Convert to support/test-driver.c.
29394 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29395 New macro parameters.
29396 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29397 * posix/tst-gnuglob.c: New file.
29398 * posix/tst-gnuglob64.c: Likewise.
29399 * posix/Makefile (tests): Add tst-gnuglob64.
29400
29401 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
29402
29403 [BZ #19485]
29404 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29405 and use a better translation for March in “mon”.
29406 * localedata/locales/csb_PL: Use more ASCII to improve the
29407 readability of the source.
29408
29409 2017-10-30 Mike FABIAN <mfabian@redhat.com>
29410
29411 [BZ #13953]
29412 * localedata/locales/km_KH: Use ASCII as much
29413 as possible for better readability of the source and
29414 remove useless comments.
29415 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29416 was commented out and apparently wrong anyway because it was
29417 using Lao characters. If Buddhist era should be used
29418 for km_KH, a native speaker should write the correct formaat
29419 for Khmer.
29420 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29421 (According to CLDR, the first weekday for Cambodia is Sunday).
29422 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29423 (These were using Lao characters which must be wrong. If we get
29424 the correct data from a native speaker, we could add it back, until
29425 then it is better not to have name_mr and name_mrs at all than
29426 having it wrong).
29427
29428 2017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
29429
29430 * locale/loadlocale.c: Correct size of
29431 _nl_value_type_LC_<category> arrays.
29432
29433 2017-10-27 Joseph Myers <joseph@codesourcery.com>
29434
29435 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29436 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29437 with appropriate macros defined and undefined.
29438 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29439 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29440 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29441 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29442 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29443
29444 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29445
29446 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29447 "-O2 -march=i586".
29448
29449 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29450
29451 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29452 with lowercase letters to make it agree with CLDR.
29453
29454 2017-10-27 Mike FABIAN <mfabian@redhat.com>
29455
29456 [BZ #15260]
29457 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29458 first letters of yesstr and nostr in yesexpr and noexpr,
29459 not for the full words.
29460 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29461 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29462 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29463 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29464 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29465 first letters of yesstr and nostr in yesexpr and noexpr,
29466 until now only English was matched in yesexpr and noexpr.
29467 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29468 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29469 fil but not for tl. As tl and fil are very similar, using fil
29470 is probably better than using English.
29471
29472 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
29473
29474 [BZ #21706]
29475 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29476 in yesstr and nostr.
29477
29478 2017-10-26 Joseph Myers <joseph@codesourcery.com>
29479
29480 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29481 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29482 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29483 Likewise.
29484 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29485 Likewise.
29486 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29487 Likewise.
29488 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29489 Likewise.
29490 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29491 (SNANF128X): Likewise.
29492
29493 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29494 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29495 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29496 (HUGE_VAL_F32): Likewise.
29497 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29498 (HUGE_VAL_F64): Likewise.
29499 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29500 (HUGE_VAL_F32X): Likewise.
29501 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29502 (HUGE_VAL_F64X): Likewise.
29503 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29504 (HUGE_VAL_F128X): Likewise.
29505
29506 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29507
29508 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29509 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29510 for the br_FR locale.
29511
29512 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
29513
29514 [BZ #21706]
29515 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29516
29517 2017-10-25 Carlos O'Donell <carlos@redhat.com>
29518
29519 * locale/programs/record-status.h: Define globals, and function
29520 prototypes. Move function bodies...
29521 * locale/programs/record-status.c: ... to here. New file.
29522 * iconv/Makefile (iconv_prog-modules): Add record-status.
29523 * locale/Makefile (lib-modules): Likewise.
29524 * iconv/iconv_prog.c: Remove verbose.
29525 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29526 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29527 record a warning about ASCII compatibility.
29528 * locale/programs/ld-monetary.c (monetary_finish): If
29529 warn_int_curr_symbol is true then record a warning about the symbol
29530 not being in our ISO 4217 list.
29531 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29532 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29533 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29534 (OPT_NO_WARN): Define.
29535 (OPT_WARN): Define.
29536 (options): Add entry for --no-warnings, and --warnings.
29537 (set_warnings): New function to enable/disable warnings.
29538 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29539 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29540 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29541 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29542 Pass flags to generate_locale.
29543 (generate_locale): Accept new flag argument and pass it to localedef
29544 invocation.
29545 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29546 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29547
29548 * localedata/Makefile (test-input-data): Use full file name.
29549 * localedata/da_DK.in: Rename to...
29550 * localedata/da_DK.ISO-8859-1.in: ...this.
29551 * localedata/de_DE.in: Rename to...
29552 * localedata/de_DE.ISO-8859-1.in: ...this.
29553 * localedata/en_US.in: Rename to...
29554 * localedata/en_US.ISO-8859-1.in: ...this.
29555 * localedata/fr_FR.in: Rename to...
29556 * localedata/fr_FR.UTF-8.in: ... this.
29557 * localedata/hr_HR.in: Rename to...
29558 * localedata/hr_HR.ISO-8859-2.in: ...this.
29559 * localedata/hu_HU.in: Rename to...
29560 * localedata/hu_HU.UTF-8.in: ...this.
29561 * localedata/si_LK.in: Rename to...
29562 * localedata/si_LK.UTF-8.in: ...this.
29563 * localedata/sv_SE.in: Rename to...
29564 * localedata/sv_SE.ISO-8859-1.in: ...this.
29565 * localedata/tr_TR.in: Rename to...
29566 * localedata/tr_TR.UTF-8.in: ...this.
29567 * localedata/uk_UA.in: Rename to...
29568 * localedata/uk_UA.UTF-8.in: ...this.
29569 * localedata/sort-test.sh: Test file is locale name with the
29570 suffix.
29571
29572 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29573 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29574 file.
29575 * localedata/locales/i18n_ctype: Regenerate.
29576 * localedata/locales/tr_TR: Likewise.
29577 * localedata/locales/translit_circle: Likewise.
29578 * localedata/locales/translit_cjk_compat: Likewise.
29579 * localedata/locales/translit_combining: Likewise.
29580 * localedata/locales/translit_compat: Likewise.
29581 * localedata/locales/translit_font: Likewise.
29582 * localedata/locales/translit_fraction: Likewise.
29583
29584 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29585
29586 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29587 lxvd2x/stxvd2x with lvx/stvx.
29588 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29589
29590 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29591
29592 * include/alloc_buffer.h: Replace "if if " with "if " in
29593 comments.
29594 * sysdeps/mips/memcpy.S: Likkewise.
29595 * sysdeps/mips/memset.S: Likewise.
29596 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29597 Likewise.
29598 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29599 Likewise.
29600 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29601 Likewise.
29602
29603 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29604
29605 [BZ #15261]
29606 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29607 yesexpr and noexpr.
29608 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29609 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29610 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29611 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29612 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29613 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29614 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29615
29616 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29617
29618 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29619 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29620 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29621 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29622 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29623 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29624 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29625 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29626 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29627 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29628 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29629 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29630
29631 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29632
29633 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29634 as possible for better readability of the source.
29635 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29636 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29637 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29638 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29639 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29640 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29641 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29642 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29643 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29644 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29645 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29646 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29647 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29648 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29649 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29650 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29651 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
29652 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
29653 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
29654 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
29655 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
29656 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
29657 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
29658 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
29659 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
29660 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
29661 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
29662 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
29663 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
29664 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
29665 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
29666 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29667 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
29668 * localedata/locales/en_US (LC_MESSAGES): Likewise.
29669 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
29670 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
29671 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
29672 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
29673 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
29674 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
29675 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
29676 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
29677 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
29678 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
29679 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
29680 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
29681 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
29682 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
29683 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
29684 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
29685 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
29686 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
29687 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
29688 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29689 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29690 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
29691 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
29692 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29693 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
29694 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
29695 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
29696 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
29697 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
29698 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
29699 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
29700 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
29701 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
29702 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
29703 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
29704 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
29705 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
29706 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
29707 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
29708 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
29709 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29710 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
29711 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
29712 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
29713 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
29714 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
29715 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
29716 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
29717 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
29718 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29719 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
29720 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
29721 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
29722 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29723 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
29724 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
29725 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
29726 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
29727 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29728 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
29729 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
29730 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29731 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
29732 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29733 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
29734 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
29735 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
29736 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
29737 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
29738 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
29739 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
29740 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
29741 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
29742 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
29743 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
29744 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
29745 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
29746 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
29747 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29748 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
29749 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
29750 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
29751 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
29752 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
29753 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
29754 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
29755 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
29756 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
29757 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
29758 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
29759 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
29760 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
29761 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
29762 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
29763 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
29764 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
29765 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
29766 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
29767 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
29768 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
29769 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
29770 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
29771 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
29772 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
29773 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
29774 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
29775 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
29776 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
29777 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
29778 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
29779 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
29780 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29781 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
29782 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
29783 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
29784 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
29785 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
29786 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
29787 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
29788 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
29789 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29790 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
29791 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
29792 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
29793 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
29794 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
29795 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
29796 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
29797 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
29798 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
29799 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
29800 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29801 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
29802 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
29803 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
29804 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
29805 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29806 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29807 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29808 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
29809
29810 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29811
29812 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
29813 (Use first letters of yesstr and nostr correctly instead of using
29814 full words).
29815
29816 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29817
29818 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
29819 (Use first letters of yesstr and nostr correctly).
29820
29821 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29822
29823 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
29824 also check for the first characters of yesstr and nostr.
29825 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
29826 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
29827
29828 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29829
29830 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
29831 also check for Chinese characters.
29832
29833 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29834
29835 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
29836 match also for the contents of yesstr and nostr. As the first letter
29837 of yesstr and nostr is equal, checking only for the first letter
29838 is not enough.
29839
29840 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29841
29842 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
29843 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
29844
29845 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29846
29847 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
29848 of main contributor.
29849
29850 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29851
29852 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
29853 instead of using English.
29854
29855 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29856
29857 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
29858 by including the first letters of nostr and yesexpr in the regexp.
29859 Also make it more readable by using ASCII where possible.
29860
29861 2017-10-25 Mike FABIAN <mfabian@redhat.com>
29862
29863 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
29864 the first letter of nostr in the regexp. It agrees with CLDR now.
29865 Also make it more readable by using ASCII where possible.
29866
29867 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29868
29869 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
29870 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
29871 these strings contain a U+17D6 (which somewhat looks like a colon)
29872 instead of a real colon to separate the full words for “yes”
29873 and “no” from the single letter responses.
29874
29875 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29876
29877 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
29878 it agree with CLDR (include the first letter of yesstr).
29879 Also make it more readable by using ASCII where possible.
29880
29881 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29882
29883 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
29884 and improve yesexpr and noexpr. The yesstr and nostr apparently
29885 came from CLDR. And CLDR has a bug there: these strings contain
29886 a U+0903 (which looks like a colon) instead of a real colon
29887 to separate the full words for “yes” and “no” from the single
29888 letter responses.
29889
29890 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29891
29892 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
29893 letters of the full yesstr and nostr in yesexpr and noexpr.
29894
29895 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29896
29897 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
29898 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
29899 * localedata/locales/an_ES: Make source more readable by using ASCII
29900 where possible.
29901
29902 2017-10-24 Mike FABIAN <mfabian@redhat.com>
29903
29904 [BZ #20952]
29905 * localedata/locales/yuw_PG: New file.
29906 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
29907 * locale/iso-639.def: Add Yau (Uruwa).
29908
29909 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29910
29911 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
29912
29913 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
29914
29915 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
29916 (__libc_realloc): Likewise.
29917 (_mid_memalign): Likewise.
29918 (__libc_calloc): Likewise.
29919
29920 2017-10-23 Mike FABIAN <mfabian@redhat.com>
29921
29922 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
29923 by adding the generic +1 and -0 as in all other locales.
29924 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
29925 day names and make it more readable by using ASCII where possible.
29926
29927 2017-10-24 Joseph Myers <joseph@codesourcery.com>
29928
29929 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
29930 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
29931
29932 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29933
29934 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
29935 WNOHANG in waitpid call.
29936
29937 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
29938
29939 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
29940 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
29941
29942 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
29943 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
29944 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
29945 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
29946 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
29947 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
29948 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
29949 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
29950 variables.
29951
29952 2017-10-23 Michael Collison <michael.collison@arm.com>
29953
29954 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
29955 with __builtin_sqrt.
29956 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
29957 with __builtin_sqrtf.
29958 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
29959 with __builtin_ceil.
29960 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
29961 with __builtin_ceilf.
29962 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
29963 with __builtin_floor.
29964 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
29965 with __builtin_floorf.
29966 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
29967 with __builtin_fma.
29968 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
29969 with __builtin_fmaf.
29970 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
29971 with __builtin_fmax.
29972 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
29973 with __builtin_fmaxf.
29974 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
29975 with __builtin_fmin.
29976 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
29977 with __builtin_fminf.
29978 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
29979 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
29980 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
29981 with builtin_rint and conversion to int.
29982 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
29983 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
29984 with builtin_llround.
29985 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
29986 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
29987 with builtin_rint and conversion to long int.
29988 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
29989 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
29990 with builtin_lround.
29991 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
29992 with builtin_lroundf.
29993 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
29994 statements with __builtin_nearbyint.
29995 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
29996 statements with __builtin_nearbyintf.
29997 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
29998 with __builtin_rint.
29999 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30000 with __builtin_rintf.
30001 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30002 with __builtin_round.
30003 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30004 with __builtin_roundf.
30005 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30006 with __builtin_trunc.
30007 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30008 with __builtin_truncf.
30009 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30010 and s_l[l]round[f].c too.
30011
30012 2017-10-23 Alan Modra <amodra@gmail.com>
30013
30014 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30015 Adjust stack after restoring regs. Add missing LR cfi_restore.
30016
30017 2017-10-23 Alan Modra <amodra@gmail.com>
30018
30019 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30020 Move LR save and frame setup/teardown and LR restore to
30021 immediately around memset call. Provide cfi.
30022
30023 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30024
30025 * sysdeps/i386/fpu/e_powf.S: Removed.
30026 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30027 * sysdeps/i386/fpu/w_powf.c: Likewise.
30028 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30029 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30030 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30031 Add e_powf-sse2.
30032 (CFLAGS-e_powf-sse2.c): New.
30033 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30034 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30035
30036 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30037
30038 * sysdeps/i386/fpu/e_log2f.S: Removed.
30039 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30040 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30041 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30042 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30043 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30044 Add e_log2f-sse2.
30045 (CFLAGS-e_log2f-sse2.c): New.
30046 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30047 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30048
30049 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30050
30051 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30052 Add e_powf-fma.
30053 (CFLAGS-e_powf-fma.c): New.
30054 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30055 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30056
30057 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30058
30059 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30060 Add e_log2f-fma.
30061 (CFLAGS-e_log2f-fma.c): New.
30062 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30063 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30064
30065 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30066
30067 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30068 Add e_logf-fma.
30069 (CFLAGS-e_logf-fma.c): New.
30070 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30071 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30072
30073 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30074
30075 * sysdeps/i386/fpu/e_logf.S: Removed.
30076 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30077 * sysdeps/i386/fpu/w_logf.c: Likewise.
30078 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30079 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30080 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30081 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30082 Add e_logf-sse2.
30083 (CFLAGS-e_logf-sse2.c): New.
30084 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30085 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30086
30087 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30088
30089 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30090 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30091 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30092 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30093 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30094 Add e_exp2f-sse2.
30095 (CFLAGS-e_exp2f-sse2.c): New.
30096 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30097 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30098
30099 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30100
30101 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30102 Add e_exp2f-fma.
30103 (CFLAGS-e_exp2f-fma.c): New.
30104 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30105 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30106
30107 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30108
30109 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30110 * sysdeps/i386/fpu/e_expf.S: Likewise.
30111 * sysdeps/i386/fpu/math_errf.c: Likewise.
30112 * sysdeps/i386/fpu/w_expf.c: Likewise.
30113 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30114 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30115 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30116 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30117 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30118 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30119 Remove e_expf-ia32.
30120 (CFLAGS-e_expf-sse2.c): New.
30121 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30122 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30123
30124 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30125
30126 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30127 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30128 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30129 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30130 e_expf.c.
30131 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30132 New.
30133 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30134 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30135 Renamed to ...
30136 (__redirect_expf): This.
30137 (SYMBOL_NAME): Changed to expf.
30138 (__ieee754_expf): Renamed to ...
30139 (__expf): This.
30140 (__GI___expf): This.
30141 (__ieee754_expf): Add strong_alias.
30142 (__expf_finite): Likewise.
30143 (__expf): New.
30144 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30145
30146 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
30147
30148 [BZ #22332]
30149 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30150 unescaping.
30151
30152 2017-10-21 Florian Weimer <fweimer@redhat.com>
30153
30154 * posix/Makefile (tests): Add tst-glob-tilde.
30155 (tests-special): Add tst-glob-tilde-mem.out
30156 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30157 (tst-glob-tilde-mem.out): Add mtrace check.
30158 * posix/tst-glob-tilde.c: New file.
30159
30160 2017-10-20 Joseph Myers <joseph@codesourcery.com>
30161
30162 * bits/floatn-common.h: New file.
30163 * math/Makefile (headers): Add bits/floatn-common.h.
30164 * bits/floatn.h: Include <bits/floatn-common.h>.
30165 * sysdeps/ia64/bits/floatn.h: Likewise.
30166 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30167 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30168 * sysdeps/powerpc/bits/floatn.h: Likewise.
30169 * sysdeps/x86/bits/floatn.h: Likewise.
30170
30171 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30172
30173 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30174 indicates whether compiler emits an warning for alias for
30175 functions with incompatible types.
30176
30177 [BZ #22273]
30178 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30179 the auxiliary process is terminated by a signal before calling _exit
30180 or execve.
30181
30182 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30183
30184 [BZ #21265]
30185 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30186 New.
30187 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30188 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30189 and bit_arch_XSAVEC_Usable if needed.
30190 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30191 and bit_arch_Use_dl_runtime_resolve_opt.
30192 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30193 Removed.
30194 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30195 (bit_arch_Prefer_No_AVX512): Updated.
30196 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30197 (bit_arch_XSAVEC_Usable): New.
30198 (STATE_SAVE_OFFSET): Likewise.
30199 (STATE_SAVE_MASK): Likewise.
30200 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30201 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30202 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30203 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30204 (index_arch_XSAVEC_Usable): New.
30205 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30206 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30207 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30208 is enabled.
30209 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30210 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30211 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30212 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30213 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30214 _dl_runtime_resolve_xsavec.
30215 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30216 Removed.
30217 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30218 instead of VEC_SIZE.
30219 (REGISTER_SAVE_BND0): Removed.
30220 (REGISTER_SAVE_BND1): Likewise.
30221 (REGISTER_SAVE_BND3): Likewise.
30222 (REGISTER_SAVE_RAX): Always defined to 0.
30223 (VMOV): Removed.
30224 (_dl_runtime_resolve_avx): Likewise.
30225 (_dl_runtime_resolve_avx_slow): Likewise.
30226 (_dl_runtime_resolve_avx_opt): Likewise.
30227 (_dl_runtime_resolve_avx512): Likewise.
30228 (_dl_runtime_resolve_avx512_opt): Likewise.
30229 (_dl_runtime_resolve_sse): Likewise.
30230 (_dl_runtime_resolve_sse_vex): Likewise.
30231 (USE_FXSAVE): New.
30232 (_dl_runtime_resolve_fxsave): Likewise.
30233 (USE_XSAVE): Likewise.
30234 (_dl_runtime_resolve_xsave): Likewise.
30235 (USE_XSAVEC): Likewise.
30236 (_dl_runtime_resolve_xsavec): Likewise.
30237 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30238 Removed.
30239 (_dl_runtime_resolve_avx512_opt): Likewise.
30240 (_dl_runtime_resolve_avx): Likewise.
30241 (_dl_runtime_resolve_avx_opt): Likewise.
30242 (_dl_runtime_resolve_sse): Likewise.
30243 (_dl_runtime_resolve_sse_vex): Likewise.
30244 (_dl_runtime_resolve_fxsave): New.
30245 (_dl_runtime_resolve_xsave): Likewise.
30246 (_dl_runtime_resolve_xsavec): Likewise.
30247
30248 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
30249
30250 [BZ #22320]
30251 CVE-2017-15670
30252 * posix/glob.c (__glob): Fix one-byte overflow.
30253
30254 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30255
30256 * malloc/malloc.c (sysdep-cancel.h): Add include.
30257
30258 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30259
30260 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30261
30262 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30263
30264 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30265 (tests): Remove $(objpfx)ga_test depdendency.
30266 * resolv/ga_test.c: Remove file.
30267
30268 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30269
30270 [BZ #18812]
30271 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30272 * localedata/locales/kab_DZ: New file.
30273
30274 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30275
30276 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30277 _dl_relocate_static_pie instead of _dl_start to compute load
30278 address in static PIE.
30279
30280 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30281
30282 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30283
30284 2017-10-20 Mike FABIAN <mfabian@redhat.com>
30285
30286 [BZ #13605]
30287 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30288 * localedata/locales/shn_MM: New file.
30289
30290 2017-10-20 Florian Weimer <fweimer@redhat.com>
30291
30292 [BZ #22321]
30293 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30294 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30295 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30296 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30297 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30298 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30299
30300 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30301
30302 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30303
30304 2017-10-19 Joseph Myers <joseph@codesourcery.com>
30305
30306 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30307
30308 [BZ #22322]
30309 * sysdeps/mips/bits/long-double.h: Move to ....
30310 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30311
30312 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30313
30314 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30315
30316 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
30317 H.J. Lu <hongjiu.lu@intel.com>
30318
30319 [BZ #22299]
30320 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30321 GLRO(dl_platform) to NULL.
30322 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30323 (modules-names): Add tst-platformmod-1 and
30324 x86_64/tst-platformmod-2.
30325 (CFLAGS-tst-platform-1.c): New.
30326 (CFLAGS-tst-platformmod-1.c): Likewise.
30327 (CFLAGS-tst-platformmod-2.c): Likewise.
30328 (LDFLAGS-tst-platformmod-2.so): Likewise.
30329 ($(objpfx)tst-platform-1): Likewise.
30330 ($(objpfx)tst-platform-1.out): Likewise.
30331 (tst-platform-1-ENV): Likewise.
30332 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30333 * sysdeps/x86_64/tst-platform-1.c: New file.
30334 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30335 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30336
30337 2017-10-19 Mike FABIAN <mfabian@redhat.com>
30338
30339 [BZ #13994]
30340 * locale/iso-639.def: Add Karbi.
30341 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30342 * localedata/locales/mjw_IN: New file.
30343
30344 2017-10-18 Joseph Myers <joseph@codesourcery.com>
30345
30346 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30347 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30348 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30349 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30350 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30351 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30352 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30353 <bits/floatn.h>.
30354 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30355 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30356 * manual/math.texi (Mathematics): Document additional architecture
30357 support for _Float128.
30358 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30359 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30360 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30361 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30362 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30363 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30364 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30365 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30366 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30367 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30368 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30369 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30370 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30371 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30372 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30373
30374 2017-10-18 Renlin Li <renlin.li@arm.com>
30375
30376 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30377 _DYNAMIC symbol to calculate load address.
30378
30379 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
30380
30381 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30382 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30383 summary bits.
30384 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30385 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30386
30387 2017-10-18 Mike FABIAN <mfabian@redhat.com>
30388
30389 [BZ #16777]
30390 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30391 and improve readability by using more ASCII.
30392 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30393 and improve readability by using more ASCII.
30394
30395 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30396
30397 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30398 not all targets support atomics on bool.
30399
30400 2017-10-17 Joseph Myers <joseph@codesourcery.com>
30401
30402 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30403 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30404 __f128.
30405 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30406 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30407 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30408 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30409 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30410 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30411
30412 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30413
30414 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30415 defines.
30416
30417 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30418
30419 [BZ #22159]
30420 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30421 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30422 (do_check_remalloced_chunk): Fix build bug.
30423 (do_check_malloc_state): Add assert that checks arena->top.
30424 (malloc_consolidate): Remove initialization.
30425 (int_mallinfo): Remove call to malloc_consolidate.
30426 (__libc_mallopt): Clarify why malloc_consolidate is needed.
30427
30428 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30429
30430 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30431 (have_fastchunks): Remove.
30432 (clear_fastchunks): Remove.
30433 (set_fastchunks): Remove.
30434 (malloc_state): Add have_fastchunks.
30435 (malloc_init_state): Use have_fastchunks.
30436 (do_check_malloc_state): Remove incorrect invariant checks.
30437 (_int_malloc): Use have_fastchunks.
30438 (_int_free): Likewise.
30439 (malloc_consolidate): Likewise.
30440
30441 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30442
30443 * malloc/malloc.c (tcache_put): Inline.
30444 (tcache_get): Inline.
30445
30446 2017-10-17 Jordi Mallach <jordi@gnu.org>
30447
30448 Aurelien Jarno <aurelien@aurel32.net>
30449 [BZ #2522]
30450 * localedata/locales/ca_ES@valencia: New file.
30451 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30452
30453 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30454
30455 [BZ #22296]
30456 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30457 < 6.x
30458
30459 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30460
30461 * scripts/build-many-glibcs.py (Context.add_all_configs):
30462 Add arm-linux-gnueabihf multiarch extra_glibcs.
30463
30464 * sysdeps/generic/ifunc-init.h: New file.
30465 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30466
30467 2017-10-17 Mike FABIAN <mfabian@redhat.com>
30468
30469 [BZ #22019]
30470 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30471 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30472 * stdlib/tst-strfmon_l.c: adapt test case.
30473
30474 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30475
30476 * sysdeps/generic/float128-abi.h: New file.
30477 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30478 non-__prefixed symbols to ....
30479 * math/Versions: ... here. Include <float128-abi.h>.
30480 * stdlib/Versions ... and here. Include <float128-abi.h>
30481
30482 2017-10-16 Florian Weimer <fweimer@redhat.com>
30483
30484 * version.h (VERSION): Switch to ".9000" as the development
30485 version suffix.
30486
30487 2017-10-16 Florian Weimer <fweimer@redhat.com>
30488
30489 [BZ #22050]
30490 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30491 compat_symbol_reference to access non-default version.
30492
30493 2017-10-16 Florian Weimer <fweimer@redhat.com>
30494
30495 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30496
30497 2017-10-16 Carlos O'Donell <carlos@redhat.com>
30498
30499 * include/shlib-compat.h (compat_symbol_reference): Update
30500 comment.
30501
30502 2017-10-16 Joseph Myers <joseph@codesourcery.com>
30503
30504 * math/Makefile (test-types): Add
30505 $(type-float128-$(float128-alias-fcts)).
30506 * math/test-float128.h (TYPE_STR): Define conditional on
30507 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30508 (ULP_IDX): Likewise.
30509 (ULP_I_IDX): Likewise.
30510
30511 * stdlib/strtold.c: Include <bits/floatn.h>
30512 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30513 and later undefine as macro. Define as weak alias if
30514 [!USE_WIDE_CHAR].
30515 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30516 and later undefine as macro. Define as weak alias if
30517 [USE_WIDE_CHAR].
30518 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30519 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30520 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30521 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30522 Define and later undefine as macro. Define as weak alias if
30523 [USE_WIDE_CHAR].
30524 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30525 <bits/floatn.h>.
30526 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30527 Define and later undefine as macro. Define as weak alias if
30528 [!USE_WIDE_CHAR].
30529 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30530 Define and later undefine as macro. Define as weak alias if
30531 [USE_WIDE_CHAR].
30532
30533 2017-10-15 Carlos O'Donell <carlos@redhat.com>
30534
30535 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30536 record_verbose messages.
30537
30538 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30539
30540 [BZ #22052]
30541 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30542 to silence -O3 -Wall warning with GCC 7.
30543
30544 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30545
30546 * Makeconfig (+link-static-before-libc): Use the first of
30547 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30548 * gmon/Makefile (tests): Add tst-gmon-static.
30549 (tests-static): Likewise.
30550 (CFLAGS-tst-gmon-static.c): New.
30551 (CRT-tst-gmon-static): Likewise.
30552 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30553 (tst-gmon-static-ENV): Likewise.
30554 (tests-special): Likewise.
30555 ($(objpfx)tst-gmon-static.out): Likewise.
30556 (clean-tst-gmon-static-data): Likewise.
30557 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30558 * gmon/tst-gmon-static-gprof.sh: New file.
30559 * gmon/tst-gmon-static.c: Likewise.
30560
30561 2017-10-13 Carlos O'Donell <carlos@redhat.com>
30562
30563 [BZ #22295]
30564 * locale/programs/linereader.c (get_string): Don't warn on
30565 non-symbolic character.
30566
30567 [BZ #22294]
30568 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30569 int_curr_symbol.
30570
30571 [BZ #22292]
30572 * locale/programs/record-status.h: New file
30573 * locale/programs/locale.c: Add comment.
30574 * locale/programs/charmap-dir.c: Don't include error.h.
30575 (charmap_opendir): Use record_error.
30576 * locale/programs/charmap.c: Don't include error.h.
30577 (charmap_read): Use record_error, and record_warning.
30578 (parse_charmap): Likewise.
30579 * locale/programs/ld-address.c: Don't include error.h.
30580 (address_finish): Use record_error, and record_warning.
30581 * locale/programs/ld-collate.c: Don't include error.h.
30582 (collate_finish): Use record_error, and record_error_at_line.
30583 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30584 (ctype_class_new): Likewise.
30585 (ctype_map_new): Likewise.
30586 (set_one_default): Likewise.
30587 (set_class_defaults): Likewise.
30588 (translit_flatten): Likewise.
30589 (allocate_arrays): Use record_error, and record_verbose.
30590 * locale/programs/ld-identification.c: Don't include error.h.
30591 (indentation_finish): Use record_error and record_warning.
30592 * locale/programs/ld-measurement.c: Don't include error.h.
30593 (measurement_finish): Use record_error.
30594 * locale/programs/ld-messages.c
30595 (message_finish): Likewise.
30596 * locale/programs/ld-monetary.c
30597 (monetary_finish): Likewise.
30598 * locale/programs/ld-name.c (name_finish): Use record_error
30599 and record_warning.
30600 * locale/programs/ld-numeric.c
30601 (numeric_finish): Use record_error.
30602 * locale/programs/ld-paper.c: Don't include error.h.
30603 (paper_finish): Use record_error.
30604 * locale/programs/ld-telephone.c: Don't include error.h.
30605 (telephone_finish): Use record_error.
30606 * locale/programs/ld-time.c (time_finish): Likewise.
30607 * locale/programs/linereader.h (lr_error): Make inline func.
30608 * locale/programs/localedef.c: Define recorded_warning_count,
30609 and recorded_error_count.
30610 (main): Use record_error. Use recorded_error_count and
30611 recorded_warning_count to issue correct error returns.
30612 (add_to_readlist): Use record_error.
30613 (find_locale): Likewise.
30614 (load_locale): Likewise.
30615 * locale/programs/localedef.h: Remove be_quiet
30616 and WITH_CUR_LOCALE.
30617 * locale/programs/locarchive.c (compare_from_file): Use
30618 record_error.
30619 * locale/programs/locfile.c (write_locale_data): Use
30620 record_error.
30621 * locale/programs/repertoire.c: Dont include error.h.
30622 (repertoire_complain): Use record_error.
30623 * localedata/tst-fmon.sh: Expect failures from localedef.
30624 * localedata/tst-locale.sh: Likewise.
30625 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30626
30627 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30628 (REPORTS): Likewise.
30629 (check): Likewise.
30630 (i18n): Rename to...
30631 (i18n_ctype): ...this.
30632 (i18n-report): Rename to...
30633 (i18n_ctype-report): ...this.
30634 * localedata/locales/i18n_ctype: Regenerate.
30635 * localedata/locales/i18n: copy i18n_ctype.
30636
30637 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30638
30639 * stdlib/strfroml.c: Include <bits/floatn.h>.
30640 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30641 Define before include of <stdlib.h> and undefine afterwards, then
30642 define as weak alias.
30643
30644 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30645 Undefine and restore default definition. Use
30646 libm_alias_ldouble_other.
30647
30648 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30649
30650 [BZ #22153]
30651 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
30652 in coredumps.
30653
30654 2017-10-13 James Clarke <jrtc27@jrtc27.com>
30655
30656 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30657 Assign sym_map to be map for local symbols, as TLS relocations
30658 use sym_map to determine whether the symbol is defined and to
30659 extract the TLS information.
30660 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30661 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30662
30663 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30664
30665 [BZ #22189]
30666 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
30667 (math_force_eval): Add powerpc version.
30668
30669 [BZ #22142]
30670 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
30671 -DBL_MAX.
30672 (do_test): Likewise.
30673 * stdio-common/tst-printf.sh: Likewise.
30674 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
30675 ifdef clause in order to set the carry bit right. Replace r0 by
30676 0 without changing the behavior.
30677
30678 2017-10-13 Joseph Myers <joseph@codesourcery.com>
30679
30680 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
30681 <libm-alias-ldouble.h>.
30682 (fabsl): Define using libm_alias_ldouble.
30683 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
30684 <libm-alias-ldouble.h>.
30685 (fabsl): Define using libm_alias_ldouble.
30686
30687 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
30688 Remove conditional code.
30689
30690 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
30691 Rename to __clog10_internal_l.
30692 (__clog10_internal_l): Define aliases using
30693 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
30694 with __clog10.
30695
30696 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30697
30698 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
30699 * benchtests/sincosf-inputs: New file.
30700 * benchtests/cosf-inputs: New file.
30701 * benchtests/sinf-inputs: New file.
30702
30703 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
30704
30705 * posix/tst-spawn.c (do_test): Wait for both children.
30706
30707 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
30708
30709 [BZ #22284]
30710 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
30711 tests-pie): Add tst-gmon-pie.
30712 (CFLAGS-tst-gmon-pie.c): New.
30713 (CRT-tst-gmon-pie): Likewise.
30714 (tst-gmon-pie-ENV): Likewise.
30715 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
30716 ($(objpfx)tst-gmon-pie.out): Likewise.
30717 (clean-tst-gmon-pie-data): Likewise.
30718 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
30719 * gmon/gmon.c [PIC]: Include <link.h>.
30720 [PIC] (callback): New function.
30721 (write_hist): Add an argument for load address. Subtract load
30722 address from PCs.
30723 (write_call_graph): Likewise.
30724 (write_gmon): Call __dl_iterate_phdr to get load address, pass
30725 it to write_hist and write_call_graph.
30726 * gmon/tst-gmon-pie.c: New file.
30727
30728 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30729
30730 * math/Makefile (test-types-basic): New variable.
30731 (test-types): Likewise.
30732 (libm-test-support): Use $(test-types) instead of $(types).
30733 (libm-tests-base-normal): Likewise.
30734 (libm-tests-base-finite): Likewise.
30735 (libm-tests-base-inline): Likewise.
30736 (generated): Likewise.
30737 ($(objpfx)libm-test-support-$(t).c): Likewise.
30738 (libm-tests-for-type iterator): Likewise.
30739 (libm-test-support iterator): Likewise.
30740 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
30741 (ulp_idx): Use ULP_IDX.
30742 * math/test-ldouble.h: Include <float.h>.
30743 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
30744 (ULP_IDX): New macro.
30745 (ULP_I_IDX): Likewise.
30746 * math/test-double.h (ULP_IDX): Likewise.
30747 (ULP_I_IDX): Likewise.
30748 * math/test-float.h (ULP_IDX): Likewise.
30749 (ULP_I_IDX): Likewise.
30750 * math/test-float128.h (ULP_IDX): Likewise.
30751 (ULP_I_IDX): Likewise.
30752
30753 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30754
30755 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
30756 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
30757 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
30758 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
30759 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
30760 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
30761 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
30762 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
30763 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
30764 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
30765 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
30766 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
30767 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
30768 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
30769 (SINGLE_THREAD_BY_GLOBAL): Define.
30770 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30771 Likewise.
30772 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30773 Likewise.
30774 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30775 Likewise.
30776 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30777 Likewise.
30778 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
30779 (SINGLE_THREAD_BY_GLOBAL): Likewise.
30780 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
30781 Likewise.
30782
30783 2017-10-11 Andreas Schwab <schwab@suse.de>
30784
30785 * nis/Makefile (aux): Remove.
30786 * nscd/Makefile (aux): Add nscd_hash.
30787 (nscd-modules): Likewise.
30788 ($(objpfx)nscd): Don't depend on libnsl.
30789 * nscd/nscd_hash.c: New file.
30790 * nscd/nscd_hash.h: Likewise.
30791 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
30792 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
30793 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
30794 instead of <nis/rpcsvc/nis.h>.
30795 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
30796
30797 2017-10-11 Florian Weimer <fweimer@redhat.com>
30798
30799 [BZ #22078]
30800 Avoid large NSS buffers with many addresses, aliases.
30801 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
30802 using dynarrays and struct alloc_buffer.
30803 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
30804 (tst-nss-files-hosts-multi): Link with -ldl.
30805 * nss/tst-nss-files-hosts-multi.c: New file.
30806
30807 2017-10-11 Florian Weimer <fweimer@redhat.com>
30808
30809 [BZ #18023]
30810 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
30811 scratch_buffer. Eliminate gotos.
30812
30813 2017-10-11 Joseph Myers <joseph@codesourcery.com>
30814
30815 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
30816 libm_alias_ldouble_other.
30817 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
30818 undefine and redefine.
30819 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30820 (exp10l): Do not define here.
30821 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
30822 (weak_alias): Undefine and redefine.
30823 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
30824 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30825 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
30826 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
30827
30828 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
30829 [!__fma] (fma): Define using libm_alias_double.
30830 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
30831 [!__fmaf] (fmaf): Define using libm_alias_float.
30832 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
30833 (fmal): Define using libm_alias_ldouble.
30834
30835 2017-10-10 Joseph Myers <joseph@codesourcery.com>
30836
30837 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
30838 New macro.
30839 (libm_alias_double_other): Likewise.
30840 (libm_alias_double_r): Use libm_alias_double_other_r.
30841 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
30842 New macro.
30843 (libm_alias_float_other): Likewise.
30844 (libm_alias_float_r): Use libm_alias_float_other_r.
30845 * sysdeps/generic/libm-alias-float128.h
30846 (libm_alias_float128_other_r): New macro.
30847 (libm_alias_float128_other): Likewise.
30848 (libm_alias_float128_r): Use libm_alias_float128_other_r.
30849 * sysdeps/generic/libm-alias-ldouble.h
30850 (libm_alias_ldouble_other_r): New macro.
30851 (libm_alias_ldouble_other): Likewise.
30852 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30853 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
30854 (libm_alias_double_other_r): New macro.
30855 (libm_alias_double_other): Likewise.
30856 (libm_alias_double_r): Use libm_alias_double_other_r.
30857 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
30858 (libm_alias_ldouble_other_r): New macro.
30859 (libm_alias_ldouble_other): Likewise.
30860 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
30861 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
30862 [!USE_AS_COMPAT]: Use libm_alias_double_other.
30863 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
30864 [!USE_AS_COMPAT]: Use libm_alias_float_other.
30865 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
30866 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
30867 * math/w_exp2f.c: Use libm_alias_float_other.
30868 * math/w_expf.c: Likewise.
30869 * math/w_log2f.c: Likewise.
30870 * math/w_logf.c: Likewise.
30871 * math/w_powf.c: Likewise.
30872 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
30873 [!__exp2f]: Use libm_alias_float_other.
30874 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
30875 [!__expf]: Use libm_alias_float_other.
30876 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
30877 [!__log2f]: Use libm_alias_float_other.
30878 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
30879 [!__logf]: Use libm_alias_float_other.
30880 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
30881 [!__powf]: Use libm_alias_float_other.
30882
30883 2017-10-10 Florian Weimer <fweimer@redhat.com>
30884
30885 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
30886 function.
30887 (_nss_files_gethostbyname3_r): Call it.
30888
30889 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30890
30891 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
30892 error. Remove default definition of declare_mgen_alias.
30893 [!declare_mgen_alias_r]: Likewise.
30894 * sysdeps/generic/math-type-macros-double.h
30895 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
30896 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
30897 (declare_mgen_alias_r): Likewise.
30898 * sysdeps/generic/math-type-macros-float128.h
30899 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30900 * sysdeps/generic/math-type-macros-ldouble.h
30901 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
30902 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
30903 macro.
30904 (declare_mgen_alias_r_s): Likewise.
30905 (declare_mgen_alias_r): Likewise.
30906 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
30907 (lgamma_r): Define using libm_alias_double_r.
30908 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
30909 (lgammaf_r): Define using libm_alias_float_r.
30910 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
30911 (lgammal_r): Define using libm_alias_ldouble_r.
30912 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
30913 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
30914
30915 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30916
30917 * lib/glob.c (__glob_pattern_type): Remove now-spurious
30918 extern declaration.
30919
30920 2017-10-09 Joseph Myers <joseph@codesourcery.com>
30921
30922 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
30923
30924 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
30925
30926 [BZ #21326]
30927 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
30928 [__cplusplus >= 201103] (__USE_ISOC99): Define.
30929 * math/Makefile (test-math-cxx11): New test.
30930 * math/test-math-cxx11.cc: New file.
30931
30932 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
30933
30934 * login/openpty.c (openpty): Close slave pty file descriptor on error.
30935
30936 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
30937 call to allocate the slave pty file descriptor.
30938
30939 2017-10-06 Joseph Myers <joseph@codesourcery.com>
30940
30941 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
30942 [!__fma] (fma): Define using libm_alias_double.
30943 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
30944 [!__fma] (fma): Define using libm_alias_double.
30945
30946 * sysdeps/ieee754/float128/float128_private.h: Include
30947 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
30948 (libm_alias_ldouble_r): Undefine and redefine.
30949 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
30950 <libm-alias-ldouble.h>.
30951 (asinhl): Define using libm_alias_ldouble.
30952 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
30953 <libm-alias-ldouble.h>.
30954 (atanl): Define using libm_alias_ldouble.
30955 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
30956 <libm-alias-ldouble.h>.
30957 (cbrtl): Define using libm_alias_ldouble.
30958 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
30959 <libm-alias-ldouble.h>.
30960 (ceill): Define using libm_alias_ldouble.
30961 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
30962 <libm-alias-ldouble.h>.
30963 (copysignl): Define using libm_alias_ldouble.
30964 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
30965 <libm-alias-ldouble.h>.
30966 (cosl): Define using libm_alias_ldouble.
30967 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
30968 <libm-alias-ldouble.h>.
30969 (erfl): Define using libm_alias_ldouble.
30970 (erfcl): Likewise.
30971 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
30972 <libm-alias-ldouble.h>.
30973 (expm1l): Define using libm_alias_ldouble.
30974 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
30975 <libm-alias-ldouble.h>.
30976 (fabsl): Define using libm_alias_ldouble.
30977 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
30978 <libm-alias-ldouble.h>.
30979 (floorl): Define using libm_alias_ldouble.
30980 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
30981 <libm-alias-ldouble.h>.
30982 (fmal): Define using libm_alias_ldouble.
30983 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
30984 <libm-alias-ldouble.h>.
30985 (frexpl): Define using libm_alias_ldouble.
30986 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
30987 libm_alias_ldouble.
30988 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
30989 <libm-alias-ldouble.h>.
30990 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
30991 libm_alias_ldouble.
30992 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
30993 <libm-alias-ldouble.h>.
30994 (getpayloadl): Define using libm_alias_ldouble.
30995 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
30996 <libm-alias-ldouble.h>.
30997 (llrintl): Define using libm_alias_ldouble.
30998 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
30999 <libm-alias-ldouble.h>.
31000 (llroundl): Define using libm_alias_ldouble.
31001 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31002 <libm-alias-ldouble.h>.
31003 (logbl): Define using libm_alias_ldouble.
31004 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31005 <libm-alias-ldouble.h>.
31006 (lrintl): Define using libm_alias_ldouble.
31007 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31008 <libm-alias-ldouble.h>.
31009 (lroundl): Define using libm_alias_ldouble.
31010 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31011 <libm-alias-ldouble.h>.
31012 (modfl): Define using libm_alias_ldouble.
31013 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31014 <libm-alias-ldouble.h>.
31015 (nearbyintl): Define using libm_alias_ldouble.
31016 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31017 <libm-alias-ldouble.h>.
31018 (nextafterl): Define using libm_alias_ldouble.
31019 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31020 <libm-alias-ldouble.h>.
31021 (nextupl): Define using libm_alias_ldouble.
31022 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31023 <libm-alias-ldouble.h>.
31024 (remquol): Define using libm_alias_ldouble.
31025 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31026 <libm-alias-ldouble.h>.
31027 (rintl): Define using libm_alias_ldouble.
31028 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31029 <libm-alias-ldouble.h>.
31030 (roundevenl): Define using libm_alias_ldouble.
31031 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31032 <libm-alias-ldouble.h>.
31033 (roundl): Define using libm_alias_ldouble.
31034 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31035 using libm_alias_ldouble.
31036 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31037 <libm-alias-ldouble.h>.
31038 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31039 Define using libm_alias_ldouble.
31040 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31041 <libm-alias-ldouble.h>.
31042 (sincosl): Define using libm_alias_ldouble.
31043 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31044 <libm-alias-ldouble.h>.
31045 (sinl): Define using libm_alias_ldouble.
31046 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31047 <libm-alias-ldouble.h>.
31048 (tanhl): Define using libm_alias_ldouble.
31049 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31050 <libm-alias-ldouble.h>.
31051 (tanl): Define using libm_alias_ldouble.
31052 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31053 <libm-alias-ldouble.h>.
31054 (totalorderl): Define using libm_alias_ldouble.
31055 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31056 <libm-alias-ldouble.h>.
31057 (totalordermagl): Define using libm_alias_ldouble.
31058 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31059 <libm-alias-ldouble.h>.
31060 (truncl): Define using libm_alias_ldouble.
31061 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31062 libm_alias_ldouble.
31063 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31064 libm_alias_ldouble.
31065 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31066 <libm-alias-ldouble.h>.
31067 (weak_alias): Do not undefine and redefine.
31068 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31069 (copysignl): Define with long_double_symbol only if [IS_IN
31070 (libc)].
31071 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31072 <libm-alias-ldouble.h>.
31073 (weak_alias): Do not undefine and redefine.
31074 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31075 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31076 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31077 <libm-alias-ldouble.h>.
31078 (weak_alias): Do not undefine and redefine.
31079 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31080 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31081 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31082 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31083 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31084 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31085 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31086 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31087 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31088 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31089 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31090 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31091 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31092 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31093 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31094 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31095 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31096 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31097 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31098 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31099 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31100 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31101 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31102 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31103 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31104 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31105
31106 2017-10-06 Carlos O'Donell <carlos@redhat.com>
31107
31108 [BZ #22111]
31109 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31110 (tcache_thread_freeres): Set tcache_shutting_down before
31111 freeing the tcache.
31112 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31113 * malloc/tst-malloc-tcache-leak.c: New file.
31114
31115 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31116
31117 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31118 back to powerpc32 file.
31119 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31120 (memrchr): Add __memrchr_power8 to ifunc list.
31121 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31122 extra bytes for unaligned inputs.
31123
31124 2017-10-06 Joseph Myers <joseph@codesourcery.com>
31125
31126 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31127 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31128 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31129 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31130 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31131
31132 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31133
31134 * sysdeps/arm/libm-test-ulps: Update.
31135
31136 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31137 <libm-alias-ldouble.h>.
31138 (asinhl): Define using libm_alias_ldouble.
31139 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31140 <libm-alias-ldouble.h>.
31141 (cbrtl): Define using libm_alias_ldouble.
31142 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31143 <libm-alias-ldouble.h>.
31144 (copysignl): Define using libm_alias_ldouble.
31145 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31146 <libm-alias-ldouble.h>.
31147 (cosl): Define using libm_alias_ldouble.
31148 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31149 <libm-alias-ldouble.h>.
31150 (erfl): Define using libm_alias_ldouble.
31151 (erfcl): Likewise.
31152 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31153 <libm-alias-ldouble.h>.
31154 (fmal): Define using libm_alias_ldouble.
31155 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31156 <libm-alias-ldouble.h>.
31157 (frexpl): Define using libm_alias_ldouble.
31158 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31159 libm_alias_ldouble.
31160 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31161 <libm-alias-ldouble.h>.
31162 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31163 libm_alias_ldouble.
31164 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31165 <libm-alias-ldouble.h>.
31166 (getpayloadl): Define using libm_alias_ldouble.
31167 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31168 <libm-alias-ldouble.h>.
31169 (llrintl): Define using libm_alias_ldouble.
31170 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31171 <libm-alias-ldouble.h>.
31172 (llroundl): Define using libm_alias_ldouble.
31173 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31174 <libm-alias-ldouble.h>.
31175 (lrintl): Define using libm_alias_ldouble.
31176 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31177 <libm-alias-ldouble.h>.
31178 (lroundl): Define using libm_alias_ldouble.
31179 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31180 <libm-alias-ldouble.h>.
31181 (modfl): Define using libm_alias_ldouble.
31182 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31183 <libm-alias-ldouble.h>.
31184 (nextupl): Define using libm_alias_ldouble.
31185 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31186 <libm-alias-ldouble.h>.
31187 (remquol): Define using libm_alias_ldouble.
31188 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31189 <libm-alias-ldouble.h>.
31190 (roundevenl): Define using libm_alias_ldouble.
31191 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31192 <libm-alias-ldouble.h>.
31193 (roundl): Define using libm_alias_ldouble.
31194 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31195 using libm_alias_ldouble.
31196 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31197 <libm-alias-ldouble.h>.
31198 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31199 <libm-alias-ldouble.h>.
31200 (setpayloadsigl): Define using libm_alias_ldouble.
31201 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31202 <libm-alias-ldouble.h>.
31203 (sincosl): Define using libm_alias_ldouble.
31204 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31205 <libm-alias-ldouble.h>.
31206 (sinl): Define using libm_alias_ldouble.
31207 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31208 <libm-alias-ldouble.h>.
31209 (tanhl): Define using libm_alias_ldouble.
31210 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31211 <libm-alias-ldouble.h>.
31212 (tanl): Define using libm_alias_ldouble.
31213 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31214 <libm-alias-ldouble.h>.
31215 (totalorderl): Define using libm_alias_ldouble.
31216 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31217 <libm-alias-ldouble.h>.
31218 (totalordermagl): Define using libm_alias_ldouble.
31219 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31220 libm_alias_ldouble.
31221 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31222 libm_alias_ldouble.
31223
31224 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31225
31226 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31227 memmove_falkor.
31228 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31229 (__libc_ifunc_impl_list): Likewise.
31230 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31231 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31232
31233 * benchtests/bench-memmove-walk.c: New file.
31234 * benchtests/Makefile (string-benchset): Add it.
31235
31236 * benchtests/bench-memset-walk.c: New file.
31237 * benchtests/Makefile (string-benchset): Add it.
31238
31239 * benchtests/bench-memcpy-walk.c: New file.
31240 * benchtests/Makefile (string-benchset): Add it.
31241
31242 2017-10-05 Florian Weimer <fweimer@redhat.com>
31243
31244 nscd: Eliminate compilation time dependency in the build output.
31245 * nscd/nscd_stat.c (STATDATA_VERSION)
31246 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31247 (STATDATA_VERSION_FULL): New macro definitions.
31248 (compilation): Remove.
31249 (struct statdata): Adjust version member.
31250 (send_stats): Set version from STATDATA_VERSION_FULL.
31251 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31252
31253 2017-10-05 Joseph Myers <joseph@codesourcery.com>
31254
31255 * configure.ac (--enable-add-ons): Remove option.
31256 (machine): Do not mention add-ons in comment.
31257 (LIBC_PRECONFIGURE): Likewise.
31258 (add_ons): Remove variable and sanity checks and logic to locate
31259 add-ons.
31260 (add_ons_automatic): Remove variable.
31261 (configured_add_ons): Likewise.
31262 (add_ons_sfx): Likewise.
31263 (add_ons_pfx): Likewise.
31264 (add_on_subdirs): Likewise.
31265 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31266 consideration of add-ons in Implies handling.
31267 (sysdeps_add_ons): Likewise.
31268 * configure: Regenerated.
31269 * libidn/configure.ac: Remove.
31270 * libidn/configure: Likewise.
31271 * sysdeps/unix/inet/configure.ac: New file.
31272 * sysdeps/unix/inet/configure: New generated file.
31273 * sysdeps/unix/inet/Subdirs: Add libidn.
31274 * Makeconfig (sysdeps-srcdirs): Remove variable.
31275 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31276 ($(common-objpfx)config.status): Do not depend on add-on files.
31277 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31278 comment.
31279 (all-subdirs): Do not include $(add-on-subdirs).
31280 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31281 * config.make.in (add-ons): Remove variable.
31282 (add-on-subdirs): Likewise.
31283 (sysdeps-add-ons): Likewise.
31284 * manual/Makefile (add-chapters): Remove.
31285 ($(objpfx)texis): Do not depend on $(add-chapters).
31286 (nonexamples): Do not handle $(add-chapters).
31287 (examples): Do not handle $(add-ons).
31288 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31289 libc-texinfo.sh.
31290 * manual/install.texi (Installation): Do not mention add-ons.
31291 (--enable-add-ons): Do not document configure option.
31292 * INSTALL: Regenerated.
31293 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31294 * manual/maint.texi (Hierarchy Conventions): Do not mention
31295 add-ons.
31296 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31297 --enable-add-ons.
31298 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31299 add-ons.
31300 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31301 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31302
31303 2017-10-05 Andreas Schwab <schwab@suse.de>
31304
31305 [BZ #15142]
31306 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31307 (_IO_flush_all_lockp): Always lock list_all_lock.
31308 (_IO_flush_all_linebuffered): Likewise.
31309 (_IO_unbuffer_all): Likewise.
31310
31311 2017-10-05 Florian Weimer <fweimer@redhat.com>
31312
31313 [BZ #15436]
31314 Do not flush stdio streams on abort.
31315 * stdlib/abort.c (fflush): Remove macro definition.
31316 (abort): Remove stages related to stdio flushing.
31317
31318 2017-10-05 Florian Weimer <fweimer@redhat.com>
31319
31320 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31321
31322 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31323
31324 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31325
31326 2017-10-05 Florian Weimer <fweimer@redhat.com>
31327
31328 * support/support_format_hostent.c (support_format_hostent): Add
31329 more error information for NETDB_INTERNAL.
31330
31331 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31332
31333 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31334 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31335 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31336 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31337 AC_DEFINE if multi-arch is enabled.
31338 * sysdeps/i386/configure: Regenerated.
31339
31340 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31341
31342 * Makeconfig (+link-static-before-libc): Use
31343 $(DEFAULT-LDFLAGS-$(@F)).
31344 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31345 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31346 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31347
31348 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31349
31350 * elf/Makefile (tests): Add tst-main1.
31351 (modules-names): Add tst-main1mod.
31352 ($(objpfx)tst-main1): New.
31353 (CRT-tst-main1): Likewise.
31354 (LDFLAGS-tst-main1): Likewise.
31355 (LDLIBS-tst-main1): Likewise.
31356 (tst-main1mod.so-no-z-defs): Likewise.
31357 * elf/tst-main1.c: New file.
31358 * elf/tst-main1mod.c: Likewise.
31359
31360 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31361
31362 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31363
31364 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31365
31366 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31367 (fma): Define using libm_alias_double.
31368 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31369 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31370 <math_ldbl_opt.h>.
31371 (fmal): Do not define as compat symbol here.
31372 * sysdeps/alpha/fpu/s_fma.c: New file.
31373
31374 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31375
31376 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31377
31378 2017-10-04 Joseph Myers <joseph@codesourcery.com>
31379
31380 [BZ #22229]
31381 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31382 <math_ldbl_opt.h>
31383 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31384 and libc.
31385 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31386 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31387 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31388 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31389 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31390 Include <math_ldbl_opt.h>
31391 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31392 and libc.
31393 (compat_symbol): Undefine and redefine.
31394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31395 <math_ldbl_opt.h>
31396 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31397 (compat_symbol): Undefine and redefine.
31398 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31399 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31400 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31401 GLIBC_2_1 for libm.
31402 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31403 GLIBC_2.0 copysignl symbol.
31404 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31405 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31406
31407 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31408
31409 2017-10-04 Florian Weimer <fweimer@redhat.com>
31410
31411 * scripts/check-local-headers.sh: Ignore nspr4 header file
31412 directory in addition to nspr.
31413
31414 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
31415
31416 [BZ #17956]
31417 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31418 * configure: Regenerate.
31419 * crypt/Makefile (nss-cpp-flags): New variable.
31420 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31421 (CPPFLAGS-md5-crypt.c): Use it.
31422 * scripts/check-local-headers.sh: Ignore nspr header file
31423 directory.
31424
31425 2017-10-04 Andreas Schwab <schwab@suse.de>
31426
31427 * nis/Makefile (services): Remove compat.
31428 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31429 ($(objpfx)libnss_compat.so): Remove rule.
31430 * nis/Versions (libnss_compat): Remove.
31431 * nss/Makefile (services): Add compat.
31432 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31433 * nss/Versions (libnss_compat): Define.
31434 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31435 Don't include <rpc/types.h>. Replace bool_t by bool.
31436 * nss/nss_compat/compat-initgroups.c: Likewise.
31437 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31438 instead of <rpcsrv/ypclnt.h>.
31439 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31440 yp_get_default_domain.
31441 * nss/nss_compat/compat-pwd.c: Likewise.
31442 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31443 yp_get_default_domain.
31444 * nss/nss_compat/nisdomain.c: New file.
31445 * nss/nss_compat/nisdomain.h: Likewise.
31446
31447 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31448
31449 [BZ #22244]
31450 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31451 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31452
31453 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31454
31455 [BZ #22243]
31456 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31457 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31458
31459 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31460
31461 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31462 "movl main@GOTOFF(%ebx), %eax".
31463
31464 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31465
31466 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31467 allow undefined _DYNAMIC in PIE libc.a.
31468 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31469 Likewse.
31470
31471 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31472
31473 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31474 check _DYNAMIC.
31475
31476 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31477
31478 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31479 check _DYNAMIC.
31480
31481 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31482
31483 * math/test-math-iscanonical.cc (error): Replace bool with int.
31484
31485 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31486
31487 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31488 (modf): Define using libm_alias_double, only if [!__modf].
31489 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31490 <libm-alias-double.h>.
31491 (modf): Define using libm_alias_double, only if [!__modf].
31492 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31493 compat symbol here.
31494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31495 (weak_alias): Do not undefine and redefine.
31496 (strong_alias): Likewise.
31497 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31498 (weak_alias): Likewise.
31499 (strong_alias): Likewise.
31500
31501 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31502 (logb): Define using libm_alias_double, only if [!__logb].
31503 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31504 <libm-alias-double.h>.
31505 (logb): Define using libm_alias_double, only if [!__logb].
31506 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31507 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31508 (weak_alias): Do not undefine and redefine.
31509 (strong_alias): Likewise.
31510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31511 (weak_alias): Likewise.
31512 (strong_alias): Likewise.
31513
31514 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31515
31516 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31517 Check SHARED instead PIC.
31518
31519 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31520
31521 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31522 [!__fmaf] (fmaf): Define using libm_alias_float.
31523
31524 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31525 (frexp): Define using libm_alias_double.
31526 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31527 <libm-alias-double.h>.
31528 (frexp): Define using libm_alias_double.
31529 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31530 compat symbol here.
31531
31532 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31533
31534 [BZ #22235]
31535 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31536 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31537 (CFLAGS-test-math-iscanonical.cc): New variable.
31538 * math/test-math-iscanonical.cc: New file.
31539 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31540 Provide a C++ implementation based on function overloading,
31541 rather than using __MATH_TG, which uses C-only builtins.
31542 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31543 Likewise.
31544 * sysdeps/powerpc/powerpc64le/Makefile
31545 (CFLAGS-test-math-iscanonical.cc): New variable.
31546
31547 2017-10-03 Joseph Myers <joseph@codesourcery.com>
31548
31549 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31550 (ceil): Define using libm_alias_double.
31551 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31552 (floor): Define using libm_alias_double.
31553 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31554 <libm-alias-double.h>.
31555 (llround): Define using libm_alias_double.
31556 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31557 <libm-alias-double.h>.
31558 (lround): Define using libm_alias_double.
31559 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31560 <libm-alias-double.h>.
31561 (nearbyint): Define using libm_alias_double.
31562 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31563 <libm-alias-double.h>.
31564 (remquo): Define using libm_alias_double.
31565 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31566 (rint): Define using libm_alias_double.
31567 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31568 (round): Define using libm_alias_double.
31569 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31570 (trunc): Define using libm_alias_double.
31571 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31572 <libm-alias-double.h>.
31573 (ceil): Define using libm_alias_double.
31574 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31575 <libm-alias-double.h>.
31576 (floor): Define using libm_alias_double.
31577 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31578 <libm-alias-double.h>.
31579 (llround): Define using libm_alias_double.
31580 [_LP64] (lround): Likewise.
31581 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31582 <libm-alias-double.h>.
31583 [!_LP64] (lround): Define using libm_alias_double.
31584 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31585 <libm-alias-double.h>.
31586 (nearbyint): Define using libm_alias_double.
31587 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31588 <libm-alias-double.h>.
31589 (remquo): Define using libm_alias_double.
31590 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31591 <libm-alias-double.h>.
31592 (rint): Define using libm_alias_double.
31593 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31594 <libm-alias-double.h>.
31595 (round): Define using libm_alias_double.
31596 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31597 <libm-alias-double.h>.
31598 (trunc): Define using libm_alias_double.
31599 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31600 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31601 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31602 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31603 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31604 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31605 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31606 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31607 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31608
31609 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31610
31611 * math/w_remainder.c: New file.
31612 * math/w_remainderf.c: New file.
31613 * math/w_remainderl.c: New file.
31614
31615 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31616
31617 * elf/rtld.c (BOOTSTRAP_MAP): New.
31618 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31619 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31620 Likewise.
31621 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31622 Likewise.
31623 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31624 Likewise.
31625
31626 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31627
31628 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31629 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31630 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31631 rtld_hidden_data_ver): Define to empty.
31632 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31633 __assert_perror_fail): Likewise.
31634 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31635 (__rewinddir): Likewise.
31636 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31637 (__profile_frequency): Likewise.
31638 * include/setjmp.h (__sigsetjmp): Likewise.
31639 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31640 __libc_sigaction): Likewise.
31641 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31642 not set hidden attribute.
31643 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31644 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31645 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31646 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31647 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31648 __fxstatat64): Likewise.
31649 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31650 (__uname): Likewise.
31651 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31652 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
31653 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
31654 (NO_RTLD_HIDDEN): Set.
31655 * sysdeps/mach/hurd/configure: Refresh.
31656 * config.h.in: Refresh.
31657
31658 2017-10-02 Joseph Myers <joseph@codesourcery.com>
31659
31660 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
31661 (atan): Define using libm_alias_double.
31662 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
31663 (tan): Define using libm_alias_double.
31664 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
31665 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
31666
31667 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
31668 define as weak alias of __atan. Do not define any aliases if
31669 [__atan].
31670 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
31671 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
31672 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
31673 as weak alias of __tan. Do not define any aliases if [__tan].
31674 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
31675 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
31676 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
31677 __atan.
31678 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
31679 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
31680 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
31681 and define as weak alias of __atan.
31682 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
31683 __atan.
31684 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
31685 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
31686 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
31687 define as weak alias of __tan.
31688
31689 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31690
31691 * math/w_lgamma.c: New file.
31692 * math/w_lgammaf.c: New file.
31693 * math/w_lgammal.c: New file.
31694
31695 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31696
31697 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
31698 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
31699 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
31700 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
31701 * sysdeps/ieee754/flt-32/w_logf.c: New file.
31702 * sysdeps/ieee754/flt-32/w_powf.c: New file.
31703 * sysdeps/i386/fpu/w_log2f.c: New file.
31704 * sysdeps/i386/fpu/w_logf.c: New file.
31705 * sysdeps/i386/fpu/w_powf.c: New file.
31706 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
31707 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
31708 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
31709
31710 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31711 H.J. Lu <hongjiu.lu@intel.com>
31712
31713 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
31714 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
31715 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
31716 * sysdeps/ieee754/flt-32/w_expf.c: New file.
31717 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
31718 the new expf code.
31719 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
31720 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
31721 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
31722 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
31723 * sysdeps/i386/fpu/w_exp2f.c: New file.
31724 * sysdeps/i386/fpu/w_expf.c: New file.
31725 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
31726 * sysdeps/x86_64/fpu/w_expf.c: New file.
31727
31728 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
31729
31730 * math/Versions (logf): New libm symbol at GLIBC_2.27.
31731 (log2f): Likewise.
31732 (powf): Likewise.
31733 * math/w_log2f.c: New file.
31734 * math/w_logf.c: New file.
31735 * math/w_powf.c: New file.
31736 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
31737 * math/w_logf_compat.c (__logf_compat): Likewise.
31738 * math/w_powf_compat.c (__powf_compat): Likewise.
31739 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
31740 * sysdeps/ia64/fpu/e_logf.S: Likewise.
31741 * sysdeps/ia64/fpu/e_powf.S: Likewise.
31742 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
31743 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
31744 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
31745 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
31746 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
31747 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
31748 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
31749 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
31750 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
31751 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
31752 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
31753 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
31754 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
31755 Likewise.
31756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
31757 Likewise.
31758 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
31759 Likewise.
31760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
31761 Likewise.
31762 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
31763 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
31764 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
31765 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
31766 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
31767 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
31768 Likewise.
31769 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
31770 Likewise.
31771 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
31772 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
31773 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
31774
31775 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31776
31777 * sysdeps/powerpc/powerpc64/multiarch/Makefile
31778 (sysdep_routines): Add memrchr_power8.
31779 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
31780 (memrchr): Add __memrchr_power8 to list of memrchr functions.
31781 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
31782 New file.
31783 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31784 (memrchr): Add __memrchr_power8 to ifunc list.
31785 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
31786
31787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31788
31789 [BZ #18822]
31790 * sysdeps/unix/sysv/linux/posix_fadvise64.c
31791 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
31792 libc_hidden_def.
31793 * sysdeps/unix/sysv/linux/posix_fallocate64.c
31794 (__posix_fallocate64_l64): Likewise.
31795
31796 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31797
31798 [BZ #18822]
31799 * sysdeps/unix/sysv/linux/sched_setaffinity.c
31800 (__sched_setaffinity_new): Add libc_hidden_proto and
31801 libc_hidden_def.
31802
31803 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31804
31805 [BZ #18822]
31806 * include/glob.h (__glob64): Add libc_hidden_proto.
31807 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
31808 libc_hidden_def.
31809
31810 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31811
31812 [BZ #18822]
31813 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
31814 attribute_hidden.
31815
31816 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31817
31818 [BZ #18822]
31819 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
31820
31821 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31822
31823 [BZ #18822]
31824 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
31825 libc_hidden_def.
31826
31827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31828
31829 [BZ #18822]
31830 * csu/version.c (__libc_print_version): Add attribute_hidden.
31831
31832 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31833
31834 [BZ #18822]
31835 * include/libc-internal.h (__init_misc): Add attribute_hidden.
31836
31837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31838
31839 [BZ #18822]
31840 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
31841
31842 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31843
31844 [BZ #18822]
31845 * nscd/nscd_helper.c (__nis_hash): New prototype.
31846
31847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31848
31849 [BZ #18822]
31850 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
31851 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
31852 libc_hidden_def.
31853 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
31854 * termios/tcgetattr.c (__tcgetattr): Likewise.
31855
31856 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31857
31858 [BZ #18822]
31859 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
31860 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
31861 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
31862 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
31863 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
31864
31865 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31866
31867 [BZ #18822]
31868 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
31869
31870 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31871
31872 [BZ #18822]
31873 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
31874 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
31875
31876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31877
31878 [BZ #18822]
31879 * intl/hash-string.h (__hash_string): Add attribute_hidden.
31880
31881 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31882
31883 [BZ #18822]
31884 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
31885 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
31886
31887 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31888
31889 [BZ #18822]
31890 * include/ifreq.h: New file.
31891 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
31892 (__ifreq): Likewise.
31893 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
31894 (__ifreq): Likewise.
31895
31896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31897
31898 [BZ #18822]
31899 * include/idna.h: New file.
31900 * inet/getnameinfo.c: Include <idna.h> instead of
31901 <libidn/idna.h>.
31902 (__idna_to_unicode_lzlz): Removed.
31903 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
31904 <libidn/idna.h>.
31905 (__idna_to_ascii_lz): Removed.
31906 (__idna_to_unicode_lzlz): Likewise.
31907
31908 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31909
31910 [BZ #18822]
31911 * include/plural-exp.h: New file.
31912 * intl/plural-exp.c: Include <plural-exp.h> instead of
31913 "plural-exp.h".
31914
31915 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31916
31917 [BZ #18822]
31918 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
31919 "getsourcefilter.h".
31920 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
31921 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
31922 "getsourcefilter.h".
31923 (__get_sol): Removed.
31924
31925 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31926
31927 [BZ #18822]
31928 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
31929 to ...
31930 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
31931
31932 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31933
31934 [BZ #18822]
31935 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
31936 attribute_hidden.
31937
31938 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31939
31940 [BZ #18822]
31941 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
31942
31943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31944
31945 [BZ #18822]
31946 * include/search.h (__tdestroy): Add libc_hidden_proto.
31947 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
31948
31949 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31950
31951 [BZ #18822]
31952 * include/assert.h (__assert_fail_base): Add attribute_hidden.
31953
31954 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31955
31956 [BZ #18822]
31957 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
31958 attribute_hidden.
31959
31960 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31961
31962 [BZ #18822]
31963 * include/signal.h (__kill): Add libc_hidden_proto.
31964 (__sigblock): Likewise.
31965 (__sigprocmask): Likewise.
31966 (__sigaltstack): Likewise.
31967 * signal/kill.c (__kill): Add libc_hidden_def.
31968 * signal/sigblock.c (__sigblock): Likewise.
31969 * signal/sigprocmask.c (__sigprocmask): Likewise.
31970 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
31971 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
31972 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
31973 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
31974 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
31975 Likewise.
31976 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
31977 Likewise.
31978 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
31979 (__sigprocmask): Likewise.
31980 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
31981 Likewise.
31982 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
31983 (__sigprocmask): Likewise.
31984 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
31985 Likewise.
31986
31987 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31988
31989 [BZ #18822]
31990 * include/string.h (__strsep): Add libc_hidden_proto.
31991 * string/strsep.c (__strsep): Add libc_hidden_def.
31992
31993 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
31994
31995 [BZ #18822]
31996 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
31997 attribute_hidden.
31998 (__spawni): Likewise.
31999
32000 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32001
32002 [BZ #18822]
32003 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32004 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32005 libc_hidden_def.
32006
32007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32008
32009 [BZ #18822]
32010 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32011
32012 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32013
32014 [BZ #18822]
32015 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32016 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32017 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32018 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32019 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32020 Likewise.
32021 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32022 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32023
32024 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32025
32026 [BZ #18822]
32027 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32028 (__dcigettext): Likewise.
32029
32030 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32031
32032 [BZ #18822]
32033 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32034 libc_hidden_proto.
32035 (__get_nprocs): Likewise.
32036 (__get_phys_pages): Likewise.
32037 (__get_avphys_pages): Likewise.
32038 (__get_child_max): Add attribute_hidden.
32039 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32040 (__get_nprocs): Likewise.
32041 (__get_phys_pages): Likewise.
32042 (__get_avphys_pages): Likewise.
32043 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32044 libc_hidden_def.
32045 (__get_nprocs): Likewise.
32046 (__get_phys_pages): Likewise.
32047 (__get_avphys_pages): Likewise.
32048 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32049 libc_hidden_def.
32050 (__get_nprocs_conf): Likewise.
32051 (__get_phys_pages): Likewise.
32052 (__get_avphys_pages): Likewise.
32053
32054 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32055
32056 [BZ #18822]
32057 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32058 attribute_hidden.
32059 (__netlink_close): Likewise.
32060 (__netlink_free_handle): Likewise.
32061 (__netlink_request): Likewise.
32062
32063 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32064
32065 [BZ #18822]
32066 * include/rpc/rpc.h (__rpc_thread_variables): Add
32067 attribute_hidden.
32068 (__rpc_thread_svc_cleanup): Likewise.
32069 (__rpc_thread_clnt_cleanup): Likewise.
32070 (__rpc_thread_key_cleanup): Likewise.
32071
32072 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32073
32074 [BZ #18822]
32075 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32076 (__writev): Likewise.
32077 * misc/readv.c (__readv): Add libc_hidden_def.
32078 * misc/writev.c (__writev): Likewise.
32079 * sysdeps/posix/readv.c (__readv): Likewise.
32080 * sysdeps/posix/writev.c (__writev): Likewise.
32081 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32082 (__readv): Likewise.
32083 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32084 (__writev): Likewise.
32085
32086 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32087
32088 [BZ #18822]
32089 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32090 (__regcomp): Add libc_hidden_proto.
32091 (__regexec): Likewise.
32092 (__regfree): Likewise.
32093 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32094 (__regfree): Likewise.
32095 * posix/regexec.c (__regexec): Likewise.
32096
32097 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32098
32099 [BZ #18822]
32100 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32101 (__getutent): Likewise.
32102 (__getutid): Likewise.
32103 (__getutline): Likewise.
32104 (__pututline): Likewise.
32105 (__getutent_r): Likewise.
32106 (__getutid_r): Likewise.
32107 (__getutline_r): Likewise.
32108 (__utmpname): Add attribute_hidden.
32109 (__setutent): Likewise.
32110 (__endutent): Likewise.
32111 * login/getutent.c (__getutent): Add libc_hidden_def.
32112 * login/getutent_r.c (__getutent_r): Likewise.
32113 (__pututline): Likewise.
32114 * login/getutid.c (__getutid): Likewise.
32115 * login/getutid_r.c (__getutid_r): Likewise.
32116 * login/getutline.c (__getutline): Likewise.
32117 * login/getutline_r.c (__getutline_r): Likewise.
32118 * login/updwtmp.c (__updwtmp): Likewise.
32119
32120 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32121
32122 [BZ #18822]
32123 * include/dirent.h (__opendir): Always add attribute_hidden.
32124 (__fdopendir): Likewise.
32125 (__closedir): Likewise.
32126 (__readdir): Likewise.
32127 (__readdir64): Add libc_hidden_proto.
32128 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32129 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32130 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32131 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32132 New alias.
32133
32134 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32135
32136 [BZ #18822]
32137 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32138 * include/netdb.h (__gethostbyaddr_r): Likewise.
32139 (__gethostbyname_r): Likewise.
32140 (__gethostbyname2_r): Likewise.
32141 (__getnetbyaddr_r): Likewise.
32142 (__getnetbyname_r): Likewise.
32143 (__getservbyname_r): Likewise.
32144 (__getservbyport_r): Likewise.
32145 (__getprotobyname_r): Likewise.
32146 (__getprotobynumber_r): Likewise.
32147 (__getnetgrent_r): Likewise.
32148 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32149 (__getrpcbynumber_r): Likewise.
32150 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32151
32152 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32153
32154 [BZ #18822]
32155 * include/stdio.h (__fcloseall): Add attribute_hidden.
32156 (__getline): Likewise.
32157 (__path_search): Likewise.
32158 (__gen_tempname): Likewise.
32159 (__libc_message): Likewise.
32160 (__flockfile): Likewise.
32161 (__funlockfile): Likewise.
32162 (__fxprintf): Likewise.
32163 (__fxprintf_nocancel): Likewise.
32164
32165 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32166
32167 [BZ #18822]
32168 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32169 (__sgetsgent_r): Likewise.
32170
32171 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32172
32173 [BZ #18822]
32174 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32175 (__statfs64): Likewise.
32176 (__fstatfs64): Likewise.
32177 * include/sys/statvfs.h (__statvfs64): Likewise.
32178 (__fstatvfs64): Likewise.
32179 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32180 (__statfs_filesize_max): Likewise.
32181 (__statfs_symlinks): Likewise.
32182 (__statfs_chown_restricted): Likewise.
32183
32184 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32185
32186 [BZ #18822]
32187 * include/time.h (__tzstring): Add attribute_hidden.
32188 (__tzfile_read): Likewise.
32189 (__tzfile_compute): Likewise.
32190 (__tzfile_default): Likewise.
32191 (__tzset_parse_tz): Likewise.
32192 (__offtime): Likewise.
32193 (__asctime_r): Likewise.
32194 (__tzset): Likewise.
32195 (__tz_convert): Likewise.
32196 (__getdate_r): Likewise.
32197 (__getclktck): Likewise.
32198
32199 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32200
32201 [BZ #18822]
32202 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32203 (__nscd_unmap): Likewise.
32204 (__nscd_cache_search): Likewise.
32205 (__nscd_get_nl_timestamp): Likewise.
32206 (__nscd_getpwnam_r): Likewise.
32207 (__nscd_getpwuid_r): Likewise.
32208 (__nscd_getgrnam_r): Likewise.
32209 (__nscd_getgrgid_r): Likewise.
32210 (__nscd_gethostbyname_r): Likewise.
32211 (__nscd_gethostbyname2_r): Likewise.
32212 (__nscd_gethostbyaddr_r): Likewise.
32213 (__nscd_getai): Likewise.
32214 (__nscd_getgrouplist): Likewise.
32215 (__nscd_getservbyname_r): Likewise.
32216 (__nscd_getservbyport_r): Likewise.
32217 (__nscd_innetgr): Likewise.
32218 (__nscd_setnetgrent): Likewise.
32219
32220 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32221
32222 [BZ #18822]
32223 * include/gmp.h: Declare internal functions only if _ISOMAC is
32224 undefined.
32225 (__mpn_extract_double): Add attribute_hidden.
32226 (__mpn_extract_long_double): Likewise.
32227 (__mpn_extract_float128): Likewise.
32228 (__mpn_construct_float): Likewise.
32229 (__mpn_construct_double): Likewise.
32230 (__mpn_construct_long_double): Likewise.
32231 (__mpn_construct_float128): Likewise.
32232 (mpn_add_1): Likewise.
32233 (mpn_addmul_1): Likewise.
32234 (mpn_add_n): Likewise.
32235 (mpn_cmp): Likewise.
32236 (mpn_divrem): Likewise.
32237 (mpn_lshift): Likewise.
32238 (mpn_mul): Likewise.
32239 (mpn_mul_1): Likewise.
32240 (mpn_rshift): Likewise.
32241 (mpn_sub_1): Likewise.
32242 (mpn_submul_1): Likewise.
32243 (mpn_sub_n): Likewise.
32244
32245 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32246
32247 [BZ #18822]
32248 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32249 (__wcscat): Likewise.
32250 (__btowc): Likewise.
32251 (__wcrtomb): Likewise.
32252 (__mbsrtowcs): Likewise.
32253 (__wcsrtombs): Likewise.
32254 (__mbsnrtowcs): Likewise.
32255 (__wcsnrtombs): Likewise.
32256 (__wcsncpy): Likewise.
32257 (__wcpncpy): Likewise.
32258 (__wmemcpy): Likewise.
32259 (__wmempcpy): Likewise.
32260 (__wmemmove): Likewise.
32261 (__wcschrnul): Likewise.
32262 (__vfwscanf): Likewise.
32263 (__vswprintf): Likewise.
32264 (__fwprintf): Likewise.
32265 (__vfwprintf): Likewise.
32266
32267 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32268
32269 [BZ #18822]
32270 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32271 (__getgrgid_r): Likewise.
32272 (__getgrnam_r): Likewise.
32273 * include/pwd.h (__getpwuid_r): Likewise.
32274 (__getpwnam_r): Likewise.
32275 (__fgetpwent_r): Likewise.
32276 * include/shadow.h (__getspnam_r): Likewise.
32277 (__sgetspent_r): Likewise.
32278 (__fgetspent_r): Likewise.
32279
32280 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32281
32282 [BZ #18822]
32283 * include/unistd.h (__access): Add attribute_hidden.
32284 (__lseek64): Likewise.
32285 (__libc_pread64): Likewise.
32286 (__pipe2): Likewise.
32287 (__sleep): Likewise.
32288 (__chdir): Likewise.
32289 (__fchdir): Likewise.
32290 (__getcwd): Likewise.
32291 (__rmdir): Likewise.
32292 (__execvpe): Likewise.
32293 (__execve): Likewise.
32294 (__setsid): Likewise.
32295 (__getuid): Likewise.
32296 (__geteuid): Likewise.
32297 (__getgid): Likewise.
32298 (__getegid): Likewise.
32299 (__getgroups): Likewise.
32300 (__group_member): Likewise.
32301 (__ttyname_r): Likewise.
32302 (__isatty): Likewise.
32303 (__readlink): Likewise.
32304 (__unlink): Likewise.
32305 (__gethostname): Likewise.
32306 (__profil): Likewise.
32307 (__getdtablesize): Likewise.
32308 (__brk): Likewise.
32309 (__ftruncate): Likewise.
32310 (__ftruncate64): Likewise.
32311
32312 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32313
32314 [BZ #18822]
32315 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32316 * argp/argp-fs-xinl.c: Likewise.
32317 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32318 * argp/argp-parse.c: Include <argp.h>.
32319 * argp/argp-xinl.c: Likewise.
32320 * include/argp-fmtstream.h: New file.
32321 * include/argp.h (__argp_error): Add attribute_hidden.
32322 (__argp_failure): Likewise.
32323 (__argp_input): Likewise.
32324 (__argp_state_help): Likewise.
32325
32326 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32327
32328 [BZ #18822]
32329 * include/wchar.h (____wcstof_l_internal): New prototype.
32330 (____wcstod_l_internal): Likewise.
32331 (____wcstold_l_internal): Likewise.
32332 (____wcstol_l_internal): Likewise.
32333 (____wcstoul_l_internal): Likewise.
32334 (____wcstoll_l_internal): Likewise.
32335 (____wcstoull_l_internal): Likewise.
32336 (____wcstof128_l_internal): Likewise.
32337 * sysdeps/ieee754/float128/wcstof128.c
32338 (____wcstof128_l_internal): Removed.
32339 * sysdeps/ieee754/float128/wcstof128_l.c
32340 (____wcstof128_l_internal): Likewise.
32341 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32342 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32343 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32344 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32345 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32346 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32347 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32348 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32349 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32350 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32351
32352 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32353
32354 [BZ #18822]
32355 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32356 instead of <sys/statvfs.h>.
32357 (__internal_statvfs): Removed.
32358 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32359 instead of <sys/statvfs.h>.
32360 (__internal_statvfs64): Removed.
32361 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32362 "internal_statvfs.h" instead of <sys/statvfs.h>.
32363 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32364 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32365 instead of <sys/statvfs.h>.
32366 (__internal_statvfs): Removed.
32367 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32368 instead of <sys/statvfs.h>.
32369 (__internal_statvfs64): Removed.
32370
32371 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32372
32373 [BZ #18822]
32374 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32375 (__gconv_close): Likewise.
32376 (__gconv): Likewise.
32377 (__gconv_find_transform): Likewise.
32378 (__gconv_lookup_cache): Likewise.
32379 (__gconv_compare_alias_cache): Likewise.
32380 (__gconv_load_cache): Likewise.
32381 (__gconv_get_path): Likewise.
32382 (__gconv_close_transform): Likewise.
32383 (__gconv_release_cache): Likewise.
32384 (__gconv_find_shlib): Likewise.
32385 (__gconv_release_shlib): Likewise.
32386 (__gconv_get_builtin_trans): Likewise.
32387 (__gconv_compare_alias): Likewise.
32388 * include/dlfcn.h (_dlerror_run): Likewise.
32389 * include/stdio.h (__fortify_fail_abort): Likewise.
32390 * include/time.h (__tz_compute): Likewise.
32391 (__strptime_internal): Likewise.
32392 * intl/gettextP.h (_nl_find_domain): Likewise.
32393 (_nl_load_domain): Likewise.
32394 (_nl_find_msg): Likewise.
32395 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32396 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32397 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32398 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32399 (__gai_find_request): Likewise.
32400 (__gai_remove_request): Likewise.
32401 (__gai_notify): Likewise.
32402 (__gai_notify_only): Likewise.
32403 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32404 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32405 (_dl_non_dynamic_init): Likewise.
32406 (_dl_aux_init): Likewise.
32407 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32408 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32409 Likewise.
32410 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32411 (__wcsmbs_clone_conv): Likewise.
32412 (__wcsmbs_named_conv): Likewise.
32413
32414 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32415
32416 [BZ #18822]
32417 * include/stdlib.h (__random): Add attribute_hidden.
32418 (__random_r): Likewise.
32419 (__srandom_r): Likewise.
32420 (__initstate_r): Likewise.
32421 (__setstate_r): Likewise.
32422 (__erand48_r): Likewise.
32423 (__nrand48_r): Likewise.
32424 (__jrand48_r): Likewise.
32425 (__srand48_r): Likewise.
32426 (__seed48_r): Likewise.
32427 (__lcong48_r): Likewise.
32428 (__drand48_iterate): Likewise.
32429 (__setenv): Likewise.
32430 (__unsetenv): Likewise.
32431 (__clearenv): Likewise.
32432 (__ptsname_r): Likewise.
32433 (__posix_openpt): Likewise.
32434 (__add_to_environ): Likewise.
32435 (__realpath): Add libc_hidden_proto.
32436 (__ecvt_r): Likewise.
32437 (__fcvt_r): Likewise.
32438 (__qecvt_r): Likewise.
32439 (__qfcvt_r): Likewise.
32440 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32441 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32442
32443 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32444
32445 [BZ #18822]
32446 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32447 * include/time.h (__mktime_internal): Likewise.
32448 * libio/iolibio.h (__fopen_internal): Likewise.
32449
32450 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
32451
32452 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32453 pointer in frame.
32454 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32455 Correct offset used to restore PIC register.
32456
32457 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
32458
32459 [BZ libc/22165]
32460 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32461 code to load address of __getcontext_ret when generating PIC code.
32462
32463 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32464
32465 * elf/Makefile (tests-static-internal): Add
32466 tst-tls1-static-non-pie.
32467 (LDFLAGS-tst-tls1-static-non-pie): New.
32468 * elf/tst-tls1-static-non-pie.c: New file.
32469
32470 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32471
32472 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32473 (asinh): Define using libm_alias_double.
32474 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32475 (cbrt): Define using libm_alias_double.
32476 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32477 <libm-alias-double.h>.
32478 (copysign): Define using libm_alias_double.
32479 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32480 (erf): Define using libm_alias_double.
32481 (erfc): Likewise.
32482 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32483 (expm1): Define using libm_alias_double.
32484 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32485 (fabs): Define using libm_alias_double.
32486 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32487 libm_alias_double.
32488 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32489 <libm-alias-double.h>.
32490 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32491 libm_alias_double.
32492 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32493 <libm-alias-double.h>.
32494 (getpayload): Define using libm_alias_double.
32495 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32496 <libm-alias-double.h>.
32497 (llrint): Define using libm_alias_double.
32498 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32499 (lrint): Define using libm_alias_double.
32500 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32501 <libm-alias-double.h>.
32502 (nextup): Define using libm_alias_double.
32503 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32504 <libm-alias-double.h>.
32505 (roundeven): Define using libm_alias_double.
32506 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32507 libm_alias_double.
32508 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32509 <libm-alias-double.h>.
32510 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32511 using libm_alias_double.
32512 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32513 (cos): Define using libm_alias_double.
32514 (sin): Likewise.
32515 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32516 <libm-alias-double.h>.
32517 (sincos): Define using libm_alias_double.
32518 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32519 (tanh): Define using libm_alias_double.
32520 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32521 <libm-alias-double.h>.
32522 (totalorder): Define using libm_alias_double.
32523 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32524 <libm-alias-double.h>.
32525 (totalordermag): Define using libm_alias_double.
32526 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32527 libm_alias_double.
32528 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32529 libm_alias_double.
32530 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32531 <libm-alias-double.h>.
32532 (getpayload): Define using libm_alias_double.
32533 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32534 <libm-alias-double.h>.
32535 (roundeven): Define using libm_alias_double.
32536 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32537 <libm-alias-double.h>.
32538 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32539 <libm-alias-double.h>.
32540 (totalorder): Define using libm_alias_double.
32541 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32542 <libm-alias-double.h>.
32543 (totalordermag): Define using libm_alias_double.
32544 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32545 libc compat symbol here.
32546 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32547 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32548 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32549 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32550 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32551 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32552 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32553 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32554 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32555 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32556
32557 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32558
32559 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32560 _dl_relocate_static_pie instead of _dl_start to compute load
32561 address in static PIE. Return 0 if _DYNAMIC is undefined for
32562 static executable.
32563
32564 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32565
32566 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32567 _DYNAMIC is undefined for static executable.
32568
32569 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32570
32571 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32572
32573 2017-09-29 Joseph Myers <joseph@codesourcery.com>
32574
32575 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32576
32577 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32578
32579 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32580 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32581 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32582 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32583 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32584 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32585 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32586 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32587 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32588 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32589 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32590 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32591 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32592 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32593 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32594 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32595 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32596
32597 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32598
32599 * math/bits/cmathcalls.h (cimag): Remove inline.
32600 (creal): Remove inline.
32601 (conj): Remove inline.
32602
32603 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32604
32605 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32606 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32607 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32608 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32609 (issignalingf_inline): Likewise.
32610 (POWF_LOG2_TABLE_BITS): Likewise.
32611 (POWF_LOG2_POLY_ORDER): Likewise.
32612 (POWF_SCALE_BITS): Likewise.
32613 (POWF_SCALE): Likewise.
32614 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32615 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32616 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32617
32618 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32619
32620 * math/Makefile (type-float-routines): Add e_log2f_data.
32621 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32622 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32623 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32624 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32625 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32626 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32627 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32628
32629 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32630
32631 * math/Makefile (type-float-routines): Add e_logf_data.
32632 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32633 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32634 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32635 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32636 * sysdeps/i386/fpu/e_logf_data.c: New file.
32637 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32638 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32639
32640 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32641
32642 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32643 undefined _DYNAMIC in PIE libc.a.
32644 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32645 Likewse.
32646
32647 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32648
32649 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32650 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32651 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
32652 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
32653 (__signbit): Remove.
32654 (__signbitl): Remove.
32655 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
32656 (__signbit): Remove.
32657 (__signbitl): Remove.
32658 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
32659 (__signbit): Remove.
32660 (__signbitl): Remove.
32661 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
32662 (__signbit): Remove.
32663 (__signbitl): Remove.
32664 * sysdeps/tile/bits/mathinline.h: Delete file.
32665 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
32666 (__signbit): Remove.
32667 (__signbitl): Remove.
32668
32669 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32670
32671 * math/math.h: Improve handling of C99 isgreater macros.
32672 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
32673 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
32674 * sysdeps/powerpc/bits/mathinline.h: Likewise.
32675 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
32676 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
32677
32678 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
32679
32680 * sysdeps/aarch64/libm-test-ulps: Update.
32681
32682 2017-09-28 Joseph Myers <joseph@codesourcery.com>
32683
32684 [BZ #22225]
32685 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
32686 math_opt_barrier on argument when doing arithmetic on it.
32687 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
32688 Likewise. Use math_force_eval not math_opt_barrier after
32689 arithmetic.
32690 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
32691 math_opt_barrier on argument when doing arithmetic on it.
32692 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32693 Likewise.
32694
32695 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
32696
32697 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
32698 libc_hidden_def.
32699 (__freeifaddrs): Likewise.
32700
32701 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32702
32703 * include/dirent.h (__dirfd): New declaration.
32704 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
32705 alias.
32706 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
32707 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
32708 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
32709 * include/unistd.h (__revoke): New declaration.
32710 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
32711 alias.
32712 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
32713 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
32714 revoke.
32715 * include/dirent.h (__seekdir): New declaration.
32716 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
32717 redefine as weak alias.
32718 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
32719 of seekdir.
32720 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
32721 and use libc_hidden_def on them.
32722 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
32723 them.
32724 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
32725 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
32726 instead of getifaddrs and freeifaddrs.
32727
32728 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32729
32730 [BZ #18822]
32731 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
32732 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
32733 (__dso_handle): Remove declaration.
32734 * dlfcn/tstatexit.c (__dso_handle): Removed.
32735 (main): Don't check __dso_handle.
32736 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
32737 (main): Don't check __dso_handle.
32738 * include/dso_handle.h: New file.
32739 * malloc/mtrace.c: Include <dso_handle.h>.
32740 (mtrace): Pass __dso_handle directly.
32741 * nptl/pthread_atfork.c: Include <dso_handle.h>.
32742 (__dso_handle): Remove declaration.
32743 (__pthread_atfork): Pass __dso_handle directly.
32744 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
32745 (__dso_handle): Removed.
32746 * posix/wordexp-test.c: Include <dso_handle.h>.
32747 (__dso_handle): Remove declaration.
32748 (__app_register_atfork): Pass __dso_handle directly.
32749 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
32750 (__dso_handle): Remove declaration.
32751 (at_quick_exit): Pass __dso_handle directly.
32752 * stdlib/atexit.c: Include <dso_handle.h>.
32753 (__dso_handle): Remove declaration.
32754 (atexit): Pass __dso_handle directly.
32755 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
32756 (__dso_handle): Removed.
32757
32758 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32759
32760 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
32761 using VDSO.
32762
32763 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
32764
32765 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
32766 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
32767 values to correct default value for given type.
32768
32769 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
32770
32771 [BZ #22101]
32772 * elf/Makefile (tests): Add tst-debug1.
32773 ($(objpfx)tst-debug1): New.
32774 ($(objpfx)tst-debug1.out): Likewise.
32775 ($(objpfx)tst-debug1mod1.so): Likewise.
32776 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
32777 with p_filesz == 0.
32778 * elf/tst-debug1.c: New file.
32779
32780 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32781
32782 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
32783 Define using __ifunc.
32784
32785 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
32786
32787 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
32788 exp2f() values.
32789
32790 2017-09-26 Joseph Myers <joseph@codesourcery.com>
32791
32792 [BZ #22156]
32793 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
32794
32795 2017-09-26 Florian Weimer <fweimer@redhat.com>
32796
32797 * resolv/Makefile (tests-internal): Fix typo in comment.
32798
32799 2017-09-26 Florian Weimer <fweimer@redhat.com>
32800
32801 * resolv/nss_dns/dns-host.c: Fix typo in comment.
32802
32803 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32804
32805 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
32806 Use an union instead of a max_align_t array for __space,
32807 so that __space is the same size on all platforms.
32808 * malloc/scratch_buffer_grow_preserve.c
32809 (__libc_scratch_buffer_grow_preserve): Likewise.
32810
32811 [BZ #22183]
32812 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
32813 version to 2.
32814 * posix/Makefile (routines): Add glob-lstat-compat and
32815 glob64-lstat-compat.
32816 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
32817 * posix/glob-lstat-compat.c: New file.
32818 * posix/glob64-lstat-compat.c: Likewise.
32819 * posix/tst-glob_lstat_compat.c: Likewise.
32820 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
32821 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
32822 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
32823 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
32824 Likewise.
32825 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
32826 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
32827 * posix/glob.c (glob_lstat): New function.
32828 (glob): Rename to __glob and add versioned symbol to 2.27.
32829 (glob_in_dir): Use glob_lstat.
32830 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
32831 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
32832 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
32833 2.27.
32834 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
32835 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
32836 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
32837 gl_lstat on glob call.
32838 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
32839 and glob64 symbols.
32840 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
32841 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
32842 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
32843 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
32844 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
32845 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
32846 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
32847 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
32848 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
32849 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
32850 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
32851 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
32852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
32853 Likewise.
32854 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
32855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
32856 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
32857 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
32858 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
32859 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
32860 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
32861 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
32862 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
32863 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
32864 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
32865 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
32866
32867 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
32868
32869 * configure.ac (AS): Require binutils 2.25 or later.
32870 * configure: Regenerated.
32871
32872 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
32873
32874 [BZ #22207]
32875 * stdlib/test-atexit-race-common.c (do_test): Minimize required
32876 VM size.
32877
32878 2017-09-25 DJ Delorie <dj@redhat.com>
32879
32880 [BZ #22161]
32881 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
32882 resetting timeout.
32883
32884 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
32885
32886 * sysdeps/ieee754/dbl-64/sincos32.h
32887 [SINCCOS32_H]: Remove define.
32888 [SINCOS32_H]: Define.
32889
32890 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32891
32892 * math/Versions (expf): New libm symbol at GLIBC_2.27.
32893 (exp2f): Likewise.
32894 * math/w_exp2f.c: New file.
32895 * math/w_expf.c: New file.
32896 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
32897 * math/w_expf_compat.c (__expf_compat): Likewise.
32898 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
32899 * sysdeps/ia64/fpu/e_expf.S: Likewise.
32900 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32901 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32902 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32903 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32904 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32905 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32906 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32907 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32908 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32909 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32910 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32911 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32913 Likewise.
32914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32915 Likewise.
32916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32917 Likewise.
32918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32919 Likewise.
32920 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32921 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32922 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32923 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32924 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32925 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32926 Likewise.
32927 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32928 Likewise.
32929 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32930 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32931 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32932
32933 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32934
32935 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
32936 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
32937 (roundtoint, converttoint): Likewise.
32938 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
32939 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
32940 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
32941 * sysdeps/ieee754/flt-32/math_config.h: New file.
32942 * sysdeps/ieee754/flt-32/math_errf.c: New file.
32943 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
32944 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
32945 * sysdeps/i386/fpu/math_errf.c: New file.
32946 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
32947 * sysdeps/ia64/fpu/math_errf.c: New file.
32948 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
32949 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
32950
32951 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
32952
32953 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
32954 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
32955 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
32956 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
32957 to make sure that these symbols are defined.
32958 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
32959 of <limits.h>
32960 (__need_NULL): Do not define.
32961 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
32962 alignment.
32963 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
32964 CMGROUP_MAX, cmsgcred): Do not define.
32965 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
32966 NULL.
32967 * bits/socket.h: Likewise.
32968 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
32969 __gettimeofday instead of gettimeofday.
32970 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
32971 instead of settimeofday.
32972
32973 2017-09-22 Joseph Myers <joseph@codesourcery.com>
32974
32975 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
32976 (asinhf): Define using libm_alias_float.
32977 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
32978 (atanf): Define using libm_alias_float.
32979 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
32980 (cbrtf): Define using libm_alias_float.
32981 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
32982 (ceilf): Define using libm_alias_float.
32983 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
32984 <libm-alias-float.h>.
32985 (copysignf): Define using libm_alias_float.
32986 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
32987 (cosf): Define using libm_alias_float.
32988 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
32989 (erff): Define using libm_alias_float.
32990 (erfcf): Likewise.
32991 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
32992 (expm1f): Define using libm_alias_float.
32993 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
32994 (fabsf): Define using libm_alias_float.
32995 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
32996 (floorf): Define using libm_alias_float.
32997 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
32998 (frexpf): Define using libm_alias_float.
32999 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33000 libm_alias_float.
33001 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33002 <libm-alias-float.h>.
33003 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33004 libm_alias_float.
33005 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33006 <libm-alias-float.h>.
33007 (getpayloadf): Define using libm_alias_float.
33008 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33009 <libm-alias-float.h>.
33010 (llrintf): Define using libm_alias_float.
33011 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33012 <libm-alias-float.h>.
33013 (llroundf): Define using libm_alias_float.
33014 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33015 (logbf): Define using libm_alias_float.
33016 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33017 (lrintf): Define using libm_alias_float.
33018 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33019 (lroundf): Define using libm_alias_float.
33020 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33021 (modff): Define using libm_alias_float.
33022 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33023 <libm-alias-float.h>.
33024 (nearbyintf): Define using libm_alias_float.
33025 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33026 <libm-alias-float.h>.
33027 (nextafterf): Define using libm_alias_float.
33028 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33029 <libm-alias-float.h>.
33030 (nextupf): Define using libm_alias_float.
33031 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33032 <libm-alias-float.h>.
33033 (remquof): Define using libm_alias_float.
33034 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33035 (rintf): Define using libm_alias_float.
33036 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33037 <libm-alias-float.h>.
33038 (roundevenf): Define using libm_alias_float.
33039 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33040 (roundf): Define using libm_alias_float.
33041 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33042 using libm_alias_float.
33043 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33044 <libm-alias-float.h>.
33045 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33046 Define using libm_alias_float.
33047 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33048 <libm-alias-float.h>.
33049 (sincosf): Define using libm_alias_float.
33050 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33051 (sinf): Define using libm_alias_float.
33052 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33053 (tanf): Define using libm_alias_float.
33054 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33055 (tanhf): Define using libm_alias_float.
33056 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33057 <libm-alias-float.h>.
33058 (totalorderf): Define using libm_alias_float.
33059 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33060 <libm-alias-float.h>.
33061 (totalordermagf): Define using libm_alias_float.
33062 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33063 (truncf): Define using libm_alias_float.
33064 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33065 libm_alias_float.
33066 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33067 libm_alias_float.
33068
33069 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33070
33071 [BZ #22146]
33072 math/math.h: Let fpclassify use the builtin in C++ mode, even
33073 when optimazing for size.
33074
33075 2017-09-22 Joseph Myers <joseph@codesourcery.com>
33076
33077 * csu/Makefile (generated): Do not add version-info.h.
33078 (before-compile): Likewise.
33079 (all-Banner-files): Remove variable.
33080 ($(objpfx)version-info.h): Remove rule.
33081 * csu/version.c (banner): Do not include "version-info.h".
33082 * libidn/Banner: Remove.
33083 * manual/contrib.texi (Simon Josefsson): New entry.
33084
33085 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33086
33087 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33088 Remove conditionals on LDBL_MANT_DIG.
33089 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33090 (__ieee754_lgammal_r): Likewise.
33091
33092 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33093
33094 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33095 _Float128 and L().
33096 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33097 _Float128 and L(). Replace _Float128 with long double and L(x)
33098 with xL, throughout the file.
33099 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33100 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33101 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33102 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33103
33104 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33105
33106 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33107 sysdeps/ieee754/ldbl-128ibm.
33108 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33109 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33110 of including it. Keep _Float128 and L() intact. These will be
33111 reviewed by a separate patch.
33112 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33113 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33114 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33115 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33116
33117 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33118
33119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33120 (__finitef128): Define to __redirect___finitef128.
33121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33122 (__isinff128): Define to __redirect___isinff128.
33123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33124 (__isnanf128): Define to __redirect___isnanf128.
33125
33126 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33127
33128 * sysdeps/powerpc/powerpc64le/Makefile
33129 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33130 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33131
33132 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33133 Carlos O'Donell <carlos@redhat.com>
33134
33135 [BZ #22180]
33136 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33137 * stdlib/test-dlclose-exit-race.c: New file.
33138 * stdlib/test-dlclose-exit-race-helper.c: New file.
33139 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33140
33141 2017-09-21 Joseph Myers <joseph@codesourcery.com>
33142
33143 * crypt/Banner: Remove file.
33144 * nptl/Banner: Likewise.
33145 * resolv/Banner: Likewise.
33146 * soft-fp/Banner: Likewise.
33147 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33148 ($(objpfx)version.d): Remove dependency on banner.h.
33149 ($(objpfx)version.os): Likewise.
33150 * nptl/version.c (banner): Do not include banner.h.
33151 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33152 Jelinek and BIND code.
33153
33154 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33155 Carlos O'Donell <carlos@redhat.com>
33156
33157 * support/xdlfcn.h: New file.
33158 * support/xdlfcn.c: New file.
33159 * support/Makefile (libsupport-routines): Add xdlfcn.
33160 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33161
33162 2017-09-20 Joseph Myers <joseph@codesourcery.com>
33163
33164 [BZ #20142]
33165 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33166 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33167 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33168 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33169 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33170 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33171 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33172 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33173
33174 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33175 Ricky Zhou <rickyz@google.com>
33176 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
33177
33178 [BZ #14333]
33179 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33180 Remove atomics.
33181 (__new_exitfn): Fail registration when we finished at_exit processing.
33182 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33183 * stdlib/on_exit.c (__on_exit): Likewise.
33184 * stdlib/exit.c (__exit_funcs_done): New variable.
33185 (__run_exit_handlers): Use __exit_funcs_lock.
33186 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33187 declarations.
33188 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33189 (test-cxa_atexit-race, test-on_exit-race): New tests.
33190 * stdlib/test-atexit-race-common.c: New file.
33191 * stdlib/test-atexit-race.c: New file.
33192 * stdlib/test-at_quick_exit-race.c: New file.
33193 * stdlib/test-cxa_atexit-race.c: New file.
33194 * stdlib/test-on_exit-race.c: New file.
33195
33196 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33197
33198 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33199 * benchtests/exp2f-inputs: Copy of expf-inputs.
33200 * benchtests/log2f-inputs: Copy of logf-inputs.
33201
33202 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33203
33204 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33205 Explicitly take address of first element of array arguments in
33206 call to INLINE_SYSCALL.
33207
33208 2017-09-19 Andreas Schwab <schwab@suse.de>
33209
33210 [BZ #22134]
33211 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33212 execveat first.
33213 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33214 unimplemented.
33215 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33216 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33217 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33218 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33219 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33220 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33221 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33222 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33223 * posix/Makefile (tests): Add tst-fexecve.
33224 * posix/tst-fexecve.c: New file.
33225
33226 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33227
33228 * benchtests/Makefile: Add logf benchmark.
33229 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33230
33231 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33232
33233 * benchtests/Makefile: Add expf benchmark.
33234 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33235
33236 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33237
33238 * csu/Makefile: Add -funwind-tables to libc-start.c.
33239 * debug/Makefile: Add -funwind-tables to backtrace.c.
33240 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33241 * sysdeps/arm/Makefile: Likewise.
33242 * sysdeps/i386/Makefile: Likewise.
33243 * sysdeps/m68k/Makefile: Likewise.
33244 * sysdeps/mips/Makefile: Likewise.
33245 * sysdeps/nios2/Makefile: Likewise.
33246 * sysdeps/sh/Makefile: Likewise.
33247 * sysdeps/sparc/Makefile: Likewise.
33248
33249 2017-09-19 Joseph Myers <joseph@codesourcery.com>
33250
33251 * benchtests/Makefile (bench-math): Add trunc and truncf.
33252 (CFLAGS-bench-trunc.c): New variable.
33253 (CFLAGS-bench-truncf.c): Likewise.
33254 * benchtests/trunc-inputs: New file.
33255 * benchtests/truncf-inputs: Likewise.
33256
33257 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33258
33259 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33260
33261 2017-09-18 Joseph Myers <joseph@codesourcery.com>
33262
33263 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33264 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33265 redefine.
33266 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33267 (exp10l): Define as weak alias.
33268 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33269 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33270 and redefine.
33271 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33272 (remainderl): Define as weak alias.
33273
33274 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33275 (fmal): Define using libm_alias_ldouble.
33276 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33277 (acoshl): Define using libm_alias_ldouble.
33278 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33279 (acosl): Define using libm_alias_ldouble.
33280 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33281 (asinl): Define using libm_alias_ldouble.
33282 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33283 (atan2l): Define using libm_alias_ldouble.
33284 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33285 (atanhl): Define using libm_alias_ldouble.
33286 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33287 (coshl): Define using libm_alias_ldouble.
33288 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33289 (exp10l): Define using libm_alias_ldouble.
33290 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33291 (exp2l): Define using libm_alias_ldouble.
33292 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33293 (expl): Define using libm_alias_ldouble.
33294 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33295 (fmodl): Define using libm_alias_ldouble.
33296 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33297 (hypotl): Define using libm_alias_ldouble.
33298 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33299 (j0l): Define using libm_alias_ldouble.
33300 (y0l): Likewise.
33301 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33302 (j1l): Define using libm_alias_ldouble.
33303 (y1l): Likewise.
33304 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33305 (jnl): Define using libm_alias_ldouble.
33306 (ynl): Likewise.
33307 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33308 (log10l): Define using libm_alias_ldouble.
33309 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33310 (log2l): Define using libm_alias_ldouble.
33311 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33312 (logl): Define using libm_alias_ldouble.
33313 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33314 (powl): Define using libm_alias_ldouble.
33315 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33316 (remainderl): Define using libm_alias_ldouble.
33317 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33318 (sinhl): Define using libm_alias_ldouble.
33319 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33320 (sqrtl): Define using libm_alias_ldouble.
33321 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33322 (tgammal): Define using libm_alias_ldouble.
33323 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33324 (exp10l): Do not use long_double_symbol here.
33325 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33326 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33327 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33328 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33329 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33330 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33331 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33332 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33333 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33334 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33335 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33336 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33337 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33338 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33339 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33340 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33341 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33342 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33343 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33344 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33345 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33346 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33347
33348 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33349
33350 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33351 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33352
33353 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33354
33355 * io/read.c (read): Add libc_hidden_weak.
33356 * sysdeps/mach/hurd/read.c (read): Likewise.
33357 * io/write.c (write): Likewise.
33358 * sysdeps/mach/hurd/write.c (write): Likewise.
33359 * io/pread64.c (__pread64): Likewise.
33360 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33361 * posix/pread64.c (__pread64): Add libc_hidden_def.
33362
33363 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33364
33365 * benchtests/scripts/compare_strings.py: New option -g.
33366 (draw_graph): Print a message that a graph is being generated.
33367 (process_results): Generate graph only if -g is passed.
33368 (main): Process option -g.
33369
33370 * benchtests/scripts/compare_strings.py (process_results):
33371 Better spacing for output.
33372
33373 * benchtests/scripts/compare_strings.py: Use argparse.
33374 * benchtests/README: Document existence of compare_strings.py.
33375
33376 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33377
33378 * math/s_fma.c: Include <libm-alias-double.h>.
33379 (fma): Define using libm_alias_double.
33380 * math/s_nextafter.c: Include <libm-alias-double.h>.
33381 (nextafter): Define using libm_alias_double.
33382 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33383 (acos): Define using libm_alias_double.
33384 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33385 (aocsh): Define using libm_alias_double.
33386 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33387 (asin): Define using libm_alias_double.
33388 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33389 (atan2): Define using libm_alias_double.
33390 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33391 (atanh): Define using libm_alias_double.
33392 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33393 (cosh): Define using libm_alias_double.
33394 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33395 (exp10): Define using libm_alias_double.
33396 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33397 (exp2): Define using libm_alias_double.
33398 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33399 (exp): Define using libm_alias_double.
33400 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33401 (fmod): Define using libm_alias_double.
33402 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33403 (hypot): Define using libm_alias_double.
33404 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33405 (j0): Define using libm_alias_double.
33406 (y0): Likewise.
33407 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33408 (j1): Define using libm_alias_double.
33409 (y1): Likewise.
33410 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33411 (jn): Define using libm_alias_double.
33412 (yn): Likewise.
33413 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33414 (log10): Define using libm_alias_double.
33415 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33416 (log2): Define using libm_alias_double.
33417 * math/w_log_compat.c: Include <libm-alias-double.h>.
33418 (log): Define using libm_alias_double.
33419 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33420 (pow): Define using libm_alias_double.
33421 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33422 (remainder): Define using libm_alias_double.
33423 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33424 (sinh): Define using libm_alias_double.
33425 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33426 (sqrt): Define using libm_alias_double.
33427 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33428 (tgamma): Define using libm_alias_double.
33429 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33430 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33431 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33432 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33433 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33434 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33435 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33436 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33437 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33438 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33439 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33440 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33441 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33442 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33443 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33444 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33445 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33446 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33447 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33448 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33449 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33450 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33451 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33452 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33453 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33454
33455 * math/e_acoshl.c: Remove.
33456 * math/e_acosl.c: Likewise.
33457 * math/e_asinl.c: Likewise.
33458 * math/e_atan2l.c: Likewise.
33459 * math/e_atanhl.c: Likewise.
33460 * math/e_coshl.c: Likewise.
33461 * math/e_expl.c: Likewise.
33462 * math/e_fmodl.c: Likewise.
33463 * math/e_gammal_r.c: Likewise.
33464 * math/e_hypotl.c: Likewise.
33465 * math/e_j0l.c: Likewise.
33466 * math/e_j1l.c: Likewise.
33467 * math/e_jnl.c: Likewise.
33468 * math/e_lgammal_r.c: Likewise.
33469 * math/e_log10l.c: Likewise.
33470 * math/e_log2l.c: Likewise.
33471 * math/e_logl.c: Likewise.
33472 * math/e_powl.c: Likewise.
33473 * math/e_rem_pio2l.c: Likewise.
33474 * math/e_sinhl.c: Likewise.
33475 * math/e_sqrtf128.c: Likewise.
33476 * math/e_sqrtl.c: Likewise.
33477 * math/k_cosl.c: Likewise.
33478 * math/k_sinl.c: Likewise.
33479 * math/k_tanl.c: Likewise.
33480 * math/s_asinhl.c: Likewise.
33481 * math/s_atanl.c: Likewise.
33482 * math/s_cbrtl.c: Likewise.
33483 * math/s_erfl.c: Likewise.
33484 * math/s_expm1l.c: Likewise.
33485 * math/s_log1pl.c: Likewise.
33486 * math/s_tanhl.c: Likewise.
33487
33488 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33489
33490 [BZ #21745]
33491 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33492 [$(subdir) = math] (sysdep_calls): New variable. Has the
33493 previous contents of sysdep_routines, but re-sorted..
33494 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33495 sysdep_calls.
33496 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33497 defined in sysdep_calls and replace by the respective m_* names.
33498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33499 (compat_symbol): Undefine to avoid duplicated compat symbols in
33500 libc.
33501
33502 2017-09-15 Joseph Myers <joseph@codesourcery.com>
33503
33504 * math/s_fmaf.c: Include <libm-alias-float.h>.
33505 (fmaf): Define using libm_alias_float.
33506 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33507 (acosf): Define using libm_alias_float.
33508 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33509 (acoshf): Define using libm_alias_float.
33510 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33511 (asinf): Define using libm_alias_float.
33512 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33513 (atan2f): Define using libm_alias_float.
33514 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33515 (atanhf): Define using libm_alias_float.
33516 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33517 (coshf): Define using libm_alias_float.
33518 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33519 (exp10f): Define using libm_alias_float.
33520 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33521 (fmodf): Define using libm_alias_float.
33522 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33523 (hypotf): Define using libm_alias_float.
33524 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33525 (j0f): Define using libm_alias_float.
33526 (y0f): Likewise.
33527 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33528 (j1f): Define using libm_alias_float.
33529 (y1f): Likewise.
33530 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33531 (jnf): Define using libm_alias_float.
33532 (ynf): Likewise.
33533 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33534 (log10f): Define using libm_alias_float.
33535 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33536 (log2f): Define using libm_alias_float.
33537 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33538 (logf): Define using libm_alias_float.
33539 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33540 (powf): Define using libm_alias_float.
33541 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33542 (remainderf): Define using libm_alias_float.
33543 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33544 (sinhf): Define using libm_alias_float.
33545 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33546 (sqrtf): Define using libm_alias_float.
33547 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33548 (tgammaf): Define using libm_alias_float.
33549
33550 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33551
33552 * include/math.h (roundeven): Change hidden_proto call to
33553 __roundeven.
33554 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33555 alias.
33556 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33557 (y0): Rename to __y0 and define as weak alias.
33558 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33559 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33560 alias.
33561 (y0f): Rename to __y0f and define as weak alias.
33562 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33563 alias.
33564 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33565 (y1): Rename to __y1 and define as weak alias.
33566 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33567 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33568 alias.
33569 (y1f): Rename to __y1f and define as weak alias.
33570 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33571 alias.
33572 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33573 (yn): Rename to __yn and define as weak alias.
33574 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33575 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33576 alias.
33577 (ynf): Rename to __ynf and define as weak alias.
33578 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33579 (fromfp): Define as weak alias.
33580 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33581 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33582 (fromfpx): Define as weak alias.
33583 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33584 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33585 __getpayload and define as weak alias.
33586 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33587 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33588 __roundeven and define as weak alias.
33589 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33590 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33591 __setpayload.
33592 (setpayload): Define as weak alias.
33593 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33594 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33595 __setpayloadsig.
33596 (setpayloadsig): Define as weak alias.
33597 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33598 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33599 __totalorder and define as weak alias.
33600 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33601 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33602 to __totalordermag and define as weak alias.
33603 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33604 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33605 (ufromfp): Define as weak alias.
33606 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33607 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33608 __ufromfpx.
33609 (ufromfpx): Define as weak alias.
33610 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33611 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33612 Rename to __getpayload and define as weak alias.
33613 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33614 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33615 Rename to __roundeven and define as weak alias.
33616 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33617 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33618 Rename to __totalorder and define as weak alias.
33619 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33620 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33621 (totalordermag): Rename to __totalordermag and define as weak
33622 alias.
33623 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33624 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33625 macro.
33626 (__roundevenl): Likewise.
33627 (__totalorderl): Likewise.
33628 (__totalordermagl): Likewise
33629 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33630 __fromfpf128.
33631 (fromfpf128): Define as weak alias.
33632 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33633 __fromfpxf128.
33634 (fromfpxf128): Define as weak alias.
33635 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33636 __setpayloadf128.
33637 (setpayloadf128): Define as weak alias.
33638 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33639 __setpayloadsigf128.
33640 (setpayloadsigf128): Define as weak alias.
33641 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33642 __ufromfpf128.
33643 (ufromfpf128): Define as weak alias.
33644 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33645 __ufromfpxf128.
33646 (ufromfpxf128): Define as weak alias.
33647 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33648 (fromfpf): Define as weak alias.
33649 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33650 __fromfpxf.
33651 (fromfpxf): Define as weak alias.
33652 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
33653 __getpayloadf and define as weak alias.
33654 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
33655 __roundevenf and define as weak alias.
33656 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
33657 __setpayloadf.
33658 (setpayloadf): Define as weak alias.
33659 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
33660 __setpayloadsigf.
33661 (setpayloadsigf): Define as weak alias.
33662 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
33663 __totalorderf and define as weak alias.
33664 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
33665 Rename to __totalordermagf and define as weak alias.
33666 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
33667 __ufromfpf.
33668 (ufromfpf): Define as weak alias.
33669 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
33670 __ufromfpxf.
33671 (ufromfpxf): Define as weak alias.
33672 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
33673 __fromfpl.
33674 (fromfpl): Define as weak alias.
33675 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
33676 __fromfpxl.
33677 (fromfpxl): Define as weak alias.
33678 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
33679 to __getpayloadl and define as weak alias.
33680 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
33681 __roundevenl and define as weak alias.
33682 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
33683 __setpayloadl.
33684 (setpayloadl): Define as weak alias.
33685 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
33686 __setpayloadsigl.
33687 (setpayloadsigl): Define as weak alias.
33688 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
33689 to __totalorderl and define as weak alias.
33690 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
33691 Rename to __totalordermagl and define as weak alias.
33692 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
33693 __ufromfpl.
33694 (ufromfpl): Define as weak alias.
33695 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
33696 __ufromfpxl.
33697 (ufromfpxl): Define as weak alias.
33698 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
33699 __fromfpl.
33700 (fromfpl): Define as weak alias.
33701 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
33702 __fromfpxl.
33703 (fromfpxl): Define as weak alias.
33704 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
33705 Rename to __getpayloadl and define as weak alias.
33706 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
33707 to __roundevenl and define as weak alias. Call __roundeven
33708 instead of roundeven.
33709 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
33710 __setpayloadl.
33711 (setpayloadl): Define as weak alias.
33712 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
33713 __setpayloadsigl.
33714 (setpayloadsigl): Define as weak alias.
33715 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
33716 Rename to __totalorderl and define as weak alias.
33717 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
33718 Rename to __totalordermagl and define as weak alias.
33719 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
33720 __ufromfpl.
33721 (ufromfpl): Define as weak alias.
33722 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
33723 __ufromfpxl.
33724 (ufromfpxl): Define as weak alias.
33725 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
33726 __fromfpl.
33727 (fromfpl): Define as weak alias.
33728 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
33729 __fromfpxl.
33730 (fromfpxl): Define as weak alias.
33731 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
33732 __getpayloadl and define as weak alias.
33733 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
33734 __roundevenl and define as weak alias.
33735 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
33736 __setpayloadl.
33737 (setpayloadl): Define as weak alias.
33738 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
33739 __setpayloadsigl.
33740 (setpayloadsigl): Define as weak alias.
33741 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
33742 __totalorderl and define as weak alias.
33743 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
33744 Rename to __totalordermagl and define as weak alias.
33745 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
33746 __ufromfpl.
33747 (ufromfpl): Define as weak alias.
33748 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
33749 __ufromfpxl.
33750 (ufromfpxl): Define as weak alias.
33751
33752 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
33753
33754 * benchtests/bench-string.h (realloc_bufs): New function.
33755 (test_init): Call it.
33756 * benchtests/bench-memset-large.c (do_test): Likewise.
33757 * benchtests/bench-memset.c (do_test): Likewise.
33758
33759 * benchtests/bench-memset-large.c: Print output in JSON
33760 format.
33761 * benchtests/bench-memset.c: Likewise.
33762
33763 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33764
33765 [BZ #21084]
33766 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
33767 * iconvdata/Makefile: Add IBM858.
33768 * iconvdata/gconv-modules: Likewise.
33769 * iconvdata/tst-tables.sh: Likewise.
33770 * iconvdata/ibm858.c: New file.
33771 * localedata/charmaps/IBM858: Likewise.
33772
33773 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
33774
33775 [BZ #22023]
33776 * locales/niu_NZ (LC_TIME): copy "niu_NU".
33777 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
33778
33779 2017-09-14 Mike FABIAN <mfabian@redhat.com>
33780
33781 [BZ #22112]
33782 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
33783 and add tel_int_fmt.
33784
33785 2017-09-14 Joseph Myers <joseph@codesourcery.com>
33786
33787 * sysdeps/generic/libm-alias-float128.h: New file.
33788 * sysdeps/generic/math-type-macros-float128.h: Include
33789 <libm-alias-float128.h>.
33790 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33791
33792 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33793
33794 * sysdeps/generic/libm-alias-ldouble.h: New file.
33795 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
33796 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
33797 * sysdeps/generic/math-type-macros-ldouble.h: Include
33798 <libm-alias-ldouble.h>.
33799 [!declare_mgen_alias] (declare_mgen_alias): Define to use
33800 libm_alias_ldouble.
33801
33802 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
33803
33804 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
33805 * math/w_exp_compat.c: ... here.
33806 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
33807 * math/w_expf_compat.c: ... here.
33808 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
33809 * math/w_expl_compat.c: ... here.
33810 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
33811 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
33812 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
33813 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33814
33815 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33816
33817 * math/w_scalbln_template.c (strong_alias): Do not undefine and
33818 redefine.
33819 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
33820 macro.
33821 (ldexpl): Only define as compat symbol for libc, not libm.
33822 (scalbnl): Define as compat symbol for libc here.
33823 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
33824 define for [IS_IN (libc)].
33825 (__ldexpl_2): Remove alias.
33826 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
33827 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
33828 name in long_double_symbol call.
33829 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
33830 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
33831 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
33832 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
33833 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
33834 Remove macro.
33835 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
33836 Define as compat symbol.
33837
33838 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33839
33840 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
33841 * sysdeps/unix/sysv/linux/alpha/Makefile
33842 [$(subdir) = csu] (sysdep_routines): Remove rule.
33843
33844 2017-09-13 Joseph Myers <joseph@codesourcery.com>
33845
33846 * sysdeps/generic/libm-alias-double.h: New file.
33847 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
33848 * sysdeps/generic/math-type-macros-double.h: Include
33849 <libm-alias-double.h>.
33850 [declare_mgen_alias] (declare_mgen_alias): Define to use
33851 libm_alias_double.
33852 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
33853 (M_LIBM_NEED_COMPAT): Remove macro.
33854 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
33855 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
33856 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
33857 code.
33858 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33859 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33860 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33861 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33862 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33863 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33864 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33865 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33866 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33867 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33868 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33869 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33870 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33871 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33872 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33873 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33874 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33875 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33876 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33877 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33878 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33879 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33880 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33881 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33882 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33883 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33884 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
33885 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
33886 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
33887 macro.
33888 (declare_mgen_alias): New macro.
33889 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
33890 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
33891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
33892 (M_LIBM_NEED_COMPAT): Remove macro.
33893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
33894 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
33895 <first-versions.h>.
33896 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
33897 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
33898
33899 2017-09-12 Joseph Myers <joseph@codesourcery.com>
33900
33901 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
33902 (declare_mgen_alias_2): Remove.
33903 * sysdeps/generic/math-type-macros-double.h
33904 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
33905 Likewise.
33906 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
33907 alias.
33908 (ldexp): Define with declare_mgen_alias.
33909 (scalbn): Likewise.
33910
33911 2017-09-12 Steve Ellcey <sellcey@cavium.com>
33912
33913 * grp/initgroups.c: Include config.h.
33914 (DEFAULT_CONFIG): New macro.
33915 (internal_getgrouplist): Use DEFAULT_CONFIG.
33916 * nscd/initgrcache.c (addinitgroupsX): Likewise.
33917 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
33918 (DEFAULT_DEFCONFIG): New macro.
33919 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
33920 * nss/grp-lookup.c: Include config.h
33921 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
33922 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
33923 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
33924 * manual/nss.texi: Update default values section.
33925
33926 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
33927
33928 [BZ #21967]
33929 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
33930 New.
33931 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
33932 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33933 Handle MathVec_Prefer_No_AVX512.
33934 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
33935 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
33936 is set.
33937
33938 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
33939
33940 * posix/sched_primax.c (__sched_get_priority_max): Add
33941 libc_hidden_def.
33942 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
33943 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33944 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33945 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
33946 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
33947 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
33948 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
33949 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
33950 Add aliases.
33951
33952 2017-09-11 Joseph Myers <joseph@codesourcery.com>
33953
33954 * sysdeps/generic/libm-alias-float.h: New file.
33955 * sysdeps/generic/math-type-macros-float.h: Include
33956 <libm-alias-float.h>.
33957 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
33958
33959 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
33960
33961 [BZ #22093]
33962 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
33963 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
33964 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
33965 (HWCAP_IMPORTANT): Likewise.
33966 (HWCAP_X86_64): New enum.
33967 (HWCAP_X86_AVX512_1): Updated.
33968 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
33969 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
33970 (modules-names): Add x86_64/tst-x86_64mod-1.
33971 (LDFLAGS-tst-x86_64mod-1.so): New.
33972 ($(objpfx)tst-x86_64-1): Likewise.
33973 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
33974 (tst-x86_64-1-clean): Likewise.
33975 * sysdeps/x86_64/tst-x86_64-1.c: New file.
33976 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
33977
33978 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33979
33980 * po/sv.po: Update translations.
33981 * po/fr.po: Likewise.
33982
33983 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
33984
33985 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
33986 seconds.
33987 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
33988 seconds.
33989 * elf/rtld-Rules: Fix $(error) use.
33990
33991 2017-09-09 Mike FABIAN <mfabian@redhat.com>
33992
33993 [BZ #14925]
33994 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
33995 * locale/iso-639.def: Change “Bengali” to “Bangla”.
33996 * localedata/locales/bn_BD: “Bengali” was still used in some
33997 comments. Change it to “Bangla”.
33998
33999 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34000
34001 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34002
34003 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34004
34005 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34006 thunderx2t99p1 to list of cpu names.
34007 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34008 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34009
34010 2017-09-08 Steve Ellcey <sellcey@cavium.com>
34011
34012 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34013 Use strcmp instead of tunable_is_name.
34014
34015 2017-09-08 Joseph Myers <joseph@codesourcery.com>
34016
34017 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34018 (F_GET_RW_HINT): New macro.
34019 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34020 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34021 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34022 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34023 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34024 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34025 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34026 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34027 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34028
34029 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34030 (F_ADD_SEALS): New macro.
34031 [__USE_GNU] (F_GET_SEALS): Likewise.
34032 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34033 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34034 [__USE_GNU] (F_SEAL_GROW): Likewise.
34035 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34036
34037 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34038
34039 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34040 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34041 * posix/glob_internal.h (__glob_pattern_type):
34042 * posix/glob.c (glob):
34043 * posix/glob_pattern_p.c (__glob_pattern_p):
34044 Use them.
34045
34046 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34047 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34048 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34049 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34050 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34051 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34052 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34053 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34054 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34055 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34056 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34057 * sysdeps/wordsize-64/glob.c: Likewise.
34058 * sysdeps/wordsize-64/glob64.c: Likewise.
34059 * sysdeps/wordsize-64/globfree.c: Likewise.
34060 * sysdeps/wordsize-64/globfree64.c: Likewise.
34061 * sysdeps/unix/sysv/linux/glob.c: New file.
34062 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34063 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34064 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34065 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34066 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34067 adds !GLOB_NO_OLD_VERSION as an extra condition.
34068 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34069 using relative path instead of absolute one.
34070 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34071 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34072 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34073 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34074 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34075 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34076
34077 [BZ #1062]
34078 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34079 (glob): Use the same scratch buffer for both getlogin_r and
34080 getpwnam_r. Don’t require preallocation of the login name. This
34081 simplifies storage allocation, and corrects the handling of
34082 long login names.
34083
34084 [BZ #1062]
34085 * posix/glob.c (glob): Port recent patches to platforms
34086 lacking getpwnam_r.
34087 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34088 returns an error number rather than setting errno.
34089
34090 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34091 instead of GCC extension.
34092 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34093 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34094 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34095
34096 [BZ #866]
34097 [BZ #1062]
34098 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34099 * posix/bug-glob1.c: Remove file.
34100 * posix/tst-glob_symlinks.c: New file.
34101 * posix/glob.c (__lstat64): New macro.
34102 (is_dir): New function.
34103 (glob, glob_in_dir): Match symlinks even if they are dangling.
34104 (link_stat, link_exists_p): Remove. All uses removed.
34105
34106 [BZ #1062]
34107 [BZ #19971]
34108 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34109 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34110 All uses removed.
34111
34112 [BZ #1062]
34113 CVE-2017-15671
34114 * posix/Makefile (routines): Add globfree, globfree64, and
34115 glob_pattern_p.
34116 * posix/flexmember.h: New file.
34117 * posix/glob_internal.h: Likewise.
34118 * posix/glob_pattern_p.c: Likewise.
34119 * posix/globfree.c: Likewise.
34120 * posix/globfree64.c: Likewise.
34121 * sysdeps/gnu/globfree64.c: Likewise.
34122 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34123 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34124 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34125 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34126 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34127 * sysdeps/wordsize-64/globfree.c: Likewise.
34128 * sysdeps/wordsize-64/globfree64.c: Likewise.
34129 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34130 [NDEBUG): Remove comments.
34131 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34132 (dirent_type): New type. Use uint_fast8_t not
34133 uint8_t, as C99 does not require uint8_t.
34134 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34135 (struct readdir_result): Use dirent_type. Do not define skip_entry
34136 unless it is needed; this saves a byte on platforms lacking d_ino.
34137 (readdir_result_type, readdir_result_skip_entry):
34138 New functions, replacing ...
34139 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
34140 these functions, which were removed. This makes the callers
34141 easier to read. All callers changed.
34142 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34143 (size_add_wrapv, glob_use_alloca): New static functions.
34144 (glob, glob_in_dir): Check for size_t overflow in several places,
34145 and fix some size_t checks that were not quite right.
34146 Remove old code using SHELL since Bash no longer
34147 uses this.
34148 (glob, prefix_array): Separate MS code better.
34149 (glob_in_dir): Remove old Amiga and VMS code.
34150 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34151 separate files.
34152 (glob_in_dir): Do not rely on undefined behavior in accessing
34153 struct members beyond their bounds. Use a flexible array member
34154 instead
34155 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34156 0/1. Caller changed.
34157 (glob): Fix memory leaks.
34158 * posix/glob64 (globfree64): Move to separate file.
34159 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34160 (globfree64): Remove hidden alias.
34161 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34162 oldglob.
34163 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34164 separate file.
34165 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34166 define.
34167 Move compat code to separate file.
34168 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34169 separate file.
34170
34171 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34172
34173 * resolv/tst-resolv-qtypes.c (domain): Changed to
34174 "const char domain[] =".
34175
34176 2017-09-07 Joseph Myers <joseph@codesourcery.com>
34177
34178 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34179 version to 3.1.6.
34180
34181 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34182 (TCP_MD5SIG_EXT): Likewise.
34183 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34184 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34185 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34186
34187 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34188
34189 2017-09-07 Mike FABIAN <mfabian@redhat.com>
34190
34191 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34192
34193 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
34194
34195 [BZ #22100]
34196 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34197
34198 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34199
34200 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34201 before assuming that the file is empty. Avoid testing buffer content
34202 when nread == 0.
34203
34204 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34205
34206 [BZ #18858]
34207 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34208 Remove define.
34209 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34210 Likewise.
34211 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34212 Likewise.
34213 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34214 Likewise.
34215 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34216 Likewise.
34217 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34218 Likewise.
34219 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34220 Likewise.
34221
34222 2017-09-06 Florian Weimer <fweimer@redhat.com>
34223
34224 * malloc/dynarray_emplace_enlarge.c
34225 (__libc_dynarray_emplace_enlarge): Add missing else.
34226
34227 2017-09-06 Florian Weimer <fweimer@redhat.com>
34228
34229 [BZ #22096]
34230 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34231 case of failure to obtain the global conf object.
34232
34233 2017-09-06 Florian Weimer <fweimer@redhat.com>
34234
34235 [BZ #22095]
34236 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34237 dynarray allocation failure.
34238
34239 2017-09-06 Florian Weimer <fweimer@redhat.com>
34240
34241 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34242 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34243 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34244 New functions.
34245 (response): Call them. Add 'p', '6' flag processing.
34246 (test_reverse): New function.
34247 (test_get2_any): Call it.
34248 (test_no_inet6): Add 'p' test.
34249 (test_inet6): Likewise.
34250
34251 2017-09-06 Florian Weimer <fweimer@redhat.com>
34252
34253 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34254 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34255 the QNAME.
34256 (test_gai): Adjust query names. Add additional tests.
34257 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34258 test_get2. Adjust query names. Add additional tests.
34259 (test_no_inet6): New function, extracted from threadfunc.
34260 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34261 Add additional tests.
34262
34263 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34264
34265 [BZ #22070]
34266 * localedata/unicode-gen/utf8_gen.py: Set the width for
34267 characters with Prepended_Concatenation_Mark property to 1
34268 * localedata/charmaps/UTF-8: Updated using the improved script.
34269
34270 2017-09-06 Mike FABIAN <mfabian@redhat.com>
34271
34272 [BZ #21750]
34273 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34274 use the range notation for all ranges of neighbouring characters
34275 with the same width.
34276
34277 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34278
34279 * sysdeps/generic/math-type-macros-double.h: Include
34280 <math-svid-compat.h>.
34281 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34282 * sysdeps/generic/math-type-macros-float.h: Include
34283 <math-svid-compat.h>.
34284 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34285 * sysdeps/generic/math-type-macros-ldouble.h: Include
34286 <math-svid-compat.h>.
34287 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34288 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34289 condition.
34290 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34291 * math/w_acosf_compat.c: Likewise.
34292 * math/w_acosh_compat.c: Likewise.
34293 * math/w_acoshf_compat.c: Likewise.
34294 * math/w_acoshl_compat.c: Likewise.
34295 * math/w_acosl_compat.c: Likewise.
34296 * math/w_asin_compat.c: Likewise.
34297 * math/w_asinf_compat.c: Likewise.
34298 * math/w_asinl_compat.c: Likewise.
34299 * math/w_atan2_compat.c: Likewise.
34300 * math/w_atan2f_compat.c: Likewise.
34301 * math/w_atan2l_compat.c: Likewise.
34302 * math/w_atanh_compat.c: Likewise.
34303 * math/w_atanhf_compat.c: Likewise.
34304 * math/w_atanhl_compat.c: Likewise.
34305 * math/w_cosh_compat.c: Likewise.
34306 * math/w_coshf_compat.c: Likewise.
34307 * math/w_coshl_compat.c: Likewise.
34308 * math/w_exp10_compat.c: Likewise.
34309 * math/w_exp10f_compat.c: Likewise.
34310 * math/w_exp10l_compat.c: Likewise.
34311 * math/w_exp2_compat.c: Likewise.
34312 * math/w_exp2f_compat.c: Likewise.
34313 * math/w_exp2l_compat.c: Likewise.
34314 * math/w_fmod_compat.c: Likewise.
34315 * math/w_fmodf_compat.c: Likewise.
34316 * math/w_fmodl_compat.c: Likewise.
34317 * math/w_hypot_compat.c: Likewise.
34318 * math/w_hypotf_compat.c: Likewise.
34319 * math/w_hypotl_compat.c: Likewise.
34320 * math/w_j0_compat.c: Likewise.
34321 * math/w_j0f_compat.c: Likewise.
34322 * math/w_j0l_compat.c: Likewise.
34323 * math/w_j1_compat.c: Likewise.
34324 * math/w_j1f_compat.c: Likewise.
34325 * math/w_j1l_compat.c: Likewise.
34326 * math/w_jn_compat.c: Likewise.
34327 * math/w_jnf_compat.c: Likewise.
34328 * math/w_jnl_compat.c: Likewise.
34329 * math/w_lgamma_r_compat.c: Likewise.
34330 * math/w_lgammaf_r_compat.c: Likewise.
34331 * math/w_lgammal_r_compat.c: Likewise.
34332 * math/w_log10_compat.c: Likewise.
34333 * math/w_log10f_compat.c: Likewise.
34334 * math/w_log10l_compat.c: Likewise.
34335 * math/w_log2_compat.c: Likewise.
34336 * math/w_log2f_compat.c: Likewise.
34337 * math/w_log2l_compat.c: Likewise.
34338 * math/w_log_compat.c: Likewise.
34339 * math/w_logf_compat.c: Likewise.
34340 * math/w_logl_compat.c: Likewise.
34341 * math/w_pow_compat.c: Likewise.
34342 * math/w_powf_compat.c: Likewise.
34343 * math/w_powl_compat.c: Likewise.
34344 * math/w_remainder_compat.c: Likewise.
34345 * math/w_remainderf_compat.c: Likewise.
34346 * math/w_remainderl_compat.c: Likewise.
34347 * math/w_sinh_compat.c: Likewise.
34348 * math/w_sinhf_compat.c: Likewise.
34349 * math/w_sinhl_compat.c: Likewise.
34350 * math/w_sqrt_compat.c: Likewise.
34351 * math/w_sqrtf_compat.c: Likewise.
34352 * math/w_sqrtl_compat.c: Likewise.
34353 * math/w_tgamma_compat.c: Likewise.
34354 * math/w_tgammaf_compat.c: Likewise.
34355 * math/w_tgammal_compat.c: Likewise.
34356 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34357 [LIBM_SVID_COMPAT].
34358 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34359 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34360 [LIBM_SVID_COMPAT].
34361 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34362 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34363 [LIBM_SVID_COMPAT].
34364 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34365 * sysdeps/i386/fpu/w_sqrt.c: New file.
34366 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34367 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34368 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34369 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34370 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34371 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34372 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34373 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34374 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34375 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34376 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34377 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34378 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34379 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34380 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34381 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34382 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34383 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34384 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34385 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34386 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34387 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34388 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34389 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34390 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34391 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34392 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34393 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34394 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34395 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34396 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34397 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34398 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34399 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34400 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34401 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34402 * sysdeps/ia64/fpu/w_log.c: Likewise.
34403 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34404 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34405 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34406 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34407 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34408 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34409 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34410 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34411 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34412 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34413 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34414 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34415 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34416 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34417 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34418 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34419 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34420 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34421 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34422 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34423 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34424 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34425 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34426 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34427 [LIBM_SVID_COMPAT].
34428 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34429 * sysdeps/ieee754/k_standard.c: Likewise.
34430 * sysdeps/ieee754/k_standardf.c: Likewise.
34431 * sysdeps/ieee754/k_standardl.c: Likewise.
34432 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34433 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34434 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34435 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34436 long_double_symbol call on [LIBM_SVID_COMPAT].
34437 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34438 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34439 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34440 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34441 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34442 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34443 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34444 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34445 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34446 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34447 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34448 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34449 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34450 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34451 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34452 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34453 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34454 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34455 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34456 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34457 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34458 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34459
34460 2017-09-05 Steve Ellcey <sellcey@cavium.com>
34461
34462 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34463 * malloc/tst-mallocstate.c: Convert from test-skeleton
34464 to test-driver. Ifdef code using TEST_COMPAT macro.
34465 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34466 * math/test-matherr.c: Likewise.
34467
34468 2017-09-05 Joseph Myers <joseph@codesourcery.com>
34469
34470 [BZ #22086]
34471 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34472 comparing word with byte-swapped constant.
34473
34474 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
34475
34476 [BZ #20498]
34477 * locale/iso-639.def: add Miskito.
34478 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34479 * localedata/locales/miq_NI: New file.
34480
34481 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34482
34483 [BZ #18822]
34484 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34485 (__mkdir): Likewise.
34486 * io/chmod.c (__chmod): Add libc_hidden_def.
34487 * io/mkdir.c (__mkdir): Likewise.
34488 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34489 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34490 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34491 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34492
34493 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34494
34495 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34496 version to 4.13.
34497
34498 [BZ #22082]
34499 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34500 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34501
34502 2017-09-04 Florian Weimer <fweimer@redhat.com>
34503
34504 * math/math.h: Issue warning if log is defined.
34505
34506 2017-09-04 Joseph Myers <joseph@codesourcery.com>
34507
34508 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34509 kernel version to 4.13.
34510
34511 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34512
34513 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
34514 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34515 parameter.
34516 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34517 just <bits/types.h>.
34518 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
34519 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
34520 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
34521 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
34522 * misc/preadv2.c: Include <errno.h>.
34523 * misc/preadv64v2.c: Include <errno.h>.
34524 * misc/pwritev2.c: Include <errno.h>.
34525 * misc/pwritev64v2.c: Include <errno.h>.
34526 * sysdeps/posix/preadv2.c: Include <errno.h>.
34527 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34528 Fix <unistd.h> inclusion.
34529 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34530 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
34531 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34532 __strtoul_internal): New functions.
34533 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34534 * sysdeps/posix/system.c: Include <sigsetops.h>.
34535 * sysdeps/mach/hurd/i386/Makefile
34536 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34537 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34538 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
34539 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34540 __feraiseexcept_renamed to feraiseexcept instead of
34541 __GI_feraiseexcept.
34542 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
34543 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
34544 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34545 RWF_NOWAIT): Define to 0 if undefined already.
34546 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34547 boils down to 0.
34548 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34549 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
34550
34551 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34552
34553 * manual/math.texi (pow10): Do not document.
34554 (pow10f): Likewise.
34555 (pow10l): Likewise.
34556 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34557 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34558 * math/libm-test-exp10.inc (pow10_test): Remove.
34559 (do_test): Do not call pow10.
34560 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34561 [NO_LONG_DOUBLE] (pow10l): Likewise.
34562 * math/w_exp10f_compat.c (pow10f): Likewise.
34563 * math/w_exp10l_compat.c (pow10l): Likewise.
34564 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34565 (pow10): Make into compat symbol.
34566 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34567 (pow10f): Make into compat symbol.
34568 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34569 (pow10l): Make into compat symbol.
34570 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34571 pow10.
34572 (CFLAGS-nldbl-pow10.c): Remove variable..
34573 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34574 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34575 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34576 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34577 Undefine and redefine.
34578 (pow10l): Make into compat symbol.
34579 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34580 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34581 * sysdeps/arm/libm-test-ulps: Likewise.
34582 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34583 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34584 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34585 * sysdeps/microblaze/libm-test-ulps: Likewise.
34586 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34587 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34588 * sysdeps/nios2/libm-test-ulps: Likewise.
34589 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34590 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34591 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34592 * sysdeps/sh/libm-test-ulps: Likewise.
34593 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34594 * sysdeps/tile/libm-test-ulps: Likewise.
34595 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34596
34597 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34598
34599 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34600
34601 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34602
34603 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34604 "../ChangeLog.old/ChangeLog.8".
34605 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34606 "../ChangeLog.old/ChangeLog.14".
34607
34608 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34609
34610 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34611 Threads Library.
34612
34613 2017-09-01 Joseph Myers <joseph@codesourcery.com>
34614
34615 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34616
34617 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34618
34619 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34620 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34621
34622 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34623
34624 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34625 32 atexit handlers.
34626
34627 2017-09-01 Zack Weinberg <zackw@panix.com>
34628
34629 * math/math.h (HUGE_VAL): Improve commentary.
34630
34631 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34632 Andreas Schwab <schwab@suse.de>
34633
34634 [BZ #21530]
34635 * include/stdio.h (__gen_tempfd): New function.
34636 * stdio-common/Makefile (routines): Add gentempfd.
34637 * stdio-common/gentempfd.c: New file.
34638 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34639 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34640 unnamed file first.
34641
34642 2017-09-01 Florian Weimer <fweimer@redhat.com>
34643
34644 [BZ #21915]
34645 [BZ #21922]
34646 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34647 result to determine success or failure, not the errno value.
34648 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34649 (tst-nss-files-hosts-erange): Link with -ldl.
34650 * nss/tst-nss-files-hosts-erange.c: New file.
34651 * nss/tst-resolv-basic.c (response): Handle nodata.example.
34652 (do_test): Add NO_DATA tests.
34653 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
34654 (do_test): Call it.
34655
34656 2017-09-01 Florian Weimer <fweimer@redhat.com>
34657
34658 [BZ #21922]
34659 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
34660 coming from gethostbyname2_r.
34661
34662 2017-09-01 Florian Weimer <fweimer@redhat.com>
34663
34664 * support/namespace.h (struct support_chroot_configuration): Add
34665 hosts, host_conf.
34666 (struct support_chroot): Add path_hosts, path_host_conf.
34667 * support/support_chroot.c (write_file): New function.
34668 (support_chroot_create): Call it to process /etc/resolv.conf,
34669 /etc/hosts, /etc/host.conf.
34670 (support_chroot_free): Update.
34671
34672 2017-09-01 Florian Weimer <fweimer@redhat.com>
34673
34674 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
34675 status indicates it is set.
34676
34677 2017-09-01 Florian Weimer <fweimer@redhat.com>
34678
34679 [BZ #20532]
34680 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
34681 function lookup failures more reliable.
34682
34683 2017-09-01 Florian Weimer <fweimer@redhat.com>
34684
34685 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
34686 (getcanonname): Likewise.
34687 (gaih_inet): Likewise.
34688
34689 2017-09-01 Florian Weimer <fweimer@redhat.com>
34690
34691 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
34692 (getcanonname): Likewise.
34693 (gaih_inet): Likewise.
34694
34695 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34696 Richard Henderson <rth@twiddle.net>
34697
34698 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
34699 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
34700 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
34701 (IREG_SIZE, OREG_SIZE): New macros.
34702 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
34703 (IREG_SIZE, OREG_SIZE): New macros.
34704 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
34705 (IREG_SIZE): New macro.
34706 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
34707 (IREG_SIZE): New macro.
34708 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
34709 New includes.
34710 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
34711 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34712 (__CONCATX): Handle exceptions correctly on large values that may
34713 set FE_INVALID.
34714 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
34715 Initialize if not already set.
34716 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
34717
34718 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34719
34720 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
34721 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
34722 Likewise.
34723 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
34724 Likewise.
34725 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
34726 Likewise.
34727 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
34728 Likewise.
34729 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
34730 Likewise.
34731 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
34732 Likewise.
34733 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
34734 Likewise.
34735 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
34736 (NO_CANCELLATION): Likewise.
34737 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
34738 Likewise.
34739 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
34740 Likewise.
34741 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
34742 Likewise.
34743 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
34744 (NO_CANCELLATION): Likewise.
34745 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
34746 (NO_CANCELLATION): Likewise.
34747 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
34748 Likewise
34749 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
34750 Likewise.
34751 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
34752 Likewise.
34753 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
34754 Likewise.
34755 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
34756 hidden prototype.
34757 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
34758 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
34759
34760 2017-08-31 Steve Ellcey <sellcey@cavium.com>
34761
34762 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
34763 in resolver call.
34764
34765 2017-08-31 Florian Weimer <fweimer@redhat.com>
34766
34767 * include/libc-symbols.h (internal_function): Remove.
34768
34769 2017-08-31 Florian Weimer <fweimer@redhat.com>
34770
34771 * stdlib/fmtmsg.c (internal_addseverity): Remove
34772 internal_function.
34773
34774 2017-08-31 Florian Weimer <fweimer@redhat.com>
34775
34776 * stdio-common/printf_fp.c (group_number): Remove
34777 internal_function.
34778 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
34779
34780 2017-08-31 Florian Weimer <fweimer@redhat.com>
34781
34782 * posix/fnmatch.c (internal_function): Remove definition.
34783 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
34784 * posix/regcomp.c (peek_token, init_word_char)
34785 (duplicate_node_closure, fetch_token, peek_token)
34786 (peek_token_bracket, build_range_exp, build_collating_symbol):
34787 Likewise.
34788 * posix/regex_internal.c (re_string_construct_common)
34789 (create_ci_newstate, create_cd_newstate, re_string_allocate)
34790 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
34791 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
34792 (re_string_translate_buffer, re_string_reconstruct)
34793 (re_string_peek_byte_case, re_string_fetch_byte_case)
34794 (re_string_destruct, re_string_context_at, re_node_set_alloc)
34795 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
34796 (re_node_set_add_intersect, re_node_set_init_union)
34797 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
34798 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
34799 (re_dfa_add_node, calc_state_hash, re_acquire_state)
34800 (re_acquire_state_context): Likewise.
34801 * posix/regex_internal.h (internal_function): Remove definition.
34802 (re_string_realloc_buffers, build_wcs_buffer)
34803 (build_wcs_upper_buffer, build_upper_buffer)
34804 (re_string_translate_buffer, re_string_context_at)
34805 (re_string_char_size_at, re_string_wchar_at)
34806 (re_string_elem_size_at): Likewise.
34807 * posix/regexec.c (match_ctx_init, match_ctx_clean)
34808 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
34809 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
34810 (re_search_internal, re_search_2_stub, re_search_stub)
34811 (re_copy_regs, prune_impossible_nodes, check_matching)
34812 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
34813 (free_fail_stack_return, sift_states_iter_mb)
34814 (sift_states_backward, build_sifted_states)
34815 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
34816 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
34817 (check_subexp_limits, sift_states_bkref, merge_state_array)
34818 (find_recover_state, transit_state, merge_state_with_log)
34819 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
34820 (transit_state_mb, transit_state_bkref, get_subexp)
34821 (get_subexp_sub, find_subexp_node, check_arrival)
34822 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
34823 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
34824 (check_node_accept_bytes, find_collation_sequence_value)
34825 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
34826 (acquire_init_state_context, check_halt_node_context)
34827 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
34828 (sub_epsilon_src_nodes): Likewise.
34829 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
34830 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
34831 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
34832 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
34833 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
34834 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
34835 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
34836 * sysdeps/posix/ttyname.c (getttyname): Likewise.
34837 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
34838 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
34839 (PREADV): Likewise.
34840 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
34841 (PREADV): Likewise.
34842 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
34843 (PWRITEV): Likewise.
34844 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
34845 (PWRITEV): Likewise.
34846 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
34847 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
34848
34849 2017-08-31 Florian Weimer <fweimer@redhat.com>
34850
34851 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
34852 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
34853 Remove internal_function.
34854 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
34855 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
34856 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
34857 (__deallocate_stack, __libc_pthread_init)
34858 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
34859 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
34860 (__libc_disable_asynccancel, __librt_disable_asynccancel):
34861 Likewise.
34862 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
34863 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
34864 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
34865 Likewise.
34866 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
34867 (__pthread_mutex_unlock_usercnt): Likewise.
34868
34869 2017-08-31 Florian Weimer <fweimer@redhat.com>
34870
34871 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
34872 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
34873 (fts_safe_changedir): Remove internal_function.
34874 * io/ftw.c (internal_function): Remove definition.
34875 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
34876
34877 2017-08-31 Florian Weimer <fweimer@redhat.com>
34878
34879 * inet/deadline.c (__deadline_current_time)
34880 (__deadline_from_timeval, __deadline_to_ms): Remove
34881 internal_function.
34882 * inet/getnameinfo.c (nrl_domainname): Likewise.
34883 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
34884 * inet/inet6_option.c (add_pad): Likewise.
34885 * inet/net-internal.h (__deadline_current_time)
34886 (__deadline_from_timeval, __deadline_to_ms): Likewise.
34887 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
34888 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
34889 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
34890
34891 2017-08-31 Joseph Myers <joseph@codesourcery.com>
34892
34893 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
34894 include <bits/nan.h>.
34895 * math/Makefile (headers): Remove bits/nan.h.
34896 * bits/nan.h: Remove.
34897 * sysdeps/ieee754/bits/nan.h: Likewise.
34898 * sysdeps/mips/bits/nan.h: Likewise.
34899
34900 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
34901 not include <bits/inf.h>.
34902 * math/Makefile (headers): Remove bits/inf.h.
34903 * bits/inf.h: Remove.
34904 * sysdeps/ieee754/bits/inf.h: Likewise.
34905
34906 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
34907 bits/huge_vall.h or bits/huge_val_flt128.h.
34908 (HUGE_VAL): Define directly here.
34909 [__USE_ISOC99] (HUGE_VALF): Likewise.
34910 [__USE_ISOC99] (HUGE_VALL): Likewise.
34911 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
34912 (HUGE_VAL_F128): Likewise.
34913 * math/Makefile (headers): Remove bits/huge_val.h,
34914 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
34915 * bits/huge_val.h: Remove.
34916 * bits/huge_val_flt128.h: Likewise.
34917 * bits/huge_valf.h: Likewise.
34918 * bits/huge_vall.h: Likewise.
34919 * sysdeps/ia64/bits/huge_vall.h: Likewise.
34920 * sysdeps/ieee754/bits/huge_val.h: Likewise.
34921 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
34922 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
34923 * sysdeps/sh/bits/huge_val.h: Likewise.
34924 * sysdeps/sparc/bits/huge_vall.h: Likewise.
34925 * sysdeps/x86/bits/huge_vall.h: Likewise.
34926
34927 2017-08-31 Florian Weimer <fweimer@redhat.com>
34928
34929 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
34930 internal_function.
34931 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
34932 Likewise.
34933 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
34934 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
34935 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
34936 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
34937 * elf/dl-fini.c (_dl_sort_fini): Likewise.
34938 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
34939 * elf/dl-libc.c (dlerror_run): Likewise.
34940 * elf/dl-load.c (add_name_to_object, decompose_rpath)
34941 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
34942 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
34943 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
34944 Likewise.
34945 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
34946 (_dl_higher_prime_number, _dl_strtoul): Likewise.
34947 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
34948 * elf/dl-profile.c (_dl_start_profile): Likewise.
34949 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
34950 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
34951 Likewise.
34952 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
34953 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
34954 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
34955 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
34956 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
34957 (_dl_allocate_tls_storage): Likewise.
34958 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
34959 (_dl_check_all_versions): Likewise.
34960 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
34961 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
34962 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
34963 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34964 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
34965 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
34966 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
34967 internal_function from __dl_start.
34968 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
34969 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
34970 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
34971 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
34972 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
34973 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
34974 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
34975 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
34976 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
34977 (_dl_next_ld_env_entry, _dl_important_hwcaps)
34978 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
34979 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
34980 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
34981 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
34982 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
34983 Likewise.
34984 (struct rtld_global_ro): Remove internal_function from the
34985 _dl_lookup_symbol_x member.
34986 (_dl_symbol_value): Remove. No longer defined anywhere.
34987 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
34988 internal_function.
34989 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
34990 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
34991 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
34992 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
34993 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
34994 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
34995 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
34996 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
34997 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
34998 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
34999 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35000 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35001
35002 2017-08-31 Florian Weimer <fweimer@redhat.com>
35003
35004 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35005 Remove internal_function.
35006 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35007 Likewise.
35008 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35009 Likewise.
35010
35011 2017-08-31 Florian Weimer <fweimer@redhat.com>
35012
35013 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35014 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35015 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35016
35017 2017-08-31 Florian Weimer <fweimer@redhat.com>
35018
35019 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35020 (__gai_enqueue_request): Remove internal_function.
35021 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35022 (__gai_remove_request, __gai_notify, __gai_notify_only)
35023 (__gai_sigqueue): Likewise.
35024 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35025 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35026 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35027 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35028 Likewise.
35029
35030 2017-08-31 Florian Weimer <fweimer@redhat.com>
35031
35032 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35033 * include/dirent.h (__opendirat, __getdents, __getdents64)
35034 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35035 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35036 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35037 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35038 Likewise.
35039 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35040
35041 2017-08-31 Florian Weimer <fweimer@redhat.com>
35042
35043 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35044 internal_function.
35045 (GETCWD_RETURN_TYPE): Likewise.
35046
35047 2017-08-31 Florian Weimer <fweimer@redhat.com>
35048
35049 * include/time.h (__tz_compute, __strptime_internal): Remove
35050 internal_function.
35051 * time/strptime_l.c (__strptime_internal): Likewise.
35052 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35053
35054 2017-08-31 Florian Weimer <fweimer@redhat.com>
35055
35056 * iconv/gconv.c (__gconv): Remove internal_function.
35057 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35058 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35059 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35060 (__gconv_release_cache): Likewise.
35061 * iconv/gconv_close.c (__gconv_close): Likewise.
35062 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35063 (read_conf_file, __gconv_get_path): Likewise.
35064 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35065 (__gconv_release_step, gen_steps, increment_counter)
35066 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35067 (__gconv_close_transform, free_modules_db): Likewise.
35068 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35069 Likewise.
35070 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35071 (__gconv_find_transform, __gconv_lookup_cache)
35072 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35073 (__gconv_close_transform, __gconv_release_cache)
35074 (__gconv_loaded_object, __gconv_release_shlib)
35075 (__gconv_compare_alias): Likewise.
35076 * iconv/gconv_open.c (__gconv_open): Likewise.
35077 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35078 * iconv/iconvconfig.c (add_module): Likewise.
35079 * intl/dcigettext.c (plural_lookup, guess_category_value)
35080 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35081 * intl/eval-plural.h (plural_eval): Likewise.
35082 * intl/finddomain.c (_nl_find_domain): Likewise.
35083 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35084 (_nl_load_domain, _nl_find_msg): Likewise.
35085 (internal_function): Remove definition.
35086 * intl/loadinfo.h (internal_function): Likewise.
35087 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35088 internal_function.
35089 * intl/localealias.c (internal_function): Remove definition.
35090 (read_alias_file): Remove internal_function.
35091 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35092 * intl/plural-exp.h (internal_function): Remove definition.
35093 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35094 internal_function.
35095 * intl/plural.c: Regenerate.
35096 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35097 * locale/coll-lookup.c (__collidx_table_lookup)
35098 (__collseq_table_lookup): Likewise.
35099 * locale/coll-lookup.h (__collidx_table_lookup)
35100 (__collseq_table_lookup): Likewise.
35101 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35102 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35103 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35104 (_nl_unload_locale): Likewise.
35105 * locale/localeinfo.h (struct __locale_data): Remove
35106 internal_function from cleanup member.
35107 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35108 (_nl_remove_locale, _nl_load_locale_from_archive)
35109 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35110 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35111 (_nl_cleanup_time): Remove internal_function.
35112 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35113 (_nl_parse_alt_digit): Likewise.
35114 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35115 (_nl_select_era_entry): Likewise.
35116 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35117 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35118 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35119 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35120 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
35121
35122 2017-08-31 Florian Weimer <fweimer@redhat.com>
35123
35124 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35125 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35126 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35127 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35128 Likewise.
35129 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35130 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35131 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35132 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35133 Likewise.
35134 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35135
35136 2017-08-31 Florian Weimer <fweimer@redhat.com>
35137
35138 * misc/getttyent.c (skip, value): Remove internal_function.
35139 * misc/syslog.c (openlog_internal): Likewise.
35140 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35141
35142 2017-08-31 Florian Weimer <fweimer@redhat.com>
35143
35144 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35145 (__nss_rewrite_field): Remove internal_function.
35146 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35147 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35148 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35149 * nss/nsswitch.c (nss_parse_file, nss_getline)
35150 (nss_parse_service_list, nss_new_service): Likewise.
35151 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35152 * nss/valid_field.c (__nss_valid_field): Likewise.
35153 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35154
35155 2017-08-31 Florian Weimer <fweimer@redhat.com>
35156
35157 * malloc/arena.c (__malloc_fork_lock_parent)
35158 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35159 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35160 internal_function from defintions.
35161 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35162 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35163 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35164 internal_function from declarations.
35165 * malloc/malloc.c (internal_function): Do not define.
35166 (mem2mem_check): Remove internal_function from declaration.
35167 (munmap_chunk, mremap_chunk): Remove internal_function.
35168 * malloc/mtrace.c (tr_where): Likewise.
35169
35170 2017-08-31 Florian Weimer <fweimer@redhat.com>
35171
35172 * include/rpc/pmap_clnt.h (__get_socket): Remove
35173 internal_function.
35174 * sunrpc/auth_des.c (synchronize): Likewise.
35175 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35176 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35177 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35178 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35179 (key_call): Likewise.
35180 * sunrpc/pm_getport.c (__get_socket): Likewise.
35181 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35182 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35183 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35184 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35185 (invalidate): Likewise.
35186 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35187 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35188 (set_input_fragment, get_input_bytes): Likewise.
35189
35190 2017-08-31 Florian Weimer <fweimer@redhat.com>
35191
35192 * malloc/malloc.c (_int_free): Remove locked variable and related
35193 asserts.
35194
35195 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35196
35197 [BZ #22051]
35198 * Makerules (build-module-helper-objlist): Filter out
35199 $(elf-objpfx)sofini.os.
35200 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35201 needed.
35202
35203 2017-08-31 Florian Weimer <fweimer@redhat.com>
35204
35205 * libio/fcloseall.c: Assume weak_alias is defined.
35206 * libio/feof.c: Likewise.
35207 * libio/fileno.c: Likewise.
35208 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35209 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35210 definitions.
35211 (_IO_file_open): Call __open directly.
35212 (_IO_new_file_sync): Assume ESPIPE is defined.
35213 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35214 (_IO_new_file_write): Call __write directly.
35215 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35216 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35217 * libio/genops.c: Assume _LIBC is defined.
35218 (save_for_backup): Remove internal_function.
35219 * libio/getc.c: Assume weak_alias is defined.
35220 * libio/getwc.c: Likewise.
35221 * libio/iofclose.c: Assume _LIBC is defined.
35222 * libio/iofdopen.c: Likewise.
35223 (_IO_fcntl): Remove macro definition.
35224 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35225 Call __fcntl directly.
35226 * libio/iofflush.c: Assume weak_alias is defined.
35227 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35228 defined.
35229 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35230 * libio/iofgets.c: Likewise.
35231 * libio/iofopen.c: Assume _LIBC is defined.
35232 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35233 * libio/iofputs.c: Assume weak_alias is defined.
35234 * libio/iofread.c: Likewise.
35235 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35236 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35237 * libio/ioftell.c: Assume weak_alias is defined.
35238 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35239 * libio/iofwide.c: Assume _LIBC is defined.
35240 (_IO_fwide): Drop SHARED conditional because it is implied by
35241 SHLIB_COMPAT.
35242 * libio/iofwrite.c: Assume weak_alias is defined.
35243 * libio/iogetdelim.c: Likewise.
35244 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35245 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35246 (_IO_getwline): Call __wmemcpy directly.
35247 * libio/iopopen.c: Assume _LIBC is defined.
35248 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35249 (_IO_close): Remove macro definitions.
35250 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35251 _exit directly.
35252 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35253 directly.
35254 * libio/ioputs.c: Assume weak_alias is defined.
35255 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35256 * libio/iosetbuffer.c: Assume weak_alias is defined.
35257 * libio/iosetvbuf.c: Likewise.
35258 * libio/ioungetc.c: Likewise.
35259 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35260 libc_hidden_def, libc_hidden_weak, NULL are defined.
35261 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35262 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35263 defined.
35264 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35265 definitions.
35266 (_IO_old_file_init_internal): Drop SHARED conditional because it
35267 is implied by SHLIB_COMPAT.
35268 (_IO_old_file_fopen): Call __open directly.
35269 (_IO_old_file_sync): Assume ESPIPE is defined.
35270 (_IO_old_file_write): Call __write directly.
35271 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35272 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35273 Call __fcntl directly.
35274 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35275 (_IO_old_fgetpos): Assume EIO is defined.
35276 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35277 (_IO_old_fgetpos64): Assume EIO is defined.
35278 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35279 (_IO_old_fsetpos): Assume EIO is defined.
35280 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35281 (_IO_old_fsetpos64): Assume EIO is defined.
35282 * libio/oldiopopen.c: Assume _LIBC is defined.
35283 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35284 (_IO_close): Remove macro definitions.
35285 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35286 directly.
35287 (_IO_old_proc_close): Call __close, __waitpid directly.
35288 * libio/put.c: Assume weak_alias is defined.
35289 * libio/stdfiles.c: Assume _LIBC is defined.
35290 * libio/stdio.c: Likewise.
35291 * libio/wfileops.c: Likewise.
35292 (_IO_wfile_sync): Assume ESPIPE is defined.
35293 * libio/wgenops.c: Assume _LIBC is defined.
35294 (save_for_wbackup): Remove internal_function.
35295
35296 2017-08-31 Florian Weimer <fweimer@redhat.com>
35297
35298 * malloc/malloc.c (top_check): Change return type to void. Remove
35299 internal_function.
35300 * malloc/hooks.c (top_check): Likewise.
35301 (malloc_check, realloc_check, memalign_check): Adjust.
35302
35303 2017-08-30 Joseph Myers <joseph@codesourcery.com>
35304
35305 [BZ #21457]
35306 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35307 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35308 sigcontext and namespace requirements.
35309 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35310 * sysdeps/m68k/sys/ucontext.h: Likewise.
35311 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35312 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35313 <bits/sigcontext.h>.
35314 (__ctx): Define earlier.
35315 (mcontext_t): Define structure contents rather than using struct
35316 sigcontext.
35317 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35318 __glibc_reserved1 instead of __reserved.
35319 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35320 <bits/sigcontext.h>.
35321 (__ctx): Define earlier.
35322 (mcontext_t): Define structure contents rather than using struct
35323 sigcontext.
35324 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35325 mcontext_t instead of struct sigcontext.
35326 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35327 <bits/sigcontext.h>.
35328 (__ctx): Define earlier.
35329 (mcontext_t): Define structure contents rather than using struct
35330 sigcontext.
35331 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35332 <bits/sigcontext.h>.
35333 (__ctx): Define earlier.
35334 (mcontext_t): Define structure contents rather than using struct
35335 sigcontext.
35336 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35337 mcontext_t instead of struct sigcontext.
35338 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35339 mcontext_t instead of struct sigcontext.
35340 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35341 <bits/sigcontext.h>.
35342 (__ctx): New macro.
35343 (struct __ia64_fpreg_mcontext): New type.
35344 (mcontext_t): Define structure contents rather than using struct
35345 sigcontext.
35346 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35347 (uc_sigmask): Define using __ctx.
35348 (uc_stack): Likewise.
35349 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35350 <bits/sigcontext.h>.
35351 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35352 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35353 <bits/sigcontext.h>.
35354 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35355 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35356 <bits/sigcontext.h>.
35357 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35358 <bits/sigcontext.h>.
35359 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35360 <bits/sigcontext.h>.
35361 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35362 <bits/sigcontext.h>.
35363 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35364 <bits/sigcontext.h>.
35365 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35366 <bits/sigcontext.h>.
35367 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35368 <bits/sigcontext.h>.
35369 (__ctx): Define earlier.
35370 (mcontext_t): Define structure contents rather than using struct
35371 sigcontext.
35372 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35373 <bits/sigcontext.h>. Include <bits/types.h>.
35374 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35375 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35376 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35377 (test-xfail-UNIX98/signal.h/conform): Likewise.
35378 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35379 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35380 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35381 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35382 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35383 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35384 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35385 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35386 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35387
35388 2017-08-30 Florian Weimer <fweimer@redhat.com>
35389
35390 * malloc/dynarray_emplace_enlarge.c
35391 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35392 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35393 * malloc/tst-dynarray.c (test_long_overflow): New function.
35394 (do_test): Call it.
35395
35396 2017-08-30 Florian Weimer <fweimer@redhat.com>
35397
35398 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35399 (set_arena_corrupt): Remove definitions.
35400 (mtrim): Do not check for corrupt arena.
35401 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35402 Likewise.
35403
35404 2017-08-30 Florian Weimer <fweimer@redhat.com>
35405
35406 [BZ #21754]
35407 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35408 check_action.
35409 (ptmalloc_init): Do not set or use check_action.
35410 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35411 call to malloc_printerr. Remove return statement.
35412 (free_check): Likewise. Remove arena unlock.
35413 (top_check): Update comment. Adjust call to malloc_printerr.
35414 Remove heap repair code.
35415 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35416 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35417 (sysmalloc): Adjust call to malloc_printerr.
35418 (munmap_chunk, __libc_realloc): Likewise. Remove return
35419 statement.
35420 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35421 Remove errout label and corresponding gotos.
35422 (_int_free): Likewise. Remove arena unlock.
35423 (do_set_mallopt_check): Do not set check_action.
35424 (malloc_printerr): Adjust parameter list. Do not mark arena as
35425 corrupt.
35426 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35427 comment.
35428 * manual/probes.texi (Memory Allocation Probes): Remove
35429 memory_mallopt_check_action.
35430
35431 2017-08-30 Steve Ellcey <sellcey@cavium.com>
35432
35433 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35434 Use pointer to uint64_t instead of long int for sp.
35435
35436 2017-08-30 Florian Weimer <fweimer@redhat.com>
35437
35438 [BZ #21754]
35439 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35440 without printing a backtrace. Do not leak any information in the
35441 error message.
35442 * manual/memory.texi (Heap Consistency Checking): Update.
35443 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35444
35445 2017-08-30 Florian Weimer <fweimer@redhat.com>
35446
35447 Do not scale NPTL tests with available number of CPUs.
35448 * nptl/tst-cond16.c (count): Set to constant value of 8.
35449 * nptl/tst-cond18.c (count): Likewise.
35450
35451 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35452
35453 [BZ #22035]
35454 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35455 Define to take a second argument that is a macro that
35456 concatentates a suffix, not the suffix itself.
35457 (__CONCAT_d): New macro.
35458 (__CONCAT_f): Likewise.
35459 (__CONCAT_l): Likewise.
35460
35461 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35462
35463 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35464 by child.
35465
35466 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35467 Aurelien Jarno <aurelien@aurel32.net>
35468 Maciej W. Rozycki <macro@imgtec.com>
35469
35470 [BZ #21956]
35471 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35472 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35473 `mips16-syscall6' and `mips16-syscall7'.
35474 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35475 (CFLAGS-mips16-syscall7.c): Remove.
35476 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35477 Remove `__mips16_syscall5', `__mips16_syscall6' and
35478 `__mips16_syscall7'.
35479 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35480 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35481 `__mips_syscall_return'.
35482 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35483 (__mips16_syscall1): Likewise.
35484 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35485 (__mips16_syscall2): Likewise.
35486 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35487 (__mips16_syscall3): Likewise.
35488 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35489 (__mips16_syscall4): Likewise.
35490 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35491 Remove.
35492 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35493 Remove.
35494 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35495 Remove.
35496 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35497 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35498 `__mips16_syscall5'. Remove prototype.
35499 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35500 `__mips16_syscall6'. Remove prototype.
35501 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35502 `__mips16_syscall7'. Remove prototype.
35503 (__nomips16, __mips16_syscall_return): Move to...
35504 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35505 (__nomips16, __mips_syscall_return): ... here.
35506 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35507 `__mips16_syscall_return' to `__mips_syscall_return'.
35508 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35509 `internal_syscall##nr'.
35510 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35511 `internal_syscall##nr'.
35512 (FORCE_FRAME_POINTER): Remove.
35513 (__mips_syscall5): New prototype.
35514 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35515 (__mips_syscall6): New prototype.
35516 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35517 (__mips_syscall7): New prototype.
35518 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35519 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35520 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35521 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35522 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35523 (sysdep_routines): Add libc-do-syscall.
35524 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35525 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35526
35527 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35528
35529 [BZ #21672]
35530 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35531 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35532 (advise_stack_range): New function.
35533 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35534 stack non required to advise_stack_range at allocatestack.c
35535
35536 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35537
35538 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35539
35540 2017-08-29 Florian Weimer <fweimer@redhat.com>
35541
35542 [BZ #22026]
35543 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35544 __end_fct. Mangle __end_fct after setting it to NULL.
35545 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35546 (modules-names, modules-names-tests): Add
35547 tst-gconv-init-failure-mod.
35548 (gconv-modules): New target.
35549 (tst-gconv-init-failure-mod.so): Link against libsupport.
35550 (tst-gconv-init-failure): Depend on gconv-modules,
35551 tst-gconv-init-failure-mod.so.
35552 * iconv/tst-gconv-init-failure-mod.c: New file.
35553 * iconv/tst-gconv-init-failure.c: Likewise.
35554 * iconv/test-gconv-modules: Likewise.
35555
35556 2017-08-29 Florian Weimer <fweimer@redhat.com>
35557
35558 [BZ #22025]
35559 * iconv/gconv_db.c (free_derivation): Remove redundant
35560 parentheses.
35561 (gen_steps): Unconditionally mangle __btowc_fct after
35562 initialization.
35563 (increment_counter): Likewise. Do not call init_fct for internal
35564 modules.
35565
35566 2017-08-29 Joseph Myers <joseph@codesourcery.com>
35567
35568 [BZ #22028]
35569 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35570 (_MSUF_): Remove macro.
35571 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35572 Likewise.
35573 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35574 (__REDIRFROM_X): New macro.
35575 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35576 Likewise.
35577 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35578 (__REDIRTO_X): Likewise.
35579 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35580 arguments.
35581 (__MATH_REDIRCALL_2): Likewise.
35582 (__MATH_REDIRCALL_INTERNAL): Likewise.
35583 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35584 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35585 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35586 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35587 * math/test-finite-macros.c: New file.
35588 * math/Makefile (tests): Add test-finite-macros.
35589 (CFLAGS-test-finite-macros.c): New variable.
35590
35591 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
35592 Jeff Law <law@redhat.com>
35593
35594 [BZ #22025]
35595 Mangle NULL pointers in iconv/gconv.
35596 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35597 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35598 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35599 is non-NULL before demangling the end_fct. Check for NULL
35600 end_fct after demangling.
35601 (__gconv_release_step): Demangle the end_fct before checking
35602 it for NULL. Remove assert on __shlibc_handle != NULL.
35603 (gen_steps): Don't check btowc_fct for NULL before mangling.
35604 Demangle init_fct before checking for NULL.
35605 (increment_counter): Likewise.
35606 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35607 end_fct for NULL before mangling.
35608 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35609 for NULL.
35610
35611 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
35612
35613 [BZ #21971]
35614 * locale/iso-639.def: add Morisyen.
35615
35616 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35617
35618 [BZ #21930]
35619 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35620 (iszero): New C++ implementation that does not use
35621 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35622 signaling nans are enabled, since __builtin_types_compatible_p
35623 is a C-only feature.
35624 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35625 defined, include ieee754_float128.h for access to the union and
35626 member ieee854_float128.ieee.
35627 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35628 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35629 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35630 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35631 options of test-math-zero on powerpc64le.
35632
35633 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35634
35635 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35636 Change double to float.
35637
35638 2017-08-28 Joseph Myers <joseph@codesourcery.com>
35639
35640 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35641 unconditional.
35642 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35643 conditional code; define contents only for [LIBM_SVID_COMPAT].
35644
35645 2017-08-28 Florian Weimer <fweimer@redhat.com>
35646
35647 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35648 (abi-lp64_be-options): Remove.
35649 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35650 (abi-hard-options): Likewise.
35651 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
35652 (abi-o32_hard-options, abi-o32_soft_2008-options)
35653 (abi-o32_hard_2008-options, abi-n32_soft-options)
35654 (abi-n32_hard-options, abi-n32_soft_2008-options)
35655 (abi-n32_hard_2008-options, abi-n64_soft-options)
35656 (abi-n64_hard-options, abi-n64_soft_2008-options)
35657 (abi-n64_hard_2008-options): Likewise.
35658 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
35659 (abi-64-v1-options, abi-64-v2-options): Likewise.
35660 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
35661 (abi-64-options): Likewise.
35662 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
35663 (abi-64-options): Likewise.
35664 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
35665 (abi-64-options): Likewise.
35666 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
35667 (abi-64-options, abi-x32-options): Likewise.
35668
35669 2017-08-28 Florian Weimer <fweimer@redhat.com>
35670
35671 Store supported list of SYS_* system calls in the source tree.
35672 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
35673 (bits/syscall.h): Generate from list file.
35674 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
35675 [$(subdir) = misc] (tests): Add tst-syscall-list.
35676 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
35677 [$(subdir) = misc] (tst-syscall-list-macros.list)
35678 [$(subdir) = misc] (tst-syscall-list-nr.list)
35679 (tst-syscall-list-sys.list): Helper targets for new
35680 tst-syscall-list test.
35681 [$(subdir) = misc] (tst-syscall-list.out): Run test script
35682 tst-syscall-list.sh.
35683 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
35684 target. Do not include bits/syscall.d.
35685 [$(subdir) = misc] (generated): Do not update.
35686 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
35687 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
35688 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
35689 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
35690
35691 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
35692
35693 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
35694 (tst-cxa_atexit, tst-on_exit): Likewise.
35695 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
35696 tst-cxa_atexit, and tst-on_exit.
35697 * stdlib/tst-atexit-common.c: New file.
35698 * stdlib/tst-atexit.c: New file.
35699 * stdlib/tst-at_quick_exit.c: New file.
35700 * stdlib/tst-cxa_atexit.c: New file.
35701 * stdlib/tst-on_exit.c: New file.
35702
35703 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
35704
35705 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
35706 * mach/stack_chk_fail_local.c: New file.
35707 * hurd/stack_chk_fail_local.c: New file.
35708 * mach/Machrules ($(interface-library)-routines): Add
35709 stack_chk_fail_local.
35710 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
35711 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
35712 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
35713 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
35714 * hurd/Makefile (CFLAGS-hurdstartup.o,
35715 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
35716
35717 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
35718
35719 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
35720 (index_cpu_*, index_arch_*): Removed.
35721
35722 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
35723
35724 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
35725 Use uint64_t instead of unsigned long.
35726
35727 2017-08-25 Joseph Myers <joseph@codesourcery.com>
35728
35729 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
35730 [__HAVE_DISTINCT_FLOAT128].
35731
35732 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
35733 of <bits/math-finite.h>.
35734 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
35735 inclusion of <bits/math-finite.h>.
35736 * math/bits/math-finite.h (__REDIRTO_X): Do not define
35737 conditionally on [__MATH_DECLARING_LDOUBLE && defined
35738 __NO_LONG_DOUBLE_MATH].
35739 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
35740 (__MATH_REDIRCALL_2): Likewise.
35741 (__MATH_REDIRCALL_INTERNAL): Likewise.
35742 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35743 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
35744 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35745
35746 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
35747 Remove file.
35748 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
35749 Likewise.
35750 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
35751 Likewise.
35752 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
35753 Likewise.
35754 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
35755 Likewise.
35756 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
35757 Likewise.
35758 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
35759 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
35760 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
35761 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
35762 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
35763 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
35764 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
35765 w_sqrtf_compat-ppc32.
35766
35767 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35768
35769 * math/math.h [defined __cplusplus] (issignaling): In the long
35770 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
35771 is not defined. Call __issignaling, otherwise.
35772
35773 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35774
35775 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
35776 syscall definitions and replace __builtin_expect with __glibc_likely.
35777 * sysdeps/unix/syscall-template.S: Update comment about cancellable
35778 syscall.
35779 (SYSCALL_CANCELLABLE): Removedefinition
35780 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
35781 definition.
35782 (PSEUDO_END): Likewise.
35783 [IS_IN (libpthread)] (CENABLE): Likewise.
35784 [IS_IN (libpthread)] (CDISABLE): Likewise.
35785 [IS_IN (libc)] (CENABLE): Likewise.
35786 [IS_IN (libc)] (CENABLE): Likewise.
35787 [IS_IN (librt)] (CDISABLE): Likewise.
35788 [IS_IN (librt)] (CDISABLE): Likewise.
35789 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35790 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
35791 definition.
35792 (PSEUDO_END): Likewise.
35793 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
35794 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
35795 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35796 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
35797 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35798 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
35799 (CENABLE): Likewise.
35800 (CDISABLE): Likewise.
35801 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35802 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
35803 defintion.
35804 (PSEUDO_END): Likewise.
35805 [IS_IN (libpthread)] (CENABLE): Likewise.
35806 [IS_IN (libpthread)] (CDISABLE): Likewise.
35807 [IS_IN (libc)] (CENABLE): Likewise.
35808 [IS_IN (libc)] (CENABLE): Likewise.
35809 [IS_IN (librt)] (CDISABLE): Likewise.
35810 [IS_IN (librt)] (CDISABLE): Likewise.
35811 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35812 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
35813 definition.
35814 (PSEUDO_END): Likewise.
35815 [IS_IN (libpthread)] (CENABLE): Likewise.
35816 [IS_IN (libpthread)] (CDISABLE): Likewise.
35817 [IS_IN (libc)] (CENABLE): Likewise.
35818 [IS_IN (libc)] (CENABLE): Likewise.
35819 [IS_IN (librt)] (CDISABLE): Likewise.
35820 [IS_IN (librt)] (CDISABLE): Likewise.
35821 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35822 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
35823 definition.
35824 (PSEUDO_END): Likewise.
35825 [IS_IN (libpthread)] (CENABLE): Likewise.
35826 [IS_IN (libpthread)] (CDISABLE): Likewise.
35827 [IS_IN (libc)] (CENABLE): Likewise.
35828 [IS_IN (libc)] (CENABLE): Likewise.
35829 [IS_IN (librt)] (CDISABLE): Likewise.
35830 [IS_IN (librt)] (CDISABLE): Likewise.
35831 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35832 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
35833 definition.
35834 (PSEUDO_END): Likewise.
35835 [IS_IN (libpthread)] (CENABLE): Likewise.
35836 [IS_IN (libpthread)] (CDISABLE): Likewise.
35837 [IS_IN (libc)] (CENABLE): Likewise.
35838 [IS_IN (libc)] (CENABLE): Likewise.
35839 [IS_IN (librt)] (CDISABLE): Likewise.
35840 [IS_IN (librt)] (CDISABLE): Likewise.
35841 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35842 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
35843 definition.
35844 (PSEUDO_END): Likewise.
35845 [IS_IN (libpthread)] (CENABLE): Likewise.
35846 [IS_IN (libpthread)] (CDISABLE): Likewise.
35847 [IS_IN (libc)] (CENABLE): Likewise.
35848 [IS_IN (libc)] (CENABLE): Likewise.
35849 [IS_IN (librt)] (CDISABLE): Likewise.
35850 [IS_IN (librt)] (CDISABLE): Likewise.
35851 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35852 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
35853 definition.
35854 (PSEUDO_END): Likewise.
35855 [IS_IN (libpthread)] (CENABLE): Likewise.
35856 [IS_IN (libpthread)] (CDISABLE): Likewise.
35857 [IS_IN (libc)] (CENABLE): Likewise.
35858 [IS_IN (libc)] (CENABLE): Likewise.
35859 [IS_IN (librt)] (CDISABLE): Likewise.
35860 [IS_IN (librt)] (CDISABLE): Likewise.
35861 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35862 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
35863 Remove definition.
35864 (PSEUDO_END): Likewise.
35865 [IS_IN (libpthread)] (CENABLE): Likewise.
35866 [IS_IN (libpthread)] (CDISABLE): Likewise.
35867 [IS_IN (libc)] (CENABLE): Likewise.
35868 [IS_IN (libc)] (CENABLE): Likewise.
35869 [IS_IN (librt)] (CDISABLE): Likewise.
35870 [IS_IN (librt)] (CDISABLE): Likewise.
35871 (SINGLE_THREAD_P): Likewise.
35872 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
35873 definition.
35874 (PSEUDO_END): Likewise.
35875 [IS_IN (libpthread)] (CENABLE): Likewise.
35876 [IS_IN (libpthread)] (CDISABLE): Likewise.
35877 [IS_IN (libc)] (CENABLE): Likewise.
35878 [IS_IN (libc)] (CENABLE): Likewise.
35879 [IS_IN (librt)] (CDISABLE): Likewise.
35880 [IS_IN (librt)] (CDISABLE): Likewise.
35881 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35882 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
35883 definition.
35884 (PSEUDO_END): Likewise.
35885 [IS_IN (libpthread)] (CENABLE): Likewise.
35886 [IS_IN (libpthread)] (CDISABLE): Likewise.
35887 [IS_IN (libc)] (CENABLE): Likewise.
35888 [IS_IN (libc)] (CENABLE): Likewise.
35889 [IS_IN (librt)] (CDISABLE): Likewise.
35890 [IS_IN (librt)] (CDISABLE): Likewise.
35891 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35892 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
35893 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
35894 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
35895 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
35896 definition.
35897 (PSEUDO_END): Likewise.
35898 [IS_IN (libpthread)] (CENABLE): Likewise.
35899 [IS_IN (libpthread)] (CDISABLE): Likewise.
35900 [IS_IN (libc)] (CENABLE): Likewise.
35901 [IS_IN (libc)] (CENABLE): Likewise.
35902 [IS_IN (librt)] (CDISABLE): Likewise.
35903 [IS_IN (librt)] (CDISABLE): Likewise.
35904 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35905 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
35906 definition.
35907 (PSEUDO_END): Likewise.
35908 [IS_IN (libpthread)] (CENABLE): Likewise.
35909 [IS_IN (libpthread)] (CDISABLE): Likewise.
35910 [IS_IN (libc)] (CENABLE): Likewise.
35911 [IS_IN (libc)] (CENABLE): Likewise.
35912 [IS_IN (librt)] (CDISABLE): Likewise.
35913 [IS_IN (librt)] (CDISABLE): Likewise.
35914 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35915 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
35916 definition.
35917 (PSEUDO_END): Likewise.
35918 [IS_IN (libpthread)] (CENABLE): Likewise.
35919 [IS_IN (libpthread)] (CDISABLE): Likewise.
35920 [IS_IN (libc)] (CENABLE): Likewise.
35921 [IS_IN (libc)] (CENABLE): Likewise.
35922 [IS_IN (librt)] (CDISABLE): Likewise.
35923 [IS_IN (librt)] (CDISABLE): Likewise.
35924 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35925 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
35926 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
35927 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
35928 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
35929 definition.
35930 (PSEUDO_END): Likewise.
35931 [IS_IN (libpthread)] (CENABLE): Likewise.
35932 [IS_IN (libpthread)] (CDISABLE): Likewise.
35933 [IS_IN (libc)] (CENABLE): Likewise.
35934 [IS_IN (libc)] (CENABLE): Likewise.
35935 [IS_IN (librt)] (CDISABLE): Likewise.
35936 [IS_IN (librt)] (CDISABLE): Likewise.
35937 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35938 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
35939 definition.
35940 (PSEUDO_END): Likewise.
35941 [IS_IN (libpthread)] (CENABLE): Likewise.
35942 [IS_IN (libpthread)] (CDISABLE): Likewise.
35943 [IS_IN (libc)] (CENABLE): Likewise.
35944 [IS_IN (libc)] (CENABLE): Likewise.
35945 [IS_IN (librt)] (CDISABLE): Likewise.
35946 [IS_IN (librt)] (CDISABLE): Likewise.
35947 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
35948
35949 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
35950
35951 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
35952
35953 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35954
35955 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
35956
35957 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35958
35959 [BZ #21982]
35960 * string/stratcliff.c (do_test): Declare size, nchars, inner,
35961 middle and outer with size_t instead of int. Repleace %d and
35962 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
35963 "MAX (outer, nchars - 64)" to support unsigned outer and
35964 nchars. Also exit loop when outer == 0.
35965
35966 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35967
35968 * include/fcntl.h (__fcntl_nocancel): Remove definition.
35969 * include/signal.h (__sigsuspend_nocancel): Likewise.
35970 * include/time.h (__nanosleep_nocancel): Likewise.
35971 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
35972 * login/utmp_file.c: Include non cancellable syscall header.
35973 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
35974 prototype.
35975
35976 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
35977
35978 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
35979 .byte sequences with AVX512F instructions.
35980 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
35981 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
35982 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
35983 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
35984 Likewise.
35985 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
35986 Likewise.
35987
35988 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35989 Steve Ellcey <sellcey@cavium.com>
35990
35991 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
35992 Use PTR_REG macro in cmp instruction.
35993
35994 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35995
35996 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
35997 Change the return type of the ifunc resolver to match the return
35998 type of the target function.
35999
36000 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36001
36002 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36003 (preadv64): Likewise.
36004 (pwrite64(: Likewise.
36005 (pwritev64): Likewise.
36006
36007 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36008 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36009 (LOAD_ARGS_0): Likewise.
36010 (LOAD_ARGS_1): Likewise.
36011 (LOAD_ARGS_2): Likewise.
36012 (LOAD_ARGS_3): Likewise.
36013 (LOAD_ARGS_4): Likewise.
36014 (LOAD_ARGS_5): Likewise.
36015 (LOAD_ARGS_6): Likewise.
36016 (LOAD_REGS_0): Likewise.
36017 (LOAD_REGS_1): Likewise.
36018 (LOAD_REGS_2): Likewise.
36019 (LOAD_REGS_3): Likewise.
36020 (LOAD_REGS_4): Likewise.
36021 (LOAD_REGS_5): Likewise.
36022 (LOAD_REGS_6): Likewise.
36023 (ASM_ARGS_0): Likewise.
36024 (ASM_ARGS_1): Likewise.
36025 (ASM_ARGS_2): Likewise.
36026 (ASM_ARGS_3): Likewise.
36027 (ASM_ARGS_4): Likewise.
36028 (ASM_ARGS_5): Likewise.
36029 (ASM_ARGS_6): Likewise.
36030 (LOAD_ARGS_TYPES_1): Likewise.
36031 (LOAD_ARGS_TYPES_2): Likewise.
36032 (LOAD_ARGS_TYPES_3): Likewise.
36033 (LOAD_ARGS_TYPES_4): Likewise.
36034 (LOAD_ARGS_TYPES_5): Likewise.
36035 (LOAD_ARGS_TYPES_6): Likewise.
36036 (LOAD_REGS_TYPES_1): Likewise.
36037 (LOAD_REGS_TYPES_2): Likewise.
36038 (LOAD_REGS_TYPES_3): Likewise.
36039 (LOAD_REGS_TYPES_4): Likewise.
36040 (LOAD_REGS_TYPES_5): Likewise.
36041 (LOAD_REGS_TYPES_6): Likewise.
36042 (TYPEFY): New define.
36043 (ARGIFY): Likewise.
36044 (internal_syscall0): Likewise.
36045 (internal_syscall1): Likewise.
36046 (internal_syscall2): Likewise.
36047 (internal_syscall3): Likewise.
36048 (internal_syscall4): Likewise.
36049 (internal_syscall5): Likewise.
36050 (internal_syscall6): Likewise.
36051 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36052 (INTERNAL_SYSCALL_NCS): Remove define.
36053 (internal_syscall1): Add define.
36054
36055 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36056
36057 * math/w_remainder_compat.c: Remove duplicate inclusion of
36058 math-svid-compat.h.
36059 * math/w_remainderf_compat.c: Likewise.
36060 * math/w_remainderl_compat.c: Likewise.
36061
36062 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36063
36064 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36065
36066 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36067
36068 [BZ #21684]
36069 * math/tgmath.h (__floating_type): Simplify definitions.
36070 (__real_integer_type): New macro.
36071 (__complex_integer_type): Likewise.
36072 (__expr_is_real): Likewise.
36073 (__tgmath_real_type_sub): Update comment to describe handling of
36074 complex types.
36075 (__tgmath_complex_type_sub): New macro.
36076 (__tgmath_complex_type): Likewise.
36077 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36078 (__TGMATH_CF128): Use __expr_is_real.
36079 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36080 __expr_is_real.
36081 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36082 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36083 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36084 integer types.
36085
36086 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36087
36088 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36089 macro.
36090 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36091 alias.
36092 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36093 Likewise.
36094
36095 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36096 nanosleep_not_cancel with __nanosleep_nocancel.
36097 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36098 (__nanosleep_nocancel): New macro.
36099 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36100 function.
36101 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36102 macro.
36103 (__nanosleep_nocancel): New prototype.
36104
36105 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36106 pause_not_cancel with __pause_nocancel.
36107 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36108 (__pause_nocancel): New macro.
36109 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36110 macro.
36111 (__pause_nocancel): New prototype.
36112 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36113
36114 2017-08-22 Martin Sebor <msebor@redhat.com>
36115
36116 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36117 to return a pointer to the same type as the target function.
36118
36119 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36120
36121 [BZ #18822]
36122 [BZ #21986]
36123 * include/printf.h (__printf_fphex): Add attribute_hidden.
36124 (__guess_grouping): New prototype.
36125 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36126 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36127 libc_hidden_proto and libc_hidden_def.
36128 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36129 (__vstrfmon_l): Remove the third argument passed to
36130 __guess_grouping.
36131
36132 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36133
36134 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36135 definition for issignaling that does not rely on __MATH_TG,
36136 since __MATH_TG uses __builtin_types_compatible_p, which is only
36137 available in C mode.
36138 (CFLAGS-test-math-issignaling.cc): New variable.
36139 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36140 * math/test-math-issignaling.cc: New test for C++ implementation
36141 of type-generic issignaling.
36142 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36143 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36144 options of test-math-issignaling on powerpc64le.
36145
36146 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36147
36148 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36149 building libc.a.
36150 (hidden_proto): Likewise.
36151 (hidden_tls_proto): Likewise.
36152 (__hidden_proto): Likewise.
36153
36154 2017-08-22 Florian Weimer <fweimer@redhat.com>
36155
36156 math: Statically link tests of internal functionality.
36157 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36158 atest-exp2.
36159 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36160 (gmp-objs): Remove assignment.
36161 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36162
36163 2017-08-22 Joseph Myers <joseph@codesourcery.com>
36164
36165 [BZ #21987]
36166 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36167 and copy to ...
36168 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36169 ... here.
36170 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36171 ... and here.
36172
36173 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36174 variable definitions above inclusion of ../Rules.
36175
36176 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36177
36178 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36179 case calling __builtin_unreachable.
36180
36181 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36182
36183 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36184 __waitpid_nocancel.
36185 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36186 (__waitpid_nocancel): New macro.
36187 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36188 macro.
36189 (__waitpid_nocancel): Replace macro with a function.
36190 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36191 function.
36192
36193 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36194 __fcntl_nocancel.
36195 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36196 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36197
36198 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36199 __writev_nocancel_nostatus.
36200 (write_call_graph): Likewise.
36201 (write_bb_counts): Likewise.
36202 * resolv/herror.c (herror): Likewise.
36203 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36204 macro.
36205 (__writev_nocancel_nostatus): New macro.
36206 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36207 Remove macro.
36208 (__writev_nocancel_nostatus): New function.
36209
36210 2017-08-21 Joseph Myers <joseph@codesourcery.com>
36211
36212 Revert:
36213 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36214
36215 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36216 building libc.a.
36217 (hidden_proto): Likewise.
36218 (hidden_tls_proto): Likewise.
36219 (__hidden_proto): Likewise.
36220
36221 [BZ #21973]
36222 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36223 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36225 Likewise.
36226 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36227 Likewise.
36228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36229 Likewise.
36230 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36231 Likewise.
36232 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36233 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36234 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36235 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36236 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36237 GLIBC_2.0 sqrtl symbol.
36238
36239 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36240 [__USE_MISC] (_LIB_VERSION): Likewise.
36241 [__USE_MISC] (struct exception): Likewise.
36242 [__USE_MISC] (matherr): Likewise.
36243 [__USE_MISC] (DOMAIN): Likewise.
36244 [__USE_MISC] (SING): Likewise.
36245 [__USE_MISC] (OVERFLOW): Likewise.
36246 [__USE_MISC] (UNDERFLOW): Likewise.
36247 [__USE_MISC] (TLOSS): Likewise.
36248 [__USE_MISC] (PLOSS): Likewise.
36249 [__USE_MISC] (HUGE): Likewise.
36250 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36251 * math/math-svid-compat.h: New file.
36252 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36253 and matherrl.
36254 * include/math.h [!_ISOMAC] (__matherr): Remove.
36255 * manual/arith.texi (FP Exceptions): Do not document matherr.
36256 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36257 (tests-internal): New variable.
36258 (install-lib): Do not add libieee.a.
36259 (non-lib.a): Likewise.
36260 (extra-objs): Do not add libieee.a and ieee-math.o.
36261 (CPPFLAGS-s_lib_version.c): Remove variable.
36262 ($(objpfx)libieee.a): Remove rule.
36263 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36264 * math/ieee-math.c: Remove.
36265 * math/libm-test-support.c (matherr): Remove.
36266 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36267 and license notices. Include <math-svid-compat.h> and
36268 <shlib-compat.h>.
36269 (matherr): Undefine as macro. Use compat_symbol_reference.
36270 (_LIB_VERSION): Likewise.
36271 * math/test-matherr-2.c: New file.
36272 * math/test-matherr-3.c: Likewise.
36273 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36274 declaration.
36275 (__kernel_standard_f): Likewise.
36276 (__kernel_standard_l): Likewise.
36277 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36278 <math_private.h>. Include <math-svid-compat.h>.
36279 (_LIB_VERSION): Undefine as macro.
36280 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36281 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36282 [LIBM_SVID_COMPAT], use compat_symbol.
36283 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36284 <math_private.h>. Include <math-svid-compat.h>.
36285 (matherr): Undefine as macro.
36286 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36287 compat_symbol.
36288 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36289 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36290 compat_symbol_reference.
36291 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36292 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36293 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36294 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36295 (MATHERR_D): Remove declaration.
36296 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36297 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36298 [LIBM_BUILD] (pmatherrf): Likewise.
36299 [LIBM_BUILD] (pmatherr): Likewise.
36300 [LIBM_BUILD] (pmatherrl): Likewise.
36301 (DOMAIN): Likewise.
36302 (SING): Likewise.
36303 (OVERFLOW): Likewise.
36304 (UNDERFLOW): Likewise.
36305 (TLOSS): Likewise.
36306 (PLOSS): Likewise.
36307 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36308 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36309 compat_symbol.
36310 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36311 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36312 compat_symbol.
36313 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36314 * math/w_acos_compat.c: Likewise.
36315 * math/w_acosf_compat.c: Likewise.
36316 * math/w_acosh_compat.c: Likewise.
36317 * math/w_acoshf_compat.c: Likewise.
36318 * math/w_acoshl_compat.c: Likewise.
36319 * math/w_acosl_compat.c: Likewise.
36320 * math/w_asin_compat.c: Likewise.
36321 * math/w_asinf_compat.c: Likewise.
36322 * math/w_asinl_compat.c: Likewise.
36323 * math/w_atan2_compat.c: Likewise.
36324 * math/w_atan2f_compat.c: Likewise.
36325 * math/w_atan2l_compat.c: Likewise.
36326 * math/w_atanh_compat.c: Likewise.
36327 * math/w_atanhf_compat.c: Likewise.
36328 * math/w_atanhl_compat.c: Likewise.
36329 * math/w_cosh_compat.c: Likewise.
36330 * math/w_coshf_compat.c: Likewise.
36331 * math/w_coshl_compat.c: Likewise.
36332 * math/w_exp10_compat.c: Likewise.
36333 * math/w_exp10f_compat.c: Likewise.
36334 * math/w_exp10l_compat.c: Likewise.
36335 * math/w_exp2_compat.c: Likewise.
36336 * math/w_exp2f_compat.c: Likewise.
36337 * math/w_exp2l_compat.c: Likewise.
36338 * math/w_fmod_compat.c: Likewise.
36339 * math/w_fmodf_compat.c: Likewise.
36340 * math/w_fmodl_compat.c: Likewise.
36341 * math/w_hypot_compat.c: Likewise.
36342 * math/w_hypotf_compat.c: Likewise.
36343 * math/w_hypotl_compat.c: Likewise.
36344 * math/w_j0_compat.c: Likewise.
36345 * math/w_j0f_compat.c: Likewise.
36346 * math/w_j0l_compat.c: Likewise.
36347 * math/w_j1_compat.c: Likewise.
36348 * math/w_j1f_compat.c: Likewise.
36349 * math/w_j1l_compat.c: Likewise.
36350 * math/w_jn_compat.c: Likewise.
36351 * math/w_jnf_compat.c: Likewise.
36352 * math/w_jnl_compat.c: Likewise.
36353 * math/w_lgamma_main.c: Likewise.
36354 * math/w_lgamma_r_compat.c: Likewise.
36355 * math/w_lgammaf_main.c: Likewise.
36356 * math/w_lgammaf_r_compat.c: Likewise.
36357 * math/w_lgammal_main.c: Likewise.
36358 * math/w_lgammal_r_compat.c: Likewise.
36359 * math/w_log10_compat.c: Likewise.
36360 * math/w_log10f_compat.c: Likewise.
36361 * math/w_log10l_compat.c: Likewise.
36362 * math/w_log2_compat.c: Likewise.
36363 * math/w_log2f_compat.c: Likewise.
36364 * math/w_log2l_compat.c: Likewise.
36365 * math/w_log_compat.c: Likewise.
36366 * math/w_logf_compat.c: Likewise.
36367 * math/w_logl_compat.c: Likewise.
36368 * math/w_pow_compat.c: Likewise.
36369 * math/w_powf_compat.c: Likewise.
36370 * math/w_powl_compat.c: Likewise.
36371 * math/w_remainder_compat.c: Likewise.
36372 * math/w_remainderf_compat.c: Likewise.
36373 * math/w_remainderl_compat.c: Likewise.
36374 * math/w_scalb_compat.c: Likewise.
36375 * math/w_scalbf_compat.c: Likewise.
36376 * math/w_scalbl_compat.c: Likewise.
36377 * math/w_sinh_compat.c: Likewise.
36378 * math/w_sinhf_compat.c: Likewise.
36379 * math/w_sinhl_compat.c: Likewise.
36380 * math/w_sqrt_compat.c: Likewise.
36381 * math/w_sqrtf_compat.c: Likewise.
36382 * math/w_sqrtl_compat.c: Likewise.
36383 * math/w_tgamma_compat.c: Likewise.
36384 * math/w_tgammaf_compat.c: Likewise.
36385 * math/w_tgammal_compat.c: Likewise.
36386 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36387 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36388 * sysdeps/ieee754/k_standard.c: Likewise.
36389 * sysdeps/ieee754/k_standardf.c: Likewise.
36390 * sysdeps/ieee754/k_standardl.c: Likewise.
36391 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36392 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36393 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36394 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36395 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36396 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36397 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36398 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36399 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36400 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36401 Likewise.
36402 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36403 Likewise.
36404 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36405 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36406 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36407 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36408
36409 2017-08-21 Florian Weimer <fweimer@redhat.com>
36410
36411 [BZ #21864]
36412 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36413 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36414 Move before inclusion of ../Rules.
36415
36416 2017-08-21 Florian Weimer <fweimer@redhat.com>
36417
36418 [BZ #21972]
36419 * assert/assert.h (assert): Use static_cast (bool) for C++.
36420 Use the ternary operator in the warning branch for GNU C.
36421 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36422 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36423 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36424 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36425 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36426
36427 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36428
36429 [BZ #18822]
36430 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36431 (__syscall_clock_gettime): Add attribute_hidden.
36432 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36433 (__start_context): Likewise.
36434
36435 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36436
36437 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36438 building libc.a.
36439 (hidden_proto): Likewise.
36440 (hidden_tls_proto): Likewise.
36441 (__hidden_proto): Likewise.
36442
36443 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36444
36445 * include/libc-symbols.h (attribute_hidden): Enable hidden
36446 visibility in libc.a compiled with PIE.
36447
36448 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36449
36450 [BZ #18822]
36451 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36452 Add attribute_hidden.
36453
36454 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36455
36456 [BZ #21864]
36457 * Makerules (all-nonlib): Add $(others-extras).
36458 * catgets/Makefile (others-extras): New.
36459 * elf/Makefile (others-extras): Likewise.
36460 * nss/Makefile (others-extras): Likewise.
36461
36462 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36463
36464 [BZ #18822]
36465 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36466 * elf/dl-open.c: Include <libc-internal.h>.
36467 (__libc_multiple_libcs): Removed.
36468 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36469 <hp-timing.h>.
36470 * include/libc-internal.h (__libc_multiple_libcs): New.
36471 * misc/sbrk.c: Include <libc-internal.h>.
36472 (__libc_multiple_libcs): Removed.
36473
36474 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36475
36476 [BZ #18822]
36477 * grp/initgroups.c (__nss_group_database): Removed.
36478 (__nss_initgroups_database): Likewise.
36479 * nscd/gai.c (__nss_hosts_database): Likewise.
36480 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36481 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36482 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36483 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36484 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36485 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36486 attribute_hidden.
36487 * nss/nsswitch.c (__nss_database_custom): Define only if
36488 USE_NSCD is defined.
36489 (__nss_configure_lookup): Use __nss_database_custom only if
36490 USE_NSCD is defined.
36491 * nss/nsswitch.h (__nss_database_custom): Declare only if
36492 USE_NSCD is defined. Add attribute_hidden.
36493 (__nss_setent): Add attribute_hidden.
36494 (__nss_endent): Likewise.
36495 (__nss_getent_r): Likewise.
36496 (__nss_getent): Likewise.
36497 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36498
36499 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36500
36501 [BZ #18822]
36502 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36503 libc_hidden_proto and libc_hidden_def.
36504
36505 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36506
36507 [BZ #18822]
36508 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36509 Add libc_hidden_proto.
36510 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36511 Add libc_hidden_def.
36512
36513 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36514
36515 [BZ #21974]
36516 * gmon/Makefile (routines): Remove bb_init_func and
36517 bb_exit_func.
36518 (elide-routines.os): Removed.
36519 * gmon/bb_exit_func.c: Likewise.
36520 * gmon/bb_init_func.c: Likewise.
36521 * include/sys/gmon.h (__bb): Likewise.
36522 (__bb_init_func): Likewise.
36523 (__bb_exit_func): Likewise.
36524 * sysdeps/alpha/bb_init_func.S: Likewise.
36525
36526 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36527
36528 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36529 * include/setjmp.h (____longjmp_chk): Here. Add
36530 attribute_hidden.
36531
36532 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36533
36534 [BZ #18822]
36535 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36536 attribute_hidden.
36537 (__strspn_sse2): Likewise.
36538
36539 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36540
36541 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36542 (close_not_cancel_no_status): Likewise.
36543 (__close_nocancel): New macro.
36544 (__close_nocancel_nostatus): Likewise.
36545 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36546 macro.
36547 (close_not_cancel): Likewise.
36548 (close_not_cancel_no_status): Likewise.
36549 (__close_nocancel): New prototype.
36550 (__close_nocancel_nostatus): New function.
36551 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36552 * catgets/open_catalog.c (__open_catalog): Replace
36553 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36554 * gmon/gmon.c (write_gmon): Likewise.
36555 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36556 * intl/loadmsgcat.c (close): Likewise.
36557 * io/ftw.c (open_dir_stream): Likewise.
36558 (ftw_startup): Likewise.
36559 * libio/fileops.c (_IO_file_open): Likewise.
36560 (_IO_file_close_mmap): Likewise.
36561 (_IO_file_close): Likewise.
36562 * libio/iopopen.c (_IO_dup2): Likewise.
36563 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36564 * locale/loadlocale.c (_nl_load_locale): Likewise.
36565 * login/utmp_file.c (pututline_file): Likewise.
36566 (endutent_file): Likewise.
36567 * misc/daemon.c (daemon): Likewise.
36568 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36569 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36570 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36571 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36572 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36573 * nscd/nscd_helper.c (open_socket): Likewise.
36574 (__nscd_open_socket): Likewise.
36575 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36576 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36577 (__nscd_innetgr): Likewise.
36578 * nss/nss_db/db-open.c (internal_setent): Likewise.
36579 * resolv/res-close.c (__res_iclose): Likewise.
36580 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36581 * sysdeps/posix/closedir.c (__closedir): Likewise.
36582 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36583 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36584 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36585 (opendir_tail): Likewise.
36586 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36587 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36588 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36589 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36590 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36591 (gethostid): Likewise.
36592 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36593 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36594 Likewise.
36595 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36596 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36597 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36598 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36599 Likewise.
36600 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36601 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36602 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36603 Likewise.
36604 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36605 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36606 Likewise.
36607 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36608 Likewise.
36609 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36610 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36611 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36612 __close_nocancel.
36613
36614 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36615 (openat_not_cancel_3): Likewise.
36616 (openat64_not_cancel_3): Likewise).
36617 (openat_not_cancel_3): Likewise).
36618 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36619 macro.
36620 (openat_not_cancel_3): Likewise.
36621 (openat64_not_cancel): Likewise.
36622 (openat64_not_cancel_3): Likewise.
36623 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36624 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36625 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36626 __open{64}_nocancel.
36627 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36628 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36629 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36630
36631 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36632
36633 [BZ #18822]
36634 * include/argz.h (__argz_create_sep): New function prototype.
36635 (__argz_append): Likewise.
36636 (__argz_add): Likewise.
36637 (__argz_add_sep): Likewise.
36638 (__argz_delete): Likewise.
36639 (__argz_insert): Likewise.
36640 (__argz_replace): Likewise.
36641 * string/argz.h (__argz_create_sep): Removed.
36642 (__argz_append): Likewise.
36643 (__argz_add): Likewise.
36644 (__argz_add_sep): Likewise.
36645 (__argz_delete): Likewise.
36646 (__argz_insert): Likewise.
36647 (__argz_replace): Likewise.
36648
36649 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36650
36651 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
36652 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
36653 (GNU_PROPERTY_STACK_SIZE): Likewie.
36654 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
36655 (GNU_PROPERTY_LOPROC): Likewise.
36656 (GNU_PROPERTY_HIPROC): Likewise.
36657 (GNU_PROPERTY_LOUSER): Likewise.
36658 (GNU_PROPERTY_HIUSER): Likewise.
36659 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
36660 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
36661 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
36662 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
36663 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
36664 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
36665 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
36666 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
36667 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
36668 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
36669 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
36670 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
36671 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
36672 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
36673 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
36674 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
36675 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
36676 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
36677 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
36678 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
36679 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
36680 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
36681 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
36682
36683 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36684
36685 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
36686 in C++ mode.
36687
36688 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36689
36690 [BZ #21930]
36691 * math/math.h (isinf): Check if in C or C++ mode before using
36692 __builtin_types_compatible_p, since this is a C mode feature.
36693
36694 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36695
36696 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
36697 (__write_nocancel): New macro.
36698 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
36699 Rewrite as a function prototype.
36700 (write_not_cancel): Remove macro.
36701 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
36702 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
36703 (write_gmon): Likewise.
36704 * libio/fileops.c (_IO_new_file_write): Likewise.
36705 * login/utmp_file.c (pututline_file): Likewise.
36706 (updwtmp_file): Likewise.
36707 * stdio-common/psiginfo.c (psiginfo): Likewise.
36708 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36709 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36710 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36711 Likewise.
36712 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36713 Likewise.
36714
36715 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
36716 (__read_nocancel): New macro.
36717 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36718 __read_nocancel.
36719 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
36720 macro.
36721 (__read_nocancel): New prototype.
36722 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
36723 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
36724 with __read_nocancel.
36725 * intl/loadmsgcat.c (read): Likewise.
36726 * libio/fileops.c (_IO_file_read): Likewise.
36727 * locale/loadlocale.c (_nl_load_locale): Likewise.
36728 * login/utmp_file.c (getutent_r_file): Likewise.
36729 (internal_getut_r): Likewise.
36730 (getutline_r_file): Likewise.
36731 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36732 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
36733 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36734 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36735 Likewise.
36736 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
36737 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36738 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36739 Likewise.
36740 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36741 Likewise.
36742 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36743 Likewise.
36744 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36745 Likewise.
36746 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36747
36748 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36749
36750 [BZ #21966]
36751 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
36752 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
36753 usable.
36754
36755 2017-08-17 DJ Delorie <dj@redhat.com>
36756
36757 * bug17079.c: Update to new test harness.
36758 * test-digits-dots.c: Likewise.
36759 * test-netdb.c: Likewise.
36760 * tst-field.c: Likewise.
36761 * tst-nss-getpwent.c: Likewise.
36762 * tst-nss-static.c: Likewise.
36763 * tst-nss-test1.c: Likewise.
36764 * tst-nss-test2.c: Likewise.
36765 * tst-nss-test3.c: Likewise.
36766 * tst-nss-test4.c: Likewise.
36767 * tst-nss-test5.c: Likewise.
36768
36769 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36770
36771 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
36772 (open_not_cancel_2): Likewise.
36773 (open_nocancel): New macro.
36774 (open64_nocancel): Likewise.
36775 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
36776 (open_not_cancel_2): Likewise.
36777 (__open_nocancel): New prototype.
36778 (__open64_nocancel): Likewise.
36779 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36780 __open_nocancel.
36781 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
36782 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
36783 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
36784 with __open_nocancel.
36785 * csu/check_fds.c (check_one_fd): Likewise.
36786 * gmon/gmon.c (write_gmon): Likewise.
36787 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
36788 * intl/loadmsgcat.c (open): Likewise.
36789 * libio/fileops.c (_IO_file_open): Likewise.
36790 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36791 * locale/loadlocale.c (_nl_load_locale): Likewise.
36792 * login/utmp_file.c (setutent_file): Likewise.
36793 * misc/daemon.c (daemon): Likewise.
36794 * nss/nss_db/db-open.c (internal_setent): Likewise.
36795 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36796 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
36797 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36798 (__opendir): Likewise.
36799 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36800 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
36801 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36802 (gethostid): Likewise.
36803 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36804 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36805 Likewise.
36806 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36807 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
36808 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36809 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36810 Likewise.
36811 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
36812 Likewise.
36813 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36814 Likewise.
36815 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
36816 Likewise.
36817 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36818 Likewise.
36819 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36820 Likewise.
36821 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36822 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36823
36824 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
36825
36826 * benchtests/bench-skeleton.c (main): Add support for
36827 latency benchmarking.
36828 * benchtests/scripts/bench.py: Add support for latency benchmarking.
36829
36830 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
36831
36832 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
36833 the startup object.
36834
36835 2017-08-17 Florian Weimer <fweimer@redhat.com>
36836
36837 * include/sys/socket.h (__opensock): Remove internal_function.
36838 * socket/opensock.c (__opensock): Likewise.
36839 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
36840
36841 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36842
36843 [BZ #21944]
36844 * signal/bits/types/__sigval_t.h: New file.
36845 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
36846 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
36847 and define sigval_t using __sigval_t.
36848 * include/bits/types/__sigval_t.h: New file.
36849 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
36850 instead of <bits/types/__sigval_t.h>.
36851 (struct sigevent): Use __sigval_t instead of sigval_t.
36852 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
36853 instead of <bits/types/__sigval_t.h>.
36854 (siginfo_t): Use __sigval_t instead of sigval_t.
36855 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
36856 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36857 (struct sigevent): Use __sigval_t instead of sigval_t.
36858 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
36859 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
36860 (siginfo_t): Use __sigval_t instead of sigval_t.
36861 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
36862
36863 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36864
36865 * NEWS: Remove "[Add new features here]" for 2.27.
36866
36867 2017-08-16 Joseph Myers <joseph@codesourcery.com>
36868
36869 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
36870 libc.so.
36871
36872 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36873
36874 * NEWS: Mention x86-64 FMA optimization.
36875
36876 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
36877
36878 [BZ #21912]
36879 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36880 Add e_expf-fma.
36881 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
36882 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
36883 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
36884
36885 2017-08-16 Andreas Schwab <schwab@suse.de>
36886
36887 [BZ #16750]
36888 CVE-2009-5064
36889 * elf/ldd.bash.in: Never run file directly.
36890
36891 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
36892
36893 [BZ #21955]
36894 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
36895 (L(SP_INF_0)): Likewise.
36896
36897 2017-08-15 Florian Weimer <fweimer@redhat.com>
36898
36899 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
36900 run-built-tests.
36901
36902 2017-08-15 Florian Weimer <fweimer@redhat.com>
36903
36904 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
36905 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
36906 BROKEN_THREAD_SIGNALS code.
36907 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
36908 request_list): Remove caller_pid member used for
36909 BROKEN_THREAD_SIGNALS.
36910 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
36911 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
36912 Remove BROKEN_THREAD_SIGNALS support.
36913 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
36914 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
36915
36916 2017-08-15 Florian Weimer <fweimer@redhat.com>
36917
36918 * gmon/Makefile (tests): Add tst-gmon.
36919 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
36920 Set.
36921 (tests-special): Add tst-gmon-prof.out.
36922 (tst-gmon.out): Depend on clean-tst-gmon-data.
36923 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
36924 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
36925 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
36926 startup object.
36927 * aclocal.m4 (GPROF): Set and substitute.
36928 * config.amke.in (GPROF): Set.
36929 * configure: Regenerate.
36930
36931 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
36932
36933 * elf/elf.h A (NT_PPC_TAR): New macro.
36934 (NT_PPC_PPR): Likewise.
36935 (NT_PPC_DSCR): Likewise.
36936 (NT_PPC_EBB): Likewise.
36937 (NT_PPC_PMU): Likewise.
36938 (NT_PPC_TM_CGPR): Likewise.
36939 (NT_PPC_TM_CFPR): Likewise.
36940 (NT_PPC_TM_CVMX): Likewise.
36941 (NT_PPC_TM_CVSX): Likewise.
36942 (NT_PPC_TM_SPR): Likewise.
36943 (NT_PPC_TM_CTAR): Likewise.
36944 (NT_PPC_TM_CPPR): Likewise.
36945 (NT_PPC_TM_CDSCR): Likewise.
36946
36947 2017-08-15 Florian Weimer <fweimer@redhat.com>
36948
36949 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
36950 regparm (2) instead of internal_function.
36951 (_MCOUNT_DECL): Adjust.
36952
36953 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
36954
36955 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
36956 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
36957
36958 2017-08-14 Joseph Myers <joseph@codesourcery.com>
36959
36960 * conform/data/sys/wait.h-data (si_value): Do not expect for
36961 XPG42.
36962
36963 2017-08-14 Florian Weimer <fweimer@redhat.com>
36964
36965 [BZ #21962]
36966 NSS: Create stubs for accidentally exported lookup functions.
36967 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
36968 Remove declaration.
36969 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
36970 (ether_hostton): Call __nss_ethers_lookup2 instead.
36971 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
36972 (ether_ntohost): Call __nss_ethers_lookup2 instead.
36973 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
36974 (setup): Call __nss_netgroup_lookup2 instead.
36975 * nss/Makefile (routines): Add compat-lookup.
36976 * nss/Versions (GLIBC_2.27): Add symbol version.
36977 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
36978 (DB_COMPAT_FCT): Remove.
36979 * nss/compat-lookup.c: New file.
36980 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
36981 from databases.def.
36982 * nss/service-lookup.c (NO_COMPAT): Remove definition.
36983 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
36984 (netname2user): Call __nss_publickey_lookup2 instead.
36985 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
36986 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
36987 instead.
36988
36989 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36990 Sergei Trofimovich <slyfox@inbox.ru>
36991
36992 [BZ #21908]
36993 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
36994 Rename to MMAP2_PAGE_UNIT.
36995 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
36996 __OFF_T_MATCHES_OFF64_T is not defined.
36997 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
36998 uint64_t.
36999 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37000 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37001
37002 2017-08-14 Florian Weimer <fweimer@redhat.com>
37003
37004 i386: Do not set internal_function.
37005 * config.h.in (USE_REGPARMS, internal_function): Remove.
37006 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37007 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37008
37009 2017-08-14 Florian Weimer <fweimer@redhat.com>
37010
37011 * elf/dl-init.c (_dl_init): Remove internal_function.
37012 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37013 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37014
37015 2017-08-14 Florian Weimer <fweimer@redhat.com>
37016
37017 * elf/rtld.c (_dl_start): Remove internal_function.
37018 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37019 _dl_start.
37020
37021 2017-08-14 Florian Weimer <fweimer@redhat.com>
37022
37023 * elf/dl-fini.c (_dl_fini): Remove internal_function
37024 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37025
37026 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37027
37028 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
37029 (bit_cpu_SHSTK): Likewise.
37030 (index_cpu_IBT): Likewise.
37031 (index_cpu_SHSTK): Likewise.
37032 (reg_IBT): Likewise.
37033 (reg_SHSTK): Likewise.
37034 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37035 Handle index_cpu_IBT and index_cpu_SHSTK.
37036
37037 2017-08-14 Mike FABIAN <mfabian@redhat.com>
37038
37039 [BZ #19982]
37040 * po/fr.po: Fix spelling mistake.
37041
37042 2017-08-13 Florian Weimer <fweimer@redhat.com>
37043
37044 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37045 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37046 (_dl_catch_error, _dl_receive_error): Likewise.
37047 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37048 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37049 (_dl_deallocate_tls): Likewise.
37050 * include/dlfcn.h (_dl_addr): Likewise.
37051 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37052 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37053 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37054 Likewise.
37055
37056 2017-08-13 Florian Weimer <fweimer@redhat.com>
37057
37058 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37059 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37060 internal_function.
37061 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37062
37063 2017-08-13 Florian Weimer <fweimer@redhat.com>
37064
37065 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37066 internal_function.
37067 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37068 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37069 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37070 internal_function from _dl_make_stack_executable_hook member.
37071 (_dl_make_stack_executable): Remove internal_function.
37072 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37073 Likewise.
37074 * sysdeps/unix/sysv/linux/dl-execstack.c
37075 (_dl_make_stack_executable): Likewise.
37076
37077 2017-08-13 Florian Weimer <fweimer@redhat.com>
37078
37079 * sysdeps/unix/sysv/linux/netlinkaccess.h
37080 (__netlink_assert_response): Remove internal_function.
37081 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37082 (__netlink_assert_response): Likewise.
37083
37084 2017-08-13 Florian Weimer <fweimer@redhat.com>
37085
37086 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37087 internal_function.
37088 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37089
37090 2017-08-13 Florian Weimer <fweimer@redhat.com>
37091
37092 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37093 internal_function.
37094 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37095 * inet/netgroup.h (__internal_setnetgrent)
37096 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37097 * inet/getnetgrent_r.c (__internal_setnetgrent)
37098 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37099 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37100 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37101 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37102 * nss/nsswitch.h (db_lookup_function): Likewise.
37103
37104 2017-08-13 Florian Weimer <fweimer@redhat.com>
37105
37106 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37107 Remove internal_function.
37108 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37109 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37110 message argument on the stack.
37111 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37112 Likeweise.
37113
37114 2017-08-12 Mike FABIAN <mfabian@redhat.com>
37115
37116 Adapt test case data to the changes in the thousands
37117 separators.
37118
37119 [BZ #20756]
37120 * localedata/tst-langinfo.sh: Adapt test case data.
37121 * stdlib/tst-strfmon_l.c: Likewise.
37122 * stdlib/tst-strtod4.c: Likewise.
37123 * stdlib/tst-strtod5i.c: Likewise.
37124
37125 2017-08-11 Florian Weimer <fweimer@redhat.com>
37126
37127 [BZ #21242]
37128 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37129 Suppress pedantic warning resulting from statement expression.
37130 (__ASSERT_FUNCTION): Add missing __extension__.
37131
37132 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37133
37134 * benchtests/bench-memmove-large.c: Print output in JSON
37135 format.
37136 * benchtests/bench-memmove.c: Likewise.
37137
37138 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37139 * benchtests/bench-memchr.c (do_one_test): Likewise.
37140 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37141 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37142 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37143 * benchtests/bench-memmove.c (do_one_test): Likewise.
37144 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37145 * benchtests/bench-memset.c (do_one_test): Likewise.
37146 * benchtests/bench-string.h (test_init): Remove memsets.
37147
37148 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37149
37150 * manual/lang.texi
37151 (Computing the Width of an Integer Data Type): Rename section to
37152 "Width of an Integer Type". Remove inaccurate statement regarding
37153 lack of C language facilities for determining width of integer
37154 types, and reorder content to improve flow and context of
37155 discussion.
37156
37157 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
37158
37159 * lang.texi (va_copy): Change standard from ISO to C99.
37160 (__va_copy): Add standard and header annotation.
37161 Update description for clarity of origins and current use.
37162
37163 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37164
37165 [BZ #21941]
37166 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37167 xssqrtqp requires operands to be in Vector Registers
37168 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37169 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37170 (__ieee754_sqrtf128): Likewise.
37171
37172 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37173
37174 * sysdeps/aarch64/memcmp.S (memcmp):
37175 Rewrite of optimized memcmp.
37176
37177 2017-08-10 Florian Weimer <fweimer@redhat.com>
37178
37179 Introduce ld.so exceptions.
37180 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37181 (_dl_exception_create, _dl_exception_create_format)
37182 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37183 (_dl_catch_exception): Declare.
37184 (_dl_catch_error): Update comment.
37185 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37186 errstring, malloced members with exception member.
37187 (_dl_out_of_memory): Remove.
37188 (fatal_error): New function, extracted from _dl_signal_error.
37189 (_dl_signal_exception, _dl_signal_cexception): New functions.
37190 (_dl_signal_error): Call _dl_exception_create to allocate an
37191 exception object.
37192 (_dl_catch_exception): New function, based on _dl_catch_error.
37193 (_dl_catch_error): Implement using _dl_catch_exception.
37194 * elf/dl-exception.c: New file.
37195 * elf/Makefile (dl-routines): Add dl-exception.
37196 (elide-routines.os): Likewise.
37197 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37198 _dl_exception_create_format, _dl_exception_free.
37199 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37200 _dl_signal_exception.
37201 * elf/dl-lookup.c (make_string): Remove.
37202 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37203 _dl_signal_cexception, _dl_exception_free.
37204 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37205 _dl_signal_exception.
37206 * elf/dl-sym.c (do_sym): Likewise.
37207 * elf/dl-version.c (make_string): Remove.
37208 (match_symbol): Use _dl_exception_create_format,
37209 _dl_signal_cexception, _dl_exception_free.
37210 (_dl_check_map_versions): Likewise.
37211 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37212 _dl_catch_exception.
37213 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37214 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37215 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37216 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37217 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37218 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37219 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37220 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37221 Likewise.
37222 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37224 (ld.so): Likewise.
37225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37226 (ld.so): Likewise.
37227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37228 Likewise.
37229 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37230 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37231 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37232 Likewise.
37233 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37234 Likewise.
37235 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37236
37237 2017-08-10 Florian Weimer <fweimer@redhat.com>
37238
37239 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37240 attribute_hidden, internal_function.
37241 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37242 internal_function.
37243
37244 2017-08-10 Florian Weimer <fweimer@redhat.com>
37245
37246 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37247 function which calls __builtin_unreachable.
37248
37249 2017-08-10 Mike FABIAN <mfabian@redhat.com>
37250
37251 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37252 Indian monetary formatting
37253 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37254 test cases.
37255
37256 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37257
37258 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37259 Fix typo in comment.
37260
37261 [BZ #21928]
37262 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37263 PTRACE_SEIZE_DEVEL): Remove.
37264 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37265 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37266 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37267 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37268 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37269
37270 2017-08-09 Joseph Myers <joseph@codesourcery.com>
37271
37272 * posix/bits/types.h (__qaddr_t): Remove.
37273
37274 [BZ #21457]
37275 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37276 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37277 __glibc_reserved1.
37278 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37279 (ucontext_t): Use __ctx with uc_flags.
37280 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37281 (__ctxt): Likewise.
37282 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37283 __glibc_reserved1.
37284 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37285 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37286 __glibc_reserved1.
37287 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37288 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37289 __glibc_reserved1.
37290 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37291 macro.
37292 (ucontext_t): Use __ctx with uc_flags.
37293 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37294 (ucontext_t): Use __ctx with uc_flags.
37295 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37296 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37297 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37298 (ucontext_t): Use __ctx with uc_flags.
37299 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37300 undefine further down.
37301 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37302 __glibc_reserved1.
37303 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37304 undefine further down.
37305 (ucontext_t): Use __ctx with uc_flags.
37306 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37307 undefine further down.
37308 (ucontext_t): Use __ctx with uc_flags.
37309 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37310 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37311 Rename uc_pad to __glibc_reserved1.
37312 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37313 undefine further down.
37314 (ucontext_t): Use __ctx with uc_flags.
37315 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37316 further down.
37317 (ucontext_t): Use __ctx with uc_flags.
37318 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37319 __ctx with uc_flags.
37320 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37321 (ucontext_t): Use __ctx with uc_flags.
37322 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37323 __ctx with uc_flags.
37324
37325 2017-08-09 Florian Weimer <fweimer@redhat.com>
37326
37327 [BZ #21932]
37328 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37329 before early return.
37330
37331 2017-08-09 Andreas Schwab <schwab@suse.de>
37332
37333 [BZ #21041]
37334 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37335 renamed alias.
37336
37337 [BZ #21041]
37338 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37339 tst-compat-forwarder.
37340 (modules-names): Add tst-compat-forwarder-mod.
37341 ($(objpfx)tst-compat-forwarder): Depend on
37342 $(objpfx)tst-compat-forwarder-mod.so.
37343 * nptl/tst-compat-forwarder.c: New file.
37344 * nptl/tst-compat-forwarder-mod.c: New file.
37345
37346 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37347
37348 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37349 comments.
37350
37351 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37352 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37353 memcpy_falkor.
37354 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37355 Bump.
37356 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37357 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37358 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37359 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37360 Add falkor.
37361 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37362 New macro.
37363
37364 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37365
37366 [BZ #759]
37367 * manual/setjmp.texi (getcontex): Document uc_stack value
37368 compatibility differences.
37369
37370 2017-08-08 Joseph Myers <joseph@codesourcery.com>
37371
37372 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37373 (old_malloc_hook): Likewise.
37374 (old_memalign_hook): Likewise.
37375 (old_realloc_hook): Likewise.
37376 (struct hdr): Likewise.
37377 (flood): Likewise.
37378 (freehook): Likewise.
37379 (mallochook): Likewise.
37380 (memalignhook): Likewise.
37381 (reallochook): Likewise.
37382 (mprobe): Likewise.
37383 * malloc/mtrace.c (mallwatch): Likewise.
37384 (tr_old_free_hook): Likewise.
37385 (tr_old_malloc_hook): Likewise.
37386 (tr_old_realloc_hook): Likewise.
37387 (tr_old_memalign_hook): Likewise.
37388 (tr_where): Likewise.
37389 (lock_and_info): Likewise.
37390 (tr_freehook): Likewise.
37391 (tr_mallochook): Likewise.
37392 (tr_reallochook): Likewise.
37393 (tr_memalignhook): Likewise.
37394 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37395 * misc/mmap.c (__mmap): Likewise.
37396 * misc/mmap64.c (__mmap64): Likewise.
37397 * misc/mprotect.c (__mprotect): Likewise.
37398 * misc/msync.c (msync): Likewise.
37399 * misc/munmap.c (__munmap): Likewise.
37400 * posix/posix_madvise.c (posix_madvise): Likewise.
37401 * socket/send.c (__send): Likewise.
37402 * socket/sendto.c (__sendto): Likewise.
37403 * socket/setsockopt.c (__setsockopt): Likewise.
37404 * string/memcmp.c (__ptr_t): Remove macro.
37405 (MEMCMP): Use void * instead of ptr_t.
37406 * string/memrchr.c (__ptr_t): Remove macro.
37407 (__memrchr): Use void * instead of ptr_t.
37408 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37409 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37410 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37411 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37412 * sysdeps/mach/msync.c (msync): Likewise.
37413 * sysdeps/mach/munmap.c (__munmap): Likewise.
37414 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37415 Likewise.
37416 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37417 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37418 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37419 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37420 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37421 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37422 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37423 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37424 Likewise.
37425 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37426 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37427 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37428 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37429 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37430 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37431 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37432 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37433 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37434 Likewise.
37435 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37436 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37437 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37438 (MEMCMP): Use void * instead of ptr_t.
37439 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37440 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37441
37442 2017-08-08 Florian Weimer <fweimer@redhat.com>
37443
37444 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37445 return statement.
37446
37447 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37448
37449 [BZ #21913]
37450 * csu/libc-tls.c: Include <startup.h> first.
37451 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37452 * elf/dl-tunables.c: Include <startup.h> first.
37453 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37454 * sysdeps/generic/startup.h: New file.
37455 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37456 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37457 (I386_USE_SYSENTER): New. Defined to 0.
37458
37459 2017-08-08 Andreas Schwab <schwab@suse.de>
37460
37461 [BZ #21041]
37462 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37463 * nptl/pt-system.c (system): Likewise.
37464
37465 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37466
37467 [BZ #21780]
37468 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37469 EOPNOTSUPP.
37470 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37471 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37472 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37473 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37474 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37475 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37476 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37477
37478 2017-08-07 Joseph Myers <joseph@codesourcery.com>
37479
37480 [BZ #21899]
37481 * bits/sigaction.h (struct sigaction): Define sa_handler and
37482 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37483 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37484 [__USE_XOPEN_EXTENDED].
37485 (SA_RESTART): Likewise.
37486 (SA_NODEFER): Likewise.
37487 (SA_RESETHAND): Likewise.
37488 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37489 (struct sigaction): Define sa_handler and sa_sigaction using union
37490 also for [__USE_XOPEN_EXTENDED].
37491 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37492 [__USE_XOPEN_EXTENDED].
37493 (SA_RESTART): Likewise.
37494 (SA_NODEFER): Likewise.
37495 (SA_RESETHAND): Likewise.
37496 * sysdeps/unix/sysv/linux/bits/sigaction.h
37497 (struct sigaction): Define sa_handler and sa_sigaction using union
37498 also for [__USE_XOPEN_EXTENDED].
37499 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37500 [__USE_XOPEN_EXTENDED].
37501 (SA_RESTART): Likewise.
37502 (SA_NODEFER): Likewise.
37503 (SA_RESETHAND): Likewise.
37504 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37505 (struct sigaction): Define sa_handler and sa_sigaction using union
37506 also for [__USE_XOPEN_EXTENDED].
37507 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37508 [__USE_XOPEN_EXTENDED].
37509 (SA_RESTART): Likewise.
37510 (SA_NODEFER): Likewise.
37511 (SA_RESETHAND): Likewise.
37512 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37513 (struct sigaction): Define sa_handler and sa_sigaction using union
37514 also for [__USE_XOPEN_EXTENDED].
37515 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37516 [__USE_XOPEN_EXTENDED].
37517 (SA_RESTART): Likewise.
37518 (SA_NODEFER): Likewise.
37519 (SA_RESETHAND): Likewise.
37520 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37521 (struct sigaction): Define sa_handler and sa_sigaction using union
37522 also for [__USE_XOPEN_EXTENDED].
37523 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37524 [__USE_XOPEN_EXTENDED].
37525 (SA_RESTART): Likewise.
37526 (SA_NODEFER): Likewise.
37527 (SA_RESETHAND): Likewise.
37528 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37529 (struct sigaction): Define sa_handler and sa_sigaction using union
37530 also for [__USE_XOPEN_EXTENDED].
37531 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37532 [__USE_XOPEN_EXTENDED].
37533 (SA_RESTART): Likewise.
37534 (SA_NODEFER): Likewise.
37535 (SA_RESETHAND): Likewise.
37536 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37537 (struct sigaction): Define sa_handler and sa_sigaction using union
37538 also for [__USE_XOPEN_EXTENDED].
37539 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37540 [__USE_XOPEN_EXTENDED].
37541 (SA_RESTART): Likewise.
37542 (SA_NODEFER): Likewise. Define directly rather than as alias.
37543 (SA_RESETHAND): Likewise.
37544 (SA_INTERRUPT): Define only for [__USE_MISC].
37545 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37546 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37547 [__USE_MISC].
37548 (SA_STACK): Define only for [__USE_MISC].
37549 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37550 (struct sigaction): Define sa_handler and sa_sigaction using union
37551 also for [__USE_XOPEN_EXTENDED].
37552 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37553 [__USE_XOPEN_EXTENDED].
37554 (SA_RESTART): Likewise.
37555 (SA_NODEFER): Likewise.
37556 (SA_RESETHAND): Likewise.
37557 (SA_NOPTRACE): Define only for [__USE_MISC].
37558
37559 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37560 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37561 (struct catalog_info): Likewise.
37562 * inet/htontest.c (lo): Likewise.
37563 (foo): Likewise.
37564 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37565 * inet/inet_net.c (inet_network): Likewise.
37566 * inet/inet_netof.c (inet_netof): Likewise.
37567 * inet/rcmd.c (__ivaliduser): Likewise.
37568 (iruserok): Likewise.
37569 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37570 * locale/programs/locale-spec.c (locale_special): Likewise.
37571 * nis/nis_findserv.c (struct findserv_req): Likewise.
37572 (__nis_findfastest_with_timeout): Likewise.
37573 * nss/test-netdb.c (test_network): Likewise.
37574 * resolv/inet_neta.c (inet_neta): Likewise.
37575 * resolv/ns_date.c (ns_datetosecs): Likewise.
37576 (SECS_PER_DAY): Likewise.
37577 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37578 Likewise.
37579 * resolv/res_comp.c (__putlong): Likewise.
37580 (__putshort): Likewise.
37581 (_getlong): Likewise.
37582 (_getshort): Likewise.
37583 * resolv/res_debug.c (p_time): Likewise.
37584 (precsize_ntoa): Likewise.
37585 (precsize_aton): Likewise.
37586 (latlon2ul): Likewise.
37587 (loc_aton): Likewise.
37588 (loc_ntoa): Likewise.
37589 * resolv/res_hconf.c (struct netaddr): Likewise.
37590 (_res_hconf_reorder_addrs): Likewise.
37591 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37592 (clnttcp_control): Likewise.
37593 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37594 (clntudp_control): Likewise.
37595 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37596 (clntunix_control): Likewise.
37597 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37598 * sunrpc/rpc/auth.h (union des_block): Likewise.
37599 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37600 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37601 (xdrrec_create): Likewise.
37602 (xdrrec_endofrecord): Likewise.
37603 (flush_out): Likewise.
37604 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37605 (xdrstdio_putlong): Likewise.
37606 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37607 Likewise.
37608
37609 * misc/sys/cdefs.h (__long_double_t): Remove.
37610 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37611 instead of __long_double_t,
37612 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37613
37614 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37615
37616 * benchtests/scripts/compare_strings.py: Avoid display error when
37617 running on a text terminal.
37618
37619 * benchtests/scripts/compare_strings.py (main): Add an
37620 optional -base option.
37621 (process_results): New argument base_func.
37622
37623 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37624 hardcoding memcpy.
37625 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37626 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37627
37628 2017-08-07 Andreas Schwab <schwab@suse.de>
37629
37630 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37631 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37632 * intl/Makefile ($(objpfx)tst-gettext.out)
37633 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37634 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37635 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37636 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37637 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37638 * posix/Makefile ($(objpfx)globtest.out)
37639 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37640 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37641 ($(objpfx)tst-printf.out): Likewise.
37642 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37643 ($(objpfx)tst-setcontext3.out): Likewise.
37644
37645 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37646
37647 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37648 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37649 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37650 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37651 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
37652 and mptan-fma.
37653 (CFLAGS-doasin-fma.c): New.
37654 (CFLAGS-dosincos-fma.c): Likewise.
37655 (CFLAGS-e_asin-fma.c): Likewise.
37656 (CFLAGS-e_atan2-fma.c): Likewise.
37657 (CFLAGS-e_exp-fma.c): Likewise.
37658 (CFLAGS-e_log-fma.c): Likewise.
37659 (CFLAGS-e_pow-fma.c): Likewise.
37660 (CFLAGS-halfulp-fma.c): Likewise.
37661 (CFLAGS-mpa-fma.c): Likewise.
37662 (CFLAGS-mpatan-fma.c): Likewise.
37663 (CFLAGS-mpatan2-fma.c): Likewise.
37664 (CFLAGS-mpexp-fma.c): Likewise.
37665 (CFLAGS-mplog-fma.c): Likewise.
37666 (CFLAGS-mpsqrt-fma.c): Likewise.
37667 (CFLAGS-mptan-fma.c): Likewise.
37668 (CFLAGS-s_atan-fma.c): Likewise.
37669 (CFLAGS-sincos32-fma.c): Likewise.
37670 (CFLAGS-slowexp-fma.c): Likewise.
37671 (CFLAGS-slowpow-fma.c): Likewise.
37672 (CFLAGS-s_sin-fma.c): Likewise.
37673 (CFLAGS-s_tan-fma.c): Likewise.
37674 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
37675 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
37676 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
37677 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
37678 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
37679 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
37680 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
37681 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
37682 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
37683 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
37684 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
37685 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
37686 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
37687 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
37688 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
37689 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
37690 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
37691 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
37692 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
37693 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
37694 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
37695 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
37696 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
37697 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
37698 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
37699 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
37700 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
37701 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
37702 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
37703 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
37704 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
37705
37706 2017-08-04 Joseph Myers <joseph@codesourcery.com>
37707
37708 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
37709 (min_of_type_f): New macro.
37710 (min_of_type_): Likewise.
37711 (min_of_type_l): Likewise.
37712 (min_of_type_f128): Likewise.
37713 (min_of_type): Define using __MATH_TG and taking an expression
37714 argument.
37715 (math_check_force_underflow): Pass expression instead of type to
37716 min_of_type.
37717 (math_check_force_underflow_nonneg): Likewise.
37718
37719 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37720
37721 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
37722 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
37723 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
37724
37725 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37726
37727 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
37728 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
37729 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
37730 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
37731 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
37732 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
37733 memcpy_chk-nonshared, mempcpy_chk-nonshared,
37734 memmove_chk-nonshared and memset_chk-nonshared
37735 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
37736 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
37737 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
37738 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
37739 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
37740 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
37741 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
37742 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
37743 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
37744 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
37745 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
37746 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
37747 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
37748 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
37749 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
37750 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
37751 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
37752 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
37753 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
37754 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
37755 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
37756 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
37757 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
37758 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
37759 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
37760 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
37761 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
37762 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
37763 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
37764 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
37765 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
37766 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
37767 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
37768 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37769 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
37770 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
37771 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
37772 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
37773 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
37774 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
37775 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
37776 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
37777 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
37778 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
37779 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
37780 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
37781 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
37782 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
37783 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
37784 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
37785 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
37786 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
37787 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
37788 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
37789 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
37790 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
37791 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
37792 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
37793 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
37794 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
37795 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
37796 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
37797 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
37798 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
37799 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
37800 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
37801 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
37802 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
37803 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
37804 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
37805 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
37806 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37807 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37808 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37809 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37810 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37811 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37812 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37813 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37814 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37815 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37816 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37817 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37818 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37819 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
37820 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
37821 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
37822 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
37823 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37824 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37825 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37826 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37827 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37828 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
37829 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
37830 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
37831 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
37832 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
37833 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37834 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
37835 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37836 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37837 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37838 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37839 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37840 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37841 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37842 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37843
37844 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
37845
37846 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
37847 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
37848 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
37849 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
37850 svml_d_log2_core-sse2, svml_d_log4_core-sse,
37851 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
37852 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
37853 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
37854 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
37855 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
37856 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
37857 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
37858 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
37859 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
37860 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
37861 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
37862 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
37863 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
37864 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
37865 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
37866 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
37867 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
37868 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
37869 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
37870 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
37871 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
37872 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
37873 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
37874 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
37875 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
37876 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
37877 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
37878 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
37879 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
37880 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
37881 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
37882 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
37883 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
37884 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
37885 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
37886 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
37887 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
37888 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
37889 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
37890 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
37891 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
37892 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
37893 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
37894 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
37895 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
37896 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
37897 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
37898 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
37899 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
37900 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
37901 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
37902 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
37903 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
37904 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
37905 ...
37906 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
37907 Don't include <sysdep.h> nor <init-arch.h>.
37908 (_ZGVbN2v_cos): Removed.
37909 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
37910 ...
37911 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
37912 Don't include <sysdep.h> nor <init-arch.h>.
37913 (_ZGVdN4v_cos): Removed.
37914 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
37915 ...
37916 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
37917 Don't include <sysdep.h> nor <init-arch.h>.
37918 (_ZGVeN8v_cos): Removed.
37919 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
37920 ...
37921 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
37922 Don't include <sysdep.h> nor <init-arch.h>.
37923 (_ZGVbN2v_exp): Removed.
37924 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
37925 ...
37926 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
37927 Don't include <sysdep.h> nor <init-arch.h>.
37928 (_ZGVdN4v_exp): Removed.
37929 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
37930 ...
37931 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
37932 Don't include <sysdep.h> nor <init-arch.h>.
37933 (_ZGVeN8v_exp): Removed.
37934 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
37935 ...
37936 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
37937 Don't include <sysdep.h> nor <init-arch.h>.
37938 (_ZGVbN2v_log): Removed.
37939 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
37940 ...
37941 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
37942 Don't include <sysdep.h> nor <init-arch.h>.
37943 (_ZGVdN4v_log): Removed.
37944 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
37945 ...
37946 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
37947 Don't include <sysdep.h> nor <init-arch.h>.
37948 (_ZGVeN8v_log): Removed.
37949 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
37950 ...
37951 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
37952 Don't include <sysdep.h> nor <init-arch.h>.
37953 (_ZGVbN2vv_pow): Removed.
37954 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
37955 ...
37956 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
37957 Don't include <sysdep.h> nor <init-arch.h>.
37958 (_ZGVdN4vv_pow): Removed.
37959 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
37960 ...
37961 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
37962 Don't include <sysdep.h> nor <init-arch.h>.
37963 (_ZGVeN8vv_pow): Removed.
37964 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
37965 ...
37966 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
37967 Don't include <sysdep.h> nor <init-arch.h>.
37968 (_ZGVbN2v_sin): Removed.
37969 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
37970 ...
37971 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
37972 Don't include <sysdep.h> nor <init-arch.h>.
37973 (_ZGVbN4v_sin): Removed.
37974 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
37975 ...
37976 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
37977 Don't include <sysdep.h> nor <init-arch.h>.
37978 (_ZGVbN8v_sin): Removed.
37979 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
37980 ...
37981 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
37982 Don't include <sysdep.h> nor <init-arch.h>.
37983 (_ZGVbN2vvv_sincos): Removed.
37984 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
37985 ...
37986 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
37987 Don't include <sysdep.h> nor <init-arch.h>.
37988 (_ZGVdN4vvv_sincos): Removed.
37989 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
37990 ...
37991 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
37992 Don't include <sysdep.h> nor <init-arch.h>.
37993 (_ZGVeN8vvv_sincos): Removed.
37994 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
37995 ...
37996 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
37997 Don't include <sysdep.h> nor <init-arch.h>.
37998 (_ZGVeN16v_cosf): Removed.
37999 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38000 ...
38001 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38002 Don't include <sysdep.h> nor <init-arch.h>.
38003 (_ZGVbN4v_cosf): Removed.
38004 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38005 ...
38006 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38007 Don't include <sysdep.h> nor <init-arch.h>.
38008 (_ZGVdN8v_cosf): Removed.
38009 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38010 ...
38011 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38012 Don't include <sysdep.h> nor <init-arch.h>.
38013 (_ZGVeN16v_expf): Removed.
38014 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38015 ...
38016 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38017 Don't include <sysdep.h> nor <init-arch.h>.
38018 (_ZGVbN4v_expf): Removed.
38019 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38020 ...
38021 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38022 Don't include <sysdep.h> nor <init-arch.h>.
38023 (_ZGVdN8v_expf): Removed.
38024 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38025 ...
38026 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38027 Don't include <sysdep.h> nor <init-arch.h>.
38028 (_ZGVeN16v_logf): Removed.
38029 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38030 ...
38031 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38032 Don't include <sysdep.h> nor <init-arch.h>.
38033 (_ZGVbN4v_logf): Removed.
38034 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38035 ...
38036 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38037 Don't include <sysdep.h> nor <init-arch.h>.
38038 (_ZGVdN8v_logf): Removed.
38039 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38040 ...
38041 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38042 Don't include <sysdep.h> nor <init-arch.h>.
38043 (_ZGVeN16vv_powf): Removed.
38044 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38045 ...
38046 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38047 Don't include <sysdep.h> nor <init-arch.h>.
38048 (_ZGVbN4vv_powf): Removed.
38049 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38050 ...
38051 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38052 Don't include <sysdep.h> nor <init-arch.h>.
38053 (_ZGVdN8vv_powf): Removed.
38054 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38055 ...
38056 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38057 Don't include <sysdep.h> nor <init-arch.h>.
38058 (_ZGVeN16vvv_sincosf): Removed.
38059 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38060 ...
38061 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38062 Don't include <sysdep.h> nor <init-arch.h>.
38063 (_ZGVbN4vvv_sincosf): Removed.
38064 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38065 ...
38066 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38067 Don't include <sysdep.h> nor <init-arch.h>.
38068 (_ZGVdN8vvv_sincosf): Removed.
38069 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38070 ...
38071 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38072 Don't include <sysdep.h> nor <init-arch.h>.
38073 (_ZGVeN16v_sinf): Removed.
38074 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38075 ...
38076 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38077 Don't include <sysdep.h> nor <init-arch.h>.
38078 (_ZGVbN4v_sinf): Removed.
38079 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38080 ...
38081 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38082 Don't include <sysdep.h> nor <init-arch.h>.
38083 (_ZGVdN8v_sinf): Removed.
38084
38085 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38086
38087 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38088 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38089 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38090 s_rint-sse4_1 and s_rintf-sse4_1.
38091 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38092 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38093 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38094 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38095 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38096 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38097 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38098 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38099 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38100 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38101 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38102 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38103 (__ceil): Removed.
38104 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38105 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38106 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38107 (__ceilf): Removed.
38108 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38109 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38110 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38111 (__floor): Removed.
38112 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38113 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38114 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38115 (__floorf): Removed.
38116 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38117 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38118 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38119 (__nearbyint): Removed.
38120 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38121 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38122 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38123 (__nearbyintf): Removed.
38124 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38125 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38126 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38127 (__rint): Removed.
38128 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38129 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38130 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38131 (__rintf): Removed.
38132
38133 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38134
38135 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38136 SHARED. Avoid dynamic relocation against main in static PIE.
38137
38138 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38139
38140 [BZ #21815]
38141 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38142 (LDFLAGS-tst-prelink): Likewise.
38143
38144 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38145
38146 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38147 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38148 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38149 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38150 (INTERNAL_SYSCALL_NCS): Likewise.
38151 (LOADARGS_1): Likewise.
38152 (LOADARGS_5): Likewise.
38153 (RESTOREARGS_1): Likewise.
38154 (RESTOREARGS_5): Likewise.
38155
38156 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38157
38158 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38159 (MEMPCPY_SYMBOL): Likewise.
38160 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38161 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38162 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38163 in libc.a.
38164 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38165 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38166 Likewise.
38167 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38168 (__hidden_ver1): Don't use in libc.a.
38169 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38170 (__mempcpy): Don't create a weak alias in libc.a.
38171 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38172 libc.a.
38173 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38174 (__hidden_ver1): Don't use in libc.a.
38175
38176 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38177
38178 * config.make.in (have-insert): New.
38179 * configure.ac (libc_cv_insert): New. Set to yes if linker
38180 supports INSERT in linker script.
38181 (AC_SUBST(libc_cv_insert): New.
38182 * configure: Regenerated.
38183 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38184 if $(have-insert) == yes.
38185
38186 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38187
38188 * elf/Makefile (tests): Add vismain only if
38189 $(have-protected-data) == yes.
38190 (tests-pie): Likewise.
38191
38192 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38193
38194 [BZ #21871]
38195 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38196 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38197
38198 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38199
38200 [BZ #21790]
38201 * sysdeps/i386/i586/memset.S
38202 (__memset_zero_constant_len_parameter): Removed.
38203 * sysdeps/i386/i686/memset.S
38204 (__memset_zero_constant_len_parameter): Likewise.
38205 * sysdeps/i386/i686/multiarch/memset_chk.S
38206 (__memset_zero_constant_len_parameter): Likewise.
38207 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38208 Likewise.
38209
38210 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38211
38212 * stdlib/getentropy.c (getentropy): Change return type to int.
38213
38214 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38215
38216 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38217
38218 2017-08-03 Joseph Myers <joseph@codesourcery.com>
38219
38220 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38221 u_intN_t.
38222 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38223 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38224 Likewise.
38225 (ieee_float_shape_type): Likewise.
38226 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38227 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38228 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38229 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38230 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38231 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38232 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38233 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38234 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38235 Likewise.
38236 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38237 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38238 (__ieee754_yn): Likewise.
38239 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38240 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38241 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38242 Likewise.
38243 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38244 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38245 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38246 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38247 (__erfc): Likewise.
38248 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38249 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38250 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38251 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38252 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38253 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38254 Likewise.
38255 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38256 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38257 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38258 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38259 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38260 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38261 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38262 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38263 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38264 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38265 (__issignaling): Likewise.
38266 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38267 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38268 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38269 Likewise.
38270 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38271 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38272 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38273 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38274 Likewise.
38275 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38276 Likewise.
38277 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38278 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38279 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38280 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38281 (__erfcf): Likewise.
38282 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38283 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38284 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38285 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38286 Likewise.
38287 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38288 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38289 Likewise.
38290 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38291 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38292 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38293 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38294 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38295 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38296 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38297 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38298 Likewise.
38299 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38300 Likewise.
38301 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38302 Likewise.
38303 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38304 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38305 Likewise.
38306 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38307 Likewise.
38308 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38309 (__ieee754_ynl): Likewise.
38310 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38311 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38312 Likewise.
38313 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38314 Likewise.
38315 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38316 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38317 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38318 Likewise.
38319 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38320 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38321 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38322 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38323 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38324 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38325 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38326 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38327 Likewise.
38328 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38329 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38330 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38331 Likewise.
38332 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38333 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38334 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38335 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38336 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38337 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38338 Likewise.
38339 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38340 Likewise.
38341 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38342 Likewise.
38343 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38344 Likewise.
38345 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38346 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38347 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38348 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38349 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38350 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38351 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38352 Likewise.
38353 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38354 Likewise.
38355 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38356 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38357 Likewise.
38358 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38359 (__ieee754_remainderl): Likewise.
38360 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38361 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38362 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38363 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38364 Likewise.
38365 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38366 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38367 Likewise.
38368 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38369 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38370 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38371 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38372 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38373 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38374 Likewise.
38375 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38376 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38377 (__ieee754_y0l): Likewise.
38378 (pzero): Likewise.
38379 (qzero): Likewise.
38380 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38381 (__ieee754_y1l): Likewise.
38382 (pone): Likewise.
38383 (qone): Likewise.
38384 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38385 (__ieee754_ynl): Likewise.
38386 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38387 (__ieee754_lgammal_r): Likewise.
38388 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38389 Likewise.
38390 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38391 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38392 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38393 (__erfcl): Likewise.
38394 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38395 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38396 Likewise.
38397 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38398 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38399 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38400 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38401 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38402 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38403 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38404 Likewise.
38405 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38406 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38407 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38408 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38409 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38410 Likewise.
38411 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38412 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38413 Likewise.
38414 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38415 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38416 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38417 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38418 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38419
38420 2017-08-03 Florian Weimer <fweimer@redhat.com>
38421
38422 [BZ #21885]
38423 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38424 on memory allocation failure.
38425
38426 2017-08-03 Alan Modra <amodra@gmail.com>
38427
38428 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38429 tst-tlsopt-powerpc.c with function name change and no test harness.
38430 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38431 Call tls_get_addr_opt_test.
38432 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38433 (modules-names): Add mod-tlsopt-powerpc.
38434 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38435 (tst-tlsopt-powerpc): Depend on .so.
38436 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38437 define. Expand use in TLS_GD and TLS_LD.
38438
38439 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38440
38441 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38442 function.
38443 * sysdeps/posix/shm_open.c: Include <pthread.h>.
38444
38445 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38446
38447 [BZ #21686]
38448 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38449 comparing size with that of double.
38450 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38451 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38452 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38453 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38454 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38455 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38456 unsigned __int128 types.
38457
38458 2017-08-02 Steve Ellcey <sellcey@cavium.com>
38459
38460 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38461 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38462 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38463 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38464 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38465
38466 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38467
38468 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38469
38470 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38471
38472 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38473 of SHARED.
38474 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38475 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38476 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38477 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38478 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38479 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38480 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38481
38482 2017-08-02 Joseph Myers <joseph@codesourcery.com>
38483
38484 [BZ #21685]
38485 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38486 bit-field expressions passed to sizeof or typeof.
38487 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38488 (__TGMATH_F128): Likewise.
38489 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38490 (__TGMATH_CF128): Likewise.
38491 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38492 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38493 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38494 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38495 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38496 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38497 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38498 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38499 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38500 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38501 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38502 (__TGMATH_UNARY_IMAG): Likewise.
38503 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38504 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38505 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38506 type.
38507 (define_vars_for_type): Handle bit_field type specially.
38508 (Tests.__init__): Declare structure with bit-field element.
38509
38510 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38511
38512 [BZ #21791]
38513 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38514 (MEMCPY_CHK): Define only if SHARED is defined.
38515 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38516 Likewise.
38517 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38518 Likewise.
38519
38520 See ChangeLog.18 for earlier changes.